Vision input with Meridian
Pass image_url content parts directly in the messages array. Supported on gpt-4o, gpt-4.1, and Llama-4-Maverick.
Quickstart
POST /v1/chat/completions
Content-Type: application/json
{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/photo.jpg",
"detail": "auto"
}
}
]
}
]
}Supported models
gpt-4o
High-fidelity vision, tool use, structured outputs.
gpt-4.1
Latest snapshot with improved instruction following.
Llama-4-Maverick
Open-weight multimodal, 17B active params.
image_url object
| Field | Type | Description |
|---|---|---|
| url | string | HTTP/HTTPS URL or base64 data URI |
| detail | string | auto low high |