Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
XaiRealtime
Realtime speech-to-speech integration for the xAI Grok Realtime API. Wraps an xAI Grok realtime model so it can be used as a full speech-to-speech provider within the runtime. Configuration is supplied through anXaiRealtimeConfig instance and resolved into a flat
parameter map for the runtime.
Constructor
xAI API key. When omitted, the value of the
XAI_API_KEY environment variable is used.Provider configuration. When omitted, a default
XaiRealtimeConfig is used.aclose
cleanup
aclose.