Quick Start
3 分钟快速接入
First time using an API platform? Follow the four steps below: pay, check what your order returned, then either use the API Key directly or redeem the code and create your own key.
Read this first: do not guess the next step. After payment, always check the success page or Order Lookup first. If the page shows Base URL + API Key, you can use them directly. If it shows a redemption code, go to the console to redeem it and then create your key there.
Step 1 — Buy a package
Head to the pricing section and pick a package that fits your needs. After payment, keep your order ID. The success page and Order Lookup page are the two places where AiCredits will show your delivery result.
| Package | Price | Quota | Best for |
|---|---|---|---|
| Trial体验包 | ¥5 | 200K tokens | Quick test |
| Starter入门包 | ¥10 | 500K tokens | Personal projects |
| Standard标准包 | ¥30 | 1.5M tokens | Most popular |
| Professional专业包 | ¥100 | 5M tokens | Best value |
Lost the page after checkout? Go to Order Lookup and enter your order ID anytime to recover the delivery result.
Step 2 — Get the delivery result
After payment, the most important thing is to identify which result your order returned. Do not go to the console first. The success page and Order Lookup page are the source of truth.
Start from the order result page — it tells you whether you received a direct API Key or a redemption code. Do not open the API Base URL in your browser; it is for code only.
1) Check your order result first
1)先看订单结果
Lost the success page? Open order lookup and recover the exact delivery result there.
2) Only when you need the console
2)只有需要兑换时才进控制台
If your order shows a redemption code, use the buttons below. If the page still lands on the One API welcome screen, tap the top-right menu and choose Register or Login there.
3) API Base URL is for code, not for your browser
3)API Base URL 是给代码填的,不是给浏览器打开的
Do not click this URL expecting a webpage. Opening /v1 directly in a browser can show errors like Invalid URL (GET /v1). Copy it into your SDK or cURL command instead.
http://168.144.39.53:3000/v1
You only need to remember one rule: if the page shows an API Key, use it directly; if it shows a redemption code, open Register/Login first, redeem it in Wallet, then create your own key.
Step 3 — Use the direct API or fallback flow
There are only two real situations after payment. Match what you see on the page with one of the two boxes below and follow that exact path.
The page shows “Base URL + API Key”
页面直接显示“Base URL + API Key”
- Copy the Base URL.
- Copy the API Key.
- Paste both values into the code example below and make your first call.
No console account is required in this path.
The page shows a redemption code
页面显示的是兑换码
- Open Register or Login. If both links still show the One API welcome page, tap the top-right menu and enter Register/Login from there.
- After login, open Wallet / Top Up / Redeem and paste the code.
- After the balance arrives, open Tokens / API Keys and create a new key for yourself.
- Use that newly created key together with the Base URL below. Do not try to open the Base URL as a normal webpage.
If you currently see a redemption code, that is not an error — it means this order was fulfilled through the fallback path.
The two values you eventually need in your project always look like this:
API Base URL: http://168.144.39.53:3000/v1
API Key: sk-<your-key-from-order-page-or-console>
If you are a beginner, just replace two placeholders in the code samples below: base_url becomes http://168.144.39.53:3000/v1, and api_key becomes your actual key. Keep the model as deepseek-chat for the first test.
Step 4 — Make your first call
Pick your language, then replace only two placeholders: api_key and base_url. For your first test, keep the model as deepseek-chat.
from openai import OpenAI
client = OpenAI(
api_key="sk-<your-key>",
base_url="http://168.144.39.53:3000/v1",
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"},
],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "sk-<your-key>",
baseURL: "http://168.144.39.53:3000/v1",
});
const response = await client.chat.completions.create({
model: "deepseek-chat",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Hello!" },
],
});
console.log(response.choices[0].message.content);
curl http://168.144.39.53:3000/v1/chat/completions \
-H "Authorization: Bearer sk-<your-key>" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-chat",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
}'
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.*;
OpenAIClient client = OpenAIOkHttpClient.builder()
.apiKey("sk-<your-key>")
.baseUrl("http://168.144.39.53:3000/v1")
.build();
ChatCompletion completion = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("deepseek-chat")
.addUserMessage("Hello!")
.build()
);
System.out.println(completion.choices().get(0).message().content());
package main
import (
"context"
"fmt"
openai "github.com/openai/openai-go"
"github.com/openai/openai-go/option"
)
func main() {
client := openai.NewClient(
option.WithAPIKey("sk-<your-key>"),
option.WithBaseURL("http://168.144.39.53:3000/v1"),
)
resp, _ := client.Chat.Completions.New(context.Background(),
openai.ChatCompletionNewParams{
Model: openai.F("deepseek-chat"),
Messages: openai.F([]openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Hello!"),
}),
},
)
fmt.Println(resp.Choices[0].Message.Content)
}
That's it! If you see a reply in the terminal, your integration is working. 🎉
Supported Models
Pass any of the model IDs below as the model parameter.
| Model ID | Description | Context | Best for |
|---|---|---|---|
deepseek-chat |
DeepSeek V3 Chat | 64K | Recommended |
deepseek-reasoner |
DeepSeek R1 (thinking) | 64K | Complex reasoning |
gpt-4o |
OpenAI GPT-4o | 128K | Multimodal tasks |
gpt-4o-mini |
OpenAI GPT-4o Mini | 128K | Low cost, fast |
claude-3-5-sonnet-20241022 |
Claude 3.5 Sonnet | 200K | Long context, coding |
Model availability depends on your current plan quota. If a model is unavailable, the API returns a 429 / quota-exceeded error.
FAQ
Do I need to create an account?
需要注册账号吗?
Usually no. In the fast path, AiCredits gives you a ready-to-use API Key directly after payment, so you can start calling immediately. You only need an account if that order falls back to redemption-code delivery and you choose to redeem it manually in the console.
Does quota expire?
额度会过期吗?
No. Credits are prepaid and do not expire unless otherwise stated on the pricing page. Use them at your own pace.
How do I check my remaining balance?
怎么查剩余额度?
Log into the AiCredits console. The dashboard shows your current quota, usage history, and token consumption per model.
What if I get a 401 Unauthorized error?
遇到 401 Unauthorized 怎么办?
Double-check that your Authorization header is exactly
Bearer sk-<your-key> and that the base_url
points to http://168.144.39.53:3000/v1 (not the OpenAI endpoint).
Can I use streaming?
支持流式输出吗?
Yes. Set stream: true in your request — it works exactly like OpenAI streaming.
I lost my redemption code. What now?
兑换码丢了怎么办?
Go to Order Lookup, enter your order ID (saved in your browser or sent by email), and you'll see your code again.
Still stuck?
还有问题?
Email us at mrwangyanlong2026@outlook.com — we reply within 24 hours.
Ready to start?
准备好了?
Pick a package, get your API key, and make your first call in minutes.
View Packages →