Skip to main content

Vision

Images go inline, as base64 data URLs (data:image/png;base64,...). Remote https:// image URLs are not fetched. Models that accept images have "vision": true in GET /v1/models. The Models page lists them too.

Chat completions

Responses and Messages

  • /v1/responses: an input_image part with image_url set to a data URL.
  • /v1/messages: an image block with a base64 source. See Messages.

Rules

Images count toward the request body limit and the prompt’s token count.