API Reference
API Reference
Choose model references, common endpoints, and utility guides.
Integration workflow
- Create an API key and configure server-side authentication using the quickstart.
- List available models and choose a model ID available to the current key.
- For images and videos, create a generation, then follow asynchronous tasks to retrieve results.
- For language models, use chat completions.
Model pages list parameters, input limits, and request/response examples. Routes marked as not enabled provide parameter previews and must not be treated as callable endpoints.
Common references
Image model example
Text-to-image, reference editing, batch output, and task queries.
Video model example
Video generation, endpoint frames, and synchronized audio.
Language model example
Chat messages, multimodal input, and streaming responses.
Tools API
Video cleanup, video-to-prompt, and text-to-speech.
Temporary media uploads
Upload local inputs and bind them to a generation task.
Error handling
HTTP status, business errors, idempotency, and retries.