Connect CheapLLM to Anthropic SDK
Anthropic's official Python SDK. Step-by-step CheapLLM API setup for Anthropic SDK to run Claude, GPT-6, Gemini, and DeepSeek up to 70% cheaper.
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 (Anthropic Messages API)
https://api.cheapllm.app2. Install anthropic
Terminal
pip install anthropic3. Point at our Anthropic endpoint
Pass the gateway root URL without /v1 — the SDK appends /v1/messages:
claude.py
import anthropic
client = anthropic.Anthropic(
base_url="https://api.cheapllm.app",
api_key="sk-clm-YOUR_API_KEY",
)
msg = client.messages.create(
model="claude-fable-5-2",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello Claude!"}],
)Top models to run in Anthropic SDK
All 49+ models →| Model | Official (in / out) | CheapLLM (in / out) | Savings |
|---|---|---|---|
| Claude Opus 5.5 | $2.80 / $14.00 | −30% | |
| GPT-6.1 Sol | $1.40 / $7.00 | −30% | |
| Gemini 4 Argon | $1.40 / $7.00 | −30% | |
| DeepSeek V4 Pro 0813 | $0.078 / $3.11 | −30% |