# Audio

Speech to text and text to speech.

POST /audio/transcriptions. Speech to text: upload an audio file, get the transcript. Priced per minute of audio.

```bash
curl -X POST https://api.clod.io/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F model="STT_MODEL" \
  -F file=@audio.mp3
```

Text to speech: POST /audio/speech turns text into an audio file. Priced per 1M characters.

```json
{
  "model": "TTS_MODEL",
  "input": "Hello from CLōD.",
  "voice": "alloy"
}
```
