Qwen 2.1: AI画像編集

Qwen 2.1 Image to Imageで最大10枚の画像を編集・合成。局所編集を正確に行うインペインティングマスクにも対応。無料で試して、生成ごとにお支払い。 Qwen 2.1 Image to Imageは、1つのテキストプロンプトから最大10枚の参照画像を編集、スタイル変更、合成します。維持したい部分の特徴や構図を保ちながら加工できます。任意のインペインティングマスクを指定すると局所編集モードに切り替わり、参照画像1枚の白く塗られた領域だけを変更し、ほかの部分はそのまま残します。テキストから画像を新規生成する場合はQwen 2.1 Text to Image、Alibabaの新しい世代のモデルについてはQwen 3.0 Image to Imageをご覧ください。

インタラクティブなモデルコントロール

Qwen 2.1 Image to Imageで最大10枚の画像を編集・合成。局所編集を正確に行うインペインティングマスクにも対応。無料で試して、生成ごとにお支払い。

📝

概要

このモデルについて

Qwen 2.1 Image to Imageは、1つのテキストプロンプトから最大10枚の参照画像を編集、スタイル変更、合成します。維持したい部分の特徴や構図を保ちながら加工できます。任意のインペインティングマスクを指定すると局所編集モードに切り替わり、参照画像1枚の白く塗られた領域だけを変更し、ほかの部分はそのまま残します。テキストから画像を新規生成する場合はQwen 2.1 Text to Image、Alibabaの新しい世代のモデルについてはQwen 3.0 Image to Imageをご覧ください。

1商品写真のスタイル変更: 形状やレイアウトを保ったまま、既存の商品写真の色、素材、背景を差し替え。
2複数画像の合成: 最大10枚の参照画像の要素を、まとまりのある1つのシーンに統合。
3局所インペインティング: マスクを使って、他の部分をピクセル単位で維持しながら特定の物体や領域(壁のポスターなど)だけを再生成。
4キャラクター・スタイルの一貫性: 1組の参照画像から、別のシーンや衣装でも被写体の見た目を保つ。
5クリエイティブ案の一括作成: プロンプトとseedだけを変えて、同じベース画像から複数の編集案を生成。
💰

料金と価値

コスト分析

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

参照画像の枚数にかかわらず、画像1枚あたりの料金は一律です。

Fal.ai利用不可

Qwen 2.1は現在Fal.aiに掲載されていません。

Replicate利用不可

Qwen 2.1は現在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
Input 画像sarray

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

デフォルト値
Mask URLstring

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.

デフォルト値-
アスペクト比Enum(10個の選択肢)

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

デフォルト値auto
解像度Enum(2個の選択肢)

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

デフォルト値1K
BackgroundEnum(2個の選択肢)

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

デフォルト値opaque
出力形式Enum(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.

デフォルト値-
📖

実装ガイド

開発者ドキュメント

Qwen 2.1 Image to Image APIの使い方

  1. 参照画像を指定: images_listに1〜10個のURLを渡します。プロンプトで「1枚目の画像」「2枚目の画像」などと指定する場合は順序が重要です。
  2. 編集内容を記述: 希望する変換内容をpromptに記述します。
  3. 任意 — 局所編集: mask_url(白=変更、黒=維持)を参照画像1枚だけと組み合わせて指定すると、マスク領域のみ編集できます。
  4. タスクを送信:
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. 結果をポーリング: 返されたrequest_idを標準のpredictions結果エンドポイントに渡し、statusがcompletedになるまで確認します。
❓

よくある質問

FAQ

Qwen 2.1 Image to Imageとは何ですか?

Qwen 2.1 Image to Imageは、テキストプロンプトから既存画像を編集、スタイル変更、合成するAlibabaの参照画像編集モデルです。画像をゼロから生成するモデルではありません。

参照画像は何枚使えますか?

1リクエストにつき1〜10枚です。参照画像が増えるほど個々の画像の細部が保たれにくくなるため、忠実度が重要な場合は4枚以内にしてください。

インペインティングマスクはどのように機能しますか?

白黒画像の`mask_url`を参照画像1枚と組み合わせて指定します。白い部分が変更対象です。その領域だけが再生成され、ほかの部分は維持されます。局所編集モードでは`aspect_ratio`と`enhance_prompt`は無視されます。

出力のアスペクト比はどうなりますか?

デフォルト(`auto`)では1枚目の参照画像の比率に合わせ、最も近い対応比率に調整されます。局所編集モード以外では明示的に変更できます。

背景が透明な画像を出力できますか?

はい。`background`を`transparent`にして、出力形式に`png`または`webp`を指定してください。マスクとの併用、および`jpeg`には対応していません。