Anthropic compatible API for Claude, GPT & Gemini
Point your OpenAI client at ClaudeN, change only the base URL and key, and call Claude through an Anthropic-compatible surface — or switch to GPT and Gemini with one line.
由於上游 GPUHUB 故障,所有 OpenAI / Anthropic / Gemini 相容接口的請求已強制路由至本地 CLIProxyAPI,並統一使用模型
grok-4.3。此為臨時備援措施,恢復後將切回 GPUHUB 方式。
ClaudeN exposes an Anthropic-compatible and OpenAI-compatible API so you can reach Claude, GPT and Gemini without separate vendor accounts. Reuse the official OpenAI SDK, set a new base URL, and switch models with a single parameter. One prepaid balance funded by USDT or PayPal powers every request.
Why use an Anthropic-compatible gateway
OpenAI SDK works unchanged
Chat Completions requests stay the same. Only base_url and api_key change.
True Anthropic compatibility
Messages API shape for Claude is supported alongside the OpenAI shape.
One key, every model
The same key reaches Claude, GPT and Gemini — switch without new accounts.
Pay with USDT or PayPal
Prepaid balance, no credit card, no per-provider billing.
How to call Claude with an OpenAI SDK
- Sign up and get a key — Create a free ClaudeN account. Add credit with USDT or PayPal and copy your API key.
- Set base URL and key — Configure your OpenAI client to use https://clauden.ai/v1 and your ClaudeN key.
- Choose a model — Use claude-3-5-sonnet-20241022 (or any Claude, GPT or Gemini model name).
- Send the request — Call the same Chat Completions or Messages endpoint you already use.
Example: Anthropic-compatible call
Python example using the OpenAI SDK pointed at ClaudeN. Switch models by changing the model string.
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
Anthropic compatible API — frequently asked questions
Is this the official Anthropic API?
No. ClaudeN is an independent gateway that offers an Anthropic-compatible interface to Claude models. It is not operated by Anthropic.
Can I use the official Anthropic SDK?
Yes. Point the Anthropic SDK base URL to https://clauden.ai/v1 and use your ClaudeN key. The request and response shapes match.
Do I still need an Anthropic account?
No. One ClaudeN account and key is enough to call Claude, GPT and Gemini.
How do I pay?
Fund a prepaid balance with USDT or PayPal. You pay per token across every model — no credit card or subscription.
Sign up and get $5 free credit
Point your OpenAI client at ClaudeN, change only the base URL and key, and call Claude through an Anthropic-compatible surface — or switch to GPT and Gemini with one line.
Start free