Skip to content

Quick Start

Get your first API request in 5 minutes.


1. Sign Up & Get API Key

  1. Go to https://cnaitoken.store
  2. Register an account
  3. Log in → Tokens → Create a new API key
  4. Copy and save your key (it's shown only once)

2. Recharge Credits

  1. Visit https://cnaitoken.store/topup
  2. Add your User ID to the URL: ?user_id=YOUR_USER_ID
  3. Choose an amount ($10 / $50 / $100)
  4. Pay with credit card via Stripe
  5. Credits are added automatically after payment

!!! tip "Find your User ID" Go to SettingsPersonal Settings in the dashboard.


3. Make Your First Request

Base URL: https://cnaitoken.store/v1

Authentication: Authorization: Bearer YOUR_API_KEY

cURL

curl https://cnaitoken.store/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-api-key" \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Hello, say hi in one sentence."}]
  }'

Python

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-api-key",
    base_url="https://cnaitoken.store/v1"
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello, say hi in one sentence."}]
)
print(response.choices[0].message.content)

Node.js

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'sk-your-api-key',
  baseURL: 'https://cnaitoken.store/v1',
});

const response = await client.chat.completions.create({
  model: 'deepseek-chat',
  messages: [{ role: 'user', content: 'Hello, say hi in one sentence.' }],
});
console.log(response.choices[0].message.content);

4. Available Models

Model Description
deepseek-chat General chat, fast
deepseek-reasoner Complex reasoning, thinking mode

Next Steps