StarSeaStarAPI
HomeModelsdoubao-seed-code

doubao-seed-code API

Call doubao-seed-code through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.

Pricing

Input$0.48 / 1M tokens  (¥3.20)
Output$2.42 / 1M tokens  (¥16.00)
Output multiplier×5.00

Prices are per 1M tokens in USD · ¥6.6 = $1 · Billed in CNY

When to use it

At $0.48 per 1M input tokens it sits below the catalogue median of $0.61 — a cost-first choice. Best for general-purpose text workloads. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.

Code

from openai import OpenAI
client = OpenAI(
  base_url="https://starseaapi.com/v1",
  api_key="sk-your-key"
)
r = client.chat.completions.create(
  model="doubao-seed-code",
  messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)

Integrations · Quickstart

Head-to-head comparisons

doubao-seed-2.1-lite vs doubao-seed-code

$0.12 vs $0.48 per 1M input

doubao-seed-2.1-pro vs doubao-seed-code

$0.91 vs $0.48 per 1M input

Capabilities

Low-cost models

16 models

OpenAI-compatible API

32 models