← All guides

Doubao API guide for English-speaking developers

Doubao is ByteDance's flagship LLM family. It's fast, cheap, and strong on Chinese-language tasks — but the official console assumes a Chinese account. Here's how to call it from anywhere.

The direct-signup problem

The Volcano Engine (火山引擎) console asks for a mainland identity and payment method. Most overseas developers can't complete it. Even if you could, the API responses differ from the OpenAI format your code already uses.

Calling Doubao via a compatible gateway

Point your existing OpenAI client at a compatible base URL and set the provider to Doubao:

from openai import OpenAI
client = OpenAI(
  api_key="<your_tidelink_key>",
  base_url="https://447a931e9b6e46249e80a111415cd170.app.workbuddy.link/v1"
)
r = client.chat.completions.create(
  model="doubao",
  messages=[{"role":"user","content":"Translate: 你好世界"}]
)
print(r.choices[0].message.content)

No Volcano Engine account, no Alipay, no format rewrites. The gateway handles auth and normalization.

When Doubao is the right pick

Use it for cost-efficient general chat, Chinese↔English translation, and high-throughput classification. Pair it with a routing tier (cost / balanced / quality) so the gateway automatically shifts to Qwen or GLM when a task needs it.

Get a Doubao-ready key, free

Start with $0.7 credit →