duration is used as the billing fallback.prompt is optional and must be at most 3000 characters.lip_ref_url, when provided, must be a public HTTPS image URL. Use a clear, front-facing close-up face reference for best lip-sync results.srt_url, when provided, must point to an .srt subtitle file.duration is only a billing fallback when BeatAPI cannot detect the audio length; it must be 10-180 seconds and cannot override a detected audio duration./v1/files are also checked for type and size before they can be used.quality=high is not supported with resolution=540p.lip_sync=true is not supported with resolution=540p.curl --location 'https://api.beatapi.io/v1/music-video/tasks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"images": [
"https://media.beatapi.io/samples/neon-singer.png"
],
"audio_url": "https://media.beatapi.io/samples/neon-singer-preview.mp3",
"prompt": "Neon rooftop performance with metro cutaways and cinematic light trails.",
"language": "en",
"quality": "standard",
"resolution": "720p",
"compose_mode": "auto"
}'{
"data": {
"id": "task_8K2qA",
"object": "task",
"workflow": "music-video",
"status": "queued",
"stage": "queued",
"storyboard": {
"shots": []
},
"created_at": 1782210000,
"updated_at": 1782210000,
"completed_at": null,
"output": null,
"usage": {
"credits_reserved": 75,
"credits_charged": 75,
"billable_duration_seconds": 15,
"credits_settled": 0,
"credits_refunded": 0
},
"request_id": "req_abc123",
"error_code": null,
"error_message": null
}
}