Generate Sound Based on Given Prompt
Creates an audio file based on a textual prompt. The generation process is asynchronous and returns a task ID for tracking.
post/v1/sound_generator
Request
- Base URLhttps://api.musicgpt.com/api/public
- AuthAPI key in header Authorization
Request body application/x-www-form-urlencoded
Example request
{
"prompt": "Generate a soothing ambient soundscape.",
"webhook_url": "http://your-webhook-url.com/callback",
"audio_length": 30
}Response
Successfully initiated sound generation
Example response
{
"success": true,
"task_id": "soundgen789",
"conversion_id": "conv456",
"eta": -1,
"credit_estimate": 100.1,
"message": "Successfully published to queue"
}Changes
No recorded changes to this operation across all 1 revision of this API.