AiCredits

Quick Start

3 分钟快速接入

Follow the four steps below: pay, check your order result, then 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 会在成功页和 订单查询 页展示你的交付结果。

Model Update (2026-09-10): DeepSeek released V4.1 Flash as deepseek-flash — the new recommended model ID. The legacy deepseek-v4-flash name still works and is now served by V4.1 Flash automatically. deepseek-v4-pro stays available with unchanged billing. Nothing breaks: your API keys, credits and existing code keep working.
Prompt Caching: Repeated or similar prompt prefixes benefit from automatic caching — reducing costs for multi-turn conversations and batch processing.
Package套餐 Price价格 Tier档位 Models可用模型 Best for适合谁
Standard标准包 $9 ⚡ Flash Tier⚡ Flash 档 deepseek-flash (V4.1)仅 deepseek-flash Most popular 最受欢迎
Professional专业包 $19 💎 Pro Tier💎 Pro 档 flash + proflash + pro Best value 最划算
Scale旗舰包 $29 💎 Pro Tier💎 Pro 档 flash + proflash + pro Heavy usage重度使用

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 不要直接在浏览器里打开,它是给代码用的。

Anthropic SDK Users: Append /anthropic to the base URL to use Anthropic-style messages API. Everything else stays the same.

You only need to remember one rule: if the page shows an API Key, use it directly; if it shows a redemption code and you have a console account, redeem it in Wallet — if not, email [email protected] for a ready-to-use key.

你只要记住一条:页面给你 API Key,就直接用;页面给你兑换码,已有账号就去钱包兑换;没有账号不用注册,发邮件 [email protected],我们直接把可用 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 Login. If you don't have a console account, don't register (buyer registration is disabled) — email [email protected] and we will send you a ready-to-use API key instead.
  2. 打开 登录页。没有账号的话不用注册(买家注册已关闭)—— 发邮件到 [email protected],我们会直接把可用的 API Key 发给你。
  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:  https://api.aicreditsapi.com
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 https://api.aicreditsapi.com, and api_key becomes your actual key. Keep the model as deepseek-chat for the first test (no thinking chain, works with every client).

如果你是第一次接 API,就只改下面代码里的两个占位:base_url 改成 https://api.aicreditsapi.com,api_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_key 和 base_url。第一次测试模型先用 deepseek-chat(无思维链,兼容所有客户端)。

Python · openai-python
from openai import OpenAI

client = OpenAI(
    api_key="sk-<your-key>",
    base_url="https://api.aicreditsapi.com",
)


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: "https://api.aicreditsapi.com",
});


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 https://api.aicreditsapi.com/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!"}
    ]
  }'

Windows 一键版(单行,cmd / bash 均可直接运行):curl https://api.aicreditsapi.com/v1/chat/completions -H "Authorization: Bearer sk-<your-key>" -H "Content-Type: application/json" -d "{\"model\":\"deepseek-chat\",\"messages\":[{\"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("https://api.aicreditsapi.com")
    .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("https://api.aicreditsapi.com"),
    )

    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 access depends on your plan tier: Flash tier ($9) can use deepseek-chat (V4.1, thinking off — best for chat clients), deepseek-flash (V4.1, reasoning) and the legacy deepseek-v4-flash; Pro tier ($19/$29) unlocks deepseek-v4-pro as well — see the pricing page for tier details.

将下面的模型 ID 填入 model 参数即可。可用模型取决于套餐档位:Flash 档($9)可用 deepseek-chat(V4.1,关闭思维链,聊天客户端首选)、deepseek-flash(V4.1,推理模型)与旧名 deepseek-v4-flash;Pro 档($19/$29)额外解锁 deepseek-v4-pro,详见定价页。

Model ID Description说明 Context上下文 Best for适合
deepseek-chat V4.1 Flash with thinking off — never returns reasoning_contentV4.1 Flash,关闭思维链 — 不返回 reasoning_content 1M Best for chat apps 聊天客户端首选
deepseek-flash DeepSeek V4.1 Flash — reasoning model, also streams reasoning_contentDeepSeek V4.1 Flash — 推理模型,额外流式返回 reasoning_content 1M Recommended for API API 首选
deepseek-v4-flash Legacy ID — routed to V4.1 Flash (reasoning)旧 ID — 已路由至 V4.1 Flash(推理模型) 1M Drop-in compatibility 兼容旧代码
deepseek-v4-pro DeepSeek V4 Pro (thinking)DeepSeek V4 Pro(思维链) 1M Complex reasoning复杂推理

Model availability depends on your current plan quota. If a model is unavailable, the API returns a 429 / quota-exceeded error.

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

FAQ

My chat app shows no reply, but my credits were used

聊天客户端里看不到回复,但额度被扣了

You are most likely calling deepseek-flash or deepseek-v4-flash from a chat client. Both are reasoning models: they stream their thinking into a separate reasoning_content field before the final answer. A client that does not render that field looks empty, yet the thinking tokens are still billed. Fix: switch the model to deepseek-chat (same V4.1 Flash quality, thinking disabled), or add "reasoning_effort":"none" to your request body. A very small max_tokens can also be fully consumed by the thinking phase, leaving content empty — raise it or disable thinking.

你很可能在聊天客户端里调用了 deepseek-flash 或 deepseek-v4-flash。这两个都是推理模型:它会先把思考过程以 reasoning_content 字段流式发出,之后才输出最终答案。不渲染该字段的客户端就会一直显示空白,但思考消耗的 token 已经计费。解决办法:把模型换成 deepseek-chat(同一代 V4.1 Flash,关闭思维链),或在请求体里加 "reasoning_effort":"none"。另外 max_tokens 设得太小时,输出预算可能被思考阶段吃光,导致 content 为空 — 请调大或关闭思维链。

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. In the rare fallback case you can redeem the code with an existing console account; if you don't have one, there is no need to register — email [email protected] and we will send you a ready-to-use API key.

通常不需要。快速路径下,AiCredits 支付后会直接给你可用 API Key,你可以立刻调用。极少数兜底单可以登录已有账号去兑换;没有账号不用注册,发邮件到 [email protected],我们会直接把可用的 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 credits 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 https://api.aicreditsapi.com (not the OpenAI endpoint).

检查 Authorization 头是否为 Bearer sk-<你的key>, 以及 base_url 是否指向 https://api.aicreditsapi.com(不是 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.

去订单查询页,输入订单号(浏览器有保存,或查看邮件),即可找回兑换码。

DeepSeek is limiting its free web and app chat. Does that affect my API key?

DeepSeek 网页版 / App 开始限额了,会影响我的 API Key 吗?

No. On 16 November 2026 DeepSeek tightened its consumer product: single-message input is capped at roughly 40,000 characters, conversations idle for more than 7 days can no longer be resumed, and daily chat usage is limited. That applies to the free DeepSeek web app and mobile app only — not to the API. API access is metered per token under a separate set of rules, so the keys issued here keep working exactly as before, with no change to your balance or expiry. DeepSeek has not published a formal announcement or a timeline for lifting the limits; we watch their official status page and update this page if anything changes on the API side.

不会。2026 年 11 月 16 日起,DeepSeek 收紧的是 C 端产品:单次输入上限压缩至约 4 万字、超过 7 天不活跃的长对话不再支持续接、每日对话额度另设上限。这些只针对 DeepSeek 自家的免费网页版与 App,不适用于 API。API 采用独立的按量计费规则,在这里拿到的 Key 用法、额度与有效期都不变。官方未发布正式公告,也未给出额度恢复时间表;我们持续关注其 官方状态页, API 侧若有变化会即时更新此处。

Still stuck?

还有问题?

Use the Need Help button on any page to send us a message — we typically reply within 24 hours.

点击页面右下角的"需要帮助"按钮给我们留言,我们通常 24 小时内回复。

Ready to start?

准备好了?

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

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

View Packages → 查看套餐 →

[email protected]

💬
反馈意见 / Feedback ×