Endpoints
Authentication
Supported models
Supported input types
All content types support both URL and Base64 data URI formats.
Features
- Streaming — Set
stream: truefor real-time token streaming via SSE - Function calling — Use the
toolsandtool_choiceparameters - Reasoning — Models return
reasoning_contentwith chain-of-thought - Vision — Send images via
image_url/input_imagecontent blocks - Video understanding — Send videos via
video_url/input_videowith optionalfpscontrol - Document understanding — Send PDF/documents via
input_file(Responses API only) - Multi-turn conversations — Include full message history in
messages/input
Chat Completions API
Text
Image (URL)
cURL
Image (Base64)
cURL
Video (URL + fps)
Thefps parameter controls frame extraction rate (frames per second). Default: 1, range: 0.2–5.
cURL
Video (Base64)
cURL
Responses API
Text
cURL
Image (URL)
cURL
Video (URL + fps)
cURL
Document (URL)
Document understanding is only available via the Responses API.
cURL
Document (Base64)
cURL