API reference · Playground
Read a reply aloud
POST/api/chat/speechSigned in session
Up to 4096 characters through /v1/audio/speech' own dispatch, answered as mp3. Billed to the signed in account the way a key is: its free allowance while it never deposited, else a hold and settlement on its balance; the house breaker, the account's monthly cap and an operator freeze apply. Same origin only.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| modelrequired | string | |
| inputrequired | string |
Example
{
"model": "antimatter/auto",
"input": "Say hello in five words."
}Answer 200
The audio, with x-antimatter-cost-micros.
The answer's fields are not named in the document.
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 402OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.