image_url content part.
Prerequisites
- An Auriko API key
- Python 3.10+ with
aurikoSDK installed (pip install auriko)- OR Node.js 18+ with
@auriko/sdkinstalled (npm install @auriko/sdk)
- OR Node.js 18+ with
- A vision-capable model (e.g.,
gpt-4o,claude-3.5-sonnet,gemini-2.0-flash)
Analyze an image from a URL
Pass an image URL as a content part in the user message:Analyze a base64-encoded image
For local files or private images, encode the bytes as a data URL:Multiple images in one request
Send several images in a single request by adding multipleimage_url content parts:
Response shape
Vision responses use the standardChatCompletionResponse shape. The model’s analysis appears in choices[0].message.content as text — there is no separate vision response schema.
Errors
| Situation | HTTP | SDK error |
|---|---|---|
| Image URL unreachable | 400 | BadRequestError |
| Image too large for the model’s context window | 400 | BadRequestError |
| Model does not support vision | 400 | BadRequestError |
| Unsupported image format | 400 | BadRequestError |
content part types and see Error codes for the full error taxonomy.
Related
- Streaming — stream vision responses chunk-by-chunk
- Tool calling — combine vision with function calling
- Structured output — extract structured data from images