Skip to main content

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Use CometAPI audio model docs by choosing whether your app needs speech output, transcription, or translation. Audio endpoints use the same CometAPI API key pattern as other OpenAI-compatible endpoints.

Choose an audio API

GoalStart here
Convert text to speechCreate Speech
Transcribe audio to textCreate Transcription
Translate audio to English textCreate Translation

Create speech

The following example creates speech from text:
curl https://api.cometapi.com/v1/audio/speech \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "input": "Welcome to CometAPI.",
    "voice": "alloy",
    "response_format": "mp3"
  }' \
  --output speech.mp3
The successful response is binary MP3 audio written to disk:
HTTP/1.1 200 OK
Content-Type: audio/mpeg

speech.mp3

List available audio models

The following example fetches the public model catalog before you choose a model ID:
curl https://api.cometapi.com/api/models
The response contains model records that you can compare with the audio docs:
{
  "success": true,
  "page": 0,
  "page_size": 0,
  "total": 301,
  "data": [
    {
      "id": "tts-1",
      "provider": "OpenAI",
      "model_type": "",
      "endpoints": [
        "openai"
      ],
      "pricing": {
        "currency": "USD / M Tokens",
        "input": 12,
        "output": 12,
        "per_request": null,
        "per_second": null
      }
    }
  ]
}

Common errors

ErrorFix
Unsupported audio formatUse the formats documented on the endpoint page.
Large upload rejectedCompress the audio file or split the job into smaller files.
Empty transcriptionConfirm that the file contains speech and that the field name matches the docs.
Wrong base URLUse https://api.cometapi.com/v1.
Last updated: May 27, 2026