惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
Cyberwarzone
Cyberwarzone
T
Tenable Blog
Security Latest
Security Latest
NISL@THU
NISL@THU
V
Vulnerabilities – Threatpost
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
W
WeLiveSecurity
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
T
Tor Project blog
H
Heimdal Security Blog
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
L
LINUX DO - 热门话题
The GitHub Blog
The GitHub Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
P
Privacy & Cybersecurity Law Blog
F
Full Disclosure
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
MyScale Blog
MyScale Blog
B
Blog RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
K
Kaspersky official blog
Attack and Defense Labs
Attack and Defense Labs
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
Hacker News - Newest:
Hacker News - Newest: "LLM"
Scott Helme
Scott Helme
The Last Watchdog
The Last Watchdog
博客园 - 【当耐特】
S
Security Affairs
The Cloudflare Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
News and Events Feed by Topic
AI
AI
H
Help Net Security
美团技术团队
T
Threatpost
Project Zero
Project Zero

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Doubao API Setup 2026: 19 ByteDance Models, $0.022/M Floor, Python in 5 Min
tokenmixai · 2026-05-15 · via DEV Community

ByteDance ships 19 active Doubao API SKUs in 2026 — chat tiers from $0.022/M output (Seed 1.6 Flash) up to $2.57/M (Seed 2.0 Pro flagship), plus four Seedream image models and four Seedance video models. All chat models share a 256K context window. Seed 2.0 and Seed 1.6 chat models support vision, tool calls, JSON output, streaming, and thinking mode. Doubao 1.5 sits on a smaller 32K context.

The honest catch: Doubao's direct API path (Volcano Engine Ark) gates registration behind a Chinese-mainland phone number and real-name verification. The OpenAI-compatible aggregator path (TokenMix) skips that gate but charges what amounts to a parity-routed price. All numbers in this guide are from the TokenMix model registry pulled 2026-05-14. The "cheapest tier" line: doubao-seed-1.6-flash at $0.022 input / $0.219 output per million tokens — about 6x cheaper output than Doubao Seed 2.0 Pro and roughly an order of magnitude cheaper than GPT-5.5.

Table of Contents


What Is Doubao and Why It Matters {#what-is-doubao}

Doubao is ByteDance's foundation-model family, served from Volcano Engine (Ark). It is the largest Chinese-origin model lineup behind a single OpenAI-compatible endpoint and currently spans four generations:

  • Seed 2.0 (released 2026-02-14): flagship, multimodal, agentic-coding focus, 256K context. Four tiers: Pro, Code, Lite, Mini.
  • Seed 1.8 (2025-12-27) and Seed 1.6 (2025-10-14): same 256K context, vision + tools + thinking mode, cheaper baseline.
  • Doubao 1.5 (2025-01-14): older 32K-context series. Cheap output floor but limited context.
  • Seedream (image) and Seedance (video): separate per-generation pricing.

The performance claim: ByteDance positions Seed 2.0 Pro as leading multimodal + agentic reasoning with state-of-the-art vision benchmarks. Cross-vendor benchmarks against Claude/GPT/Gemini have not been published with comparable rigor, so treat agentic-leadership claims as vendor-stated until independent third-parties weigh in.

The honest caveat: Doubao 1.5's $0.044/$0.088 floor pricing on Lite looks attractive but the 32K context cap excludes most modern RAG, codebase, and long-document workloads. For new builds the realistic floor is doubao-seed-1.6-flash at $0.022/$0.219.


The 19-Model Doubao Lineup {#doubao-lineup}

All prices are USD per 1M tokens. Capabilities (V = vision, T = tools, R = reasoning) reflect the TokenMix model registry as of 2026-05-14.

Chat models (12 active SKUs)

short_id Generation Input Output Context V T R Released
doubao-seed-2.0-pro Seed 2.0 $0.514 $2.57 256K 2026-02-14
doubao-seed-2.0-code Seed 2.0 $0.467 $2.34 256K 2026-02-14
doubao-seed-2.0-lite Seed 2.0 $0.088 $0.526 256K 2026-02-14
doubao-seed-2.0-mini Seed 2.0 $0.029 $0.292 256K 2026-02-14
doubao-seed-1.8 Seed 1.8 $0.117 $1.168 256K 2025-12-27
doubao-seed-1.6 Seed 1.6 $0.117 $1.168 256K 2025-10-14
doubao-seed-1.6-lite Seed 1.6 $0.044 $0.350 256K 2025-10-14
doubao-seed-1.6-flash Seed 1.6 $0.022 $0.219 256K 2025-08-27
doubao-1.5-pro 1.5 $0.117 $0.292 32K 2025-01-14
doubao-1.5-vision-pro 1.5 $0.438 $1.314 32K 2025-01-14
doubao-1.5-lite 1.5 $0.044 $0.088 32K 2025-01-14

Bold = the floor. New builds should default here.

Image and video (7 models)

short_id Type Released Notes
seedream-5.0 Image 2026-01-27 Latest text-to-image flagship
seedream-4.5 Image 2025-11-27 Previous flagship
seedream-4.0 Image 2025-08-27 Stable text-to-image
seedream-3.0-t2i Image 2025-04-14 Earlier gen
seedance-2.0 Video 2026-01-27 Current video flagship
seedance-2.0-fast Video 2026-01-27 Speed variant
seedance-1.5-pro Video 2025-12-14 Previous Pro

Image/video are priced per generation rather than per token.


Pricing Breakdown: What You Actually Pay {#pricing}

Token economics matter more than headline rates because each model uses tokens differently. Below are scenario-based monthly costs at Doubao's standard tier (uncached input baseline; Doubao does not currently expose cache-hit pricing through TokenMix).

Workload Tokens in / out Model Monthly Cost
Support chatbot 100M / 30M doubao-seed-1.6-flash $8.77
RAG with 256K context 400M / 100M doubao-seed-2.0-lite $87.80
Agentic coding assistant 500M / 100M (80% Code + 20% Pro) doubao-seed-2.0-code → Pro $476.80
2-tier smart router 1B / 200M (90% Flash + 10% Pro) flash → pro $162.02
Same workload on Seed 2.0 Pro only 1B / 200M doubao-seed-2.0-pro $1,028

Key judgment: Running everything on Seed 2.0 Pro versus a 90/10 Flash/Pro router costs ~6.3x more. Default-then-escalate is the right pattern.

Cost optimization paths:

  1. Start at doubao-seed-1.6-flash for high-volume classification, extraction, draft generation
  2. Escalate to doubao-seed-2.0-pro only when vision, 256K context, or agentic-coding benchmarks justify the 23x output-price premium
  3. Use Seed 2.0 Code (doubao-seed-2.0-code) specifically for code generation steps
  4. Skip Doubao 1.5 for new builds — 32K context kills modern RAG flows

Direct Volcano Ark vs Aggregator Access {#access-path}

Direct Volcano Ark gives the lowest theoretical per-token cost (raw vendor list price). The aggregator path removes the China-residency gate that blocks most non-Chinese developers. The right pick depends on whether your business entity is in mainland China.

Dimension Volcano Ark Direct OpenAI-Compatible Aggregator
Account requirement Volcano account + Chinese mainland phone + real-name verification Single signup, email-only
Free credits 500K-5M free tokens per model at signup Pay-as-you-go from request 1
Models Full Doubao + Seedream + Seedance catalog + Volcano-only third-party 19 active Doubao models alongside 150+ models from other providers
SDK Volcano Ark SDK or OpenAI-compatible via ark.cn-beijing.volces.com OpenAI-compatible via aggregator base_url — drop-in for any OpenAI SDK
Billing RMB invoices USD card or unified credit
Multi-region failover Manual Automatic where applicable
Where it wins Per-token cost floor, Chinese-mainland builds Anyone outside mainland China; multi-model workloads

Supported LLM Providers and Model Routing {#supported-providers}

If you are building a multi-model application, picking one provider per model family creates 5+ accounts, 5+ billing surfaces, and 5+ rate-limit dashboards. The aggregator pattern collapses this into one OpenAI-compatible endpoint.

TokenMix.ai is OpenAI-compatible and routes to 150+ models including Doubao Seed 2.0, Claude Opus 4.7, GPT-5.5, Gemini 3 Pro, DeepSeek V4, Kimi K2.6, and MiniMax M2.7 through one API key. The configuration is a single env-var change:

export OPENAI_API_KEY="tkmx-..."
export OPENAI_BASE_URL="https://api.tokenmix.ai/v1"

Enter fullscreen mode Exit fullscreen mode

Or for SDKs that take both inline:

from openai import OpenAI

client = OpenAI(
    api_key="tkmx-...",
    base_url="https://api.tokenmix.ai/v1",
)

Enter fullscreen mode Exit fullscreen mode

The same client object now calls doubao-seed-2.0-pro, gpt-5.5, claude-opus-4-7, deepseek-v4-flash, and so on by changing only the model parameter per request. That makes Doubao a first-class choice in a routing strategy rather than an isolated experiment.

For Chinese-mainland production with regulatory requirements, go direct to Volcano Ark instead.


Quick Installation Guide {#installation}

Doubao via the OpenAI-compatible aggregator path takes about 5 minutes from zero. Direct Volcano Ark setup takes longer because of real-name verification but follows the same SDK pattern once the account is approved.

# 1. Install OpenAI SDK
pip install openai

# 2. Export credentials
export OPENAI_API_KEY="tkmx-..."           # from tokenmix.ai dashboard
export OPENAI_BASE_URL="https://api.tokenmix.ai/v1"

Enter fullscreen mode Exit fullscreen mode

Cheapest tier call (doubao-seed-1.6-flash):

from openai import OpenAI
import os

client = OpenAI()  # picks up env vars

response = client.chat.completions.create(
    model="doubao-seed-1.6-flash",
    messages=[
        {"role": "user", "content": "Summarize this support ticket in two sentences: " + ticket_body}
    ],
)
print(response.choices[0].message.content)

Enter fullscreen mode Exit fullscreen mode

Flagship tier with tools (doubao-seed-2.0-pro):

response = client.chat.completions.create(
    model="doubao-seed-2.0-pro",
    messages=[{"role": "user", "content": "Plan the next 3 steps to fix this bug..."}],
    tools=[{"type": "function", "function": {
        "name": "run_tests",
        "description": "Execute the test suite",
        "parameters": {"type": "object", "properties": {}},
    }}],
)

Enter fullscreen mode Exit fullscreen mode

Vision input on Seed 2.0 (image + text):

response = client.chat.completions.create(
    model="doubao-seed-2.0-pro",
    messages=[{
        "role": "user",
        "content": [
            {"type": "text", "text": "What is in this image?"},
            {"type": "image_url", "image_url": {"url": "https://example.com/img.png"}},
        ],
    }],
)

Enter fullscreen mode Exit fullscreen mode

Streaming mode (any chat model):

stream = client.chat.completions.create(
    model="doubao-seed-1.6-flash",
    messages=[{"role": "user", "content": "Write a haiku about API latency."}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="", flush=True)

Enter fullscreen mode Exit fullscreen mode


Known Limitations and Gotchas {#limitations}

1. Doubao 1.5 is 32K context only. New RAG/coding/long-doc workloads should not target the 1.5 series despite its lower output price. The accuracy savings from being able to keep full context in one call outweigh the per-token savings.

2. Vision is not on every chat model. Doubao 1.5 non-Vision SKUs (doubao-1.5-pro, doubao-1.5-lite) do not accept image input. Confirm support_vision=true in the registry before sending multimodal payloads.

3. Model IDs are case-sensitive. Use lowercase doubao-seed-2.0-pro exactly. Doubao-Seed-2.0-Pro will return model not found.

4. max_tokens parameter required for long output. SDK defaults can cap output at 4K even when the model supports 128K max output. Pass max_tokens explicitly when you need long completions.

5. Thinking mode adds output tokens you pay for. Seed 2.0 / 1.6 thinking mode emits reasoning traces alongside the final answer. Disable it on latency-sensitive paths where users only see the final answer.

6. Tool-call protocol requires both messages in next turn. When the model emits a tool_call, you must pass back the assistant's tool_call message AND the tool_result message in the next request. Missing either yields empty responses or errors.

7. Image and video models are per-generation priced, not per-token. Seedream and Seedance pricing does not follow the input/output token model. Pull current per-call rates before integrating high-volume image or video pipelines.


When to Use Doubao (Decision Table) {#when-to-use}

Workload Start with Escalate to Avoid
Classification, extraction doubao-seed-1.6-flash doubao-seed-1.6-lite if structure fails Doubao 1.5 (context cap)
Customer support draft doubao-seed-1.6-lite doubao-seed-2.0-lite Pro for first-pass replies
RAG with 256K context doubao-seed-2.0-lite doubao-seed-2.0-pro for hard queries 32K-only models
Agentic coding agent doubao-seed-2.0-code doubao-seed-2.0-pro for planning Seed 1.6 for tool-heavy chains
Vision-heavy multimodal doubao-seed-2.0-pro Doubao 1.5 non-Vision
Long-document review doubao-seed-2.0-pro (256K) 32K-only models
Text-to-image seedream-5.0 seedream-4.5 for cost Older Seedream 3.0
Short video generation seedance-2.0-fast seedance-2.0 for quality 1.0 series

Decision heuristic: start at the cheapest tier that meets your accuracy bar, then escalate per-call only when a failing step justifies the cost. A 90% Flash + 10% Pro router beats running everything on Pro by ~84% on monthly cost.


FAQ {#faq}

What is the cheapest Doubao chat model in 2026?

doubao-seed-1.6-flash at $0.022 input / $0.219 output per million tokens. It supports vision, tools, JSON, streaming, and thinking mode, with a 256K context window. It is the realistic floor for new Doubao builds — older Doubao 1.5 Lite is cheaper on output but capped at 32K context.

Which Doubao model is best for coding?

doubao-seed-2.0-code at $0.467 input / $2.34 output per million tokens, 256K context. For agentic coding loops that mix planning and execution, route planning to doubao-seed-2.0-pro and execution to Seed 2.0 Code or Seed 1.6 Flash.

Do I need a Chinese phone number to use Doubao?

You need one to register on Volcano Ark directly. You do not need one to access Doubao through an OpenAI-compatible aggregator — those route to ByteDance upstream without exposing the verification gate to the developer.

Is Doubao OpenAI-compatible?

Yes, both directly (ark.cn-beijing.volces.com exposes an OpenAI-style endpoint) and via aggregators like TokenMix.ai (api.tokenmix.ai/v1). You can use the standard OpenAI Python SDK by changing only base_url and model.

Does Doubao Seed 2.0 support tool calls and JSON mode?

All Seed 2.0 and Seed 1.6 chat models support tool calls (function calling), JSON mode output, structured output, and streaming. Doubao 1.5 supports tools but not reasoning/thinking mode.

How does Doubao pricing compare to DeepSeek and Qwen?

DeepSeek V4-Flash ($0.14 input / $0.28 output per MTok) is roughly 73% cheaper input and 89% cheaper output than Doubao Seed 2.0 Pro. Doubao's advantage is multimodal vision + agentic-coding positioning. Qwen offers more multilingual tiers. A multi-model setup with all three through one API key is typically cheaper than committing to any single family.

Can I use Seedream image and Seedance video models the same way?

Yes — both are listed in the registry and routable through OpenAI-compatible aggregators. Pricing is per generation rather than per token, so check live rates before integrating high-volume image or video pipelines.


Author: TokenMix Research Lab | Last Updated: 2026-05-14 | Data Sources: TokenMix Model Registry, Volcano Engine Doubao, Volcano Pricing Docs | Original article: tokenmix.ai/blog/doubao-api-getting-started