doubao-seedream-5-0-pro-260628 图片生成

POSThttps://api.apizt.com/v1/images/generations在线调试 →
▼Authorization

在 Header 中添加 Authorization: Bearer YOUR_API_KEY。

通过 apizt 调用 doubao-seedream-5-0-pro-260628 的图片生成接口。示例使用最小文本请求;图生图可在同一 JSON 请求中添加 image。

协议参考:官方 API 文档。模型 ID 与网关地址使用 apizt 当前目录公布的值。

请求参数

Header 参数
Authorizationstring
必需
示例: Bearer YOUR_API_KEY
Content-Typestring
必需
示例: application/json
Body 参数 application/json
modelstring
必需
模型完整 ID。示例: doubao-seedream-5-0-pro-260628
promptstring
必需
描述需要生成或编辑的图像。
imagestring or array[string]
可选
参考图 URL 或 data:image/png;base64,...;不传时为文生图。
response_formatstring
可选
返回格式:url 或 b64_json。
watermarkboolean
可选
是否添加水印。
示例
{
  "model": "doubao-seedream-5-0-pro-260628",
  "prompt": "一只橘猫坐在窗台上,午后自然光,插画风格"
}

请求示例代码

curl --request POST 'https://api.apizt.com/v1/images/generations' \
  --header "Authorization: Bearer $tokenba_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "model": "doubao-seedream-5-0-pro-260628",
  "prompt": "一只橘猫坐在窗台上,午后自然光,插画风格"
}'
(async () => {
  const response = await fetch("https://api.apizt.com/v1/images/generations", {
    method: "POST",
    headers: {
      Authorization: "Bearer " + process.env.tokenba_API_KEY,
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
  "model": "doubao-seedream-5-0-pro-260628",
  "prompt": "一只橘猫坐在窗台上,午后自然光,插画风格"
})
  });
  console.log(response.status, await response.text());
})().catch(console.error);
import os
import requests

response = requests.post(
    'https://api.apizt.com/v1/images/generations',
    headers={"Authorization": "Bearer " + os.environ["tokenba_API_KEY"]},
    json={'model': 'doubao-seedream-5-0-pro-260628', 'prompt': '一只橘猫坐在窗台上,午后自然光,插画风格'},
    timeout=600,
)
response.raise_for_status()
print(response.json())
POST https://api.apizt.com/v1/images/generations HTTP/1.1
Authorization: Bearer {{tokenba_API_KEY}}
Content-Type: application/json

{
  "model": "doubao-seedream-5-0-pro-260628",
  "prompt": "一只橘猫坐在窗台上,午后自然光,插画风格"
}

返回响应

以下为协议结构示意,时间与结果为占位值,不是实际调用记录。

响应参数 application/json
createdinteger
必需
响应创建时间,Unix 秒级时间戳。
dataarray [object]
必需
图像结果列表。
data[].urlstring
可选
生成图像地址;请及时下载,以实际有效期为准。
data[].b64_jsonstring
可选
按返回模式提供的 Base64 图像数据。
usageobject
可选
模型返回的用量信息;字段由当前模型决定。
示例
{
  "created": 1760000000,
  "data": [
    {
      "url": "https://example.com/generated-image.png"
    }
  ]
}

示例先设置环境变量 tokenba_API_KEY。JavaScript 使用 Node.js 20+,Python 安装 requests。文件名和示例图片地址请替换为自己的值。

当前模型与版本

依据 apizt 价格页,同步于 。以下型号按目录声明的协议与本页用途筛选;不代表所有参数和功能通用。切换前请核对型号说明、令牌分组与参数差异。Gemini 原生接口需同时替换 URL 中的模型 ID。

模型 ID能力标签支持分组
gpt-image-2.5-sunburst绘画,dall-e-3格式
分组(4)

Azure-Gpt-4、Azure-Gpt-5、Openai-Gpt-1、Openai-Gpt-2

gpt-image-2.5-flare绘画,dall-e-3格式
分组(4)

Azure-Gpt-4、Azure-Gpt-5、Openai-Gpt-1、Openai-Gpt-2

gpt-image-2.5-sunburst-c绘画,dall-e-3格式
分组(3)

Gpt-Image-1、Gpt-Image-2、Gpt-Image-3

gpt-image-2.5-flare-c绘画,dall-e-3格式
分组(3)

Gpt-Image-1、Gpt-Image-2、Gpt-Image-3

gpt-image-2绘画,dall-e-3格式
分组(8)

Azure-Gpt-2、Azure-Gpt-3、Azure-Gpt-4、Azure-Gpt-5、Codex-Gpt-2、Codex-Gpt-3、Openai-Gpt-1、Openai-Gpt-2

qwen-image-3.0-pro绘画
分组(1)

Alibaba-image-2

qwen-image-3.0绘画
分组(1)

Alibaba-image-2

doubao-seedream-5-0-pro-260628绘画
分组(1)

doubao-image-1

共列入 27 个候选型号。查看完整模型、版本与接口目录。