Image recognition uses chat completions with image input. To create or edit image outputs, use the Image generation and edits endpoints instead.
Streaming example
Non-streaming call
What to remember
messages[*].contentis an array: include bothtextandimage_urlparts in the same user message.- Image URLs must be reachable over HTTPS; signed URLs work if they stay valid for the request duration.
response.model(orchunk.modelwhile streaming) tells you which underlying model handled the call.
