Skip to main content
Vision-language models accept images alongside text and reply in natural language, structured JSON, or tool calls. For the current list of vision-capable models, see the serverless catalog or the dedicated model inference catalog.

Basic example

Pass a messages array where the user content is a list mixing text and image_url blocks. The model treats them as a single multimodal prompt and replies with text in choices[0].message.content. The example below points the model at an image of a Trello board and asks it to describe the UI in detail; the response streams back token-by-token.

Pricing

Vision models bill images as input tokens. Each image breaks into a tile grid (capped at 2×2 of 560-pixel tiles) and you pay 1,601 tokens per tile. There are only four possible image bills: A 4K screenshot and a 1280×720 photo are billed the same (both are 2×2). The image tokens are added to your prompt’s text tokens; output tokens are billed separately at the model’s standard rate. The exact formula: