Alibaba Cloud: Qwen-Image-Edit-2511
qwen-image-edit-2511- 價格
- 起 $0.0122
- 模態
- 圖片
關於 Qwen-Image-Edit-2511
Qwen-Image-Edit-2511 是阿里巴巴 Qwen 團隊推出的圖像編輯模型:您只需提供一張或多張圖像以及文字指令,它就會返回編輯後的圖像。2511 版本是對早期 Qwen-Image-Edit 版本的更新,旨在解決圖像漂移、角色一致性、幾何推理和工業設計輸出等問題,並整合了社群中熱門的 LoRA 功能。權重以 Apache 2.0 授權發布。
適用場景
- 在編輯過程中保持人物或角色的可辨識度,包括包含多人的照片,開發者將此列為相較於前一版本的主要改進。
- 減少圖像漂移,確保您未要求更改的區域與原始圖像保持一致。
- 支援在單次請求中輸入多張圖像,適合將主體與背景或第二個人物進行合成。
- 根據 Hugging Face 模型卡說明,該版本在處理幾何和工業設計編輯方面的表現優於早期版本。
其他選擇建議
- 它僅能編輯現有圖像;若要僅透過文字提示詞建立圖片,請選擇文字生成圖像(text-to-image)模型。
- 它不會將圖像拆分為可編輯的圖層;Qwen-Image-Layered 才是專為該工作流程設計的模型。
- 每個請求都需要一張原始圖像和一條文字指令,模糊的指令會導致編輯結果的可預測性降低。
入門指南
建立 API 金鑰
請至 Console 建立金鑰,即可在平台上使用各類模型。
發送您的第一個請求
複製您所選語言的範例,並針對端點執行它。
影像編輯TokenLab 端點POST/v1/images/generationscurl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "operation": "image-to-image", "model": "qwen-image-edit-2511", "prompt": "A minimalist product photo of matte black headphones on a soft blue background.", "image_url": "https://example.com/source.png" }'
參數設定
影像編輯
| 參數 | 可選值與限制 | 預設值 | 說明 |
|---|---|---|---|
cfg_scale | ≥ 1, ≤ 20 | 未提供 | Optional guidance control from 1 to 20 in increments of 0.01. cfg_scale requires a compatible delivery path and targets the same control as guidance_scale on that path. If both are supplied, their values must be equal. No shared omitted-value default is asserted. |
guidance_scale | ≥ 1, ≤ 20 | 未提供 | Optional guidance scale from 1 to 20. Use increments of 0.01 for shared delivery-path coverage. If cfg_scale is also supplied, use the same value. The omitted default varies by delivery path; one path documents 4.5 while the other does not declare a fixed default. |
height | ≥ 512, ≤ 2048 | 1024 | height is an integer pixel dimension from 512 to 2048; default 1024. Direct width or height requires a compatible delivery path. Use size=WIDTHxHEIGHT for a size string. |
image | 未提供 | 未提供 | Multipart image file input. Repeat image or image[] for multiple files. All image aliases are combined into one ordered list. The shared declared input range is 1 to 3 images; see the images note for larger input lists. |
image_url | 未提供 | 未提供 | One source-image URL. All image aliases are combined into one ordered list. The shared declared input range is 1 to 3 images; see the images note for larger input lists. |
image_urls | 輸入數量:≥ 1, ≤ 16 | 未提供 | A list of source-image URLs, at most 16 entries in that public array. All image aliases are combined into one ordered list. The shared declared input range is 1 to 3 images; see the images note for larger input lists. |
images | 輸入數量:≥ 1 | 未提供 | Images are combined into one ordered input list. Both delivery paths declare support for 1 to 3 images. One path has a maximum of 3; the other official schema gives no maximum. The public image_urls array accepts up to 16 entries, an additional image_url adds one more input, and multipart uploads accept up to 16 files. A larger model-wide maximum has not been verified. |
n | 1 | 1 | Use an integer. |
negative_prompt | 未提供 | 未提供 | Optional negative prompt, at most 5000 characters at the public endpoint. Non-empty values from 1 to 5000 characters are accepted by both declared paths. An explicit empty string requires a compatible path. Omit the field when no negative guidance is needed. |
operation | 未提供 | 未提供 | 未提供 |
output_format | png, jpeg, webp | 未提供 | Use png, jpeg, or webp. These explicit encodings are available on all declared delivery paths. The omitted encoding varies between PNG and JPEG; set output_format explicitly when it matters. The public endpoint does not accept jpg. |
prompt | 未提供 | 未提供 | Required edit instruction, 1 to 32000 characters. The public endpoint limits the prompt to 32000 characters; both registered delivery mappings accept that declared range. |
seed | 未提供 | 未提供 | Optional safe integer seed. The shared declared range is 0 to 9007199254740991; a compatible path also accepts negative safe integers. Omit seed for a random result. No identical result is promised across different delivery paths. |
size | 未提供 | 1024x1024 | Use WIDTHxHEIGHT in pixels. The width and height constraints also apply to size. |
steps | ≥ 1, ≤ 50 | 未提供 | Use an integer from 1 to 50. Values 1 to 4 require a compatible delivery path. The omitted default varies between 28 and 30, so set steps explicitly when it matters. |
width | ≥ 512, ≤ 2048 | 1024 | width is an integer pixel dimension from 512 to 2048; default 1024. Direct width or height requires a compatible delivery path. Use size=WIDTHxHEIGHT for a size string. |
Fields outside this contract are rejected.
定價
Verified 價格用於 Verified,多數模型更便宜;Official 價格是模型廠商公布的價格,用於更穩定的 Official。Auto 按最終完成請求的線路計價。
影像編輯
每張圖片- Official 價格
- $0.0122
- Verified 價格
- —
- 折扣
- —
| Official 價格每張圖片 | Verified 價格每張圖片 | 折扣 | |
|---|---|---|---|
| 影像編輯 | $0.0122 | — | — |
使用量與活動
成功率是請求完成的比例;延遲是一次完整回應所需的時間,P95 表示 95% 的請求在該時間內完成。
用量與可用性
過去 24 小時- 請求數
- 成功率
- P95 延遲
- 總 Token 用量
資料基於彙總的使用者請求,不包含狀態檢查。
直接在 Console 裡試
在 Console 中開啟 Qwen-Image-Edit-2511,並準備好編輯或發送提示詞。
協助我使用 qwen-image-edit-2511 透過 /v1/images/edits 執行 image-edit 建立圖像,並顯示結果、成本與相關限制。
應用情境
團體照修圖
在包含多人的照片中更改服裝、背景或光影,同時確保每張臉孔在不同影格間保持可辨識度。
產品與工業設計變體
根據文字指令重新為產品渲染圖上色、更換材質或調整零件形狀,然後並排比較不同變體。
角色一致性組合
將同一個插畫或攝影角色置入新的姿勢與場景中,使一系列圖像看起來像是同一組角色。
多圖合成
同時提供人物圖像與場景圖像,並要求將該人物置入場景中,且光影效果相符。
提示詞範例
將第一張圖中的夾克改為深綠色羊毛材質,並保持臉部、姿勢和背景完全不變。
將圖像 1 中的人物放入圖像 2 的廚房中,站在櫃檯旁,並呈現來自左側的自然窗光。
將這張檯燈草圖轉變為白色背景上的霧面黑色金屬產品渲染圖,並保持相同的拍攝角度。
FAQ
Qwen-Image-Edit-2511 有什麼功能?
它將文字指令應用於一張或多張輸入圖像,並返回編輯後的結果。典型的指令包括更改服裝、背景、顏色、物件或風格,同時保持圖片其餘部分不變。這是一個編輯模型,因此每個請求至少需要一張原始圖像。
與早期的 Qwen-Image-Edit 版本相比,2511 版本有哪些新功能?
阿里巴巴列出的改進包括:減少圖像漂移、提升單一主體與多人照片的角色一致性、內建以往需要 LoRA 外掛才能實現的功能、更強的工業設計生成能力,以及改進的幾何推理。因此,相同的指令應能更精準地僅改變目標區域。
它能同時使用多張參考圖像進行編輯嗎?
可以。該模型支援多張輸入圖像搭配文字提示詞,因此您可以在指令中將它們稱為圖像 1、圖像 2 等。這對於將主體置入另一個場景或將兩個人物合併在同一個畫面中非常有用。
Qwen-Image-Edit-2511 是開源的嗎?
Qwen 團隊在 Hugging Face 上以 Apache 2.0 授權發布了權重,允許商業用途。透過 API 執行該模型意味著您無需自行託管模型或提供 GPU。
它與 Qwen-Image-Layered 有何不同?
Edit-2511 根據指令在原處修改像素。而 Qwen-Image-Layered 則是將圖像拆分為獨立的 RGBA 圖層,讓您可以分別移動、調整大小或重新上色。若需進行一次性修改,請使用 Edit-2511;若需重新排列設計中的各個部分,請使用 Layered。
Qwen-Image-Edit-2511 的費用是多少?
在 TokenLab 上,Qwen-Image-Edit-2511 價格為 $0.0122 每張圖片。完整明細見上方價格表。 價格因計費單位、規格和用量而異。請在模型的詳細定價中比較相同條件下的費率;單一費率不代表總價。
Qwen-Image-Edit-2511 應該使用哪一個端點?
請使用 https://api.tokenlab.sh/v1/images/edits 進行 Qwen-Image-Edit-2511 的呼叫。下方的請求範例展示了對應的程式碼格式。
Qwen-Image-Edit-2511 支援哪些操作?
Qwen-Image-Edit-2511 支援 影像編輯。請在上方選擇一項操作以查看其端點與請求範例。
比較 Qwen-Image-Edit-2511
來源
更新於 2026年10月2日