GambarAlibaba

Inpaint (Qwen)

Pengecatan ulang bertopeng dengan biaya lebih rendah, kuat pada teks dan objek.

model: "inpaint-qwen"

Mode

Satu ID model, setiap mode di bawah. Kolom yang Anda kirimkan memilih mode, dan harga mengikuti mode.

Mode pembuatanDipilih olehHarga khas
Gambar masuk, gambar keluarimage_urlmask_url
Contoh permintaan
{
  "model": "inpaint-qwen",
  "input": {
    "image_url": "https://example.com/image.jpg",
    "mask_url": "https://example.com/image.jpg",
    "prompt": "a lighthouse at dusk"
  }
}
$0.030

Eksekusi nyata

Ini adalah keluaran alat sebenarnya pada gambar di sebelahnya. Playground di bawah membuka dengan masukan yang sama, sehingga Anda dapat menjalankannya sendiri.

Inpaint (Qwen): Sebelum
Sebelum
Inpaint (Qwen): Sesudah
Sesudah

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.

Opsi lanjutan (7)

Pengaturan penyedia di luar kontrol utama. Biarkan kosong untuk menggunakan default model.

Opsional

Faster inference at a small cost in detail.

Opsional
-

How strictly the model follows the prompt. Higher is more literal.

Opsional

What the result should avoid.

Opsional
-

Denoising steps. More is slower and can add detail.

Opsional

File format of the result.

Opsional

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

Opsional
-

How far the result may move from the source image (0 keeps it, 1 ignores it).

Hasil

Inpaint (Qwen)Contoh output

Hasil nyata dari model ini. Jalankan 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-qwen",
  "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 (Qwen) 1Inpaint (Qwen) 2