- Sora2 character creation feature
- Extract characters from video for subsequent generation
- Supports creating from video URL or existing task
- Async task management, query results by task ID
Authorizations
Body
model
string
default:"sora-2"
required
Model nameExample: "sora-2" or "sora-2-pro"
Video URL containing the characterEither url or from_task required
Task ID of generated videoEither url or from_task required
Time range when character appears (seconds)Format: “start,end”, range 1-3 secondsExample: "1,3"
Note:
- Video must contain audio and character
- Either
url or from_task required
- Time range minimum 1 second, maximum 3 seconds
prompt parameter not required in this mode
Response
Unique task identifier for character creation status queries
Object type, always generation.task
Task status
queued - Queued for processing
in_progress - Processing
completed - Successfully completed
failed - Failed
Task progress percentage (0-100)
Task creation timestamp (Unix timestamp)
curl --request POST \
--url https://dashlyai.cc/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "sora-2",
"url": "https://example.com/character-video.mp4",
"timestamps": "1,3"
}'
{
"id": "task_01KBYT59JDHB4A3KDDR9N9JVWP",
"object": "generation.task",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1703884800,
"metadata": {}
}