Grok 4.1 (xAI) Support
Status: experimental (November 21, 2025) Owner: Oracle CLI
- Model key:
grok-4.1(mapped to API idgrok-4-1-fast-reasoning). Alias:grok. - Endpoint: defaults to
https://api.x.ai/v1orXAI_BASE_URL. Uses the OpenAI Responses API surface. - Auth:
XAI_API_KEY. - Background runs: not supported by the Grok API (requests with
background: trueare rejected). Oracle forces foreground streaming even if--backgroundis set. - Search tools: Grok expects
web_search; OpenAI’sweb_search_previewis not accepted. - Pricing (preview): $0.20 / 1M input tokens, $0.50 / 1M output tokens; 2M token context.
Notes:
- If you supply
--base-url, it overrides the default xAI endpoint. - Browser engine is not supported for Grok; Oracle coerces
--engine browsertoapi.