Developer Docs/Talking Video API

Talking Video API

Build Talking Video integrations with A2E. Review authentication, request parameters, task creation, status, and result endpoints.

Overview

Re-lip-sync an existing video to a new audio source using AI-driven facial animation and motion warping.

Primary Endpoint

POST/api/v1/talkingVideo/start

Start talking video generation

Request Parameters

NameTypeRequiredDescription
namestringYesName of the talking video task
video_urlstringYesURL of the source video
audio_urlstringNoOptional audio URL
durationintegerNoDuration in seconds
promptstringYesGeneration prompt
negative_promptstringYesNegative prompt to avoid unwanted features
webhook_urlstringNoHTTPS URL to receive task.completed / task.failed notifications. Best-effort delivery, single attempt, no retries; clients should treat the detail API as the source of truth.
webhook_tokenstringNoOptional plaintext token returned in the X-A2e-Webhook-Token header so receivers can verify the request originated from a2e.

Request Example

curl -X POST "https://www.a2e.com.cn/api/v1/talkingVideo/start" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "My Talking Video",
  "video_url": "https://example.com/video.mp4",
  "audio_url": "https://example.com/audio.mp3",
  "duration": 5,
  "prompt": "Make this person smile and speak",
  "negative_prompt": "blurry, distorted",
  "webhook_url": "https://your-server.example.com/a2e/webhook",
  "webhook_token": "a-shared-secret"
}'

Related Endpoints

POST/api/v1/talkingVideo/start

Start talking video generation

GET/api/v1/talkingVideo/allRecords

Get all task records

POST/api/v1/talkingVideo/batchDetail

Batch query task details

GET/api/v1/talkingVideo/{_id}

Get task details

DELETE/api/v1/talkingVideo/{_id}

Delete task

Responses

200

Talking video task started successfully

400

Bad Request - Invalid parameters

401

Unauthorized - Invalid or missing bearer token