תמונהBlack Forest Labs

Inpaint (FLUX Fill)

צובע מחדש את האזור המסונן מנושא ומשלב אותו לשאר התמונה.

model: "inpaint-flux-fill"

תיעוד APIתיעוד לסוכנים

מצבים

מזהה מודל אחד, כל מצב למטה. השדות שתשלחו בוחרים את המצב, והמחיר עוקב אחרי המצב.

מצבנבחר על ידימחיר טיפוסי
תמונה פנימה, תמונה החוצה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