Skip to main content
Images, documents, audio, and video are all available through the gateway with the same key and credits. Request and response shapes are the standard OpenAI-compatible ones; this page shows where each modality lives.

Image input

Send an image_url content part. Models that price image inputs show credits_per_image in the catalog.

Documents

Attach a PDF or other document as a file content part and add the file-parser plugin so any model can read it:
Upload once with POST /v1/files when the same document is used across many calls. Files are scoped to the workspace that uploaded them. Add plugins: [{ "id": "web" }], or use a model’s :online variant, and tune with web_search_options. Search cost is part of usage.cost. See routing and fallbacks.

Generated media

Image, video, and speech models are listed by /v1/images/models, /v1/videos/models, and the main catalog. Video is asynchronous: submit, poll GET /v1/videos/{jobId}, then download from /content; the job is charged when a poll reports completion. See images and video and audio.