صورة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