Replace your base URL
Keep your existing OpenAI SDK and request format.
A Keak company
const client = new OpenAI({
apiKey: "ci_your_key",
baseURL: "https://api.cheaperinference.com/v1"
});
await client.chat.completions.create({
model: "gpt-5.4",
messages: [{ role: "user", content: "Hello!" }]
});
Keep your existing OpenAI SDK and chat completion calls.
Use OpenAI, Anthropic, and Google models through a drop-in OpenAI-compatible API. No contract, no migration required.
Change your endpoint. Keep your existing request format.
How it works
Keep your existing integration, route through one endpoint, and monitor usage from your wallet dashboard.
Keep your existing OpenAI SDK and request format.
Route requests to OpenAI, Anthropic, and Google models from one API.
Usage is deducted from your wallet at the discounted token rate.
Catalog
Access
Create an account, fund your wallet, and issue your first API key.
Account
Docs
Everything you need to create an account, choose a model, send requests, and understand billing.
baseURL to the endpoint below.model field.https://api.cheaperinference.com/v1
Authorization: Bearer ir_live_YOUR_API_KEY
curl https://api.cheaperinference.com/v1/chat/completions \
-H "Authorization: Bearer ir_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4.6",
"messages": [{"role": "user", "content": "Hello!"}]
}'
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "ir_live_YOUR_API_KEY",
baseURL: "https://api.cheaperinference.com/v1"
});
const response = await client.chat.completions.create({
model: "gpt-5.4",
messages: [{ role: "user", content: "Hello! Who are you?" }]
});
from openai import OpenAI
client = OpenAI(
api_key="ir_live_YOUR_API_KEY",
base_url="https://api.cheaperinference.com/v1",
)
response = client.chat.completions.create(
model="claude-opus-4.6",
messages=[{"role": "user", "content": "Hello! Who are you?"}],
)
curl https://api.cheaperinference.com/v1/models \ -H "Authorization: Bearer ir_live_YOUR_API_KEY"
Streaming responses are not supported yet. Do not send
"stream": true; leave it out or set "stream": false.
Requests that ask for streaming return a clear 400 error.
Copy an exact model id into the model field. Prices are per 1M tokens.
401 Invalid or missing API key.402 Insufficient wallet balance.400 Unsupported model or invalid request body.502 Provider request failed; retry or contact support if it continues.{
"output": [{
"role": "assistant",
"content": [{"type": "output_text", "text": "Hello!"}]
}],
"usage": {
"input_tokens": 12,
"output_tokens": 3,
"total_tokens": 15
}
}
Use the Contact tab for billing, API, or account questions. We typically answer in under 12h. For platform availability, check the Status link in the footer.