Generate music
Generate an instrumental music track from a text description. The returned track is approximately 30 seconds long.
Authentication
AuthorizationBearer
API key from [app.videogen.io/developers](https://app.videogen.io/developers). The full key is only shown once when you create it.
Request
This endpoint expects an object.
prompt
A text description of the music to generate. Include genre, mood, instrumentation, and tempo for best results.
durationSeconds
Desired track length in seconds. Currently informational — output tracks are approximately 30 seconds regardless of this value.
numResults
Number of output results to generate. Defaults to 1.
isOutputTemporary
When true, generated files are temporary. Temporary files are guaranteed to be available for 24 hours, after which they may be archived at any time. Temporary files are not analyzed (no description, transcript, or embedding will be generated), so they will not appear in search results. Defaults to false.
Response
Execution accepted; poll until complete.
toolExecutionId
Execution id (e.g. vg_tool_...).