(Get your API key from here)
Use POST request to upload and index an image:
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: multipart/form-data" \
-F "thumbnail=@/path/to/your/image.jpg" \
-F "biz_id=your_business_id" \
-F "tags=tag1,tag2" \
https://your-domain.com/api/image/v1
{
"id": "img_123"
}
Use POST request to search images by text description:
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "yellow cat",
"tags": ["cat", "table"],
"limit": 10,
"offset": 0
}' \
https://your-domain.com/api/search/v1
[
{
"thumbnail_url": "https://...",
"biz_id": "your_business_id",
"tags": ["cat", "table", "person"],
"score": 0.95
}
]
If you want to learn more, please visit our documentation.