Quick Start
The entire process takes about 10 minutes.
Before you start, make sure you have: an email address and basic familiarity with the command line or Python.
Step 1: Sign Up and Log In
Go to the login page and sign in with an email verification code. The login page supports email verification code sign-in, as well as sign-in via your Google / GitHub account.
The steps are as follows:
- Email verification code sign-in: On the login page, enter your email address and click "Get verification code". The system sends a verification code to that email; enter the code you receive to complete sign-in. If you sign in with your email for the first time, an account will be created automatically.
- Third-party sign-in: You can also sign in via Google / GitHub authorization. Your account is created and signed in automatically after authorization, with no separate registration required.
- Signed in: After signing in, you can enter the TokenPlus console to manage API Keys, call models, and more.
TokenPlus supports both email verification code sign-in and Google / GitHub authorization. Either method works normally with the platform.
Step 2: Create an API Key
After signing in, create an API key in the User Center:
- Open the API Keys page and click Create Key
- Set a name for the key for easier identification
- Click Confirm — the system generates your API Key
API Keys start with sk-, for example sk-Ab3mN7y****...****kP1wR7t. The full key is shown in masked form in the key list, so copy and store it securely when you create it.
Important
Your API Key is the sole credential for calling the API. Keep it secure and never share it. Copy and store it somewhere safe immediately after creation — you will not be able to view the full key again once you close the page. If you suspect a key has been leaked, revoke it in the User Center and create a new one right away.
Step 3: Enter the Base URL
The Base URL depends on the SDK you use, not on the model — this is the most common integration mistake:
| Your SDK | Base URL | Notes |
|---|---|---|
| OpenAI SDK (and most clients) | https://tokenplus.net | The SDK appends /v1/chat/completions itself |
| Anthropic SDK (native Claude) | https://tokenplus.net | The SDK appends /v1/messages; adding /v1 produces /v1/v1/messages and a 404 |
| Google GenAI SDK (native Gemini) | https://tokenplus.net | Also set api_version: "v1beta" |
A wrong Base URL is the most common cause of a failed integration. Confirm which SDK you are using, then pick the matching Base URL from the table above.
Step 4: Top Up Your Account
Once identity verification is complete, you can top up your account. Go to "Account Management" → "Top-up Management" → "Balance Top-up", select or enter an amount, and complete the payment. The topped-up amount is credited to your account balance, and API calls are then automatically billed by actual usage.
Step 5: Make Your First Call
Set the API Key from the previous step as an environment variable, then send a request using any of the following methods:
- cURL
- Python
- Node.js
export TOKENPLUS_API_KEY="sk-xxxxxxxxxxxx"
curl https://tokenplus.net/v1/chat/completions \
-H "Authorization: Bearer $TOKENPLUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Hello"}]}'
from openai import OpenAI
import os
client = OpenAI(
base_url="https://tokenplus.net/v1",
api_key=os.environ["TOKENPLUS_API_KEY"]
)
response = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
const OpenAI = require("openai");
const client = new OpenAI({
baseURL: "https://tokenplus.net/v1",
apiKey: process.env.TOKENPLUS_API_KEY,
});
async function main() {
const response = await client.chat.completions.create({
model: "deepseek-v4-flash",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);
}
main();