Skip to content
4 Flagship Model Handbooks
xAI Grok Ecosystem GuidexAI Status Page ↗

xAI Grok Developer & Resource Hub

Grok Web, xAI API console, OpenAI-compatible SDK setup, and 403/429 troubleshooting—connected to AOB IP diagnostics, Grok Reset Radar, and API pricing.

Official Links

Verified xAI / Grok domains only to keep accounts and API keys safe

Developer Tools & SDK Quickstart

Official xAI Python SDK & OpenAI Compatibility

Use the official `xai-sdk` or drop-in OpenAI SDK compatibility at `https://api.x.ai/v1` with a single `base_url` change.

pip install -U xai-sdk openai

CLI & Agent Environment Config

Configure `base_url=https://api.x.ai/v1` and your `XAI_API_KEY` in any IDE, CLI, or agent supporting custom OpenAI endpoints.

export OPENAI_BASE_URL="https://api.x.ai/v1" && export OPENAI_API_KEY="xai-..."

Grok Model Selection Guide

View xAI ECI Benchmarks & Analysis →
Reasoning & Coding

Grok Flagship Reasoning Series

Advanced math and logic, long-document analysis, tough debugging, and DeepSearch real-time research

Built-in live X search makes it ideal for breaking tech news and multi-source verification.

High-Value Daily Driver

Grok Mini / Fast Series

High-frequency automation scripts, agent subtasks, rapid Q&A, and live summarization

Low latency and competitive pricing—well suited for multi-turn tool-calling pipelines.

Vision & Diagrams

Grok Vision / Multimodal Series

Screenshot debugging, UI inspection, architecture/chart interpretation, and document OCR

Combine with structured JSON output for frontend QA checks and visual ops-alert triage.

Playbooks & Troubleshooting

Regional access, TUN routing, 403/429 fixes, and API migration
Region & Risk

Grok / xAI Regional Access, Risk Checks & Exit Stability

xAI actively filters high-abuse datacenter IPs and irregular billing—keep your exit clean and consistent.

▾
  • 1. Pick a clean supported exit: Prefer residential (ISP) or low-sharing IPs in US, Japan, or Singapore to minimize Cloudflare challenges and 403s.
  • 2. Check DNS & WebRTC leaks: Run AOB IP Diagnostics to ensure no local DNS bleed or public UDP exposure.
  • 3. Keep device & egress steady: Avoid hopping across multiple countries on the same X / Grok account within short windows.
  • 4. Use official billing channels: Subscribe to SuperGrok / X Premium+ via App Store, Google Play, or personal cards.
  • 5. Route automation through console.x.ai: Never scrape grok.com with scripts to protect your main account from enforcement.
Network Fix

Fixing Grok Blank Screens, 403 Challenges & 429 Quota Limits

Diagnose Cloudflare blocks, missing terminal routing rules, and SuperGrok rolling window limits.

▾
  • 1. Check status & reset radar first: Review AOB Reset Radar for Grok reset forecasts and open status.x.ai to rule out outages.
  • 2. Route all xAI domains together: Ensure grok.com, x.ai, api.x.ai, console.x.ai, accounts.x.ai, and x.com share the same supported exit.
  • 3. Enable TUN mode for SDK/CLI: Browser proxy extensions do not cover Python SDKs or terminal agents—enable TUN mode or export HTTPS_PROXY.
  • 4. Distinguish web vs. API 429s: SuperGrok / X Premium+ uses rolling web windows, while API RPM/TPM scales with your console billing tier.
API Integration

Connect xAI Grok API via OpenAI-Compatible SDK in 1 Minute

Plug Grok reasoning and real-time search into existing OpenAI clients with near-zero code changes.

▾
  • 1. Create an API key at console.x.ai and configure a hard monthly spend cap before deploying scripts.
  • 2. Reuse the standard openai SDK by pointing base_url to https://api.x.ai/v1 and passing XAI_API_KEY.
  • 3. Use multi-model routing in production: Send real-time web/X intelligence tasks to Grok and heavy refactors to your primary coding model.
  • 4. Check AOB AI Pricing to compare SuperGrok regional pricing against official xAI API token rates.

AOB Companion Tools