$ cheapinference --say-hello
Drop-in compatible with the Anthropic Messages API
(/v1/messages, SSE streaming). Point your existing client at us and
talk to Claude instantly — every token billed 50% below list.
# swap the base URL + key — that's it
$ curl https://api.cheapinference.net/v1/messages \
-H "x-api-key: sk-cfp-YOURKEY" \
-H "content-type: application/json" \
-d '{ "model": "sonnet", "stream": true,
"messages": [{"role":"user","content":"Hello!"}] }'
event: message_start
data: {"type":"message_start","model":"claude-sonnet-5-5"}
event: content_block_delta
data: {"delta":{"type":"text_delta","text":"Hello!"}}
// 01 — why teams switch
Same schema, same SDK, same streaming. Swap the base URL and your key — your code doesn't change.
Every token category billed at exactly 50% of Anthropic's published prices. No tiers, no games.
Top up in Ethereum (ERC20), spend per token. Costs computed from the same usage numbers reported per request.
// 02 — quick start
Onboarded in four steps. Your existing client code keeps working — only the host and key change.
# your existing request — unchanged except host + key $ curl https://api.cheapinference.net/v1/messages \ -H "x-api-key: sk-cfp-YOURKEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "sonnet", "stream": true, "messages": [{"role":"user","content":"Hello!"}] }' event: message_start # ← real Claude, 50% cheaper event: content_block_delta event: message_stop
from anthropic import Anthropic client = Anthropic( base_url="https://api.cheapinference.net", # ← the only edit api_key="sk-cfp-YOURKEY", ) stream = client.messages.create( model="sonnet", stream=True, messages=[{"role": "user", "content": "Hello!"}], ) for event in stream: if event.type == "content_block_delta": print(event.delta.text, end="")
const res = await fetch("https://api.cheapinference.net/v1/messages", { method: "POST", headers: { "x-api-key": "sk-cfp-YOURKEY", "content-type": "application/json", }, body: JSON.stringify({ model: "sonnet", stream: true, messages: [{ role: "user", content: "Hello!" }], }), }); // consume the SSE stream exactly like you already do for await (const chunk of res.body) process.stdout.write(chunk);
// 03 — metering
sonnet, opus, fable, or full names. Prices apply uniformly.// 04 — rate cards
Struck-through = Anthropic's official list price. Bold = what we charge. Prompt-cache
writes bill at their official rates minus the same 50% (5-min 1.25× input,
1-hour 2× input). Prices are re-verified automatically at every service boot —
advertised ≡ billed, always. See live pricing →
// 05 — do the math
Drag to your current Anthropic spend. Same models, same tokens — a flat 50% stays with you.
// 06 — scaling honestly
CheapInference is live. For higher-volume usage, tell us your expected spend and concurrency. We review requests in submission order as capacity becomes available.
// 07 — straight answers
No. Prepaid credit sits on your key until you spend it — nothing burns down while you're not building. One running request may overshoot a near-zero balance by at most its own final cost.
Top-ups are prepaid credits paid in USDT. Every invoice carries its own
exact amount (e.g. $19.9973) — that precise number identifies your payment
on-chain among all others. Pay it exactly, paste the transaction ID on the invoice page, and
confirmation is automatic.
Pick freely per request — sonnet, opus, fable, or full
names like claude-sonnet-5-5. Prices apply uniformly across every category:
input, output, cached reads, and cache writes. OpenAI's gpt-6.2-astra and
Google's gemini-4-carbon are on the way — same −50% rule when they land.
Costs are computed from the same usage numbers reported back per request — cache reads and cache writes priced by kind, never rounded in our favor. Prices shown are rendered from the same shared rate cards the gateway bills with, re-verified automatically at every service boot.
Create an account, confirm your email, add credit — your API key activates instantly after your first top-up.
Create an account