Documentation Index
Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
What this model is for
Use this page after trying Sora 2 Pro in the APIXO playground. It shows the model ID, request body, result format, and the shared async workflow links you need for API integration.Model ID, endpoint, and auth
- Model ID:
sora-2-pro - Base URL:
https://api.apixo.ai/api/v1
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/generateTask/sora-2-pro | Create generation task |
| GET | /api/v1/statusTask/sora-2-pro | Query task status |
Authentication
All requests require an API Key in the header:Request Body
Parameters
async (polling) or callback (webhook)
Callback URL, required when request_type=callback (conditional)
Routing strategy. Only official is supported; always set provider=official explicitly.
Model input parameters
text-to-video— Generate video from text promptimage-to-video— Generate video from reference image
Copy-paste quickstart
Text-to-VideoResponse and result format
POST /api/v1/generateTask/sora-2-pro
ReturnstaskId on success for subsequent status queries.
Success:
GET /api/v1/statusTask/sora-2-pro
Query task execution status and results viataskId.
Polling result fields
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing
resultUrls array. Only present on success. Parse with JSON.parse().Error code. Only present when
state is failed. See Error Codes.Human-readable error message. Only present when
state is failed.Task creation timestamp (Unix milliseconds).
Task completion timestamp (Unix milliseconds).
Processing duration in milliseconds.
Polling and webhook result retrieval
Userequest_type: "async" with the status endpoint when your app wants to poll for completion. Use request_type: "callback" with callback_url when your production service should receive the final result automatically. See Webhooks for delivery details.
Common errors
| Code | Description |
|---|---|
| 400 | Invalid parameters or request error |
| 401 | Invalid or missing API Key |
| 429 | Rate limit exceeded |
| Fail Code | Description |
|---|---|
CONTENT_VIOLATION | Content violates safety guidelines |
INVALID_IMAGE_URL | Cannot access provided image URL |
Rate Limits
| Limit | Value |
|---|---|
| Requests | 60 / minute |
| Concurrent tasks | 10 |
429 error. Wait and retry.
Tips
- Generation time: Average ~3 minutes per video. Submit task, wait 120 seconds, then poll every 5 seconds.
- Routing recommendation: Always include
provider=officialexplicitly in request body. - Callback mode: Due to long generation times, strongly recommend using
callbackmode. - Video expiration: Result URLs are valid for 15 days. Download promptly.
- Content moderation: Prompts must comply with content safety guidelines. Violations return
CONTENT_VIOLATION. - Image formats:
image_urlssupports JPG, PNG, WebP, max 10MB per image. - Duration options: Use
4,8, or12seconds depending on preview vs final output needs. - Official route duration policy: Under
provider=official, duration values should be explicitly set to4,8, or12. - Size vs Resolution:
sizeis used in text-to-video mode:720*1280(portrait),1280*720(landscape),1024*1792,1792*1024resolutionis used in image-to-video mode:720por1080p