تصویرBlack Forest Labs

Inpaint (FLUX Fill)

ناحیهٔ ماسک‌شده را بر اساس یک دستور متنی دوباره نقاشی می‌کند و آن را با بقیهٔ تصویر یکپارچه می‌کند.

model: "inpaint-flux-fill"

حالت‌ها

یک شناسه مدل، هر حالتی در زیر. فیلدهایی که شما ارسال می‌کنید حالت را انتخاب می‌کنند و قیمت مطابق حالت تعیین می‌شود.

حالتانتخاب شده توسطقیمت معمول
تصویر ورودی، تصویر خروجی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