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 as an https:// URL, a full data: URL, or raw base64 plus media_type. file_id is not supported; there is no Files API.

Example

Multipart Limits

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

URL Rules

Image URLs must use https, carry no credentials, and not resolve to a private or loopback host. Violations return 400. Audio and video inputs are rejected.