Qwen Image 2.1 Pro 画像編集

alibaba/qwen-image-2.1-pro/edit

プロンプトと1〜10枚の参照画像から1〜6枚の編集画像を生成します。

サンプル

Qwen Image 2.1 Pro 画像編集 サンプル 1

パラメータ

名前型既定制約説明
prompt *プロンプトtextarea—≤ 5000 chars希望する編集内容を説明するテキストプロンプトです。中国語と英語に対応し、4500 トークン以内を推奨します。ネガティブプロンプトには対応していないため、含めたくない内容はプロンプト内に直接記述してください(例:「文字を入れない」)。切り抜きや透過背景を指定すると、アルファチャンネル付きの PNG が自動で出力されます。
images *参照画像image_upload—image/jpeg,image/jpg,image/png,image/bmp,image/tiff,image/webp,image/gif · 1–10 items編集用の参照画像(1〜10枚)。1枚10MB以下、各辺1〜8000px(384〜2048px推奨)、長辺と短辺の比は10:1以内。順番がプロンプト内の画像1、画像2……画像10に対応します。
n生成枚数number11 ~ 6 · step 11回で1〜6枚の画像を生成します。生成に成功した枚数分が課金されます
sizeサイズtext—≤ 16 chars出力画像サイズ。幅*高さの形式で、総ピクセル数は 512*512〜2048*2048、アスペクト比は 1:8〜8:1。推奨:2048*2048(1:1)、2688*1536(16:9)、1536*2688(9:16)、2368*1728(4:3)、1728*2368(3:4)。未指定の場合はモデルが自動選択します。
prompt_extendプロンプト拡張booleantrue—プロンプトを自動的に拡張・最適化します。公式推奨。短いプロンプトに効果的。
enable_thinking思考モードbooleantrue—推論を強化して画質を向上させますが、生成時間が長くなります。プロンプト拡張がオンの場合のみ有効です。
seedシード値number—0 ~ 2147483647 · step 1結果を再現するためのシード値(0-2147483647)。未指定の場合はランダム。

出力フィールド

フィールド型説明
imagesarray<string>

API

統一 REST API でこのモデルを呼び出せます。API Keys ページでキーを取得してください。

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/alibaba/qwen-image-2.1-pro/edit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "Using image 1 as the main product reference and image 2 as the lifestyle scene reference, create a clean premium e-commerce hero image of the same leather handbag placed on a light beige stone pedestal in soft natural studio lighting. Keep the bag'\''s exact shape, color, stitching, hardware, and proportions consistent with the reference. Replace the background with a minimal warm neutral setting, add a subtle soft shadow under the bag, and remove any distracting props. No text, no watermark, no extra bags, no people, no logo changes.",
    "images": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/254gkbbtuykh.jpeg",
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/5f4s804daar9.jpeg"
    ],
    "n": 1,
    "size": "2048*2048",
    "prompt_extend": true,
    "enable_thinking": true,
    "seed": 12345
  }
}'

# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
  -H "Authorization: Bearer YOUR_API_KEY"
Python
import time, requests

API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1) Submit
resp = requests.post(
    "https://www.namifusion.com/api/v1/marketplace/run/alibaba/qwen-image-2.1-pro/edit",
    headers=HEADERS,
    json={
        "input": {
            "prompt": "Using image 1 as the main product reference and image 2 as the lifestyle scene reference, create a clean premium e-commerce hero image of the same leather handbag placed on a light beige stone pedestal in soft natural studio lighting. Keep the bag's exact shape, color, stitching, hardware, and proportions consistent with the reference. Replace the background with a minimal warm neutral setting, add a subtle soft shadow under the bag, and remove any distracting props. No text, no watermark, no extra bags, no people, no logo changes.",
            "images": [
                "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/254gkbbtuykh.jpeg",
                "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/5f4s804daar9.jpeg"
            ],
            "n": 1,
            "size": "2048*2048",
            "prompt_extend": True,
            "enable_thinking": True,
            "seed": 12345
        }
    },
)
resp.raise_for_status()  # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()

# 2) Poll until a terminal state (completed / failed / cancelled).
#    This model is allowed up to 1800s server-side.
deadline = time.time() + 1860
while task.get("status") not in ("completed", "failed", "cancelled"):
    if time.time() > deadline:
        raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
    time.sleep(3)
    poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
    poll.raise_for_status()
    task = poll.json()

print(task["status"], task.get("output"))
JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };

// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/alibaba/qwen-image-2.1-pro/edit", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "prompt": "Using image 1 as the main product reference and image 2 as the lifestyle scene reference, create a clean premium e-commerce hero image of the same leather handbag placed on a light beige stone pedestal in soft natural studio lighting. Keep the bag's exact shape, color, stitching, hardware, and proportions consistent with the reference. Replace the background with a minimal warm neutral setting, add a subtle soft shadow under the bag, and remove any distracting props. No text, no watermark, no extra bags, no people, no logo changes.",
      "images": [
        "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/254gkbbtuykh.jpeg",
        "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/5f4s804daar9.jpeg"
      ],
      "n": 1,
      "size": "2048*2048",
      "prompt_extend": true,
      "enable_thinking": true,
      "seed": 12345
    }
  }),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();

// 2) Poll until a terminal state (completed / failed / cancelled).
//    This model is allowed up to 1800s server-side.
const deadline = Date.now() + 1860 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
  if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
  await new Promise((r) => setTimeout(r, 3000));
  const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
  if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
  task = await poll.json();
}

console.log(task.status, task.output);

ドキュメント

Qwen Image 2.1 Pro 画像編集

alibaba/qwen-image-2.1-pro/edit

プロンプトと1〜10枚の参照画像から1〜6枚の編集画像を生成します。

パラメータ

ParameterTypeRequiredDefaultDescription
promptstringtrue—希望する編集内容を説明するテキストプロンプトです。中国語と英語に対応し、4500 トークン以内を推奨します。ネガティブプロンプトには対応していないため、含めたくない内容はプロンプト内に直接記述してください(例:「文字を入れない」)。切り抜きや透過背景を指定すると、アルファチャンネル付きの PNG が自動で出力されます。; max 5000 characters
imagesarraytrue—編集用の参照画像(1〜10枚)。1枚10MB以下、各辺1〜8000px(384〜2048px推奨)、長辺と短辺の比は10:1以内。順番がプロンプト内の画像1、画像2……画像10に対応します。; 1–10 URLs
nintegerfalse11回で1〜6枚の画像を生成します。生成に成功した枚数分が課金されます [1, 6]
sizestringfalse—出力画像サイズ。幅高さの形式で、総ピクセル数は 512512〜20482048、アスペクト比は 1:8〜8:1。推奨:20482048(1:1)、26881536(16:9)、15362688(9:16)、23681728(4:3)、17282368(3:4)。未指定の場合はモデルが自動選択します。; max 16 characters
prompt_extendbooleanfalsetrueプロンプトを自動的に拡張・最適化します。公式推奨。短いプロンプトに効果的。
enable_thinkingbooleanfalsetrue推論を強化して画質を向上させますが、生成時間が長くなります。プロンプト拡張がオンの場合のみ有効です。
seedintegerfalse—結果を再現するためのシード値(0-2147483647)。未指定の場合はランダム。 [0, 2.14748e+09]

料金

生成に成功した画像1枚につき $0.04(4クレジット)。指定した n 枚分を仮課金し、実際の生成成功枚数で精算します。参照画像・出力サイズ・プロンプト拡張の追加料金はありません。既定値は n=1。

size は幅*高さの形式で、総画素数512²〜2048²、縦横比1:8〜8:1です。省略すると自動選択します。seed を省略するとランダム生成します。enable_thinking は prompt_extend=true の場合のみ有効です。

Alibaba International の標準米ドル定価です。1米ドル=100クレジット。アカウント割引は別途適用されます。

API

curl -X POST https://www.namifusion.com/api/v1/marketplace/run/alibaba/qwen-image-2.1-pro/edit \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "n": 1,
    "seed": 12345,
    "size": "2048*2048",
    "images": [
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/254gkbbtuykh.jpeg",
      "https://d1s3annbwribom.cloudfront.net/marketplace/examples/261013/default/5f4s804daar9.jpeg"
    ],
    "prompt": "Using image 1 as the main product reference and image 2 as the lifestyle scene reference, create a clean premium e-commerce hero image of the same leather handbag placed on a light beige stone pedestal in soft natural studio lighting. Keep the bag'"'"'s exact shape, color, stitching, hardware, and proportions consistent with the reference. Replace the background with a minimal warm neutral setting, add a subtle soft shadow under the bag, and remove any distracting props. No text, no watermark, no extra bags, no people, no logo changes.",
    "prompt_extend": true,
    "enable_thinking": true
  }
}'
curl 'https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID' \
  -H "Authorization: Bearer $API_KEY"

task_uuid で completed または failed までポーリングします。成功時の output.images は出力URL文字列の配列です。

Alibaba official pricing

関連モデル

xAI Grok Imagine Image v2.0 画像編集
画像から画像X Ai

xAI Grok Imagine Image v2.0 画像編集

xAI Grok Imagine Image V2.0 Edit は、テキストによるプロンプトを使って入力画像を編集できるモデルです。解像度と品質を設定でき、精密な画像編集、ビジュアル調整、クリエイティブなバリエーション、SNS コンテンツ、マーケティング素材、制作ワークフローに適しています。すぐに使える REST 推論 API を提供し、高性能・コールドスタートなし・手頃な価格で利用できます。

〜 $0.090 / 1 回
qwen-image-edit-spicy
画像から画像

qwen-image-edit-spicy

テキスト指示で画像を精密に編集。要素の追加・削除・変更、スタイル変換、背景置換に対応し、写真補正やビジュアルデザインに適しています。

〜 $0.034 / 1 回
Qwen Image 3.0 Pro Edit|高速画像編集
画像から画像Qwen Image 3.0 Pro

Qwen Image 3.0 Pro Edit|高速画像編集

Qwen Image 3.0 Pro Edit は、優れた画質と高度な指示理解を備えたプロ向けの画像編集モデルです。最大 2k に対応。すぐに使える REST inference API を提供し、高性能、コールドスタートなし、手頃な価格で利用できます。

〜 $0.0663 / 1 回
OpenAI GPT Image 2.5 Sunburst 画像編集
画像から画像OpenAI

OpenAI GPT Image 2.5 Sunburst 画像編集

最大 16 枚の参照画像を使用し、高精細で正確な画像編集を行います。

〜 $0.220 / 1 回
OpenAI GPT Image 2.5 Flare 画像編集
画像から画像OpenAI

OpenAI GPT Image 2.5 Flare 画像編集

自然言語の指示と最大 16 枚の参照画像を使用して、高速でバランスの取れた画像編集を行います。

〜 $0.220 / 1 回
画像から画像
画像から画像NamiFusion

ヘッドスワップ(画像)

namifusion/head-swap/image-edit. 画像・動画・顔交換のモデル API を閲覧。試してから統一 REST API で統合。

〜 $0.220 / 1 回
Nano Banana 画像編集
画像から画像Google

Nano Banana 画像編集

高速・低価格な編集。 マスキング不要で、直感的なオブジェクト置換やスタイル変換が可能。

〜 $0.038 / 1 回
Nano Banana Pro 画像編集
画像から画像Google

Nano Banana Pro 画像編集

4K セマンティック編集。自然言語で画像を修正。文脈認識と画像内多言語テキスト編集に対応。

〜 $0.140 / 1 回