Guide
Use Claude with the Anthropic SDK at up to 55% off
If your code already talks to Claude through the Anthropic SDK, switching to FrugalDev is a one-line change: set the base URL and pass your prepaid key. Same models, same API, up to 55% lower per-token cost.
Drop-in with the Anthropic SDK
Point the official Anthropic SDK at the FrugalDev base URL and pass your prepaid key. Change the model string to claude-fable-5 — no other code changes.
import anthropic
client = anthropic.Anthropic(
api_key="YOUR_FRUGALDEV_KEY",
base_url="https://api-direct.apikey.cloud/proxy",
)
message = client.messages.create(
model="claude-fable-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}],
)
print(message.content[0].text)Per-token pricing
USD / 1M tokens| Model | Input | Output | Cache R | Cache W | Official I/O | Save |
|---|---|---|---|---|---|---|
| Claude Fable 5 | $4.53 | $22.63 | $0.46 | $5.67 | $10 / $50 | −55% |
| Claude Opus 4.8 | $2.27 | $11.32 | $0.23 | $2.83 | $5 / $25 | −55% |
| Claude Opus 4.7 | $2.27 | $11.32 | $0.23 | $2.83 | $5 / $25 | −55% |
| Claude Opus 4.6 | $2.27 | $11.32 | $0.23 | $2.83 | $5 / $25 | −55% |
| Claude Sonnet 4.6 | $1.37 | $6.80 | $0.13 | $1.70 | $3 / $15 | −55% |
| Claude Haiku 4.5 | $0.46 | $2.27 | $0.046 | $0.57 | $1 / $5 | −55% |