Conversion Endpoints
Sound Generator
Creates an audio file based on a textual prompt. The generation process is asynchronous and returns a task ID for tracking.
POST
/
sound_generator
Copy
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())
Copy
{
"success": true,
"task_id": "soundgen789",
"conversion_id": "conv456",
"eta": -1,
"credit_estimate": 100.1,
"message": "Successfully published to queue"
}
Authorizations
Body
Response
200
application/json
Successfully initiated sound generation
The response is of type object
.
Copy
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())
Copy
{
"success": true,
"task_id": "soundgen789",
"conversion_id": "conv456",
"eta": -1,
"credit_estimate": 100.1,
"message": "Successfully published to queue"
}
Assistant
Responses are generated using AI and may contain mistakes.