รูปภาพBlack Forest Labs

Inpaint (FLUX Fill)

ระบายสีพื้นที่ที่ปกปิดจากข้อความค้น และผสมเข้ากับส่วนที่เหลือของรูปภาพ

model: "inpaint-flux-fill"

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

โหมด

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

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

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

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

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

อินพุต

จำเป็น

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.

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

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

ไม่บังคับ

Let the model rewrite the prompt for better results.

ไม่บังคับ

File format of the result.

ไม่บังคับ

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

ผลลัพธ์

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

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

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "inpaint-flux-fill",
  "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 (FLUX Fill) 1Inpaint (FLUX Fill) 2