base_url and API key.
Checking Vision Support
Before sending image content to a model, confirm it supports vision by fetching its metadata and inspecting thecapabilities object.
curl
_meta.capabilities.vision: true in the response. Models that do not have this capability will reject requests containing image_url content parts.
Sending an Image
Replace thecontent string in a user message with an array of content parts. Include a text part for your prompt and an image_url part for each image you want the model to analyse.
image_url parts in a single message to compare or jointly analyse several images.
Image Formats
Meliai accepts images in two forms:- Public URL
- Base64 Data URI
Pass any publicly accessible HTTPS URL in the
url field.Image URLs are fetched and re-encoded server-side by Meliai before the request is forwarded to the inference provider. The downstream provider never receives or stores your original URL, which preserves referrer privacy and ensures the image is processed within the EU.
Multi-Turn Vision Conversations
You can reference images in earlier turns of a multi-turn conversation. Include the original image content part in the conversation history when sending follow-up messages — the model uses the image from the previous turn to answer questions about it in subsequent ones.Python