이미지Alibaba

Inpaint (Qwen)

저비용 마스크 재칠하기, 텍스트와 객체에 강함.

model: "inpaint-qwen"

API 문서에이전트 문서

모드

하나의 모델 ID, 아래의 모든 모드. 전송하는 필드가 모드를 선택하고, 가격은 모드에 따릅니다.

모드선택 기준일반 가격
이미지 입력, 이미지 출력image_urlmask_url
요청 예시
{
  "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

실제 실행

이것은 옆 이미지에 대한 도구의 실제 출력입니다. 아래 플레이그라운드는 같은 입력으로 열리므로 직접 실행해볼 수 있습니다.

Inpaint (Qwen): 전
전
Inpaint (Qwen): 후
후

입력

필수

What to paint in the masked area.

필수

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.

필수

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

고급 옵션 (7)

주요 컨트롤 이상의 공급자 설정. 모델의 기본값을 사용하려면 비워두세요.

선택사항

Faster inference at a small cost in detail.

선택사항
-

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

선택사항

What the result should avoid.

선택사항
-

Denoising steps. More is slower and can add detail.

선택사항

File format of the result.

선택사항

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

선택사항
-

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

결과

Inpaint (Qwen)예시 결과물

이 모델의 실제 결과입니다. 실행하여 여기서 당신의 결과를 확인하세요.

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