NewGemini 4 Neon, & GPT-6.2 AstraGemini 4 Neon, & GPT-6.2 Astra

Managed AI infrastructure
for everything you build.

Route coding agents and production apps across leading models through one multi-provider gateway with failover and prepaid spend controls.

GPT-6 Luna
152 tok/s
Gemini 3.5 Flash-Lite
184 tok/s
Qwen 3.5 9B
138 tok/s
Gemini 3.5 Flash
168 tok/s
GPT-6.1 Sol
112 tok/s
SwitchRouter Free
105 tok/s
PerformanceExplore

Keep your SDK,
switch the endpoint

Point your existing OpenAI client or coding IDE at SwitchRouter with a two-line diff. Swap between Claude, GPT, DeepSeek, and Qwen per request while every token settles from a single Naira wallet.

Explore the API reference
src/server/ai/completions.ts
01import OpenAI from 'openai'
02import { tools, systemPrompt } from './agent-config'
03 
04const openai = new OpenAI({
05 apiKey: process.env.OPENAI_API_KEY,
06 organization: process.env.OPENAI_ORG_ID,
07})
08 
09export async function generateReply(input: string) {
10 return openai.chat.completions.create({
11 model: 'gpt-4o-2024-08-06',
12 messages: [
13 { role: 'system', content: systemPrompt },
14 { role: 'user', content: input },
15 ],
16 tools, stream: true,
17 })
18}
01import OpenAI from 'openai'
02import { tools, systemPrompt } from './agent-config'
03 
04const openai = new OpenAI({
05 baseURL: 'https://api.switchrouter.dev/v1',
06 apiKey: process.env.SWITCHROUTER_API_KEY,
07})
08 
09export async function generateReply(input: string) {
10 return openai.chat.completions.create({
11 model: 'gemini-3.5-flash',
12 messages: [
13 { role: 'system', content: systemPrompt },
14 { role: 'user', content: input },
15 ],
16 tools, stream: true,
17 })
18}

One wire protocol

Every frontier model normalized to a single OpenAI-compatible schema. Streaming, tool calls, and structured outputs work identically everywhere.

Automatic failover

Requests route across redundant upstream deployments. If a provider rate-limits or degrades, traffic shifts cleanly without dropping the stream.

Settled in Naira

Fund one workspace wallet locally and pay strictly for the tokens you consume. Zero USD card barriers, seat minimums, or foreign FX markups.

Compare intelligence,
context, and token rates

Switch between reasoning, coding, and multimodal models with a single string change. Metered per million tokens and settled automatically from your Naira wallet.

Browse full model directory

Pricing & billing

Predictable spend,
metered per token.

Fund prepaid workspace credits and pay strictly per completed token at published all-in rates — with hard spend limits and local Naira settlement.

SwitchRouter
Sample cycle · from ₦57.97/1M
Tokens metered9.23M
Settled spend₦18,459.94
tokens.out182,810₦121.52
tool.call105₦53.10
tokens.in871,914₦115.93
Visa •••• 4242Settled Nov 1
Wallet balance₦20,958.94
Cache savings61%
Inference cost₦7,117.37
Standard ₦15.20Cached ₦6.90

Signup

Create an account to get started. You can set up team workspaces and invite members later.

Buy credits

Fund prepaid credits for any supported model. Pay locally in Naira by card or bank transfer.

Get your API key

Create an API key and start making requests. Fully OpenAI compatible.


Choose how to get started

Build on your own

Launch your AI-powered product or supercharge your coding workflow with:

  • SwitchRouter Connect monthly coding subscriptions with 3× credit rollover
  • Pay-as-you-go prepaid API credits with published all-in token rates
  • Native OpenAI, Anthropic Messages, and OpenAI Responses protocol support
  • Real-time token, latency, and app telemetry in the console

Scale with your team

Production infrastructure, observability, and reliability for growing teams.

  • Multi-key workspace isolation for development, staging, and production
  • Automated failover across configured upstream deployments
  • Immutable integer-kobo credit ledger and exportable usage logs
  • Dedicated engineering support and production routing controls


FAQ

Questions, answered plainly.

Transparent, all-in published rates. Every model's per-million-token rate is published in our Model Directory and reflects upstream inference, multi-provider routing, and platform settlement. There are no hidden surcharges or mandatory seat fees for SwitchRouter API, and high-volume teams can contact us for custom commercial arrangements.
Automated failover where alternate deployments are configured. SwitchRouter routes across multiple inference providers and cloud deployments. When a primary upstream returns a retryable error or hits rate limits, requests can automatically fail over to a healthy alternate deployment for that model or Connect pool without code changes. If no healthy upstream is available, SwitchRouter returns a structured error and never deducts credits from your balance.
SwitchRouter never trains on your data and does not persist prompts or completions by default. Request payloads are processed transiently in memory to route to upstream inference providers, while operational metadata (model ID, token counts, latency, and HTTP status) is recorded for billing and console telemetry. Upstream data handling is governed by the respective upstream provider's commercial terms. See our Security & Architecture page for details.
Flexible prepaid settlement with hard spend control. With SwitchRouter API, you purchase closed-loop prepaid platform credits and draw down per completed token at published rates. With SwitchRouter Connect, you subscribe to a monthly coding plan with up to 3× unused credit rollover while your plan stays active. Deposits convert into non-transferable, non-withdrawable SwitchRouter credits, with local Naira payment rails (card and bank transfer) supported out of the box.
You are never charged for failed or interrupted requests. Usage only settles for verified, delivered tokens on successfully completed turns. If an upstream call fails, your balance remains untouched.
Three native wire protocols, zero code rewrites. SwitchRouter supports OpenAI Chat Completions (/v1/chat/completions), Anthropic Messages (/v1/messages), and OpenAI Responses (/v1/responses) for text, streaming, tool calling, and structured output workloads. Point existing SDKs at https://api.switchrouter.dev/v1 or run npx switchrouter connect for Claude Code, Codex CLI, OpenCode, and Cursor.
Yes. You can create separate API keys for local development, staging, and production environments, configure spend limits, and monitor real-time token spend, latency, and error rates directly from your workspace console.

Start building with SwitchRouter.

Connect your app or coding agent in seconds. Route across frontier models through one endpoint — then launch your app and start building what's next.

Start building