# Hear audio in another language

> What does this recording say, in my language, and can I hear it read aloud?

Each call is paid per use in USDC over x402. No API key and no account: call it, get a 402 with the challenge in the `PAYMENT-REQUIRED` header, pay it and repeat the call.

**Every answer in this chain carries a `next` array with the following calls already built** — route, method, the parameters filled in from what was just found, the price and a full url you can fetch as it is. You do not have to work out the next step; follow `next`.

## The calls, starting at `GET /v1/ai/transcribe`

The numbering is the usual path, not a fixed order: what you actually get offered depends on what each answer finds. A call is only suggested when the data to make it is there, so a suggestion never sends you into a dead end.

1. **`GET /v1/ai/transcribe`** — $0.02 per call. Whisper large v3 turbo turns the audio into text, with the detected language, its probability and timed segments.
2. **`GET /v1/ai/translate`** — $0.005 per call. M2M100 translates the transcript into any of ~100 languages, piece by piece so long texts keep their order and line breaks.
3. **`GET /v1/ai/speech`** — $0.01 per call. Reads the translation aloud: a hosted MP3 (Deepgram Aura-2 for English and Spanish) or WAV (Gemini TTS for French, Chinese, Japanese, Korean).

## Worked example

```
GET https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/transcribe?url=https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-voz.wav
```

The answer ends with something like:

```json
{
  "next": [
    {
      "rel": "translate",
      "why": "...",
      "method": "GET",
      "route": "/v1/ai/translate",
      "tool": "ai_translate",
      "params": {
        "text": "Hello from the Flat Rate Gateway, this is a short test.",
        "to": "es"
      },
      "url": "https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/translate?text=Hello+from+the+Flat+Rate+Gateway%2C+this+is+a+short+test.&to=es",
      "price": "$0.005"
    }
  ]
}
```

Fetch that `url`, pay its 402, and the answer will carry its own `next`. Follow it until `next` comes back empty.

## Where this chain leads out

- /v1/ai/transcribe again — the audio link that speech returns can be transcribed to check what was said.

## The same thing over MCP

Every route here is also an MCP tool at `POST https://flat-rate-llm.kikoribera03.workers.dev/mcp` — the `tool` field of each `next` entry is its name, and `params` goes straight into `arguments`. `tools/list` and the `catalog` tool are free.
