AfbeeldingBlack Forest Labs

Inpaint (FLUX Fill)

Schildert het gemaskeerde gebied opnieuw vanuit een prompt en blend het in de rest van de afbeelding.

model: "inpaint-flux-fill"

Modi

Eén model-id, elke modus hieronder. De velden die je verzendt bepalen de modus, en de prijs volgt de modus.

ModusBepaald doorTypische prijs
Afbeelding in, afbeelding uitimage_urlmask_url
Voorbeeldverzoek
{
  "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

Een echte uitvoering

Dit is de werkelijke uitvoer van het hulpmiddel op de afbeelding ernaast. De speeltuin hieronder opent met dezelfde invoer, zodat je het zelf kunt uitproberen.

Inpaint (FLUX Fill): Voor
Voor
Inpaint (FLUX Fill): Na
Na

Invoer

Verplicht

What to paint in the masked area.

Verplicht

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.

Verplicht

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

Geavanceerde opties (3)

Providerinstellingen buiten de hoofdbedieningen. Laat ze leeg om de standaardinstellingen van het model te gebruiken.

Optioneel

Let the model rewrite the prompt for better results.

Optioneel

File format of the result.

Optioneel

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

Resultaat

Inpaint (FLUX Fill)Voorbeeld uitvoer

Een echt resultaat van dit model. Voer het uit om jouw resultaat hier te zien.

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