Guides
Short notes for calling GPT and Claude through SuJin AI. Register and add credit on the site, at /register and /purchase. The catalog is GPT and Claude only.
Calls use ordinary HTTPS. The OpenAI-compatible base URL is https://sujinai.com/v1. The Anthropic protocol and Claude Code use https://sujinai.com, with no /v1 suffix.
Quick start
- Register, create an API key, and add credit.
- GPT, Cursor, Cline, and Cherry Studio use
https://sujinai.com/v1. The Anthropic SDK and Claude Code usehttps://sujinai.com. - Pick a model id from Pricing. The homepage examples are
gpt-6.2-solandclaude-sonnet-5-5. - Send a short request. An extra or missing
/v1is the most common mistake.
# OpenAI-compatible clients, including Cursor. GPT examples use this URL.
# https://sujinai.com/v1
# Anthropic SDK and Claude Code.
# https://sujinai.com
Python, Node, and cURL
These three use the OpenAI-compatible URL and gpt-6.2-sol.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://sujinai.com/v1",
)
resp = client.chat.completions.create(
model="gpt-6.2-sol",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://sujinai.com/v1",
});
const resp = await client.chat.completions.create({
model: "gpt-6.2-sol",
messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);
curl https://sujinai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-6.2-sol",
"messages": [
{"role": "user", "content": "Hello"}
]
}'
The Claude Python example sets base_url without a /v1 suffix:
import anthropic
client = anthropic.Anthropic(
api_key="YOUR_API_KEY",
base_url="https://sujinai.com",
)
message = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)
All of the notes
Claude Code
ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY, a check, and common mistakes.
Cursor
The OpenAI-compatible base URL, key, model ids, plus Cline and Cherry Studio.
Pricing
The same USD rates as the homepage, pay-as-you-go billing, and two worked estimates.
Switching from OpenRouter
What to change in the URL, key, and model id. The catalog is GPT and Claude only.
Compare
Official OpenAI, official Anthropic, OpenRouter, and self-hosted LiteLLM.
Privacy
The gateway keeps usage and billing logs and does not store conversation text.
Terms
Pay-as-you-go USD billing, where to register and add credit, and how to reach support.
FAQ
Where do I start?
Register at /register, create an API key, and add credit at /purchase. Then pick the base URL with or without /v1 for the client you use.
Do GPT and Claude share a base URL?
No. OpenAI-compatible clients use https://sujinai.com/v1. The Anthropic SDK and Claude Code use https://sujinai.com.
Where are the rates?
On Pricing, the same USD card as the homepage. Billing follows actual tokens, with no monthly fee.
Register and create a key
Register with your email, create an API key in the console, then add credit. You can also reach [email protected].
Register to start Add credit