1M tokens in, 100K out.
A long agent run on Gemini 4 Argon, billed to the cent.
$2.25 saved75% less than list for the same tokens.
| Input | 1M × $0.50 / 1M | $0.50 |
|---|---|---|
| Output | 100K × $2.50 / 1M | $0.25 |
| Billed | rounded up to the cent | $0.75 |
Google's Gemini 4 Argon through one OpenAI- and Anthropic-compatible API: $0.50 per million input tokens and $2.50 per million output.
Ours rounded up, list rounded down; each saving is worked out from the exact prices and rounded down. Paid from a prepaid balance, with no monthly fee.
A long agent run on Gemini 4 Argon, billed to the cent.
$2.25 saved75% less than list for the same tokens.
| Input | 1M × $0.50 / 1M | $0.50 |
|---|---|---|
| Output | 100K × $2.50 / 1M | $0.25 |
| Billed | rounded up to the cent | $0.75 |
Checked every 15 minutes. When it's unavailable, requests return 503 and aren't charged.
Checked –
Pick your client. The line with gemini-4-argon is marked; set ROUTING_API_KEY and run it.
import osfrom openai import OpenAIclient = OpenAI( base_url="https://api.routing.run/v1", api_key=os.environ["ROUTING_API_KEY"],)client.chat.completions.create( model="gemini-4-argon", messages=[{"role": "user", "content": "Hi"}],)Change two arguments and keep the rest. In TypeScript the option is baseURL.OpenAI SDK guide
import osfrom anthropic import Anthropicclient = Anthropic( base_url="https://api.routing.run", api_key=os.environ["ROUTING_API_KEY"],)client.messages.create( model="gemini-4-argon", max_tokens=1024, messages=[{"role": "user", "content": "Hi"}],)The SDK adds /v1/messages itself, so its base URL has no /v1.Anthropic SDK guide
curl https://api.routing.run/v1/chat/completions \ -H "Authorization: Bearer $ROUTING_API_KEY" \ --json '{ "model": "gemini-4-argon", "messages": [{"role": "user", "content": "Hi"}] }'Add "stream": true to get the answer as it is written.curl guide
export ANTHROPIC_BASE_URL=https://api.routing.runexport ANTHROPIC_AUTH_TOKEN=$ROUTING_API_KEYexport ANTHROPIC_MODEL=gemini-4-argonclaudeIn your shell. Claude Code reads these three variables.Claude Code guide
model_provider = "routing"model = "gemini-4-argon" [model_providers.routing]name = "routing.run"base_url = "https://api.routing.run/v1"env_key = "ROUTING_API_KEY"wire_api = "responses"In ~/.codex/config.toml, as a model provider. Then run codex as usual.Codex guide
OpenAI API Key your routing.run keyOverride OpenAI Base URL https://api.routing.run/v1Model gemini-4-argonIn Settings, Models: turn on Override OpenAI Base URL, add the model by its id and pick it in the chat.Cursor guide
{ "provider": { "routing": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "https://api.routing.run/v1", "apiKey": "{env:ROUTING_API_KEY}" }, "models": { "gemini-4-argon": {} } } }}In opencode.json. The key comes from your environment.OpenCode guide
API Provider OpenAI CompatibleBase URL https://api.routing.run/v1API Key your routing.run keyModel ID gemini-4-argonIn Cline's settings, under API Provider.Cline guide
{ "language_models": { "openai_compatible": { "routing": { "api_url": "https://api.routing.run/v1", "available_models": [ { "name": "gemini-4-argon", "max_tokens": 1048576 } ] } } }}In settings.json. Zed reads the key from ROUTING_API_KEY.Zed guide
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";import { generateText } from "ai";const routing = createOpenAICompatible({ name: "routing", baseURL: "https://api.routing.run/v1", apiKey: process.env.ROUTING_API_KEY,});const { text } = await generateText({ model: routing("gemini-4-argon"), prompt: "Hi",});With @ai-sdk/openai-compatible. The key comes from your environment.Vercel AI SDK guide
import osfrom langchain_openai import ChatOpenAI llm = ChatOpenAI( model="gemini-4-argon", base_url="https://api.routing.run/v1", api_key=os.environ["ROUTING_API_KEY"],)print(llm.invoke("Hi").content)ChatOpenAI takes the base URL and key directly.LangChain guide
gemini-4-carbon$0.50 in, $2.50 out75% under listgemini-4-hydrogen$0.375 in, $1.88 out75% under listgemini-3.8-flash$0.165 in, $0.825 out80% under list29 models from 12 labs, all on one balance.
Sign in with GitHub, Google, Discord, Apple or an email link, add $5 and create a key. Each request is charged from your balance at the table's price.