Skip to content

TopRouterUnified AI API Gateway

Access 200+ AI models through one OpenAI-compatible endpoint โ€” Claude, GPT, Gemini, Seedance & more.

TopRouter

๐ŸŒ Join Our Community

Connect with us, get support, and stay updated with the latest features

๐Ÿ’ฐ Top Up & Redeem Guide

Simple steps to add credits and configure your account

  1. Register an account โ€” Sign up at toprouter.cc/register with your email.
  2. Purchase recharge codes โ€” Visit Whop Products to buy credits. Your code will be sent to your email.
  3. Redeem your code โ€” Go to toprouter.cc/redeem and enter your code to add credits instantly.
  4. Create API Key โ€” Visit the API Keys page to generate keys for integration.
  5. Start using โ€” Configure your client base URL to https://toprouter.cc and start using 200+ models.

๐Ÿš€ Quick Start

Integrate TopRouter into your application with just a few lines of code

python
# Python SDK
from openai import OpenAI

client = OpenAI(
    api_key="sk-your-toprouter-key",
    base_url="https://toprouter.cc"
)

response = client.chat.completions.create(
    model="google/gemini-3.5-flash",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
typescript
// TypeScript SDK
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'sk-your-toprouter-key',
  baseURL: 'https://toprouter.cc'
});

const response = await client.chat.completions.create({
  model: 'google/gemini-3.5-flash',
  messages: [{ role: 'user', content: 'Hello!' }]
});
console.log(response.choices[0].message.content);
bash
# cURL API
curl https://toprouter.cc/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-toprouter-key" \
  -d '{
    "model": "google/gemini-3.5-flash",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

๐Ÿ”— Useful Links

Quickly access key management, billing and account pages

Unified AI API Gateway โ€” Access 200+ models through one endpoint.