Skip to main content
Vision-capable models can interpret images as part of their input, allowing you to build applications that describe photos, extract text from screenshots, audit diagrams, compare product images, and much more — all within a single API call alongside a text prompt. Meliai routes vision requests to European providers that support multimodal inference, keeping your image data within the EU throughout the entire request lifecycle. The interface follows the OpenAI multimodal message format, so any existing vision code works by changing only the 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 the capabilities object.
curl
Look for _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 the content 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.
You can include multiple image_url parts in a single message to compare or jointly analyse several images.

Image Formats

Meliai accepts images in two forms:
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