Skip to main content
The model must support image inputs; find them with GET /v1/models?supports=image_inputs.

The image_url Part

Supply the bytes inline, as a full data: URL or as raw base64 plus media_type. file_id is not supported; there is no Files API. Audio and video inputs are rejected.

Example

Multipart Limits

Chat completions also accept multipart/form-data: a request JSON part plus image files referenced as attachment://<id>.