OpenAI-compatible API for Claude, GPT & Gemini
Keep the OpenAI SDK you already use. Point it at ClaudeN, swap in your key, and call Claude, GPT and Gemini through one Anthropic- and OpenAI-compatible endpoint — no rewrite required.
由於上游 GPUHUB 故障,所有 OpenAI / Anthropic / Gemini 相容接口的請求已強制路由至本地 CLIProxyAPI,並統一使用模型
grok-4.3。此為臨時備援措施,恢復後將切回 GPUHUB 方式。
ClaudeN AI exposes a single OpenAI-compatible API surface in front of Claude, GPT and Gemini. If your code already talks to OpenAI, you only change the base URL and API key — the request and response shapes stay the same. Switching between Claude, GPT and Gemini is a one-line model change, so you can benchmark, fail over, or mix providers without maintaining three separate integrations.
Why a compatible gateway
Drop-in for OpenAI SDK
Chat Completions style requests work unchanged. Just set base_url and api_key.
Switch models in one line
Change the model field to move between Claude, GPT and Gemini — no new SDKs or keys.
One key, one balance
A single key and prepaid balance covers every provider. Top up with USDT or PayPal.
Provider-agnostic code
Stop hard-coding one vendor. Route, retry and fail over across models from one integration.
How to switch your OpenAI SDK to ClaudeN
- Get your API key — Sign up, add prepaid credit with USDT or PayPal, and copy your OpenAI-compatible key.
- Set the base URL — Point your existing OpenAI client at the ClaudeN base URL instead of the default one.
- Pick a model — Set the model field to a Claude, GPT or Gemini model name — the rest of your code is unchanged.
- Send the request — Run your usual Chat Completions call. Responses come back in the same OpenAI-compatible shape.
Example: same code, new base URL
A standard OpenAI Python client pointed at ClaudeN. Switch providers by changing only the model name.
from openai import OpenAI
client = OpenAI(
api_key="$CLAUDEN_API_KEY",
base_url="https://clauden.ai/v1",
)
resp = client.chat.completions.create(
model="claude-3-5-sonnet",
messages=[{"role": "user", "content": "Hello from ClaudeN"}],
)
print(resp.choices[0].message.content)
Resources
OpenAI-compatible API — frequently asked questions
Is ClaudeN really compatible with the OpenAI SDK?
Yes. ClaudeN exposes an OpenAI-compatible Chat Completions API. You reuse the official OpenAI SDK and only change the base URL and API key — request and response formats stay the same.
How do I switch between Claude, GPT and Gemini?
Change the model name in your request. The same endpoint routes to Claude, GPT or Gemini, so switching providers is a one-line change with no new keys or SDKs.
Do I need an Anthropic or OpenAI account?
No. ClaudeN sits in front of all providers, so one ClaudeN account and key is enough. You do not need separate Anthropic, OpenAI or Google accounts.
How do I pay?
You fund one prepaid balance with USDT or PayPal and pay per token across every model — no credit card required and no per-provider billing.
Sign up and get $5 free credit
Keep the OpenAI SDK you already use. Point it at ClaudeN, swap in your key, and call Claude, GPT and Gemini through one Anthropic- and OpenAI-compatible endpoint — no rewrite required.
Start free