ImagineAlibaba

Inpaint (Qwen)

Retușaj mascat cu cost redus, puternic pe text și obiecte.

model: "inpaint-qwen"

Moduri

Un ID model, fiecare mod mai jos. Câmpurile pe care le trimi aleg modul, iar prețul urmează modul.

ModSelectat dePreț tipic
Imagine în, imagine afarăimage_urlmask_url
Exemplu de cerere
{
  "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

O execuție reală

Aceasta este rezultatul real al instrumentului pe imaginea de lângă. Terenul de joc de mai jos se deschide pe aceeași intrare, deci poți să o rulezi singur.

Inpaint (Qwen): Înainte
Înainte
Inpaint (Qwen): După
După

Intrare

Obligatoriu

What to paint in the masked area.

Obligatoriu

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.

Obligatoriu

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

Optiuni avansate (7)

Setari ale furnizorului dincolo de comenzile principale. Lasa-le goale pentru a folosi valorile implicite ale modelului.

Opțional

Faster inference at a small cost in detail.

Opțional
-

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

Opțional

What the result should avoid.

Opțional
-

Denoising steps. More is slower and can add detail.

Opțional

File format of the result.

Opțional

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

Opțional
-

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

Rezultat

Inpaint (Qwen)Exemplu de rezultat

Un rezultat real din acest model. Rulează-l pentru a vedea aici al tău.

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