Developer Docs/Video to Audio API

Video to Audio API

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

Overview

Generate semantically-aware ambient sound effects and background audio that match the visual content of a video clip.

Primary Endpoint

POST/api/v1/thinkSound/start

Start ThinkSound generation

Request Parameters

NameTypeRequiredDescription
namestringNoName of the ThinkSound task
video_urlstringYesURL of the source video (must be .mp4, .avi, .mov, or .mkv)
captionstringNoCaption for the generation
cot_descriptionstringNoChain of thought description
seednumberNoRandom seed for reproducible results
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/thinkSound/start" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "My Audio-Visual Generation",
  "video_url": "https://example.com/video.mp4",
  "caption": "Generate audio for this silent video",
  "cot_description": "Detailed description of the audio generation process",
  "seed": 12345,
  "webhook_url": "https://your-server.example.com/a2e/webhook",
  "webhook_token": "a-shared-secret"
}'

Related Endpoints

POST/api/v1/thinkSound/start

Start ThinkSound generation

DELETE/api/v1/thinkSound/{_id}

Delete ThinkSound task

GET/api/v1/thinkSound/{_id}

Get ThinkSound task details

GET/api/v1/thinkSound/allRecords

Get all ThinkSound records

POST/api/v1/thinkSound/batchDetail

Batch query task details

Responses

200

ThinkSound generation started successfully

400

Bad Request - Invalid parameters or video format

401

Unauthorized - Invalid or missing bearer token