BytePlus: Seed 2.0 Code Preview
byteplus/seed-2-0-code-preview-260328
Access Seed 2.0 Code Preview from BytePlus using Puter.js AI API.
Get Started// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain quantum computing in simple terms", {
model: "byteplus/seed-2-0-code-preview-260328"
}).then(response => {
document.body.innerHTML = response.message.content;
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "byteplus/seed-2-0-code-preview-260328"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
# pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.puter.com/puterai/openai/v1/",
api_key="YOUR_PUTER_AUTH_TOKEN",
)
response = client.chat.completions.create(
model="byteplus/seed-2-0-code-preview-260328",
messages=[
{"role": "user", "content": "Explain quantum computing in simple terms"}
],
)
print(response.choices[0].message.content)
curl https://api.puter.com/puterai/openai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PUTER_AUTH_TOKEN" \
-d '{
"model": "byteplus/seed-2-0-code-preview-260328",
"messages": [
{"role": "user", "content": "Explain quantum computing in simple terms"}
]
}'
Model Card
Seed 2.0 Code Preview is ByteDance's coding-focused model from the Seed 2.0 family, offered here through BytePlus, ByteDance's cloud AI platform. The 260328 in the id marks a dated snapshot from March 28, 2026, so behavior stays fixed as ByteDance updates the model.
It's built for agentic software work such as generating code, debugging, and repository-level tasks like reviewing and revising changes across multiple files, rather than single-line autocomplete. Alongside text, it takes image and video input, so screenshots, design mockups, or short screen recordings can be included directly in a coding request.
With a 256K context window, up to 128K output tokens, and tool calling, it fits agent pipelines that need to read a large codebase and act on it. As a preview model, it suits testing and evaluation ahead of a stable release rather than production workloads that need long-term stability.
Context Window 256K
tokens
Max Output 128K
tokens
Input Cost $0.5
per million tokens
Output Cost $3
per million tokens
Input text, image, video
modalities
Tool Use Yes
Release Date Mar 28, 2026
Model Playground
Try Seed 2.0 Code Preview instantly in your browser.
This playground uses the Puter.js AI API — no API keys or setup required.
More AI Models From BytePlus
Dola Seed 2.1 Turbo
Dola Seed 2.1 Turbo is ByteDance's faster, lower-cost variant in the Seed 2.1 family, offered internationally through BytePlus's Model Ark platform. It accepts text, image, and video input, with a 256K context window and function calling for agent workflows. On ByteDance's own benchmarks against Claude Opus 4.7, GPT-5.5, and Gemini 3.1 Pro, Turbo scores 89 on VideoMME for long video understanding and 79.2 on OVOBench for streaming video, ahead of Gemini 3.1 Pro's 86.7 and 64.1. It scores 88.0 on BeyondAIME reasoning, above Seed 2.1 Pro's 87.0. On knowledge tests like SuperGPQA it trails GPT-5.5 and Gemini. These are vendor-reported figures, not independently verified. It suits high-volume API use such as video analysis, document processing, and agent pipelines, where cost and video handling matter more than peak coding scores.
ImageDola Seedream 5.0 Pro
Dola Seedream 5.0 Pro is ByteDance's Seedream 5.0 Pro image generation and editing model, offered here through BytePlus's ModelArk API under the "Dola" branding BytePlus uses across its hosted model lineup. It generates images as independently editable layers, separating subjects, text, and background so pieces can be repositioned or swapped after generation. It supports pixel-level editing through selection points, arrows, and annotation boxes, reads color codes and material specifications, and renders text across 14 or more languages including Arabic, Korean, Thai, French, Russian, and Japanese. On Artificial Analysis's independent Text-to-Image Elo leaderboard it scores 1,283, ranking 8th overall, ahead of Black Forest Labs' FLUX.2 Max (1,233) and just behind Google's Nano Banana Pro (1,299). It fits production teams that need layered, editable output and multilingual text rather than a single flattened image.
ChatGLM-5.2
GLM-5.2 is an open-weight Mixture-of-Experts model from Zhipu AI (Z.ai), available here through BytePlus's hosted API. The model has roughly 744 billion total parameters and a 1 million token context window, and Z.ai released its weights under an MIT license. GLM-5.2 is built for coding, particularly long-horizon and agentic coding tasks. On SWE-bench Pro it scored 62.1, ahead of GPT-5.5 (58.6) and its predecessor GLM-5.1 (58.4). On the Artificial Analysis Intelligence Index it scored 51, the highest score among open-weight models at release. It suits teams building coding agents or working with large codebases who want an open-weight model, accessed here through BytePlus's API instead of self-hosting.
Frequently Asked Questions
You can access Seed 2.0 Code Preview by BytePlus through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required. You can also use it with Python or cURL via Puter's OpenAI-compatible API.
Yes, it is free if you're using it through Puter.js. With the User-Pays Model, you can add Seed 2.0 Code Preview to your app at no cost — your users pay for their own AI usage directly, making it completely free for you as a developer.
| Price per 1M tokens | |
|---|---|
| Input | $0.5 |
| Output | $3 |
Seed 2.0 Code Preview was created by BytePlus and released on Mar 28, 2026.
Seed 2.0 Code Preview supports a context window of 256K tokens. For reference, that is roughly equivalent to 512 pages of text.
Seed 2.0 Code Preview can generate up to 128K tokens in a single response.
Seed 2.0 Code Preview accepts the following input types: text, image, video. It produces: text.
Yes, Seed 2.0 Code Preview supports tool use (function calling), allowing it to interact with external tools, APIs, and data sources as part of its response flow.
Yes — the Seed 2.0 Code Preview API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Get started with Puter.js
Add Seed 2.0 Code Preview to your app without worrying about API keys or setup.
Read the Docs View Tutorials