๐Ÿ‘ค User Manual

Manage your API keys, top up your wallet, integrate with SDKs

๐Ÿ”‘ API Key Management

Creating an API Key

1Log in to the Console โ†’ Token Management

2Click the Add Token button

3Enter a label (e.g. "Production", "Testing")

4Select a group/permission (optional)

5Copy the key immediately โ€” it's only shown once

โš ๏ธ Keep your API keys secure. Never commit them to public repositories. If you suspect a leak, revoke the key in Token Management and create a new one.

Managing Keys

In Token Management, you can:

Using Your Key

Pass it in the Authorization header of every API request:

Authorization: Bearer sk-xxx...

๐Ÿค– Model Selection Guide

Use CaseRecommended ModelNotes
General chat / Quick tasksdeepseek-chat, qwen-plusFast, cost-effective
Complex reasoning / Codingdeepseek-reasoner, claude-sonnetStrong logic, high code quality
Long context / Document analysiskimi-k2, doubao-proVery long context windows
Creative writing (Chinese)glm-4, qwen-maxExcellent Chinese expression
Multi-turn conversationsgpt-4o, claude-sonnetAccurate context understanding

๐Ÿ’ก Best practice: implement automatic fallback โ€” if your primary model fails, switch to a backup model.

๐Ÿ’ฐ Top-Up Guide

Payment Methods

How to Top Up

1Console โ†’ Wallet Management โ†’ Quota Top-up

2Select amount ($10 / $20 / $50 / $100 / $200 / $500 or custom)

3Choose payment method

4Complete payment โ€” funds arrive instantly

Plans Comparison

AmountYou PayCredit Received
$10$10.00$10.00
$20$20.00$22.00 (10% bonus)
$50$50.00$57.50 (15% bonus)
$100$100.00$120.00 (20% bonus)
$200$200.00$240.00 (20% bonus)
$500$500.00$600.00 (20% bonus)

๐Ÿ“Š Usage Monitoring

The Dashboard gives you real-time visibility into:

๐Ÿ”Œ SDK Integration

Python (OpenAI SDK)

import openai
from openai import OpenAI

client = OpenAI(
    base_url="https://www.tokencnn.com",
    api_key="***"
)

# Chat
response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello"}]
)

# Embeddings
emb = client.embeddings.create(
    model="text-embedding-3-small",
    input=["Hello world"]
)

# Image generation
img = client.images.generate(
    model="dall-e-3",
    prompt="Chinese landscape painting, digital art"
)

Node.js (OpenAI SDK)

import OpenAI from "openai";

const client = new OpenAI({
    baseURL: "https://www.tokencnn.com",
    apiKey: "***",
});

const response = await client.chat.completions.create({
    model: "deepseek-chat",
    messages: [{ role: "user", content: "Hello!" }],
});

cURL

curl https://www.tokencnn.com/v1/chat/completions \
  -H "Authorization: Bearer *** \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

โšก Rate Limits

LimitDescription
Rate limitingVaries by model and plan โ€” check the console for details
ConcurrencyDepends on your subscription plan
Timeout120 seconds default

๐Ÿ’ก Hit a rate limit? Wait a moment and retry, or upgrade your plan for higher quotas.