§01
Code sample
Replace sk-... with the API key from your console.
curl https://api.macloudai.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "doubao-seed-character-260628", "messages": [{"role": "user", "content": "Halo"}]}'
from openai import OpenAI
client = OpenAI(
base_url="https://api.macloudai.com/v1",
api_key="sk-...",
)
r = client.chat.completions.create(
model="doubao-seed-character-260628",
messages=[{"role": "user", "content": "Hi! Who are you?"}],
)
print(r.choices[0].message.content)
Model name: doubao-seed-character-260628Full docs →
§02
What it costs, roughly
Estimated from the prices above. Actual charges follow each call's tokens.
| 1 chat2.000 in + 800 out | Rp 43 |
| 100 chats200.000 in + 80.000 out | Rp 4.300 |
| Read 1 million tokens (≈ 1,500 pages of text)1.000.000 in | Rp 7.166 |
| A minimum Rp 50.000 top-up coversestimated per chat | ≈ 1.162 chats |
§03
Other 豆包 models
- Doubao Seed 2.1 ProRp 27.470 / Rp 137.946
- Doubao Seed 2.0 ProRp 29.858 / Rp 149.292
- Doubao Seed 2.1 TurboRp 13.735 / Rp 69.271
- Doubao Seed EvolvingRp 35.830 / Rp 179.150
§04
FAQ
Q1How much does the Doubao Companion API cost?
Input Rp 7.166 and output Rp 35.830 per 1 million tokens. A typical chat costs about Rp 43.
Q2How do I use Doubao Companion in Indonesia?
Sign up, top up in Rupiah by QRIS or bank transfer, create an API key, set the base URL to https://api.macloudai.com/v1 and model to doubao-seed-character-260628.
Q3Do I need a credit card?
No. You pay in Rupiah by QRIS or bank transfer. That is the whole point of this service.