รูปภาพAlibaba

Inpaint (Qwen)

การระบายสีแบบปกปิดที่ต้นทุนต่ำ แข็งแกร่งในข้อความและวัตถุ

model: "inpaint-qwen"

เอกสาร APIเอกสารสำหรับตัวแทน

โหมด

ID โมเดลเดียว ทุกโหมดด้านล่าง ฟิลด์ที่คุณส่งจะเลือกโหมด และราคาจะตามไปด้วยโหมด

โหมดเลือกโดยราคาทั่วไป
รูปภาพเข้า รูปภาพออกimage_urlmask_url
ตัวอย่างคำขอ
{
  "model": "inpaint-qwen",
  "input": {
    "image_url": "https://example.com/image.jpg",
    "mask_url": "https://example.com/image.jpg",
    "prompt": "a lighthouse at dusk"
  }
}
$0.030

การทำงานจริง

นี่คือผลลัพธ์จริงของเครื่องมือบนรูปภาพข้างๆ ด้านล่างจะเปิด พื้นที่ทดลอง บนอินพุตเดียวกัน เพื่อให้คุณสามารถรันได้ด้วยตัวเอง

Inpaint (Qwen): ก่อน
ก่อน
Inpaint (Qwen): หลัง
หลัง

อินพุต

จำเป็น

What to paint in the masked area.

จำเป็น

The image to work on (https URL, or an upload URL from POST /v1/uploads).. A public https URL, or an upload URL from POST /v1/uploads.

จำเป็น

White marks the area to repaint, black is kept (https URL).. A public https URL, or an upload URL from POST /v1/uploads.

ตัวเลือกขั้นสูง (7)

การตั้งค่าผู้ให้บริการเกินกว่าการควบคุมหลัก ปล่อยให้ว่างเพื่อใช้ค่าเริ่มต้นของโมเดล

ไม่บังคับ

Faster inference at a small cost in detail.

ไม่บังคับ
-

How strictly the model follows the prompt. Higher is more literal.

ไม่บังคับ

What the result should avoid.

ไม่บังคับ
-

Denoising steps. More is slower and can add detail.

ไม่บังคับ

File format of the result.

ไม่บังคับ

Random seed. The same seed and input reproduce the same result.

ไม่บังคับ
-

How far the result may move from the source image (0 keeps it, 1 ignores it).

ผลลัพธ์

Inpaint (Qwen)ตัวอย่างผลลัพธ์

ผลลัพธ์จริงจากโมเดลนี้ เรียกใช้เพื่อดูผลของคุณที่นี่

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "inpaint-qwen",
  "input": {
    "image_url": "https://assets.arteza.ai/generations/6d82f9c2-c1a0-4ad0-9b3e-96a532c1748d/babdfe77-4b1f-47a5-b168-02ca5830abb6/0.jpg",
    "mask_url": "https://assets.arteza.ai/uploads/6d82f9c2-c1a0-4ad0-9b3e-96a532c1748d/api/oqsLYVdazMWOeIzRouFbFA.png",
    "prompt": "a small red ribbon bow"
  }
}'
Inpaint (Qwen) 1Inpaint (Qwen) 2