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.

先记住这一句:支付后不要自己猜下一步,先看成功页或 订单查询。如果页面显示的是 Base URL + API Key,你就直接用;如果显示的是兑换码,就去控制台兑换,再在控制台里创建 Key。

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.

前往套餐页选择适合你的档位。支付完成后先保留订单号;AiCredits 会在成功页和 订单查询 页展示你的交付结果。

Package套餐 Price价格 Quota额度 Best for适合谁
Trial体验包 ¥5200K tokens Quick test快速试用
Starter入门包 ¥10500K tokens Personal projects个人项目
Standard标准包 ¥301.5M tokens Most popular 最受欢迎
Professional专业包 ¥1005M 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.

先从订单结果页判断 — 它会明确告诉你这笔订单拿到的是直接可用的 API Key,还是兑换码。API Base URL 不要直接在浏览器里打开,它是给代码用的。

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.

你只要记住一条:页面给你 API Key,就直接用;页面给你兑换码,就先注册/登录,再去钱包兑换,最后自己创建 Key。

Step 3  —  Use the direct API or fallback flow 第三步  —  直接使用 API 或走兜底兑换

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.

支付之后其实只有两种真实情况。你只要把页面上看到的内容,对照下面两种情况走就行,不要自己脑补第三种流程。

Path A · Direct API

The page shows “Base URL + API Key”

页面直接显示“Base URL + API Key”

  1. Copy the Base URL.
  2. 复制 Base URL
  3. Copy the API Key.
  4. 复制 API Key
  5. Paste both values into the code example below and make your first call.
  6. 把这两个值粘贴到下面的代码示例里,直接发起第一次调用。

No console account is required in this path.

这种情况不需要注册控制台账号。

Path B · Redemption fallback

The page shows a redemption code

页面显示的是兑换码

  1. 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.
  2. 打开 注册页登录页。如果点开后还是 One API 欢迎页,就点右上角菜单,再从菜单里进入“注册 / 登录”。
  3. After login, open Wallet / Top Up / Redeem and paste the code.
  4. 登录后进入 钱包 / 充值 / 兑换,把兑换码粘贴进去。
  5. After the balance arrives, open Tokens / API Keys and create a new key for yourself.
  6. 额度到账后,再进入 Tokens / API Keys,给自己创建一个新的 Key。
  7. Use that newly created key together with the Base URL below. Do not try to open the Base URL as a normal webpage.
  8. 最后拿着你自己新创建的 Key,配合下面的 Base URL 去调用;不要把这个 Base URL 当普通网页去点开。

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:

不管走哪条路,最后你放进项目里的都只有这两项:

Config
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.

如果你是第一次接 API,就只改下面代码里的两个占位:base_url 改成 http://168.144.39.53:3000/v1api_key 改成你自己的 Key。第一次测试先用 deepseek-chat 就行。

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.

选一个你熟悉的语言,然后只替换两个地方:api_keybase_url。第一次测试模型先保持 deepseek-chat 不要改。

Python · openai-python
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)
Node.js · openai npm
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
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!"}
    ]
  }'
Java · openai-java
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());
Go · openai-go
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.

将下面的模型 ID 填入 model 参数即可。

Model ID Description说明 Context上下文 Best for适合
deepseek-chat DeepSeek V3 ChatDeepSeek V3 对话 64K Recommended 推荐
deepseek-reasoner DeepSeek R1 (thinking)DeepSeek R1 推理 64K Complex reasoning复杂推理
gpt-4o OpenAI GPT-4oOpenAI GPT-4o 128K Multimodal tasks多模态任务
gpt-4o-mini OpenAI GPT-4o MiniOpenAI 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.

模型可用性受当前套餐额度限制。若额度不足,API 会返回 429 / 额度用尽错误,充值后即可恢复。

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.

通常不需要。快速路径下,AiCredits 支付后会直接给你可用 API Key,你可以立刻调用。只有当该订单回退成兑换码交付时,你才需要去控制台注册账号并手动兑换。

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.

登录控制台,首页仪表盘会显示当前剩余额度、使用历史和每个模型的 token 消耗情况。

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).

检查 Authorization 头是否为 Bearer sk-<你的key>, 以及 base_url 是否指向 http://168.144.39.53:3000/v1(不是 OpenAI 的地址)。

Can I use streaming?

支持流式输出吗?

Yes. Set stream: true in your request — it works exactly like OpenAI streaming.

支持。请求中加上 stream: true,行为与 OpenAI 完全一致。

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.

发邮件到 mrwangyanlong2026@outlook.com,24 小时内回复。

Ready to start?

准备好了?

Pick a package, get your API key, and make your first call in minutes.

选一个套餐,拿到 API Key,几分钟内跑通第一次调用。

View Packages → 查看套餐 →