> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inquantum.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Audio

> Use OpenAI-compatible audio routes through the Planck AI Gateway.

Planck exposes explicit OpenAI-compatible audio routes.

| Capability     | Route                           |
| -------------- | ------------------------------- |
| Transcription  | `POST /v1/audio/transcriptions` |
| Translation    | `POST /v1/audio/translations`   |
| Text to speech | `POST /v1/audio/speech`         |

## Transcription

```bash theme={null}
curl https://api.inquantum.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer $PLANCK_API_KEY" \
  -F model="gpt-4o-transcribe" \
  -F file="@meeting.mp3"
```

## Translation

```bash theme={null}
curl https://api.inquantum.ai/v1/audio/translations \
  -H "Authorization: Bearer $PLANCK_API_KEY" \
  -F model="whisper-1" \
  -F file="@spanish-audio.mp3"
```

## Speech

```bash theme={null}
curl https://api.inquantum.ai/v1/audio/speech \
  -H "Authorization: Bearer $PLANCK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini-tts",
    "voice": "alloy",
    "input": "Hello from Planck."
  }'
```

## BYOK

Audio follows the same BYOK/PTB selection as chat: stored BYOK is used by default when available, otherwise PTB is used when available. Send `Planck-Billing-Mode: ptb` or `Planck-Billing-Mode: byok` to force a mode for a specific request.

`X-Provider-Key` and `Planck-Provider-Key` are still supported as explicit per-request BYOK overrides.

Audio requests are usage-bearing and should flow through gateway cost extraction, billing, and logging when the provider returns enough usage information.
