Media API
POST
/omni/media/v1/audio/generationsSpeech generation (TTS)
| Field | Type | Description |
|---|---|---|
| model | string · Req | unified audio model (`audio` pool) |
| text | string · Req | text to speak |
| reference_id | string | voice id (string, or array for multi-speaker) |
| format | string | `mp3` (default) / `wav` / `pcm` / `opus` |
| sample_rate | integer | Hz (format default) |
| prosody | object | `{ "speed": 1, "volume": 0, "normalize_loudness": true }` |
| temperature | number | expressiveness 0–1 (default `0.7`) |
400
missing `model` / `text`, or an invalid `format`.
422
the model has no audio provider.