bytedance/seed-2.1-pro API

bytedance/seed-2.1-pro is a model that you can call through the ScalingTensor API. Chat models available through the ScalingTensor API.

Chat

Provider

bytedance

Billing

Per token

ScalingTensor price

From $0.8902 per 1M input tokens; output, cache and context tiers priced separately

Playground

Try bytedance/seed-2.1-pro

Edit the example parameters, add your API key and run the model here. The response and usage appear on this page.

Input

Used for this request only and never stored. Get a key

Running a request charges your wallet: From $0.8902 per 1M input tokens; output, cache and context tiers priced separately.

Output

preview

Request summary

Endpoint
POST /api/chat/completion
Model ID
bytedance/seed-2.1-pro
messages
[{"role":"user","content":"Hello"}]
max_tokens
2048

Need job lookups or the raw response? Open the full playground.

Pricing

bytedance/seed-2.1-pro API pricing

Prices come from the live catalog. There is no subscription; each request is charged to your prepaid wallet.

ScalingTensor price

Per token

Live catalog price

From $0.8902

per 1M input tokens; output, cache and context tiers priced separately

USD per 1M tokens

TierInputOutputCache readCache write1h writeImage output
base$0.890208$4.451039$0.1780416$0.890208$0.890208—
Context thresholds and full pricing rule

p = uncached input, c = output, cr = cache read, cc = cache write, cc1h = one-hour cache write, img_o = image output. len is the full input context length, including cached tokens.

tier("base", p * 0.890208 + c * 4.451039 + cr * 0.1780416 + cc * 0.890208 + cc1h * 0.890208)
Compare all model prices

Shared balance

Add credits

Top up

One wallet and one API key for every model in the catalog. Top-ups start at $10 and are paid through Stripe.

Capabilities

What you can do with bytedance/seed-2.1-pro

Parameters

Input parameters

Send model and the parameters shown below directly in the request body.

Input parameters
nametyperequireddescription
messagesobject[]Required—
stopstring[]Optional—
toolsarrayOptional—
top_pnumberOptionalMin: 0 · Max: 1
streambooleanOptionalDefault: false
max_tokensintegerOptionalMax: 262144
temperaturenumberOptionalMin: 0 · Max: 2 · Default: 1
tool_choicestringOptional—
response_formatobjectOptional—
frequency_penaltynumberOptionalMin: -2 · Max: 2
messages[].rolestringOptionalenum: ["system","user","assistant"]
messages[].contentstringOptional—

Output fields

Output fields
nametypedescription
idstringUnique identifier for the completion
objectstringObject type, e.g. "chat.completion"
modelstringModel used for the completion
choicesarrayList of completion choices
choices[].message.contentstringGenerated text content
choices[].finish_reasonstringReason the generation stopped
usage.prompt_tokensintegerNumber of tokens in the prompt
usage.completion_tokensintegerNumber of tokens in the completion
usage.total_tokensintegerTotal tokens used

API

Call bytedance/seed-2.1-pro from your code

Create a key in the console and call POST /api/chat/completion with the apiKey header, model and the example parameters. A code of 0 means success; read data.content for the response.

POST /api/chat/completion
curl --request POST 'https://restapi.scalingtensor.com/api/chat/completion' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048,
  "model": "bytedance/seed-2.1-pro"
}'
const response = await fetch("https://restapi.scalingtensor.com/api/chat/completion", {
  method: "POST",
  headers: {
    apiKey: process.env.SCALINGTENSOR_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ],
    "max_tokens": 2048,
    "model": "bytedance/seed-2.1-pro"
  }),
});

const result = await response.json();
if (!response.ok || result.code !== 0) {
  throw new Error(result.msg || `Request failed: ${response.status}`);
}
console.log(result.data); // Read content, tokensIn, tokensOut and costMicros
import os
import requests

payload = {
    "messages": [
        {
            "role": "user",
            "content": "Hello",
        },
    ],
    "max_tokens": 2048,
    "model": "bytedance/seed-2.1-pro",
}

response = requests.post(
    "https://restapi.scalingtensor.com/api/chat/completion",
    headers={"apiKey": os.environ["SCALINGTENSOR_API_KEY"]},
    json=payload,
    timeout=60,
)
result = response.json()
if result["code"] != 0:
    raise RuntimeError(result["msg"])
print(result["data"])  # Read content, tokensIn, tokensOut and costMicros

API documentation · This page as Markdown · Markdown API reference

Related models

bytedance/seed-2.1-pro API FAQ

How much does the bytedance/seed-2.1-pro API cost?

bytedance/seed-2.1-pro costs From $0.8902 per 1M input tokens; output, cache and context tiers priced separately on ScalingTensor. There is no subscription; usage is charged to your prepaid wallet.

How do I call the bytedance/seed-2.1-pro API?

Send POST /api/chat/completion with "model": "bytedance/seed-2.1-pro" and a messages array using your apiKey header. Read data.content from the successful response. Usage is reported in tokensIn, tokensOut and costMicros.

Which parameters does bytedance/seed-2.1-pro accept?

Required: messages. Optional: stop, tools, top_p, stream, max_tokens, temperature, tool_choice, response_format and frequency_penalty. The parameter table on this page describes each one.

Do I need a bytedance account to use bytedance/seed-2.1-pro?

No. You call bytedance/seed-2.1-pro with your ScalingTensor API key and pay from your ScalingTensor wallet. The same key works for every other model in the catalog.