1. Create a key
Open your GPTokens workspace, create an API key, and store it as a production secret.
OpenAI-compatible API docs
Replace the base URL, set your GPTokens API key, choose a supported model from /v1/models, and send standard chat completion requests.
Quickstart
Open your GPTokens workspace, create an API key, and store it as a production secret.
Use the GPTokens /v1 endpoint in OpenAI-compatible clients and agent tools.
Call /v1/models before hard-coding names because route availability can change.
OpenAI-compatible request
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.GPTOKENS_API_KEY,
baseURL: "https://gptokens.ai/v1"
});
const response = await client.chat.completions.create({
model: "qwen3.7-plus",
messages: [{ role: "user", content: "Compare Chinese LLM routes for my task." }]
});Operational guidance
FAQ
No. GPTokens is an independent OpenAI-compatible gateway. It issues GPTokens API keys and routes requests to supported Chinese LLM providers through one account.
Yes. Most integrations only need the GPTokens base URL, a GPTokens API key, and a supported model name from the live model list.
GPTokens is built for developers and teams in the US, Europe, and other global markets that want to test Chinese LLM APIs without managing separate provider accounts, payment methods, and dashboards.
Use the model pages for planning, then call /v1/models before production. Availability, routing, context windows, and price can change as providers update models.