Audio
OpenAI-compatible audio speech (TTS) endpoint.
Billed on the characters of input at a rate priced per character, or one request at a rate priced per request. A model with no rate is refused under require_pricing. The body is audio, so the settled cost rides the response headers: Otari-Cost-USD and Otari-Pricing-Source, the cost_usd and pricing_source other responses carry on usage, and Otari-Usage-Unit and Otari-Usage-Units for the meter billed and its count.
Authentication modes:
Master key + user field: Use specified user (must exist)
API key + user field: Use specified user (must exist)
API key without user field: Use the shared "default" user
Enter your API key here (sent as Otari-Key header).
OpenAI-compatible audio speech (TTS) request.
The speech fields are derived from any-llm's AudioSpeechParams (see
_schema_derive) so the schema cannot silently drop a param any-llm
forwards. user is gateway-only (billing / auth scoping); it is not an
any-llm param and is stripped before the request is forwarded.
Audio bytes in the requested format
Validation Error
POST /api/v1/audio/speech HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"input": "text",
"instructions": "text",
"model": "text",
"response_format": "text",
"speed": 1,
"user": "text",
"voice": "text"
}No content
OpenAI-compatible audio transcription endpoint.
Authentication modes:
Master key + user field: Use specified user (must exist)
API key + user field: Use specified user (must exist)
API key without user field: Use the shared "default" user
Enter your API key here (sent as Otari-Key header).
Successful Response
The audio upload exceeds the maximum request size.
Validation Error
POST /api/v1/audio/transcriptions HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 119
{
"file": "text",
"language": "text",
"model": "text",
"prompt": "text",
"response_format": "text",
"temperature": 1,
"user": "text"
}No content
Last updated
Was this helpful?
