# Speech to speech

## POST /v1/speech-to-speech

Translates text between spoken languages. **Price:** Speech→Speech rate (currently
$0.33 per minute of spoken length; minimum $0.01). Idempotent with `Idempotency-Key`.

| Field | Type | Required | Notes |
|---|---|---|---|
| `text` | string | yes | ≤ 5,000 characters. |
| `toLang` | string | yes | ISO 639-1 target, e.g. `es`. |
| `fromLang` | string | no | ISO 639-1 source; auto-detected when omitted. |
| `model` | string | no | `google-translate` (default). |
| `durationSeconds` | number | no | Spoken length hint (max 3600); billed on the larger of this and the estimate. |

Response `data`: `translatedText`, `fromLang` (string | null), `toLang`.
Errors: `400` (missing `text`/`toLang`, unknown model), `402`, `409 idempotency_in_progress`,
`413`, `422 idempotency_key_reused`, `429`, `503`. Test mode: sample translation.
