Get startedAPI referenceGoing to productionExplore models

Capabilities

Image inputs

Choose a model with vision support and a compatible endpoint. In Chat Completions, combine text and image_url blocks inside the user message content array.

Send an image

Request
{
  "model": "YOUR_VISION_MODEL",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Describe this image."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://example.com/your-image.jpg"
          }
        }
      ]
    }
  ]
}

Input requirements

Replace the example URL with an image accessible to the provider. Accepted image formats, size limits, and detail options depend on the routed model. Do not assume every text model accepts images.

Copied