Seedream 5.0 Pro

Seedream 5.0 Pro 是一款图像生成与编辑模型,支持文生图、使用 1 至 10 张参考图片进行创作、1K 与 2K 清晰度档位以及精确宽高尺寸。它适合产品视觉、品牌素材、角色与风格参考、多图合成、广告主图和需要严格画布规格的设计工作流。你可以在试验场中调整生成或编辑方式、参考图片、尺寸、清晰度和输出格式,在正式接入前用真实提示词比较主体一致性、细节质量、指令遵循、速度与成本。具体可用能力与参数范围以当前页面为准。

A glass-and-timber botanical pavilion in an urban courtyard after rain
模型代码
seedream-5.0-pro
供应商
ByteDance
API 端点
/v1/images/generations
计费
Reference inputs: 10 images (first free) | 人民币 0.18 元 | {"input_images":{"eq":10}}
更新时间
2026-11-12

能力

  • 通过当前公开端点生成图片
  • 实时 Schema 提供时支持图片编辑或参考图控制
  • 当前参数包括 prompt, image, size

限制

  • 模型能力与参数范围可能更新,生产环境应锁定并验证使用的参数组合
  • 未出现在实时 Request Schema 中的参数不应假定可用
  • 异步任务需要处理轮询、失败、超时和内容安全状态

典型场景

  • 产品原型和自动化内容工作流
  • 批量媒体生成与程序化创作
  • 需要统一鉴权、计费和调用记录的多模型应用

价格与计费示例

  • Reference inputs: 10 images (first free) | 人民币 0.18 元 | {"input_images":{"eq":10}}
  • Reference inputs: 2 images (first free) | 人民币 0.02 元 | {"input_images":{"eq":2}}
  • Reference inputs: 3 images (first free) | 人民币 0.04 元 | {"input_images":{"eq":3}}
  • Reference inputs: 4 images (first free) | 人民币 0.06 元 | {"input_images":{"eq":4}}
  • Reference inputs: 5 images (first free) | 人民币 0.08 元 | {"input_images":{"eq":5}}
  • Reference inputs: 6 images (first free) | 人民币 0.1 元 | {"input_images":{"eq":6}}
  • Reference inputs: 7 images (first free) | 人民币 0.12 元 | {"input_images":{"eq":7}}
  • Reference inputs: 8 images (first free) | 人民币 0.14 元 | {"input_images":{"eq":8}}
  • Reference inputs: 9 images (first free) | 人民币 0.16 元 | {"input_images":{"eq":9}}
  • image_output_high | 人民币 0.6 元 / 张 | {"output_image_pixels":{"gt":2610000}}
  • image_output_low | 人民币 0.3 元 / 张 | {"output_image_pixels":{"lte":2610000}}

请求参数

参数类型必填默认值可选值
modelstring是
prompttextarea是
imageasset_list否
sizesize是2K1K, 2K
aspect_ratioselect否16:91:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9
output_formatselect否jpegjpeg, png
response_formatselect否urlurl, b64_json
watermarkboolean否true

API 调用示例

cURL

curl -X POST 'https://api.uniai.tv/v1/images/generations' \
  -H 'Authorization: Bearer $UNIALL_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"aspect_ratio":"16:9","model":"seedream-5.0-pro","output_format":"jpeg","prompt":"Describe the output you want","response_format":"url","size":"2K","watermark":true}'

Python

import json
import requests

payload = json.loads(r'''{"aspect_ratio":"16:9","model":"seedream-5.0-pro","output_format":"jpeg","prompt":"Describe the output you want","response_format":"url","size":"2K","watermark":true}''')
response = requests.post(
    "https://api.uniai.tv/v1/images/generations",
    headers={"Authorization": "Bearer " + UNIALL_API_KEY},
    json=payload,
)
response.raise_for_status()
result = response.json()

JavaScript

const response = await fetch("https://api.uniai.tv/v1/images/generations", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.UNIALL_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"aspect_ratio":"16:9","model":"seedream-5.0-pro","output_format":"jpeg","prompt":"Describe the output you want","response_format":"url","size":"2K","watermark":true}),
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();

常见问题

seedream-5.0-pro 的 API 端点是什么?

端点根据当前模型能力和 Request Schema 自动解析,并显示在本页 API 区域。

seedream-5.0-pro 如何计费?

价格区域直接读取当前结构化计费配置;改价后无需重写本文。

可以使用 Python 调用吗?

可以。本页示例使用当前端点和原始模型代码标识。

是否提供 JavaScript 和 cURL 示例?

提供。三种示例共享同一实时请求结构。

支持哪些分辨率、时长或参考图参数?

支持范围取决于当前 Request Schema,未显示的字段不应假定可用。

生产环境接入时要注意什么?

请验证参数、超时、错误处理和异步生成任务状态,并在模型更新后重新运行小范围测试。