xAI (Grok)
xAI (Grok)
Configure jambonz to use xAI’s Grok models — reasoning + vision over an OpenAI-compatible API.
xAI’s Grok family is available to the agent verb over an OpenAI-compatible Chat Completions API — streaming, tool calls, and vision are all supported. This is a good fit for voice agents that need strong reasoning and the option to reason over images.
This page covers the agent verb’s llm block (cascaded STT → LLM → TTS). For xAI’s realtime speech-to-speech offering, see xAI Voice Agent on the llm verb page.
Get credentials
- Sign in at https://console.x.ai.
- Open API Keys (direct link: https://console.x.ai/team/default/api-keys).
- Click Create API Key, copy the
xai-...string.
Configure in jambonz
In the portal: Account → LLM Services → + Add LLM Service → xAI (Grok).
The xai-... key from xAI’s console.
Defaults to https://api.x.ai/v1. Override only for proxies — xAI’s production endpoint is the default.
Click Test to verify.
Use in an agent verb
Available Models
Model slugs move quickly — see xAI’s docs for the live catalog. The jambonz manifest ships these; you can also call listAvailableModels() or query xAI’s /v1/models endpoint directly.
Quirks & errors
Chat Completions is “legacy” but fully functional. xAI has marked the Chat Completions endpoint legacy in favor of its Responses API, but it continues to support streaming and tool calls in full — which is what jambonz relies on. No action needed.
Retired model slugs silently redirect. grok-4, grok-3, grok-3-mini, and grok-4-fast still resolve, but xAI redirects them to grok-4.3 and bills at flagship rates. Use the current ids listed above to avoid surprise cost.
401 — bad or revoked key. Regenerate at console.x.ai/team/default/api-keys.