SPB Git

Repository Public

speech-to-speech.md 1.9 KB 61 lines markdown

1<!-- source: https://docs.x.ai/developers/models/speech-to-speech (from https://docs.x.ai/llms-full.txt, retrieved 2026-09-19T05:28:55Z) -->2#### Models34# Speech to Speech56The Speech to Speech API enables real-time voice conversations over WebSocket, billed by minute of audio plus a flat fee per text input message. Supports function calling with web search, X search, collections, MCP, and custom functions.78## At a glance910| | Details |11|---|---|12| **Modalities** | Text, Audio → Text, Audio |13| **Audio pricing** |  / minute or  / hour |14| **Text Input pricing** |  / message |15| **Region** | us-east-1 |1617## Pricing1819The Speech to Speech API charges based on audio duration and text events sent without audio.2021| | Details |22|---|---|23| **Audio** |  / minute or  / hour of audio sent or received |24| **Text Input** |  per `conversation.item.create` event |2526### What counts as a text input message2728Every `conversation.item.create` event you send from the client is billed at , with two exceptions:2930* `function_call_output` items (server-requested tool results) are not billed.31* Items whose content is `input_audio` or `audio` are billed by the audio meter instead.3233`response.create` is not a billable event. It only asks the model to produce the next turn; any audio the model generates in that turn is billed under the audio meter above.3435## Rate Limits3637| | Details |38|---|---:|39| **Concurrent sessions** |  per team |40| **Max session duration** | 120 minutes |4142## Capabilities4344* Function calling45* Web search46* X search47* Collections search48* Remote MCP tools4950## Availability5152| | Details |53|---|---|54| **Cluster** | us-east-1 |5556## Documentation5758* [Speech to Speech Guide](/developers/model-capabilities/audio/speech-to-speech) — Getting started with real-time voice conversations59* [API Reference](/developers/rest-api-reference/inference/voice) — WebSocket endpoint reference60* [Pricing](/developers/pricing#voice-api-pricing) — Full pricing overview61
Files main
Menu

Theme