seedream-5.0-pro是字節跳動釋出的最新影像創作模型,支援圖生圖,文生圖
dola-seedream-5-0-pro-260628dola-seedream-5-0-pro-260628:影像生成,含必填項、巢狀響應和虛構示例。
必填參數: model, prompt
可用參數: model, prompt, n, size, image, response_format, watermark
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
model | string | 是 | 精確型號;僅使用本頁名稱,不用顯示別名替代。 可選: dola-seedream-5-0-pro-260628 |
prompt | string | 是 | 影像描述;編輯場景應描述期望的修改。 |
n | integer | 否 | 生成張數,例子為1張。 |
size | string | 否 | 影像規格,允許值依本型號。 |
image | string | 否 | 可選參考圖URL;多圖時按型號要求傳URL陣列。 |
response_format | string | 否 | 返回形式。 可選: url |
watermark | boolean | 否 | 水印選項。 |
curl --request POST https://api.router.ai/v1/images/generations \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "dola-seedream-5-0-pro-260628",
"prompt": "A fictional blue paper boat on a plain white background.",
"size": "2K",
"response_format": "url"
}'使用參考圖和編輯指令生成修改後的圖片;支援 JSON 或檔案上傳。
必填參數: model, prompt, image
可用參數: model, prompt, image, images, image_url, n, response_format, stream, size
| 參數 | 類型 | 必填 | 說明 |
|---|---|---|---|
model | string | 是 | 必填,精確使用 dola-seedream-5-0-pro-260628。 |
prompt | string | 是 | 編輯指令,1~32000 字元;請直接說明需要修改的內容。 |
image | string | object | array | 是 | 必填參考圖。可用 HTTPS 地址、圖片 data URL、{"url":"..."}、{"image_url":"..."} 或上述元素陣列。1~10 張;與 images、image_url 三選一。 |
images | array | 否 | image 的可選別名;元素為地址、圖片 data URL 或含 url/image_url 的物件。不能同時傳 image。 |
image_url | string | object | array | 否 | image 的可選別名;不能與 image、images 同時傳入。 |
n | integer | 否 | 可選,預設 1,必須為正整數。普通編輯只支援 1 張輸出;分層選項不使用 n 請求多圖。 |
response_format | string | 否 | 可選,url 或 b64_json。具體支援和返回形式以本型號為準。 |
stream | boolean | 否 | 僅支援省略或 false;本編輯入口不提供流式響應。 |
size | string | object | 否 | 可選輸出尺寸。沿用本型號圖片生成介面的格式及檔位;此處不擴充套件型號支援範圍。 |
curl https://api.router.ai/v1/images/edits \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dola-seedream-5-0-pro-260628",
"prompt": "将示例陶瓷杯改为蓝色,保留背景。",
"image": "https://example.invalid/reference.png",
"n": 1
}'