Skip to content

Getting Started

Before using the API, you’ll need an account, credits, and an API key. See Getting Started if you haven’t set that up yet.

Terminal window
curl -X POST "https://api.visionati.com/api/fetch" \
-H "X-API-Key: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/photo.jpg"}'

This sends the image to all your default backends with all features enabled and returns a JSON response with descriptions, tags, NSFW scores, and more.

You don’t always need everything. Specify only the backends and features you want to reduce cost and response time:

Terminal window
curl -X POST "https://api.visionati.com/api/fetch" \
-H "X-API-Key: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/photo.jpg",
"backend": ["openai", "googlevision"],
"feature": ["descriptions", "tags"]
}'

Roles control how LLM backends describe your image. The default is general, but you can use specialized roles:

Terminal window
curl -X POST "https://api.visionati.com/api/fetch" \
-H "X-API-Key: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/product.jpg", "role": "ecommerce"}'

See Roles for all options.

For full control, pass your own prompt. This overrides the role:

Terminal window
curl -X POST "https://api.visionati.com/api/fetch" \
-H "X-API-Key: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/photo.jpg", "prompt": "List every plant species visible"}'