You can now send images to your models
Attach a screenshot to a support question, ask a model to read a chart, or send a photo with the prompt that describes it. Anything a text request could do, an image-bearing one can do too.
www.arkor.ai/oddphin-org/support-bot/playground
www.arkor.ai/oddphin-org/support-bot/playground
Through the API, an image is a content part on a user message, exactly as OpenAI defines it:
curl
curl https://<slug>.arkor.app/v1/chat/completions \
-H "Authorization: Bearer $ARKOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "What does this chart show?" },
{
"type": "image_url",
"image_url": { "url": "data:image/png;base64,iVBORw0KGgoAAAANS..." }
}
]
}
]
}'- PNG, JPEG, WebP, and GIF are supported.
- Images travel inline as base64 data URLs. Remote image URLs are not accepted.
- The Playground takes up to four images per message, around 2.5 MB each. On
*.arkor.appendpoints the whole request, conversation history included, has to fit in 4 MB, and base64 encoding makes an image about a third larger than the file on disk.
