POST
/
sound_generator
Generate Sound Based on Given Prompt
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"
}

Authorizations

Authorization
string
header
required

Body

application/x-www-form-urlencoded

Response

200
application/json

Successfully initiated sound generation

The response is of type object.