Third-party Platform SupportSDKs
OriginRouter SDKs
The OriginRouter API is compatible with popular client SDKs such as OpenAI, Anthropic, and Gemini. Continue using your existing development tools by configuring their request endpoint to the OriginRouter service endpoint.
Compatible with Mainstream Client SDKs
To enable seamless migration and easy onboarding, our API is designed to be fully compatible with interface specifications from mainstream providers like OpenAI and Anthropic. This means you can directly use their officially released SDKs — the ones you're most familiar with — without learning any new tools. Simply point the request address to our service endpoint when initializing the client.
# OpenAI's official development toolkit, which encapsulates complex API requests into simple code functions, helping developers quickly integrate various models into their applications.
# When initializing the OpenAI client, in addition to passing your api_key, be sure to specify base_url as our API address.
import os
from openai import OpenAI
# Recommended to load your API key from environment variables
# API Key obtained from the developer console
api_key = os.environ.get("YOUR_API_KEY")
# Initialize OpenAI client
# For pay-as-you-go, use https://api.easytransnote.com/beta/v1;
# for the coding plan (OriginRouter One), use https://api.easytransnote.com/coding/v1.
# See Endpoint Configuration.
client = OpenAI(
api_key=api_key,
base_url="https://api.easytransnote.com/beta/v1" # Key: point to our service address
)
# All subsequent code is exactly the same as when you use OpenAI directly
chat_completion = client.chat.completions.create(
model="gpt-5-2025-08-07", # You can choose any supported model through our platform
messages=[
{"role": "user", "content": "Hello, please introduce yourself."},
]
)
print(chat_completion.choices[0].message.content)