Quick Start
Get your first API request in 5 minutes.
1. Sign Up & Get API Key
- Go to https://cnaitoken.store
- Register an account
- Log in → Tokens → Create a new API key
- Copy and save your key (it's shown only once)
2. Recharge Credits
- Visit https://cnaitoken.store/topup
- Add your User ID to the URL:
?user_id=YOUR_USER_ID - Choose an amount ($10 / $50 / $100)
- Pay with credit card via Stripe
- Credits are added automatically after payment
!!! tip "Find your User ID" Go to Settings → Personal 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
- API Reference — Full endpoint documentation
- Code Examples — More Python, Node.js, cURL examples