🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
Retrieve the generated audio file for a completed Sound and Music task.
curl --request GET \
--url https://client.camb.ai/apis/text-to-sound-result/{run_id} \
--header 'x-api-key: <api-key>'"<string>"This endpoint retrieves the audio output generated from a previously completed Sound and Music task. It provides access to the audio content that was created based on the text prompt and configuration specified in your original request based on returnedDocumentation Index
Fetch the complete documentation index at: https://docs.camb.ai/llms.txt
Use this file to discover all available pages before exploring further.
run_id.
The endpoint supports two different response formats based on your needs:
{
"file_url": "https://storage.example.com/text-to-sound/your-generated-file.wav"
}
curl -X GET "https://client.camb.ai.com/text-to-sound-result/run_abc123" \
-H "x-api-key: YOUR_API_KEY" \
--output my_sound_effect.wav
curl -X GET "https://client.camb.ai.com/text-to-sound-result/run_abc123" \
-H "x-api-key: YOUR_API_KEY"
{
"file_url": "https://storage.example.com/sounds/abc123.wav"
}
run_id doesn’t exist or hasn’t completed processing, you’ll receive an appropriate error response.The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
The unique identifier for the run, which was generated during the text to an audio effect creation process and returned upon task completion. The unique identifier for the run, which was generated during the creation process and returned upon task completion.
Successful Response
The generated audio file bytes in WAV format, representing the audio effect created from the provided text prompt.
curl --request GET \
--url https://client.camb.ai/apis/text-to-sound-result/{run_id} \
--header 'x-api-key: <api-key>'"<string>"