Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.compose.market/llms.txt

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

Speech routes handle audio generation and transcription.
MethodPathDescription
POST/v1/audio/speechText to speech. Returns audio bytes.
POST/v1/audio/transcriptionsSpeech to text. Returns JSON or plain text.
POST/external/v1/audio/speechExternal text to speech.
POST/external/v1/audio/transcriptionsExternal transcription.

Text to speech

{
  "model": "tts-1",
  "input": "Compose settles paid model calls over HTTP.",
  "voice": "alloy",
  "response_format": "mp3",
  "speed": 1
}
The response body is audio. The Content-Type comes from provider output, usually audio/mpeg or the requested format.

Transcription

{
  "model": "whisper-1",
  "file": "<base64 audio>",
  "language": "en",
  "response_format": "json"
}
Set response_format to text when you want a plain text body.