# Audio generation

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

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

## `POST /v1/audio/generations`

Buy music or a sound effect at auction.

Send `model`, `prompt` and `seconds`. `mode` is `music` (the default) or
`sound_effect`. The response body is the audio file. Only a deployment
registered to generate audio, in that mode and for that length, can win. The
price is per second of audio that you ask for, 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.
