ByteDance (Doubao) / seed-2-0-code-preview
Seed 2.0 Code stands out for Coding-focused Seed 2.0 model and 256K-token context window. It is best suited to Code generation and repository agents and large codebase analysis.
Context
256K
token
Input
$0.625
/ 1M tokens
Output
$3.75
/ 1M tokens
Quality
—
No score
Overview
Seed 2.0 Code stands out for Coding-focused Seed 2.0 model and 256K-token context window. It is best suited to Code generation and repository agents and large codebase analysis.
Tool calling
Can call tools or functions, so product flows can connect model output to backend actions.
Streaming
Supports streamed responses for chat, assistants, and interfaces that need visible incremental output.
Prompt cache
Supports prompt caching patterns for repeated context and longer production conversations.
Reasoning
Better suited for multi-step analysis, planning, and tasks that need deliberate reasoning.
Structured output
Can return machine-readable structures for extraction, automation, and application logic.
Model maker
ByteDance (Doubao)
Called through SeaLink's unified account, balance, and OpenAI-compatible API.
Protocol
OpenAI-compatible Chat Completions
Base URL: https://api.sealink.io/v1
Pricing
Light production run
100K input + 25K output
$0.1563
Higher-volume run
1M input + 250K output
$1.5625
The final charge follows generated usage and the applicable selector, such as resolution, duration, input type, or provider unit.
API
model
seed-2-0-code-previewbase_url
https://api.sealink.io/v1Auth
Bearer $SEALINK_API_KEYcurl https://api.sealink.io/v1/chat/completions \-H "Authorization: Bearer $SEALINK_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "seed-2-0-code-preview","messages": [{"role": "user", "content": "Hello."}]}'
from openai import OpenAIclient = OpenAI(base_url="https://api.sealink.io/v1", api_key="<your-sealink-key>")resp = client.chat.completions.create(model="seed-2-0-code-preview",messages=[{"role": "user", "content": "Hello."}],)print(resp.choices[0].message.content)
import OpenAI from "openai";const client = new OpenAI({baseURL: "https://api.sealink.io/v1",apiKey: process.env.SEALINK_API_KEY,});const resp = await client.chat.completions.create({model: "seed-2-0-code-preview",messages: [{ role: "user", content: "Hello." }],});console.log(resp.choices[0].message.content);