Quickstart

Make your first API call using Python, Node.js, or cURL.

Welcome to GreatRouter

One account, multiple providers — Switch between OpenAI, Anthropic, DeepSeek and more

Why Choose GreatRouter?

🧾

Invoice Support

Issue various types of invoices with customized details for reimbursement

💰

Price Advantage

Always at least 10% cheaper than official pricing

💳

Easy Payment

WeChat Pay supported, no international credit card required

🌐

No VPN Needed

Direct access from China, no proxy or VPN required, stable and fast

🔌

Fully Compatible

Compatible with OpenAI SDK, migrate existing code without modifications

📊

Real-time Monitoring

Detailed call records and cost statistics, usage at a glance

Quick Start

Get started with GreatRouter's AI API service in just 3 steps.

1

Create an Account

Register with your email. No credit card required, takes 1 minute.

Sign Up

Get $3 free credits on registration — start using immediately

2

Create an API Key

After logging in, go to the API Keys page to create your key.

Click "API Keys" in the sidebar after login

Click "Create New Key" button

Copy and securely save your API Key

API Key format is sk-gr-xxxx. Keep it safe, never expose it in public code.

3

Make Your First API Call

Install the OpenAI SDK, point base_url to GreatRouter, and you're ready to go.

Python
from openai import OpenAI

client = OpenAI(
    api_key="sk-gr-xxxx",  # Replace with your API Key
    base_url="https://endpoint.greatrouter.com"  # Overseas node
    # base_url="https://endpoint.wendalog.com"  # Domestic backup node
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)
4

You're All Set!

You can now use all supported AI models. Here's what to explore next: