API Documentation
Quick start
- Create an account and top up with USDT.
- Create an API key in the dashboard.
- Use the OpenAI SDK with our base URL.
Python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.example.com/v1",
)
resp = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://api.example.com/v1",
});
const resp = await client.chat.completions.create({
model: "deepseek-chat",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);cURL
curl https://api.example.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "deepseek-chat",
"messages": [{"role": "user", "content": "Hello!"}]
}'Billing & limits
- Requests are billed by actual token usage at the model's listed price.
- When your credit runs out, API calls fail with HTTP 403 (
pre_consume_token_quota_failed). - Top up any time with USDT (TRC-20) — credit appears within a minute.
- Unused credit expires 30 days after purchase.