Character Animation Integration
To enhance character animation capabilities, you can use thecharacter_url and character_timestamps parameters to create character animations:
Sora2 - Characters
Learn how to create character animations and obtain character_id_list for
integration
Query Task Status
After submitting a task, you can check task progress and retrieve generation results through the unified query endpoint:Get Task Details
Learn how to query task status and retrieve generation results
Related Resources
Market Overview
Browse all available models
Common API
View account credits and usage
API Reference
Request
Request Headers
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model name: sora-2 or sora-2-hd |
prompt | string | Yes | Video description prompt |
seconds | string | No | Video duration: 10, 15, 25 (pro only) |
input_reference | file | No | Input reference image |
size | string | No | Video size (see below) |
watermark | boolean | No | Whether to add watermark, default no watermark |
private | boolean | No | Whether to hide video, true means video won’t be published and can’t be remixed, default false |
character_url | string | No | Video URL for creating character (no real people allowed in video) |
character_timestamps | string | No | Character appearance time range in seconds, format {start},{end}, range 1~3 seconds |
metadata | string | No | Metadata |
character_from_task | string | No | Completed task ID, can create character from generated task |
character_create | boolean | No | Automatically create character from generated video after completion |
style | string | No | Style: winter, comic, news |
Size Options
| Value | Description | Note |
|---|---|---|
1024x1792 | HD Portrait | sora-2-hd only |
1792x1024 | HD Landscape | sora-2-hd only |
720x1280 | SD Portrait | |
1280x720 | SD Landscape |
Width > Height = Landscape, Width < Height = Portrait
Request Example
Request Example with Character Creation
Request Example with Style
Response Example
Response Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized - Missing or invalid authentication credentials |
| 402 | Insufficient credits |
| 404 | Not found |
| 422 | Validation error - Request parameters failed validation |
| 429 | Rate limited |
| 500 | Server error |
| 501 | Generation failed |