API reference
List models
Returns the models served by the host you call, with their channels, output formats and realtime support.
Request
GEThttps://aniwaffle.com/v1/models
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer awp_... |
The list depends on the host: call https://jp.aniwaffle.com/v1/models to see what the Japan region serves.
curl https://aniwaffle.com/v1/models \
--header "Authorization: Bearer $ANIWAFFLE_API_KEY"Response
200 OK
{
"models": [
{
"id": "waffle:0.1-1111-beta",
"name": "Waffle Mono 0.1 Beta",
"description": "Waffle voice · emotion, delivery and sound controls",
"channels": 1,
"output_formats": ["pcm_24000", "pcm_44100", "pcm_48000", "aac_44100_128"],
"realtime": false,
"capabilities": ["tts", "voice_tags"]
},
{
"id": "waffle:0.1-stereo-beta",
"name": "Waffle Stereo 0.1 Beta",
"description": "Native stereo · position, emotion, delivery and sound controls",
"channels": 2,
"output_formats": ["pcm_24000", "pcm_44100", "pcm_48000"],
"realtime": false,
"capabilities": ["tts", "stereo", "voice_tags"]
}
]
}| Field | Type | Description |
|---|---|---|
models[].id | string | The model ID. Pass it as model in speech requests. |
models[].name | string | Display name. |
models[].description | string | Short description of the model's controls. |
models[].channels | 1 or 2 | Output channels. Stereo PCM interleaves left and right samples. |
models[].output_formats | string[] | Formats the model can produce. |
models[].realtime | boolean | Whether this host accepts realtime: true with the model. |
models[].capabilities | string[] | Features such as voice_tags and stereo. |
Errors
| Status | Code | Cause |
|---|---|---|
| 401 | unauthorized | Missing, invalid or revoked API key. |
| 403 | capability_disabled | Text to Speech is not enabled for the workspace. |