输出分辨率
根据已发布的 endpoint 规格,支持 1k, 1.5k, 2k。
curl -X POST https://runapi.ai/api/v1/seedream/edit_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5.5-edit",
"source_image_urls": [
"https://cdn.runapi.ai/public/samples/image.jpg"
],
"prompt": "创建一张咖啡店促销社交媒体图,粗体写上 '半价优惠',暖色调,4K。"
}'
import { SeedreamClient } from "@runapi.ai/seedream";
const client = new SeedreamClient();
const result = await client.editImage.run({
model: "seedream-5.5-edit",
source_image_urls: ["https://cdn.runapi.ai/public/samples/image.jpg"],
prompt: "创建一张咖啡店促销社交媒体图,粗体写上 '半价优惠',暖色调,4K。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/seedream/edit_image",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"seedream-5.5-edit","source_image_urls":["https://cdn.runapi.ai/public/samples/image.jpg"],"prompt":"创建一张咖啡店促销社交媒体图,粗体写上 '半价优惠',暖色调,4K。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/seedream/edit_image");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedream-5.5-edit',
'source_image_urls' => ['https://cdn.runapi.ai/public/samples/image.jpg'],
'prompt' => '创建一张咖啡店促销社交媒体图,粗体写上 \'半价优惠\',暖色调,4K。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.editImage().run({"model":"seedream-5.5-edit","source_image_urls":["https://cdn.runapi.ai/public/samples/image.jpg"],"prompt":"创建一张咖啡店促销社交媒体图,粗体写上 '半价优惠',暖色调,4K。"});
task.waitForResult();
require "runapi/seedream"
client = RunApi::Seedream::Client.new
result = client.edit_image.run(
model: "seedream-5.5-edit",
source_image_urls: ["https://cdn.runapi.ai/public/samples/image.jpg"],
prompt: "创建一张咖啡店促销社交媒体图,粗体写上 '半价优惠',暖色调,4K。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.editImage.Run({"model":"seedream-5.5-edit","source_image_urls":["https://cdn.runapi.ai/public/samples/image.jpg"],"prompt":"创建一张咖啡店促销社交媒体图,粗体写上 '半价优惠',暖色调,4K。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model seedream-5.5-edit \
--endpoint edit_image \
--wait
12 个版本可用
选择任意模型,几秒内开始生成。
| 提供商 | Bytedance |
| 模型 ID | seedream-5.5-edit |
| 模态 | 图像 |
| 任务类型 | Asynchronous |
| API 端点 | /api/v1/seedream/edit_image |
| 计费单位 | 次调用 |
| 输入参数 | aspect_ratio, background, callback_url, enable_safety_checker, model, output_format, output_resolution, prompt, source_image_urls |
| 最大分辨率 | 1k, 1.5k, 2k |
| 宽高比 | 1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9, auto |
| 输出格式 | png, jpeg |
| 目录状态 | 运行中 |
免费注册后,在控制台创建用于 seedream-5.5-edit 的 API 密钥。
向 /api/v1/seedream/edit_image 发送 POST 请求,并传入 seedream-5.5-edit 模型 ID 和参数。
轮询任务或按照回调获取已完成的 seedream-5.5-edit 结果。
根据已发布的 endpoint 规格,支持 1k, 1.5k, 2k。
可配置文档中列出的 7 个参数,包括 aspect_ratio, background, enable_safety_checker, output_format, output_resolution。
提供 1 个公开 endpoint:edit_image。
异步任务支持回调 URL,任务完成时发送通知。
promptDescription of the image to generate or edit.
backgroundOutput background mode. (auto, transparent, opaque)
aspect_ratioOutput aspect ratio, or auto to follow the source image. (1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9, auto)
callback_urlWebhook URL for asynchronous task updates.
output_formatOutput image format. Transparent backgrounds require PNG. (png, jpeg)
output_resolutionOutput resolution. (1k, 1.5k, 2k)
source_image_urlsPublic JPEG, PNG, or WebP image URLs, each at most 10 MB.
enable_safety_checkerEnable the image safety checker.
为缺少棚拍照片的电商商品自动生成场景化产品图。
快速概念化环境和角色,再进入最终美术制作。
为博客文章和专栏批量生成独特封面图和插图。
该模型暂无已验证的用户反馈。
传入 quickstart 中显示的模型 ID。
Key 级限流随使用层级伸缩。当前限制见定价页。
可以——变体只是参数,改 model 字段即可。
模型支持流式时,RunAPI 端到端流式。
在公共 GitHub 仓库提 issue 或邮件联系 support。
不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。