Skip to content
CheapLLM

Connect CheapLLM to Grok Build

xAI's agent in the terminal. Step-by-step CheapLLM API setup for Grok Build to run Claude, GPT-6, Gemini, and DeepSeek up to 70% cheaper.

5 min readUpdated Nov 2026

1. Create a CheapLLM API key

Create a CheapLLM account and generate an API key (sk-clm-YOUR_API_KEY). One key unlocks all 49+ OpenAI, Anthropic, Google, and DeepSeek models at up to 70% off official API rates.

Base URL (OpenAI-compatible)
https://api.cheapllm.app/v1

2. Install the CLI

Install Grok Build CLI globally.

Terminal
npm install -g @xai/grok-build

3. Point it at CheapLLM

Point the xAI endpoint to CheapLLM:

Environment / config
export XAI_BASE_URL="https://api.cheapllm.app/v1"
export XAI_API_KEY="sk-clm-YOUR_API_KEY"
export GROK_MODEL="grok-4.7"

4. Run it

Start Grok Build in any repository.

Start session
grok

Top models to run in Grok Build

All 49+ models →
ModelOfficial (in / out)CheapLLM (in / out)Savings
Claude Opus 5.5$4.00 / $20.00$2.80 / $14.00−30%
GPT-6.1 Sol$2.00 / $10.00$1.40 / $7.00−30%
Gemini 4 Argon$2.00 / $10.00$1.40 / $7.00−30%
DeepSeek V4 Pro 0813$0.11 / $4.44$0.078 / $3.11−30%
← All 55 setup guides