Choose an audio API
Create Speech
Convert text to speech.
Create Transcription
Transcribe audio to text.
Create Translation
Translate audio to English text.
Create speech
Use an audio-capable model ID from the Models page or the model directory. The examples below call the speech endpoint.These examples use the placeholder
your-audio-model-id. Replace it with an available audio model ID from the Models page or model directory before you run the request.Response example
A successful speech response is binary audio. The HTTP response can look like this:Example model records
This example model catalog response shows the
/api/models envelope and one audio model record shape. It is not a complete model list.cURL
Common errors
Unsupported audio format
Unsupported audio format
Use the formats documented on the endpoint page.
Large upload rejected
Large upload rejected
Compress the audio file or split the job into smaller files.
Empty transcription
Empty transcription
Confirm that the file contains speech and that the field name matches the docs.
Wrong base URL
Wrong base URL
Use
https://api.cometapi.com/v1.Error codes and retry strategy
400
400
Do not retry until the text, file, model ID, voice, or format is fixed.
401
401
Do not retry until the API key is present and valid.
404
404
Check the base URL, path, and model ID before retrying.
413
413
Reduce upload size before retrying.
429
429
Retry with exponential backoff and reduce concurrency.
500 or 503
500 or 503
Retry with backoff for transient provider or service errors.
Pricing and model directory
Models page
Read how CometAPI exposes model IDs in the docs.
Model directory
Browse model availability and capabilities.
Pricing
Check pricing before you call a model.