Skip to main content
POST
  • Follows an APIMart-style task flow
  • verify-tasks.completed means the verification session was created, not that the user has passed verification
  • The returned H5 link expires after 120 seconds

Authorizations

string
必須
All requests require Bearer Token authentication.

Workflow

1. Create Verification Task

Call this endpoint:
  • POST /v1/videos/doubao-seedance-2-0/real-avatar/verify-tasks
What it does:
  • Creates a new real-person verification task
  • Returns a task_id
  • You will use that task_id to fetch verification details

2. Get Verification Task Details

Call this endpoint:
  • GET /v1/videos/doubao-seedance-2-0/real-avatar/verify-tasks/{task_id}
What it does:
  • Returns the verification task details
  • Gives you the h5_link for the end user
  • Gives you the byted_token used in the next step
This endpoint returns h5_link, byted_token, and expires_at.

3. Get Verification Result

Call this endpoint:
  • GET /v1/videos/doubao-seedance-2-0/real-avatar/verify-results
Available query parameters:
  • task_id
  • byted_token
  • result_code is recommended
What it does:
  • Confirms whether verification has passed
  • Returns the group_id required for asset upload
After the user completes the H5 flow, read resultCode and bytedToken from your callback URL. Recommended query:
Only continue when:
  • verify_status=verified
  • group_id is present

4. Upload Real Avatar Asset

Call this endpoint:
  • POST /v1/videos/doubao-seedance-2-0/real-avatar/assets
What it does:
  • Uploads one real-avatar asset into the verified group
  • Returns an asset_id
  • Starts asynchronous processing
The group_id must come from a verified real-avatar task owned by the current user. It cannot be manually fabricated or reused across users.

5. Get Asset ステータス

Call this endpoint:
  • GET /v1/videos/doubao-seedance-2-0/real-avatar/assets/{asset_id}
What it does:
  • Returns the current asset status
  • Tells you whether the asset is ready for video generation
Poll GET /real-avatar/assets/{asset_id} until status=active.

Use In 動画生成

Call this endpoint:
  • POST /v1/videos/generations