doubao-seedance-2-0-fast-260128

火山即梦 · 视频 · 上下文 —
按 token 计费

接入信息

模型名doubao-seedance-2-0-fast-260128
OpenAI 兼容https://api.kingyunai.xyz/v1 · chat/completions

价格

计费项单价
输入¥20.79
输出¥20.79

单位:元 / 百万 tokens。按 token 计费,此处为输出 token 单价 实际扣费以控制台用量为准。

调用示例

curl

curl https://api.kingyunai.xyz/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"doubao-seedance-2-0-fast-260128","messages":[{"role":"user","content":"你好"}],"stream":true}'

Python(OpenAI SDK)

from openai import OpenAI
client = OpenAI(base_url="https://api.kingyunai.xyz/v1", api_key="sk-你的密钥")

resp = client.chat.completions.create(
    model="doubao-seedance-2-0-fast-260128",
    messages=[{"role": "user", "content": "你好"}],
    stream=True,
)
for chunk in resp:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

说明

← 返回模型索引