# OpenRouter APIs — AssemblyAI: TTS 1 (assemblyai/assemblyai-tts-1)

Guide for calling every confirmed OpenRouter API that serves `assemblyai/assemblyai-tts-1`.

Model page: https://openrouter.ai/assemblyai/assemblyai-tts-1
Create an API key: https://openrouter.ai/settings/keys

## Pricing

Standard-variant prices for `assemblyai/assemblyai-tts-1`, per provider, in the unit each provider bills (tokens, images, seconds of video, or characters of audio). Pay-as-you-go with no markup on the provider's price.

- AssemblyAI: $15/M characters

Full price table, including other variants and per-request charges: https://openrouter.ai/assemblyai/assemblyai-tts-1
How OpenRouter prices requests: https://openrouter.ai/pricing

## EU in-region routing

`assemblyai/assemblyai-tts-1` is available through EU in-region routing. Requests sent to eu.openrouter.ai are decrypted in the EU and routed only to shared provider endpoints in Europe (the EU/EEA, the UK, and Switzerland).

- Providers in Europe: AssemblyAI
- Base URL: https://eu.openrouter.ai/api/v1
- Plan: requires Business or Enterprise. Self-serve on Business: no contract, no monthly minimum. https://openrouter.ai/business/eu
- Fails closed: if no shared provider endpoint in Europe is available, the request errors instead of leaving the region. Requests served by your own BYOK key go to your deployment’s region, which you control.

Docs: https://openrouter.ai/docs/guides/features/in-region-routing

## Authentication

Send this header with every request:

- Authorization: Bearer $OPENROUTER_API_KEY

## Text-to-Speech API

Synthesize audio with `assemblyai/assemblyai-tts-1` through OpenRouter's Text-to-Speech API.

Docs: https://openrouter.ai/docs/api/api-reference/tts/create-speech
Voices and parameters: https://openrouter.ai/api/v1/audio/speech/models/assemblyai/assemblyai-tts-1

### Endpoint

POST https://openrouter.ai/api/v1/audio/speech

Headers:
- Content-Type: application/json

### Request fields (assemblyai/assemblyai-tts-1)

- model: string (required) — `"assemblyai/assemblyai-tts-1"`
- input: string (required) — text to synthesize
- voice: string (optional) — provider-specific voice identifier
- response_format: "mp3" | "pcm" | "wav" (optional) — API-wide encoding names, not this model's supported list; defaults to pcm
  Choose a supported format from this model's discovery response at https://openrouter.ai/api/v1/audio/speech/models/assemblyai/assemblyai-tts-1; check each endpoint's choices when providers differ.

### Response

Success returns raw audio bytes, not JSON.

- `Content-Type` identifies the audio encoding, such as `audio/mpeg` or `audio/pcm`.
- `X-Generation-Id` identifies the billed generation.
- Write the response body directly to an audio file; do not call `response.json()`.
- Check the HTTP status before saving: errors return JSON, not audio.

### Examples

#### Natural narration

```bash
curl --fail https://openrouter.ai/api/v1/audio/speech \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  --output output.mp3 \
  -d '{
  "model": "assemblyai/assemblyai-tts-1",
  "input": "The warm light flows across the OpenRouter office as the evening settles in and the routing never stops. One interface, hundreds of models. Ready when you are.",
  "voice": "aai-audrey",
  "response_format": "mp3",
  "speed": 1
}'
```

#### Voice contrast

```bash
curl --fail https://openrouter.ai/api/v1/audio/speech \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  --output output.mp3 \
  -d '{
  "model": "assemblyai/assemblyai-tts-1",
  "input": "Quick update: your request is routed, your keys are safe, and the fastest provider is already answering.",
  "voice": "aai-audrey",
  "response_format": "mp3",
  "speed": 1
}'
```

### Error differences

- 400 — malformed audio input or an audio option the routed provider does not support
- 502 — the upstream audio operation failed

## Errors

Failures return `{"error": {"code": <number>, "message": <string>}}` with the HTTP status:

- 400 — malformed request or an unsupported parameter
- 401 — missing or invalid API key
- 402 — insufficient credits
- 403 — spend limit reached, key disabled, or access blocked
- 404 — unknown model or no provider can serve the request
- 429 — rate limited; retry with backoff
- 502 — the operation failed upstream; failed generations are not billed

---

Canonical version of this document: https://openrouter.ai/assemblyai/assemblyai-tts-1/llms.txt
