// Models · API key guide
Doubao API key (Volcano Ark)
Doubao models are served by Volcano Ark (Volcengine’s model platform). Create the key in the Ark console.
5 stepsofficial docs onlychecked 2026-10-26
01How to get a Doubao (Volcano Ark) API key
- Sign up / log in to Volcengine and open the Ark console.
- Go to “API Key 管理” → “创建 API Key”, choose the project it belongs to, and optionally restrict it by Model ID or IP.
- Copy the key. Keys created after 2026-09-17 12:00 (UTC+8) use a new plaintext format.
- In “开通管理”, check which models are activated and how much free quota is left.
- Call the Ark endpoint with the model ID (or endpoint ID) shown in the console.
Official key page: https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey – console labels may change; follow what the official page shows.
02Real-name, phone and credit card requirements
| Real-name / ID verification | Not needed to get the free quota; needed (plus manual activation) to keep using models after it runs out. |
|---|---|
| Phone number | A Volcengine account is required; sign-up rules are on volcengine.com. |
| Credit card / payment | Not needed for the free quota. |
03Base URL and a minimal call
https://ark.cn-beijing.volces.com/api/v3ARK_API_KEY · Example model:<模型 ID>curl
curl https://ark.cn-beijing.volces.com/api/v3/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ARK_API_KEY" \
-d '{
"model": "<模型 ID>",
"messages": [{"role": "user", "content": "你好"}]
}' Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["ARK_API_KEY"], base_url="https://ark.cn-beijing.volces.com/api/v3")
resp = client.chat.completions.create(
model="<模型 ID>",
messages=[{"role": "user", "content": "你好"}],
)
print(resp.choices[0].message.content) 04Free quota
All free AI APIs →Free inference quota just for registering, counted per model and shared under the main account; only for pay-per-token online inference. “Safe trial mode” stops service before any charge.
05Doubao (Volcano Ark) API prices
All model prices →| Model | Input / 1M tokens | Output / 1M tokens | Source |
|---|---|---|---|
Doubao-Seed-2.0-minidoubao-seed-2.0-mini | ¥0.2 | ¥2 | official · 2026-10-10 |
Doubao-Seed-2.0-litedoubao-seed-2.0-lite | ¥0.6 | ¥3.6 | official · 2026-10-10 |
Doubao-Seed-2.1-turbodoubao-seed-2.1-turbo | ¥3 | ¥15 | official · 2026-10-10 |
Doubao-Seed-Evolvingdoubao-seed-evolving | ¥6 | ¥30 | official · 2026-10-10 |
Doubao-Seed-2.1-prodoubao-seed-2.1-pro | ¥6 | ¥30 | official · 2026-10-10 |
Standard (non-batch) list prices from our price database; cheapest first, max 8 rows. Prices change – the official page wins.
06Keep your API key safe
- Up to 50 keys per main account; each key belongs to a project – use separate projects for prod and test.
- Restrict production keys to the Model IDs and server IPs they actually use.
- Keep the key in an environment variable or a secrets manager – never hard-code it, never commit it to Git, never paste it into a screenshot, chat or issue.
- Never put a long-lived key in front-end, mobile or desktop client code – anyone can extract it. Call the API from your own server.
- One key per project or environment, so a leak can be revoked without breaking everything else.
- If a key leaks, delete it in the console immediately and create a new one, then check usage and billing.
- Do not buy keys from resellers or “API relays” and do not paste your key into websites you do not trust.
07FAQ
FAQ
Where do I get a Doubao API key?
In the Volcano Ark console → API Key 管理 → 创建 API Key. The Doubao chat app account is separate from Ark.
Is the Doubao API free?
Yes, a free inference quota is given on registration (per model). After it is used up you need real-name verification and paid activation.
What is the Volcano Ark API address?
https://ark.cn-beijing.volces.com/api/v3 (Chat Completions at /chat/completions).
08Official sources
- 火山方舟 · API Key 管理 docs.volcengine.com
- 火山方舟 · 免费推理额度 docs.volcengine.com
All facts checked against these pages on 2026-10-26. If anything differs, the official page wins.