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

  1. Register, create an API key, and add credit.
  2. GPT, Cursor, Cline, and Cherry Studio use https://sujinai.com/v1. The Anthropic SDK and Claude Code use https://sujinai.com.
  3. Pick a model id from Pricing. The homepage examples are gpt-6.2-sol and claude-sonnet-5-5.
  4. Send a short request. An extra or missing /v1 is 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

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