Riferimento API di FLUX.1 Fill Dev LoRA
Inpainting a maschera su FLUX.1 Fill con le tue LoRA
Con una sola chiave API di PopNow chiami FLUX.1 Fill Dev LoRA dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- Black Forest Labs
- Risultato
- Immagine
- Da
- $0.042 USD per immagine
- Tempo tipico
- circa 47 s
- ID del modello
I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.
Modifica immagine
black-forest-labs/flux-1-fill-dev-lora/edit
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.042 per immagine |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | fino a 5000 caratteri | Describe what belongs in the white area of the mask, in the light and style of the rest of the picture. |
image_urlObbligatorio | string (uri) | — | — | Source image to repaint. The result keeps its aspect ratio. |
mask_urlObbligatorio | string (uri) | — | — | Black-and-white mask the size of the source: white areas are redrawn, black areas are kept. |
resolutionFacoltativo | 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_outputsFacoltativo | integer | 1 | da 1 a 4 | How many images to generate in one run, from 1 to 4. |
lorasFacoltativo | array<object> | [] | fino a 3 elementi | Up to three LoRA weight files trained for FLUX.1 dev, each with its own strength. |
guidance_scaleFacoltativo | number | 30 | da 28 a 35 | How closely the filled area follows the prompt, from 28 to 35. |
stepsFacoltativo | integer | 28 | da 1 a 50 | Denoising steps, from 1 to 50. Fewer steps return faster and a little softer. |
seedFacoltativo | integer | — | da 0 a 2147483647 | Random seed for controlled comparisons. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in image_url, mask_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
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
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
