VideoDB icon

VideoDB

Interact with the VideoDB API

Generate Music

AI-generated

Summary

Generates music from a text prompt within a specified collection

Inputs

  • collection_id (required) — Choose from the list, or specify an ID using an expression
  • prompt (required) — Prompt for the music generation
  • duration — Duration of the generated music in seconds
  • callback_url — Callback URL for job completion

Output shape

HTTP JSON response from the VideoDB API containing the generated audio asset or job identifier

No query parameters are sent; the POST request body includes prompt, duration, a hardcoded audio_type of 'music', and optional callback_url.

Discussion