Animate a character image with the performance from a driving video.
Authenticate with the X-API-Key request header.
List price. Volume / bulk customers get a discounted rate — contact us for account pricing.
| Name | Type | Required | Description | Default / options |
|---|---|---|---|---|
| image_url | string | required | Character image to animate. | — |
| video_url | string | required | Driving video supplying the performance. | — |
| prompt | string | optional | Optional guiding prompt. | — |
| duration | number | optional | Clip length in seconds (1-30). | default: 5 |
| aspect_ratio | string | optional | Output aspect ratio. | default: 16:9 |
curl -X POST https://brahmand-api.bulletshorts.co/v1/video/dreamactor-m2 \
-H "X-API-Key: $TRINETRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"image_url":"https://example.com/avatar.jpg","video_url":"https://example.com/perf.mp4","duration":5}'{
"image_url": "https://example.com/avatar.jpg",
"video_url": "https://example.com/perf.mp4",
"duration": 5
}Submitting a job returns 202 Accepted with a job id. Poll GET /v1/jobs/{id} until the job reaches a terminal state, or register a webhook to be notified.
{
"job_id": "job_dreamactorm2_a1b2c3",
"status": "queued"
}{
"id": "job_dreamactorm2_a1b2c3",
"model": "dreamactor-m2",
"status": "succeeded",
"output": {
"outputs": [
{
"url": "https://cdn.trinetra.ai/out/dreamactor-m2/a1b2c3.mp4",
"type": "video"
}
]
},
"credits_charged": 10
}Webhook: set a webhook_url on your API key to receive a POST with the terminal job document instead of polling.