Skip to content

Seed Text Generation ​

Seed is ByteDance's large language model series with strong Chinese understanding and generation. It is fully OpenAI-compatible, so you can migrate existing OpenAI apps with zero code changes.

Endpoint ​

Seed provides two compatible endpoints. They behave identically — choose either:

  • OpenAI-compatible: POST $URL/v1/chat/completions
  • Volcengine native: POST $URL/api/v3/chat/completions

When using the OpenAI SDK, set base_url to either $URL/v1 or $URL/api/v3.

Supported Models ​

ModelDescription
seed-2.0-proFlagship, best overall capability
seed-2.0-liteLightweight, high cost-efficiency
seed-2.0-miniMini, extreme speed
seed-2.1-pro2.1 flagship, enhanced reasoning & long context
seed-2.1-turbo2.1 high-speed, low latency

All models also support a doubao- prefix (e.g. doubao-seed-2.0-pro); behavior is identical.

See the Console "Model Market" for more versions.

Parameters ​

ParamTypeRequiredDescription
modelstringyesModel name above
messagesarrayyesConversation messages; each has role (system/user/assistant) and content
streambooleannoStream the response, default false
temperaturenumbernoSampling temperature 0–2, default 1
top_pnumbernoNucleus sampling probability 0–1, default 1
max_tokensintegernoMax tokens to generate
presence_penaltynumbernoPresence penalty −2–2, default 0
frequency_penaltynumbernoFrequency penalty −2–2, default 0
stopstring / arraynoStop sequence(s)
response_formatobjectnoForce a specific output format (e.g. {"type":"json_object"})

Request Example ​

bash
curl $URL/v1/chat/completions \
  -H "Authorization: Bearer $YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seed-2.0-pro",
    "messages": [
      {"role": "user", "content": "Explain quantum computing in one sentence"}
    ]
  }'
python
from openai import OpenAI

client = OpenAI(api_key="YOUR_API_KEY", base_url="$URL/v1")
resp = client.chat.completions.create(
    model="seed-2.0-pro",
    messages=[{"role": "user", "content": "Explain quantum computing in one sentence"}],
)
print(resp.choices[0].message.content)
ts
import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.YOUR_API_KEY,
  baseURL: '$URL/v1',
})
const resp = await client.chat.completions.create({
  model: 'seed-2.0-pro',
  messages: [{ role: 'user', content: 'Explain quantum computing in one sentence' }],
})
console.log(resp.choices[0].message.content)

Response Fields ​

FieldTypeDescription
idstringUnique request ID
objectstringAlways chat.completion
createdintegerCreation timestamp (seconds)
modelstringModel actually used
choicesarrayCandidate completions
choices[].indexintegerCandidate index
choices[].messageobjectThe message object
choices[].message.rolestringAlways assistant
choices[].message.contentstringReply text
choices[].finish_reasonstringStop reason (stop/length/content_filter etc.)
usageobjectToken usage
usage.prompt_tokensintegerInput tokens
usage.completion_tokensintegerOutput tokens
usage.total_tokensintegerTotal tokens

Response Example ​

json
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1700000000,
  "model": "seed-2.0-pro",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Quantum computing uses superposition and entanglement of qubits to process information in parallel, beating classical computers on certain problems."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 38,
    "total_tokens": 50
  }
}

© 2026 Euno AI. All rights reserved.