# Speech

The OpenAPI 3.1 document is the full description, including schemas:

https://router.inference.ai.exchange/v1/openapi.json

## `POST /v1/audio/speech`

Buy spoken audio at auction, in the OpenAI speech format.

Send `model` and `input`. `voice` is optional when the offers have a default. `instructions` sets a style line, and `input` can be an array of turns for more than one speaker. The response body is the audio file. Only
a deployment registered to produce speech can win. The price is per
character of `input`, so the cap is exactly the charge.

The body carries audio, so the `exchange` block is in the
`x-liquid-exchange` header, as JSON. The cap and the job id are in
`x-liquid-cap-usd` and `x-liquid-job-id`.

There is no streaming form.
