1. Create an API key
- Open the AI Stats Dashboard.
- Create a key under Gateway -> Keys.
- Copy it once and store it securely.
Treat your API key like a password. Do not expose it in client-side code.
2. Start with a free model (no deposit required)
UsePOST /v1/responses for the fastest first success.
Requests to
:free models do not require deposited credits. Paid models still require available wallet balance.Request (request format)
Response (response format)
output[].content[] where type is output_text.For Vercel AI SDK calls, use
result.text.
3. If it fails, check these first
401: key format or header issue.400: request body shape or unsupported parameter.402: paid model without sufficient balance. Use a:freemodel or top up credits.429/5xx: retry with backoff.
4. Video jobs are asynchronous
Video creation is long-running by design.- Create a job with
POST /v1/videos. - Poll status with
GET /v1/videos/{video_id}until completed. - Download content from
GET /v1/videos/{video_id}/content.
5. Next steps
Integrating with the Gateway
Production integration patterns and endpoint selection.
API Reference
Full request and response docs for every endpoint.
Examples
More complete request samples for common workflows.
Support
Get help with debugging, routing, and model behavior.