doubao-seed-2.0-code

doubao-seed-2.0-code

ByteDance has launched a large-scale model dedicated to code, focusing on code generation, completion, interpretation, and debugging, with multilingual support and context-aware capabilities.
2026-02-14
LLM
Model capability: imageModel capability: videoModel capability: thinkingModel capability: function_call
Input:
$0.46/1M tokensstarting from
Output:
$2.29/1M tokensstarting from
Bulk order? Contact your manager for exclusive deals

API Overview

Doubao Seed 2.0 Code is a large-scale model specifically designed for code development, launched by ByteDance. Its core positioning is as a high-performance programming assistant tailored for developers and engineering scenarios. It focuses on code generation, completion, interpretation, and debugging, and features multi-language support and context-aware capabilities.

  • Code Expertise: Trained on massive open-source code and internal engineering data, it deeply understands programming syntax, design patterns, and best practices.
  • Multi-Language Coverage: Supports mainstream development languages such as Python, Java, JavaScript, TypeScript, Go, C++, and SQL, meeting the needs of full-stack development.
  • Context-Aware Generation: Can generate semantically consistent, directly runnable code snippets by taking into account the project context, such as function signatures and class structures.
  • Efficient Development Assistance: Suitable for automatic code completion, unit test generation, error diagnosis, comment generation, and technical documentation writing.

───────────────────────────────────────────────────────────────────

Core Capabilities

💻 Intelligent Code Generation

Generates well-structured, stylistically compliant, and runnable code based on natural language descriptions.

🔧 Precise Error Fixing

Identifies common compilation errors and logical defects, and provides repair suggestions or rewrite solutions.

📄 Code Interpretation and Commenting

Automatically adds Chinese or English comments to complex functions, or translates code logic into plain-language explanations.

🧪 Unit Test Generation

Automatically generates boundary test cases based on function inputs and outputs, enhancing code robustness.

Low-Latency Response

Optimizes inference paths to adapt to real-time code completion scenarios in IDEs, delivering results within milliseconds.

Playground

Log in to explore more features! Click to Log In

API Analytics

API Reference (1)

API DescriptionAPI EndpointRequest MethodStabilityParameter Description
Chat (ByteDance Doubao-Vision)
POST
Stable
View Details

API Pricing

$
ModelDescriptionContextOfficial Price302.AI Price

doubao-seed-2.0-code

[0, 32]k: The input price for cache creation is $0.46/M tokens, and the input price for cache reading is $0.091/M tokens
256000

Input$0.46 / 1M tokens
Output$2.29 / 1M tokens

Input$0.46/ 1M tokens
Output$2.29/ 1M tokens
Original Price

doubao-seed-2.0-code

[32,128]k: The input price for cache creation is $0.685/M tokens, and the input price for cache reading is $0.137/M tokens
256000

Input$0.685 / 1M tokens
Output$3.42 / 1M tokens

Input$0.685/ 1M tokens
Output$3.42/ 1M tokens
Original Price

doubao-seed-2.0-code

[128,256]k: The input price for cache creation is $1.37/M tokens, and the input price for cache reading is $0.274/M tokens
256000

Input$1.37 / 1M tokens
Output$6.85 / 1M tokens

Input$1.37/ 1M tokens
Output$6.85/ 1M tokens
Original Price