Qwen 2.1: Editor Gambar AI

Edit dan gabungkan hingga 10 gambar dengan Qwen 2.1 Image to Image. Masker inpainting opsional untuk edit lokal presisi. Coba gratis — bayar per generasi.

Kontrol model interaktif

Edit dan gabungkan hingga 10 gambar dengan Qwen 2.1 Image to Image. Masker inpainting opsional untuk edit lokal presisi. Coba gratis — bayar per generasi.

📝

Ikhtisar

Tentang model ini

Qwen 2.1 Image to Image mengedit, mengubah gaya, dan menggabungkan hingga 10 gambar referensi dari satu prompt teks, dengan mempertahankan identitas dan komposisi sesuai kebutuhan. Masker inpainting opsional mengaktifkan mode edit lokal yang hanya mengubah area putih pada satu gambar referensi. Untuk generasi gambar dari teks, lihat Qwen 2.1 Text to Image; untuk generasi Alibaba yang lebih baru, lihat Qwen 3.0 Image to Image.

1Penataan Ulang Produk: Ubah warna, bahan, atau latar foto produk sambil mempertahankan bentuk dan tata letaknya.
2Komposisi Multi-Gambar: Gabungkan elemen dari hingga 10 gambar referensi menjadi adegan yang padu.
3Inpainting Lokal: Buat ulang hanya objek atau area tertentu dengan masker, sambil mempertahankan bagian lain.
4Konsistensi Karakter & Gaya: Pertahankan tampilan subjek di adegan dan pakaian baru dari satu set referensi.
5Variasi Kreatif: Buat beberapa versi edit dari gambar dasar dengan mengubah prompt dan seed.
💰

Harga & Nilai

Analisis biaya

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

Harga tetap per gambar tanpa dipengaruhi jumlah gambar referensi yang diberikan.

Fal.aiTidak tersedia

Qwen 2.1 saat ini belum tercantum di Fal.ai.

ReplicateTidak tersedia

Qwen 2.1 saat ini belum tercantum di Replicate.

** Harga pesaing diperkirakan berdasarkan arsitektur model dan tingkat penggunaan yang serupa.

⚙️

Detail Teknis

Skema konfigurasi

cepatstring

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

Nilai BawaanReplace the backpack in the first image with the colour scheme from the second image, and leave everything else unchanged
Masukan Gambararray

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

Nilai Bawaan
URL topengstring

Optional inpainting mask (white = area to change, black = kept unchanged). Upload a mask with exactly one reference image; transparent backgrounds are not supported in mask mode.

Nilai Bawaan-
rasio aspekEnum (opsi 10)

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

Nilai Bawaanauto
ResolusiEnum (opsi 2)

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

Nilai Bawaan1K
BackgroundEnum (opsi 2)

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

Nilai Bawaanopaque
Format keluaranEnum (opsi 3)

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

Nilai Bawaanpng
Enhance Promptboolean

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

Nilai Bawaantrue
Benihinteger

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

Nilai Bawaan-
📖

Panduan Implementasi

Dokumentasi pengembang

Cara Menggunakan Qwen 2.1 Image to Image API

  1. Masukkan reference images: pass 1 to 10 URLs as images_list; order matters when your prompt says "the first image", "the second image", etc.
  2. Jelaskan edit yang diinginkan: write a prompt describing the transformation you want.
  3. Opsional — edit lokal: supply mask_url (white = change, black = keep) together with exactly one reference image to edit only that masked region.
  4. Kirim tugas:
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. Periksa hasilnya: use the returned request_id pada endpoint hasil prediksi standar hingga status bernilai completed.
❓

Pertanyaan Umum

Sering ditanyakan

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`.