Routing

Understand route selection and model access constraints.

Route Selection

GreatRouter provides two different access routes to meet different network environment needs. Choose the most suitable route based on your network situation.

Route Comparison

FeatureOverseas Direct RouteChina Route
Endpoint Addresshttps://endpoint.greatrouter.comhttps://endpoint.wendalog.com
Proxy RequiredYesNo
Network PathSingapore → GlobalShanghai → Singapore → Global
Use CaseWith proxy (Recommended)Without proxy

Overseas Direct Route (Recommended)

Network Path

Global
Overseas User
→
Load Balancer (Singapore)
Singapore
→
LiteLLM Router (Singapore)
Singapore
→
Azure (Global)
Global

Characteristics

  • RecommendedDirect connection to Router, better stability
  • Higher BandwidthNot limited by China route bandwidth
  • Lower LatencyOne less hop, faster response

Use Case

  • With proxy (Recommended)
  • Applications requiring low latency and high stability
  • Global users

China Route

Network Path

China
China User
→
Jump Server (Shanghai)
Shanghai
→
Load Balancer (Singapore)
Singapore
→
LiteLLM Router (Singapore)
Singapore
→
Azure (Global)
Global

Characteristics

  • No Proxy NeededDirect connection from China, no VPN required
  • Longer PathExtra Shanghai hop, increased latency
  • Limited BandwidthTotal bandwidth limited by China route

Use Case

  • Without proxy
  • When proxy is inconvenient

How to Configure Routes?

Set the base_url parameter to the corresponding endpoint address when initializing the OpenAI client.

from openai import OpenAI

# Overseas node (recommended)
client = OpenAI(
    api_key="sk-gr-xxxx",
    base_url="https://endpoint.greatrouter.com"
)

# docs.codeComments.domesticNoProxy
client = OpenAI(
    api_key="sk-gr-xxxx",
    base_url="https://endpoint.wendalog.com"
)

FAQ

Can I switch routes frequently?

Yes. Both routes use the same API Key, you can switch anytime without affecting service.

Is data synchronized between routes?

Yes. Both routes connect to the same backend service, your balance, usage records and other data are fully synchronized.

Best Practices

  1. Prefer overseas direct route — Use endpoint.greatrouter.com (shorter path, more stable)
  2. Use China route without proxy — Use endpoint.wendalog.com
  3. Keep both configurations — Comment both endpoints in code for quick switching