ImageAlibaba

Inpaint (Qwen)

Lower-cost masked repainting, strong on text and objects.

model: "inpaint-qwen"

API docsDocs for agents

Modes

One model id, every mode below. The fields you send pick the mode, and the price follows the mode.

ModeSelected byTypical price
Image in, image outimage_urlmask_url
Example request
{
  "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

A real run

This is the tool's actual output on the image beside it. The playground below opens on the same input, so you can run it yourself.

Inpaint (Qwen): Before
Before
Inpaint (Qwen): After
After

Input

Required

What to paint in the masked area.

Required

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.

Required

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

Advanced options (7)

Provider settings beyond the main controls. Leave them empty to use the model's defaults.

Optional

Faster inference at a small cost in detail.

Optional
-

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

Optional

What the result should avoid.

Optional
-

Denoising steps. More is slower and can add detail.

Optional

File format of the result.

Optional

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

Optional
-

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

Result

Inpaint (Qwen)Example output

A real result from this model. Run it to see yours here.

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