JBBToken API Docs

Use JBBToken as an OpenAI-compatible endpoint. Most clients only need three fields: Base URL, API key and model name.

Quick Start

1. Create an account

Open the console and sign up.

2. Add balance

Start with a small amount for testing.

3. Create an API key

Create a token in the console and copy the sk-... key.

4. Configure your client

Set Base URL to https://jbbtoken.cn/v1.

Configuration

FieldValueNotes
Base URLhttps://jbbtoken.cn/v1Do not append /chat/completions manually in most tools.
API Keysk-your-jbbtoken-keyKeep it private. Do not expose it in frontend code.
ProviderOpenAI-compatible / Custom OpenAINames differ by client.

curl

curl https://jbbtoken.cn/v1/chat/completions \
  -H "Authorization: Bearer sk-your-jbbtoken-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4-mini",
    "messages": [{"role": "user", "content": "Say hello."}]
  }'

Python

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-jbbtoken-key",
    base_url="https://jbbtoken.cn/v1",
)

response = client.chat.completions.create(
    model="gpt-5.4-mini",
    messages=[{"role": "user", "content": "Write a short title."}],
)
print(response.choices[0].message.content)

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "sk-your-jbbtoken-key",
  baseURL: "https://jbbtoken.cn/v1",
});

const response = await client.chat.completions.create({
  model: "gpt-5.4-mini",
  messages: [{ role: "user", content: "Write a short title." }],
});
console.log(response.choices[0].message.content);

Client Setup

ClientProviderBase URL
CursorOpenAI-compatible or custom OpenAI endpointhttps://jbbtoken.cn/v1
OpenWebUIOpenAI APIhttps://jbbtoken.cn/v1
ChatboxOpenAI API Compatiblehttps://jbbtoken.cn/v1
Cherry StudioOpenAIhttps://jbbtoken.cn/v1

If a client only supports a provider-specific native protocol, check whether it also supports OpenAI-compatible endpoints.