cURL
curl --request POST \ --url https://api.musicgpt.com/api/public/v1/sound_generator \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'prompt=Generate a soothing ambient soundscape.' \ --data webhook_url=http://your-webhook-url.com/callback \ --data audio_length=30
{ "success": true, "task_id": "soundgen789", "conversion_id": "conv456", "eta": -1, "credit_estimate": 100.1, "message": "Successfully published to queue" }
Creates an audio file based on a textual prompt. The generation process is asynchronous and returns a task ID for tracking.
Successfully initiated sound generation
The response is of type object.
object