Create dynamic character animations from existing video tasks using Sora-2-characters-pro advanced AI model
Complete a Video Generation Task
Obtain Task ID
taskId from the response. This becomes your origin_task_id.Specify Video Segment
timestamps parameter to define which segment of the video to use. Format: "x,y" (e.g., "3.55,5.55"). The segment duration (y - x) must be between 1-4 seconds.| Parameter | Type | Required | Description |
|---|---|---|---|
origin_task_id | string | Yes | Task ID of the original video generation task |
timestamps | string | Yes | Video segment time range. Format: "x,y" (e.g., "3.55,5.55"). Extracts segment from x to y seconds. Duration (y - x) must be 1-4 seconds |
character_user_name | string | No | Optional. Custom name for the character, used to identify and reference in subsequent operations. Max 40 characters when provided |
character_prompt | string | Yes | Character persona prompt describing personality and appearance |
safety_instruction | string | No | Safety guidelines and content restrictions for the animation |
state: "success"), the resultJson field contains:
character_id can be used to reference the generated character animation in subsequent operations.
All APIs require authentication via Bearer Token.
Get API Key:
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
The model name to use for generation. Required field.
sora-2-characters-pro for this endpointsora-2-characters-pro "sora-2-characters-pro"
The URL to receive generation task completion updates. Optional but recommended for production use.
"https://your-domain.com/api/callback"
Input parameters for the generation task
Request successful
Response status code
200, 401, 402, 404, 422, 429, 455, 500, 501, 505 Response message, error description when failed
"success"