$ 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) or card, 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);
Bigger volume ahead? Tell us what you need → request access — we review higher-volume requirements as capacity becomes available.
// 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 own 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.
Available payment methods are shown at checkout (Ethereum (ERC20) or card). For USDT invoices, each invoice carries its own exact amount (e.g. $19.9973) to identify your transfer on-chain; pay that amount exactly and paste the transaction ID for automatic confirmation. Card payments are confirmed through the hosted card checkout instead.
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.
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.
// 08 — the api contract
We speak the official Messages API request-for-request — no server-side session state is ever required, and we store none of your transcripts.
Everything a standard Anthropic SDK sends for chat: model (family aliases like sonnet or full names), stream (SSE), max_tokens, and your messages. Plus: top-level system — a string or an array of text parts, honored verbatim as your request's system instructions; tools + tool_choice — definitions ride every request and tool calls stream back to you as ordinary content blocks; and image content blocks inside messages (image/png, image/jpeg, image/webp, image/gif).
It is advisory-at-best. If you set it, we send only your latest user message — banking on server-side thread continuity that usually holds but is never guaranteed: after routine maintenance or capacity changes your next turn may be answered from that message alone. If you want guaranteed correctness, omit it and always send your full message history.
No. We keep zero transcripts server-side — only per-request usage records for billing (token counts and costs, no prompt or response bodies). Your context lives in your client, exactly like the official Claude API contract intends.
Create an account, confirm your email, add credit — your API key activates instantly after your first top-up.
Create an account