ImejBlack Forest Labs

Inpaint (FLUX Fill)

Cat semula kawasan bertopeng daripada prompt dan campurkannya ke dalam baki imej.

model: "inpaint-flux-fill"

Mod

Satu ID model, setiap mod di bawah. Medan yang anda hantar memilih mod, dan harga mengikuti mod.

ModDipilih olehHarga biasa
Imej masuk, imej keluarimage_urlmask_url
Contoh permintaan
{
  "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

Larian sebenar

Ini ialah output sebenar alat pada imej di sebelahnya. Taman permainan di bawah membuka pada input yang sama, jadi anda boleh menjalankannya sendiri.

Inpaint (FLUX Fill): Sebelum
Sebelum
Inpaint (FLUX Fill): Selepas
Selepas

Input

Diperlukan

What to paint in the masked area.

Diperlukan

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.

Diperlukan

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

Pilihan lanjutan (3)

Tetapan penyedia di luar kawalan utama. Biarkan kosong untuk menggunakan nilai lalai model.

Pilihan

Let the model rewrite the prompt for better results.

Pilihan

File format of the result.

Pilihan

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

Hasil

Inpaint (FLUX Fill)Contoh output

Hasil sebenar daripada model ini. Jalankannya untuk melihat hasil anda di sini.

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