ChinaCodeAgenticText

Explore Seed2.0-Code

Work with ByteDance Seed's coding model for software development, code reasoning, debugging, refactoring, and agentic tool use. Use the playground to give Seed2.0-Code a representative input and review its output. Adjust the available settings to shape the result for your task.

Model

doubao-seed-code

Input

Configure your request

Passed directly as the hosted chat-completions messages array.

Optional OpenAI-compatible tool definitions.

Documentation

Seed2.0-Code field reference

Use this reference to understand how every field in the playground changes the request sent to doubao-seed-code.

messages

Required

Type: JSON array

The conversation sent to the chat model in chronological order. Each JSON item contains a role and its text content.

tools

Optional

Type: JSON array

Default: None

Defines functions the model is allowed to request, including each function’s name, purpose, and JSON parameter schema. Supplying a tool does not execute it—the application must run the requested function and return its result to the model.

Stream response

Optional

Type: Boolean

Default: On

Sends small chunks as the model generates them, allowing the interface to display the beginning of a response sooner. It changes delivery timing rather than model quality; disable it when the client needs one complete response object.

Thinking mode

Optional

Type: String

Default: auto

Values: Auto, Enabled, Disabled

Chooses how the model handles internal reasoning. Auto lets it decide based on task difficulty, Enabled favors deliberate multi-step work, and Disabled prioritizes a faster direct answer; reasoning may use more tokens and time.

Temperature

Optional

Type: Number

Default: 0.7

Range: 0–2

Adjusts how strongly the model favors its most likely next token. Lower values produce more focused and repeatable output, while higher values allow less-likely choices and increase variety; it only has an effect when sampling is enabled.

Top P

Optional

Type: Number

Default: 0.7

Range: 0–1

Limits sampling to the smallest set of likely tokens whose probabilities add up to this value. Lower settings make output more focused, while a value near 1 keeps more alternatives available; it only affects sampled generation.

Maximum output tokens

Optional

Type: Integer

Default: 8192

Range: 1–Unbounded

Caps the length of the generated response in tokens, which are pieces of words rather than whole words. The model can stop naturally before the limit, but a value that is too low may cut off the answer and a high value can increase latency and cost.

Seed

Optional

Type: Integer

Default: None

Range: 0–Unbounded

Initializes the model’s random-number generator. Reusing the same seed with identical model settings usually reproduces the same output, while changing it explores a different variation; exact reproducibility can still depend on hardware and implementation.

Stop sequences

Optional

Type: Text list

Default: None

Supplies one or more literal delimiters that stop generation when matched. The match is sensitive to exact spelling, spacing, and capitalization, so use distinctive sequences that are unlikely to appear naturally in the response.

Response format

Optional

Type: String

Default: text

Values: Text, JSON object

Chooses between an unrestricted natural-language response and a syntactically valid JSON object. When selecting JSON, explicitly describe the desired keys and mention JSON in the prompt so the model knows what structure to produce.

Tool choice

Optional

Type: String

Default: auto

Values: Auto, None, Required

Determines how the model uses the supplied tool definitions. Auto lets it choose between answering and calling a tool, None forbids tool calls, and Required forces a tool call even if the model could answer directly.

Parallel tool calls

Optional

Type: Boolean

Default: On

Lets the model issue multiple tool calls together when they do not depend on one another, such as fetching weather for several cities. Disable it when tools must run sequentially or the client can process only one call at a time.