🎉

Payment Successful!

Your tokens are ready to use. Start building now!

🔑 Your API Key

Loading...
⚠️ Save this key now! It won't be shown again. Store it in a secure place (e.g., environment variable).

🚀 Quick Start Guide

1

Install OpenAI SDK (or use any HTTP client)

npm install openai
2

Use it in your code

Just change baseURL and apiKey — everything else works like OpenAI!

import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'sk-serve-your-key', baseURL: 'https://servetokens-api.qing-liang-6771.workers.dev/v1' }); const response = await client.chat.completions.create({ model: 'deepseek-chat', messages: [ { role: 'user', content: 'Hello! What can you do?' } ] }); console.log(response.choices[0].message.content);
3

Or use cURL

curl https://servetokens-api.qing-liang-6771.workers.dev/v1/chat/completions \ -H "Authorization: Bearer sk-serve-your-key" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek-chat", "messages": [{"role": "user", "content": "Hi!"}] }'
4

Check your balance anytime

curl https://servetokens-api.qing-liang-6771.workers.dev/v1/balance \ -H "Authorization: Bearer sk-serve-your-key"

📦 Available Models

Model Name Best For
deepseek-chat General chat, coding, writing
deepseek-reasoner Complex reasoning, math, logic
gpt-4o Alias → deepseek-chat (compatible)
gpt-3.5-turbo Alias → deepseek-chat (compatible)

📡 API Endpoints

POST /v1/chat/completions Chat with AI
GET /v1/models List models
GET /v1/balance Check balance
📊 Go to Dashboard ← Back to ServeTokens