Qwen 2.1: โปรแกรมแก้ไขรูปภาพ AI

Edit and recombine up to 10 images with Qwen 2.1 Image to Image. Optional inpainting mask for precise local edits. Try free — pay per generation. Qwen 2.1 Image to Image edits and recombines up to 10 reference images from a text prompt, with an optional inpainting mask for precise local edits.

Interactive model controls

Qwen 2.1 Image to Image edits and recombines up to 10 reference images from a text prompt, with an optional inpainting mask for precise local edits.

📝

ภาพรวม

เกี่ยวกับรุ่นนี้

Qwen 2.1 Image to Image edits, restyles, and recombines up to 10 reference images from a single text prompt, preserving identity and composition where you want it kept. An optional inpainting mask switches the request into local-edit mode, changing only the white-marked region of one reference image while leaving the rest untouched. For pure text-to-image generation, see Qwen 2.1 Text to Image; for Alibaba's newer generation, see Qwen 3.0 Image to Image.

1Product Restyling: Swap colorways, materials, or backgrounds on an existing product photo while keeping its shape and layout.
2Multi-Image Composition: Combine elements from up to 10 reference images into a single coherent scene.
3Local Inpainting: Use a mask to regenerate only a specific object or area (e.g. a poster on a wall) while preserving everything else pixel-for-pixel.
4Character & Style Consistency: Carry a subject's appearance across new scenes and outfits from a single reference set.
5Batch Creative Variations: Generate several edited takes of the same base image by varying only the prompt and seed.
💰

ราคาและความคุ้มค่า

การวิเคราะห์ต้นทุน

muapiapp$0.03 (1K) / $0.05 (2K)

Flat per-image pricing regardless of how many reference images are supplied.

Fal.aiไม่พร้อมใช้งาน

Qwen 2.1 is not currently listed on Fal.ai.

Replicateไม่พร้อมใช้งาน

Qwen 2.1 is not currently listed on Replicate.

** ราคาของคู่แข่งประเมินโดยพิจารณาจากสถาปัตยกรรมโมเดลและระดับการใช้งานที่คล้ายคลึงกัน

⚙️

รายละเอียดทางเทคนิค

สคีมาการกำหนดค่า

พร้อมท์string

The prompt describing the result you want. When mask_url is supplied, describe what should be generated inside the white area of the mask.

ค่าเริ่มต้นReplace the backpack in the first image with the colour scheme from the second image, and leave everything else unchanged
ป้อนรูปภาพarray

Reference images, given as an array of 1 to 10 URLs. Order matters when the prompt refers to 'the first image', 'the second image'.

ค่าเริ่มต้นhttps://d3adwkbyhxyrtq.cloudfront.net/ai-images/186/712345784292/4a8c5c70-abcc-4920-873e-b0e219986453.jpg
URL มาสก์string

Inpainting mask (white = area to change, black = kept unchanged) that switches the request into local-edit mode. Must be used with exactly one reference image.

ค่าเริ่มต้น-
อัตราส่วนภาพอีนัม (10 ตัวเลือก)

Output aspect ratio. Defaults to the first reference image's ratio. Ignored in local-edit mode.

ค่าเริ่มต้นauto
ความละเอียดอีนัม (2 ตัวเลือก)

Output resolution tier. 1K is the faster option; 2K produces four times the pixels and takes longer.

ค่าเริ่มต้น1K
Backgroundอีนัม (2 ตัวเลือก)

Background type. Transparent outputs a PNG or WebP with a real alpha channel and cannot be used with JPEG.

ค่าเริ่มต้นopaque
รูปแบบเอาต์พุตอีนัม (3 ตัวเลือก)

Output image format. jpeg has no alpha channel and cannot be combined with a transparent background.

ค่าเริ่มต้นpng
Enhance Promptboolean

Rewrites the prompt into a fuller scene description before generating, which noticeably improves quality. Ignored in local-edit mode.

ค่าเริ่มต้นtrue
เมล็ดพันธุ์integer

The random seed. Omit it to generate with a random seed.

ค่าเริ่มต้น-
📖

คู่มือการใช้งาน

เอกสารสำหรับนักพัฒนา

How to Use Qwen 2.1 Image to Image API

  1. Provide reference images: pass 1 to 10 URLs as images_list; order matters when your prompt says "the first image", "the second image", etc.
  2. Describe the edit: write a prompt describing the transformation you want.
  3. Optional — local edit: supply mask_url (white = change, black = keep) together with exactly one reference image to edit only that masked region.
  4. Submit the task:
curl -X POST "https://api.muapi.ai/api/v1/qwen2-1-image-to-image" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_list": ["https://example.com/a.jpg", "https://example.com/b.jpg"],
    "prompt": "Replace the backpack in the first image with the colour scheme from the second image, and leave everything else unchanged",
    "resolution": "1K"
  }'
  1. Poll for the result: use the returned request_id against the standard predictions result endpoint until status is completed.

คำถามทั่วไป

คำถามที่พบบ่อย

What is Qwen 2.1 Image to Image?

Qwen 2.1 Image to Image is Alibaba's reference-image editing model — it edits, restyles, and recombines existing images from a text prompt instead of generating from scratch.

How many reference images can I use?

Between 1 and 10 images per request. More references reduce how much detail each individual one keeps, so stay within 4 when fidelity matters.

How does the inpainting mask work?

Supply `mask_url` — a black-and-white image where white marks the area to change — together with exactly one reference image. Only that white-marked region is regenerated; everything else is kept unchanged. Local-edit mode ignores `aspect_ratio` and `enhance_prompt`.

What aspect ratio does the output use?

By default (`auto`) it matches the first reference image's aspect ratio, snapped to the nearest supported ratio. You can override it explicitly outside of local-edit mode.

Can I generate transparent-background output?

Yes — set `background` to `transparent` with `png` or `webp` as the output format; it cannot be combined with a mask or with `jpeg`.