Faithful
Route the model specified in each request as-is, with no silent downgrades or substitutions.
FOR I, FOR ME
Made for you — the AI gateway built for developers
One domain, one key — access an expanding set of AI capabilities
Multiple models, one endpoint at 4ICODE
Official token pricing · FX advantage · transparent tier multiplier
Continuously expanding access · see the console for the live availability list
Manifesto
Tokens uncut. Invoices unpadded.
The easiest thing for a reseller to do is quietly tweak things: truncate context, swap in a smaller model, hide something in the bill. You can't see it, but your usage remembers. We've closed that path — requests forward as-is, usage returns as-is, and the final amount is itemized as official token price × real FX discount × tier multiplier. This isn't a discount — it's a public formula.
prompt 1,842 / completion 906
Passed through as-is
input $1.25 / output $10.00 (per 1M)
Aligned
Official × FX discount × tier multiplier
Transparent & auditable
Every request log can be verified line-by-line by request_id in the console. No guessing, no asking support why it's cheaper than official — the formula is right here.
Proof
Quick Start
base_url —Fully compatible with OpenAI / Anthropic official protocols. Your SDKs, your frameworks, your agents — all work as before.
# Only change this line
export OPENAI_BASE_URL="https://api.4i.codes/v1"
export OPENAI_API_KEY="sk-4i-xxxxxxxx"
curl $OPENAI_BASE_URL/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"MODEL_ID_FROM_CONSOLE","messages":[{"role":"user","content":"hi"}]}'
curl https://api.4i.codes/v1/messages \
-H "x-api-key: sk-4i-xxxxxxxx" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"MODEL_ID_FROM_CONSOLE","max_tokens":1024,
"messages":[{"role":"user","content":"hi"}]}'
No architecture changes, no card required. From creating a key to your first response — at most three steps.
Create an API key in the console, grouped by project with per-key limits and instant revocation.
Point base_url to api.4i.codes/v1. Everything else stays the same.
Every call appears in live logs instantly — latency, usage and cost, line by line.
Route the model specified in each request as-is, with no silent downgrades or substitutions.
Context forwards as-is — no truncation, no compression, no hidden prompt injection.
Every request can be verified by request_id for usage and cost, with CSV export.
Multi-node redundancy with auto-failover — requests reroute automatically when a node trips.
No monthly fee, no forced plans, no expiry wipe. Your balance is yours — keep it as long as you like.
We don't store request or response content — only billing-required metadata.
Use cases
One endpoint, from a single chat message to a production workflow.
Add streaming chat, multi-turn context and function calling — call 4i like you would the official API.
Copy, summaries, translation, structured extraction — one call, many output formats.
Long context + tool calls + multi-step reasoning — orchestrate models into automated pipelines.
Run the same prompt across models, benchmark on one interface, compare at a glance.
Observability
Latency, token usage, upstream status, per-call cost — all live in the console. Billing is no longer a puzzle revealed at month's end.
Launch consoleInfrastructure
Requests auto-select the optimal path; when upstream jitters or throttles, the gateway reroutes to backup nodes in milliseconds instead of throwing errors at your users.
Transparent Billing
We thrive on scale and engineering efficiency, not on multipliers you can't understand.
Markup · never hidden in model prices
Commissions · no monthly fee, balance never expires
Auditable · verify line-by-line by request_id
Input, output, cache reads and cache writes are all priced at upstream official rates — no markup on model prices.
Better exchange rates convert USD pricing to CNY spend, instead of billing at the official site's rate.
Each tier sets a published multiplier (usually 0.x). Formula: final cost = official price × FX discount × tier multiplier.
Line-item logs + CSV export — verify usage and price sources against official bills by request_id.
Same usage — how much do 12 months of costs differ?
Illustrative: 4i at official rates vs a reseller with markup (assuming steady monthly usage).
Example only illustrates the no-hidden-multiplier gap — not a real bill; actual costs as shown in the console.
Myths, busted
Official token price × published multiplier — nothing hidden in model prices.
No monthly fee, balance never expires — your money is always yours.
Line-item request_id reconciliation, published formulas — no guessing.
Faithful forwarding of the requested model, with no silent downgrades.
CSV export + live logs — verify every line yourself.
About the low price: your lower final cost comes from better FX rates and published multipliers — not acquisition bait like “free credit”. If there's ever a bonus, it shows up in your console.
FOR I, FOR ME
If you also believe faithful forwarding and honest billing should be the default, we're probably the same kind of person.
Official token pricing · FX advantage · transparent tier multiplier
Voices
Placeholder copy — replace with real authorized quotes before launch.
We load-tested faithful forwarding: requests route to what they specify, with no silent substitution.
— Lin Chuan · AI Infrastructure Engineer
Invoices match the official bills — finance finally stopped bothering me.
— Zhou Ning · Startup Tech Lead
Changed one base_url and we were in — the team migrated almost for free.
— Chen Mo · Full-stack Developer
FAQ