跳至內容

Qwen Image Edit Plus Lora Gallery · Add Background

整合

模型 id qwen-image-edit-plus-lora-gallery/add-background
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/qwen-image-edit-plus-lora-gallery/add-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此請求: ≈$0.035 35 API 點數 · ≈ ₽3.76 在此頁面執行

取得 API 金鑰
Alibaba · 圖像

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

預設 Remove white backgrou...

物件白色背景的替代環境,以所需場景或背景描述;模型會移除白色區域並插入該環境。

•必填 image_urls
拖放檔案,或

識別要編輯之圖像的 URL。建議使用白色或其他乾淨的圖像背景。

image_size

覆寫輸出尺寸;未提供時,生成圖像會沿用最後一張輸入圖像的大小。

num_images 預設 1

要產生的圖像數量。

進階 negative_prompt · acceleration · output_format · guidance_scale · num_inference_steps · lora_scale · seed · enable_safety_checker
預設

生成期間使用的負面提示詞。

acceleration 預設 regular

圖像生成加速設定。選擇 'regular' 可在速度與品質間取得平衡。

output_format 預設 png

結果圖像的格式。

預設 1

使用 CFG 比例控制提示詞遵循程度,其中 CFG 代表 Classifier Free Guidance。

預設 6

要執行的推論步數。

預設 1

LoRA 貢獻的強度,透過縮放 LoRA 模型進行調整。

可透過保持提示詞與種子不變來重現結果的隨機生成種子。

POST /run/qwen-image-edit-plus-lora-gallery/add-background?wait=20 報價 → $0.035
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/qwen-image-edit-plus-lora-gallery/add-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Qwen Image Edit Plus Lora Gallery · Add Background

用於替換乾淨或白色背景的預設 LoRA。提供 `image_urls`,並在 `prompt` 中描述所需環境。低步驟預設值(6 個步驟、`guidance_scale` 1)及 `lora_scale` 0 到 4 可用於調整。每次呼叫最多 4 張 png、jpeg 或 webp 影像。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
image_urls必填 images
類型url[] · image
識別要編輯之圖像的 URL。建議使用白色或其他乾淨的圖像背景。
image_size選填
類型object
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
覆寫輸出尺寸;未提供時,生成圖像會沿用最後一張輸入圖像的大小。
guidance_scale選填
類型number
預設值1
0 – 20
使用 CFG 比例控制提示詞遵循程度,其中 CFG 代表 Classifier Free Guidance。
num_inference_steps選填
類型integer
預設值6
2 – 50
要執行的推論步數。
acceleration選填
類型enum
預設值regular
noneregular
圖像生成加速設定。選擇 'regular' 可在速度與品質間取得平衡。
negative_prompt選填
類型string
預設值
生成期間使用的負面提示詞。
seed選填
類型integer | null
可透過保持提示詞與種子不變來重現結果的隨機生成種子。
enable_safety_checker選填
類型boolean
預設值true
生成圖像安全檢查切換;只有經授權的帳戶可以停用。未授權請求仍必須進行檢查。
output_format選填
類型enum
預設值png
pngjpegwebp
結果圖像的格式。
num_images選填 num_outputs
類型integer
預設值1
1 – 4
要產生的圖像數量。
prompt選填
類型string
預設值Remove white background and add a realistic scene behind the object
物件白色背景的替代環境,以所需場景或背景描述;模型會移除白色區域並插入該環境。
lora_scale選填
類型number
預設值1
0 – 4
LoRA 貢獻的強度,透過縮放 LoRA 模型進行調整。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "qwen-image-edit-plus-lora-gallery/add-background",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 35,
    "usd": "0.035",
    "charged": 35,
    "refunded": 0
  },
  "input": {
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
images
array of object {url, content_type, file_name, file_size, width, height}透過生成或編輯產生的圖像。
seed
integer生成期間使用的種子值。

更多模型:圖像編輯

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/qwen-image-edit-plus-lora-gallery/add-background.md. 所有模型與指南: https://doitong.com/developers/llms.txt