Hình ảnhAlibaba

Inpaint (Qwen)

Vẽ lại được che giấu chi phí thấp hơn, mạnh với văn bản và đối tượng.

model: "inpaint-qwen"

Tài liệu APITài liệu dành cho agents

Các chế độ

Một ID mô hình, mọi chế độ bên dưới. Các trường bạn gửi chọn chế độ, và giá theo chế độ.

Chế độĐược chọn bằngGiá điển hình
Hình ảnh vào, hình ảnh raimage_urlmask_url
Yêu cầu ví dụ
{
  "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

Một lần chạy thực tế

Đây là kết quả thực tế của công cụ trên hình ảnh bên cạnh nó. Sân chơi dưới đây mở ra với đầu vào giống nhau, vì vậy bạn có thể chạy nó cho mình.

Inpaint (Qwen): Trước
Trước
Inpaint (Qwen): Sau
Sau

Đầu vào

Bắt buộc

What to paint in the masked area.

Bắt buộc

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.

Bắt buộc

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

Tùy chọn nâng cao (7)

Cài đặt nhà cung cấp ngoài các điều khiển chính. Để trống để sử dụng các giá trị mặc định của mô hình.

Tùy chọn

Faster inference at a small cost in detail.

Tùy chọn
-

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

Tùy chọn

What the result should avoid.

Tùy chọn
-

Denoising steps. More is slower and can add detail.

Tùy chọn

File format of the result.

Tùy chọn

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

Tùy chọn
-

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

Kết quả

Inpaint (Qwen)Kết quả mẫu

Kết quả thực từ mô hình này. Chạy để xem kết quả của bạn ở đây.

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