POST
/
sound_generator
import requests

url = "https://api.example.com/api/public/v1/generate_sound"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}

payload = {
    "prompt": "Generate a soothing ambient soundscape.",
    "webhook_url": "http://your-webhook-url.com/callback"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
{
  "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

Response

200
application/json

Successfully initiated sound generation

The response is of type object.