Base URL:
https://api.laozhang.ai/sora/v1/characters
Price: $0.01/call
Model: sora-2-characterIntroduction
Sora 2 Character feature allows you to extract characters (people, pets, objects, etc.) from videos and create reusable character identities. Once created, you can reference the character using@username syntax in subsequent video generation, maintaining consistent appearance and traits.
Character Extraction
Extract character from video clips
Reusable
Create once, use multiple times
Consistency
Maintain consistent appearance and traits
Low Cost
Only $0.01/call
Prerequisites
1
Get API Key
Log in to laozhang.ai console to obtain your API key
2
Prepare Video Source
Prepare a video containing the character you want to extract:
- Video URL (publicly accessible)
- Completed Sora video task ID
Quick Start
1. Create Character from Video URL
2. Create Character from Task ID
If you’ve already generated a video through the Sora API, you can use the task ID directly:API Reference
Endpoint
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | ✓ | Fixed value: "sora-2-character" |
url | string | Either | Video URL (publicly accessible) containing the character |
from_task | string | Either | Completed Sora video task ID |
timestamps | string | ✓ | Time range where character appears (seconds), format: "start,end", e.g., "1,3" |
timestamps Explanation
- Format:
"start_second,end_second", e.g.,"1,3"means from 1st to 3rd second of the video - Time range: minimum 1 second, maximum 3 seconds
- Ensure the character is clearly visible within the specified time range
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique character identifier, starts with ch_ |
username | string | Character username for @ reference |
display_name | string | Character display name |
permalink | string | Character link on Sora platform |
profile_picture_url | string | Character avatar URL |
Response Example
Using Characters in Videos
After creating a character, you can reference it using@username syntax in your video generation prompts.
Usage Example
Complete Workflow Example
Here’s a complete workflow from video generation to character creation to character reuse:FAQ
What are the timestamps limitations?
What are the timestamps limitations?
- Minimum range: 1 second (e.g.,
"1,2") - Maximum range: 3 seconds (e.g.,
"1,4") - Ensure the character is clearly visible within the specified time range
- Choose clips where the character is front-facing with good lighting
What types of characters can be created?
What types of characters can be created?
You can extract various types of characters from videos:
- Human characters
- Animals/pets
- Cartoon characters
- AI-generated virtual characters
- Objects/props
How many times can a character be reused?
How many times can a character be reused?
Created characters have no usage limit and can be reused in any number of video generations.
How to get the best character extraction results?
How to get the best character extraction results?
Recommendations:
- Choose video clips where the character is clearly visible
- Ensure good lighting conditions
- Select frames showing the character’s front or clear side view
- Avoid clips where the character is obscured or blurry
Pricing
| Operation | Price |
|---|---|
| Create character | $0.01/call |
| Generate video with character | Charged at video generation price (from $0.15/call) |
Character creation is billed per call at only $0.01. When generating videos with characters, standard video generation pricing applies.