Doubao Seed 2.1 Pro

Call the Doubao Seed 2.1 Pro API

Model ID doubao-seed-2.1-pro · replace <TEAMOROUTER_API_KEY> with your API Key

OpenAI-compatible

curl https://api.moyi-api.com/v1/chat/completions \
  -H "Authorization: Bearer <TEAMOROUTER_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model":"doubao-seed-2.1-pro","messages":[{"role":"user","content":"Hello"}]}'

Loading model catalog…

Back to models

About Doubao Seed 2.1 Pro

Doubao Seed 2.1 Pro is a ByteDance model. On Moyi API its model ID is doubao-seed-2.1-pro, and the same Moyi API API key works for it and every other model. Setup steps are in the API docs.

Model ID
doubao-seed-2.1-pro
Provider
ByteDance
Context window
1.05M tokens
Official list price
$0.8571 input / $4.2857 output per 1M tokens

Use the Doubao Seed 2.1 Pro API

Point the base URL at Moyi API and use doubao-seed-2.1-pro as the model name; nothing else changes. Python example:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.moyi-api.com/v1",  # the only line that changes
    api_key="<TEAMOROUTER_API_KEY>",
)
response = client.chat.completions.create(
    model="doubao-seed-2.1-pro",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Use Doubao Seed 2.1 Pro in OpenCode

OpenCode

OpenCode → Settings → Providers → Custom provider
Provider ID: teamorouter
Base URL:    https://api.moyi-api.com/v1
API key:     <your TeamoRouter API key>
Model ID:    doubao-seed-2.1-pro

Full OpenCode setup

Doubao Seed 2.1 Pro FAQ

What is the Doubao Seed 2.1 Pro API model ID?
The model ID is doubao-seed-2.1-pro. The OpenAI-compatible base URL is https://api.moyi-api.com/v1.
How do I get a Doubao Seed 2.1 Pro API key?
You don't need a ByteDance account. Sign up for Moyi API, create a key (sk-teamo-…) under API Keys in the dashboard, top up from $5, and call doubao-seed-2.1-pro — the same key also works for every other model. Create an API key.
How large is the Doubao Seed 2.1 Pro context window?
Doubao Seed 2.1 Pro has a 1.05M-token context window, with up to 262K output tokens per request.
How much does the Doubao Seed 2.1 Pro API cost?
The official list price of Doubao Seed 2.1 Pro is $0.8571 input / $4.2857 output per 1M tokens. Moyi API bills per use with no monthly fee; see the price table on this page for the current discounted price.
How do I pay for the Doubao Seed 2.1 Pro API?
New accounts start with a $0 balance. Top up from $5 by card in the Moyi API dashboard, then usage is deducted per request, with no subscription. Top up.
Can I use Doubao Seed 2.1 Pro in Cursor, Cline or Cherry Studio?
Yes. Choose the OpenAI-compatible provider, set the base URL to https://api.moyi-api.com/v1, use your Moyi API API key, and enter doubao-seed-2.1-pro as the model name.