New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
Model/Details
Loading…
Home / Pricing / Models / doubao-seed-2-0-code-preview-260215

doubao-seed-2-0-code-preview-260215 API Pricing & Access

Doubao-Seed-2.0-Code is optimized for enterprise-level programming needs. Building on Seed 2.0's strong Agent and VLM capabilities, it significantly enhances code generation — excelling at frontend development while offering specialized optimization for the multi-language coding scenarios common in enterprise environments. Ideal for integration with AI programming tools.

Pricing by group

USD per 1M tokens. Price = base price × group ratio.

GroupInputOutputCache readAbout this group
Doubao-2$0.36$1.80$0.072higher quota. Enhanced long-context processing and tool-calling capability, for proposal drafting
Doubao-3$0.528$2.64$0.1056outstanding deep reasoning and complex multi-turn capability, for professional writing

Long-context tiers

Using the lowest-priced public group, Doubao-2, as the example (USD per 1M tokens); other groups scale by their own ratio. Ranges are token counts per request.

Input range (tokens)InputOutputCache multiplier
[0 , 32000]$0.36$1.801x
(32000 , 128000]$0.54$2.701.5x
(128000 , 256000]$1.08$5.403x

Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.

Capabilities

Provider
Doubao
Features
Conversation · Thinking · Image Recognition
API formats
OpenAI Chat Completions

Quick start

Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.

curl · /v1/chat/completions
curl https://api.openlux.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seed-2-0-code-preview-260215",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
Python · OpenAI SDK
from openai import OpenAI

client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
    model="doubao-seed-2-0-code-preview-260215",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Full parameters in the API docs

FAQ

How do I call the doubao-seed-2-0-code-preview-260215 API?

Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use doubao-seed-2-0-code-preview-260215 as the model name.

How is the doubao-seed-2-0-code-preview-260215 API billed?

Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.36 per 1M input tokens and $1.80 per 1M output tokens. Top-ups start at $1.

How is prompt caching billed for doubao-seed-2-0-code-preview-260215?

Cache hits (cache reads) cost 0.2× the input price.

Is there a Batch API?

Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.

Which API formats does doubao-seed-2-0-code-preview-260215 support?

OpenAI Chat Completions.

More

More Doubao models

  • doubao-seedream-5-0-pro-260628
  • doubao-seedance-2-5-260628
  • doubao-seedream-5-5-261028
  • doubao-seedream-5-0-260128
  • doubao-seedance-2-0-260128
  • doubao-seedance-2-5-flash-261115
  • doubao-seed-2-1-pro-260915
  • doubao-seedream-4-5-251128
  • doubao-seedance-2-0-fast-260128
  • doubao-seed-2-1-pro-260628
  • doubao-seed-2-1-turbo-260628
  • doubao-seedance-2-0-mini-260615
  • Model directory
  • All model pricing
  • Sign up and get an API key

Other languages: 中文 · 日本語 · 한국어

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |