Skip to main content
AnyAIGC

ByteDance · Doubao Seed

doubao-seed-2-0-code-preview API

Enterprise coding and frontend. From $0.4860 / 1M input tokens

Optimized for enterprise programming, with stronger code generation built on Seed 2.0's agent and vision-language capabilities. Its focus includes frontend development and multilingual coding workflows, making it a candidate for AI programming tools.

  • Unlimited concurrency
  • 300+ models · one key
  • Self-service invoices
  • Frontend development
  • Multilingual coding
  • Agent and visual foundations
  • Chat Completions

About doubao-seed-2-0-code-preview

Optimized for enterprise programming, with stronger code generation built on Seed 2.0's agent and vision-language capabilities. Its focus includes frontend development and multilingual coding workflows, making it a candidate for AI programming tools.

Model
doubao-seed-2-0-code-preview
Endpoint
/v1/chat/completions
Billing
USD / 1M tokens

Capabilities of doubao-seed-2-0-code-preview

  • Frontend development

    Generate code around interface structure, interaction requirements, and implementation details.

  • Multilingual coding

    Support code generation and development tasks across programming languages used in enterprise environments.

  • Agent and visual foundations

    Combine task execution with vision-language understanding to interpret development materials and advance coding work.

doubao-seed-2-0-code-preview API pricing

  • Pay per tokenInput and output billed separately
  • Actual usageReply length depends on the request
  • Unlimited concurrencyAvailable across this family
  • Shared balanceOne balance across 300+ models

Scroll sideways to see the full pricing table

doubao-seed-2-0-code-preview API prices (USD / 1M tokens)
Billing itemModelUnit price (USD)
Input tokens [0, 32,000]
Inputdoubao-seed-2-0-code-preview$0.4860 / 1M
Outputdoubao-seed-2-0-code-preview$2.430 / 1M
Cache hitdoubao-seed-2-0-code-preview$0.0972 / 1M
Input tokens (32,000, 128,000]
Inputdoubao-seed-2-0-code-preview$0.7290 / 1M
Outputdoubao-seed-2-0-code-preview$3.645 / 1M
Input tokens (128,000, 256,000]
Inputdoubao-seed-2-0-code-preview$1.458 / 1M
Outputdoubao-seed-2-0-code-preview$7.290 / 1M

Input tokens (32,000, 128,000]: The pricing page does not separately list cached-input pricing for this range.

Input tokens (128,000, 256,000]: The pricing page does not separately list cached-input pricing for this range.

Prices are in USD at the lowest available catalog rate, based on actual token usage after successful submission. Tiers depend on input length per request. Check the catalog for live prices.

Cost examples

Examples use first-tier text rates without cache hits or audio input; each request stays within the first input tier.

  • 100 requests

    1,000 input + 200 output tokens per call

    0.1 × $0.4860 + 0.02 × $2.430

    $0.0972

  • 1,000 requests

    1,000 input + 200 output tokens per call

    1 × $0.4860 + 0.2 × $2.430

    $0.972

  • 1,000 requests

    2,000 input + 500 output tokens per call

    2 × $0.4860 + 0.5 × $2.430

    $2.187

Where this model fits

  • Frontend

    Build interactive components

    Translate interface requirements into component code with state handling and edge cases.

  • Engineering

    Work across languages

    Draft code, explain implementations, and propose changes in business modules written in different languages.

  • Tools

    AI programming workspaces

    Integrate the model into a coding tool for requirement breakdown, generation, and iterative editing.

Access Doubao Seed through AnyAIGC

  • One key, 300+ models

    Manage usage and balance in one account, choosing models for each workload.

  • No Volcano Engine account needed

    Use the AnyAIGC endpoint without a separate Volcano Engine account.

  • Published unit rates

    Separate input, output and applicable cache rates, with per-request records in the console.

  • Unlimited concurrency

    AnyAIGC imposes no concurrency limit on this Doubao Seed family.

Integrate doubao-seed-2-0-code-preview API

  1. Create an AnyAIGC account and start with 5M free trial tokens.
  2. Create a key in the console and save it as ANYAIGC_API_KEY.
  3. Send a chat request to POST /v1/chat/completions and read the reply from its JSON response.
Python · /v1/chat/completions
import json
import os
from urllib.request import Request, urlopen

payload = {
    "model": "doubao-seed-2-0-code-preview-260215",
    "messages": [{"role": "user", "content": "Write a keyboard-accessible tab component with three panels using plain HTML, CSS, and JavaScript. Explain how state changes work."}],
    "stream": False,
}
request = Request(
    "https://anyaigc.ai/v1/chat/completions",
    data=json.dumps(payload).encode("utf-8"),
    headers={
        "Authorization": "Bearer " + os.environ["ANYAIGC_API_KEY"],
        "Content-Type": "application/json",
    },
    method="POST",
)
with urlopen(request, timeout=120) as response:
    result = json.load(response)
print(result["choices"][0]["message"]["content"])
print(result.get("usage", {}))
cURL · /v1/chat/completions
curl https://anyaigc.ai/v1/chat/completions \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "doubao-seed-2-0-code-preview-260215",
  "messages": [
    {
      "role": "user",
      "content": "Write a keyboard-accessible tab component with three panels using plain HTML, CSS, and JavaScript. Explain how state changes work."
    }
  ],
  "stream": false
}'
OpenAI SDK · /v1/chat/completions
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ANYAIGC_API_KEY"],
    base_url="https://anyaigc.ai/v1",
)
reply = client.chat.completions.create(
    model="doubao-seed-2-0-code-preview-260215",
    messages=[{"role": "user", "content": "Write a keyboard-accessible tab component with three panels using plain HTML, CSS, and JavaScript. Explain how state changes work."}],
    stream=False,
)
print(reply.choices[0].message.content)

The Python example uses the standard library; install openai for the SDK example. These non-streaming calls return choices and usage. See the Chat Completions reference for more fields.

doubao-seed-2-0-code-preview API for teams and enterprises

  • Invoices

    Issue them yourself

    Issue an invoice in the console for the amount you actually topped up, whenever you need one.

  • Dedicated support

    Customer and technical contacts

    Dedicated support and a technical contact for onboarding and troubleshooting.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

Specs and how to choose it

Volcengine Ark released doubao-seed-2-0-code-preview-260215 in February 2026 as a coding model for enterprise programming, adding stronger code ability on top of Seed 2.0's agent and vision skills, aimed at AI coding tools.

The Ark model list gives it a 256K context window, 224K max input and 128K max output, with deep thinking, text generation, multimodal understanding and tool calling; GUI tasks and structured output are not listed.

This page lists (Input tokens [0, 32,000]) Input at $0.4860 / 1M, Output at $2.430 / 1M, Cache hit at $0.0972 / 1M; other tiers are in the pricing table above.

Compared with doubao-seed-2-1-pro: Seed 2.1 Pro targets coding and agent work, adds GUI tasks and structured output, and is not on the deprecation list.

Specs come from the vendor's official documentation (docs.volcengine.com). The table on this page is the price, and the model catalog is authoritative for live rates.

doubao-seed-2-0-code-preview API FAQ

How is doubao-seed-2-0-code-preview API priced?

Input starts at $0.4860 and output at $2.430 per 1M tokens. The table lists all published tiers and applicable cache and audio rates. Check the model catalog for live prices.

How do I integrate it, and what does a call return?

Call POST /v1/chat/completions with model and messages. These non-streaming examples return JSON: read the reply from choices[0].message.content and token usage from usage. See the API reference.

Is there a concurrency limit?

AnyAIGC imposes no concurrency limit on this Doubao Seed family.

What work is this edition designed for?

Optimized for enterprise programming, with stronger code generation built on Seed 2.0's agent and vision-language capabilities. Its focus includes frontend development and multilingual coding workflows, making it a candidate for AI programming tools.

Which version is used by default? Can I use an older one?

The catalog currently lists one snapshot, used by the default examples. Evaluate its capabilities, use cases and pricing against your own inputs.

Can I use outputs commercially?

Commercial use and content rights are governed by ByteDance’s official terms. Check the relevant rights for people, trademarks and third-party material.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Bring the model into your workflow

Start with one request. Use a single key across 300+ models.