FLUX.1 Fill Dev LoRA API-Referenz
Masken-Inpainting mit FLUX.1 Fill und eigenen LoRAs
Mit einem einzigen PopNow-API-Schlüssel rufst du FLUX.1 Fill Dev LoRA aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in USD und eine Anfrage, die du direkt ins Terminal kopieren kannst.
Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.
Auf einen Blick
- Hersteller
- Black Forest Labs
- Ergebnis
- Bild
- Ab
- $0.042 USD pro Bild
- Typische Dauer
- etwa 47 s
Die Preise werden in USD angezeigt und von deinem PopNow-Guthaben abgebucht. Bei Annahme wird der Höchstbetrag reserviert, nach Abschluss der tatsächliche Verbrauch abgerechnet und der Rest freigegeben. Fehlgeschlagene Tasks kosten nichts. Ein genaues Angebot erhältst du vorab über POST /api/v1/jobs/quote.
Bild bearbeiten
black-forest-labs/flux-1-fill-dev-lora/edit
Preis
| Option | USD |
|---|---|
Standard | $0.042 pro Bild |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 5.000 Zeichen | Describe what belongs in the white area of the mask, in the light and style of the rest of the picture. |
image_urlPflicht | string (uri) | — | — | Source image to repaint. The result keeps its aspect ratio. |
mask_urlPflicht | string (uri) | — | — | Black-and-white mask the size of the source: white areas are redrawn, black areas are kept. |
resolutionOptional | string | 1k | 1k, 1.5k | Length of the output's long side: 1k is 1024 pixels, 1.5k is 1536. The source's aspect ratio is kept. |
num_outputsOptional | integer | 1 | 1 bis 4 | How many images to generate in one run, from 1 to 4. |
lorasOptional | array<object> | [] | bis zu 3 Einträge | Up to three LoRA weight files trained for FLUX.1 dev, each with its own strength. |
guidance_scaleOptional | number | 30 | 28 bis 35 | How closely the filled area follows the prompt, from 28 to 35. |
stepsOptional | integer | 28 | 1 bis 50 | Denoising steps, from 1 to 50. Fewer steps return faster and a little softer. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed for controlled comparisons. |
Beispielanfrage
Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.
Das Beispiel nutzt in image_url, mask_url Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte Assets.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "black-forest-labs/flux-1-fill-dev-lora/edit",
"input": {
"prompt": "Change the orange jacket to deep forest green and add soft golden-hour light; keep the face, pose and background unchanged",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"mask_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"num_outputs": 1
}
}'Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
