Generate audio using AI
Changed onpost/collection/{collection_id}/generate/audio/
Request
- Base URLhttps://api.videodb.io
- AuthAPI key in header x-access-token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
collection_idstring required
Example:default
Request body
Example request
{
"prompt": "Generate upbeat background music",
"text": "Hello, welcome to VideoDB.",
"audio_type": "voice",
"voice_name": "Default",
"model_name": "k2-fsa/OmniVoice",
"sandbox_id": "bx-123abc",
"voice_clone_id": "vc-123abc",
"callback_url": "https://webhook.example.com/callback"
}Response
Audio generation started
Example response
{
"success": true,
"status": "processing",
"data": {
"id": "job-123",
"output_url": "https://api.videodb.io/async-response/job-123"
}
}Changes
- breaking
removed the enum value
speechof the request property - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became optional - info
added the new
voiceenum value to the request property
- breaking