众扬汇 AI 开放平台 API 文档

seedream-v5-pro

OpenAPI Specification

文生图接口(Seedream 5 Pro):依据提示词与尺寸等参数生成图像。

请求方式:POST

接口地址

text
https://api.allyang.cn/v1/images/generations

请求头

  • Authorization(可选):鉴权头,使用控制台创建的令牌,格式为 Bearer + 令牌。(示例:Bearer {{YOUR_API_KEY}})

请求参数(application/json)

  • model(string,必填)
  • prompt(string,必填)
  • size(string,可选):取值 1024~2048(即 1k、2k)。
  • image(array,可选)
  • response_format(string,可选):返回方式,取值 url 或 b64_json,缺省 b64_json。
  • output_format(string,可选):格式支持 png、jpg。

请求示例

json
{
  "model": "seedream-v5-pro",
  "image": []
}

返回:HTTP 200 表示成功,响应体字段待补(以实测为准)。

使用提示:在售规格与单价以计费页为准(待补)。