bytedance/doubao-seed-2.0-code API

Use bytedance/doubao-seed-2.0-code for Language generation through one OpenAI-compatible API.

Try online · Get an API key · Read the docs

Capabilities

Model
Language
API model
bytedance/doubao-seed-2.0-code
Endpoints
openai
Parameters
context length, streaming, structured output

Current pricing

USD 3.0222 per 1M tokens

Quick start

curl https://api.seedance.nz/v1/chat/completions \
  -H "Authorization: Bearer $SEEDANCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"bytedance/doubao-seed-2.0-code","messages":[{"role":"user","content":"Describe this scene"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://api.seedance.nz/v1", api_key="$SEEDANCE_API_KEY")
  result = client.chat.completions.create(model="bytedance/doubao-seed-2.0-code", messages=[{"role":"user", "content":"Describe this scene"}])
const client = new OpenAI({ baseURL: 'https://api.seedance.nz/v1', apiKey: process.env.SEEDANCE_API_KEY });
  const result = await client.chat.completions.create({ model: 'bytedance/doubao-seed-2.0-code', messages: [{ role: 'user', content: 'Describe this scene' }] });

Frequently asked questions

How do I call this model?

Create an API key, choose the model name below, and send a request to the documented OpenAI-compatible endpoint. Final billing follows the current price and usage parameters.