Provider profile: OpenAI - Access every OpenAI model — GPT-4o, GPT-4.1, o3, o4-mini, DALL·E, Whisper, and embeddings — through TheRouter's unified API. Drop in your existing OpenAI SDK; just change one line to point base_url at TheRouter. Unified billing, automatic fallback, and team access controls included.
OpenAI
US51 modelsOpenAI models via TheRouter — GPT-5 series, GPT-4o, o-series and dozens more, one API key
Access every OpenAI model — GPT-4o, GPT-4.1, o3, o4-mini, DALL·E, Whisper, and embeddings — through TheRouter's unified API. Drop in your existing OpenAI SDK; just change one line to point base_url at TheRouter. Unified billing, automatic fallback, and team access controls included.
- ✓51+ models - the broadest production-ready portfolio in the industry
- ✓GPT-4o multimodal family with vision, audio, and real-time capabilities
- ✓o-series reasoning models for math, code, and complex problem solving
- ✓Responses API support for Cursor IDE and agent frameworks
Quickstart
from openai import OpenAI
# Access all OpenAI models through TheRouter — change base_url, keep everything else
client = OpenAI(
base_url="https://api.therouter.ai/v1",
api_key="YOUR_THEROUTER_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4o", # or openai/o4-mini, openai/gpt-4.1, openai/o3 ...
messages=[{"role": "user", "content": "Summarize the key ideas in quantum computing"}],
max_tokens=512,
)
print(response.choices[0].message.content)
# TypeScript / Node.js equivalent:
# import OpenAI from "openai";
# const client = new OpenAI({ baseURL: "https://api.therouter.ai/v1", apiKey: "YOUR_THEROUTER_KEY" });
# const res = await client.chat.completions.create({ model: "openai/gpt-4o", messages: [...] });Use the global api.therouter.ai endpoint for new integrations; the legacy China accelerated endpoint is retired.
Models
Frequently Asked Questions
What OpenAI models are available through TheRouter?
All major production OpenAI models: the GPT-5 series (GPT-5 through GPT-5.5), GPT-4o and GPT-4.1 families, the o-series reasoning models, plus GPT Image for image generation — see the models list below for the live catalog.
Does TheRouter support the OpenAI Responses API?
Yes. TheRouter supports both the Chat Completions API and the Responses API format used by Cursor IDE and newer agent frameworks. Both formats are automatically detected and routed correctly.
How does TheRouter handle OpenAI rate limits?
TheRouter manages request queuing and can fall back to alternative providers when OpenAI rate limits are hit, depending on your routing configuration.
Can I use GPT-4o Vision through TheRouter?
Yes. TheRouter's multimodal validation layer passes image_url content blocks directly to OpenAI in the native format. No image conversion needed.