コンテンツへスキップ

Qwen Image 3 Edit

統合

モデルID alibaba/qwen-image-3/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/alibaba/qwen-image-3/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Change the sign above the door to read \"Open Daily 8-20\" in the same lettering style and color, keep everything else unchanged.",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_msc9ak2dbu4cu59zvf0c2ftb/0-RBrxxuL8Z-3AAI916Qh9o_hi2fj8yl.png"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエスト: $0.075 75 APIクレジット このページで実行

APIキーを取得
Alibaba 画像編集 #editing#typography#multi-reference

1~3枚の参照画像を使って編集します。画像内のテキストの変更や追加に優れています。

例

入力
出力 · 約105 s
Change the sign above the door to read "Open Daily 8-20" in the same lettering style and color, keep everything else ...

プロンプトChange the sign above the door to read "Open Daily 8-20" in the same lettering style and color, keep everything else unchanged.

$0.075 · 75 APIクレジット

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須 127 / 5000

中国語または英語で記述する編集内容のテキスト。5000 文字以内。

•必須 image_urls
ファイルをドロップ、または

JPEG、JPG、PNG(アルファなし)、WEBP 形式の編集用参照画像を 1~3 枚指定します。各ファイルは最大 10MB、各軸の寸法は 384–2048px です。プロンプトでは、指定順に 'image 1'、'image 2'、'image 3' として参照します。

image_size

出力画像の寸法。総ピクセル数は 512 × 512~2048 × 2048 に制限されます。サイズを省略すると、モデルが解像度を自動選択します。

num_images デフォルト 1

生成する画像の枚数。

詳細設定 negative_prompt · output_format · seed · enable_prompt_expansion
0 / 500

結果の画像から除外する内容。500 文字以内。

output_format デフォルト png

結果の画像のファイル形式。

再現可能な結果を得るためのランダムシード。0~2147483647。

POST /run/alibaba/qwen-image-3/edit?wait=20 見積もり → $0.075
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/alibaba/qwen-image-3/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Change the sign above the door to read \"Open Daily 8-20\" in the same lettering style and color, keep everything else unchanged.",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_msc9ak2dbu4cu59zvf0c2ftb/0-RBrxxuL8Z-3AAI916Qh9o_hi2fj8yl.png"
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Qwen Image 3 Editについて

Qwen Image 3の編集モードでは、1~3枚の参照画像(各辺384~2048 px)と、画像1、画像2、画像3として参照できる 指示を受け取ります。文字の置換や追加に特に優れています。サイズを空にするとモデルが選択し、プリセットまたは最大2Kのカスタムサイズを指定できます。 1リクエストにつき最大6件の結果を返します。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
prompt必須
型string
≤ 5,000文字
中国語または英語で記述する編集内容のテキスト。5000 文字以内。
negative_prompt任意
型string | null
デフォルト
≤ 500文字
結果の画像から除外する内容。500 文字以内。
image_size任意
型object
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
出力画像の寸法。総ピクセル数は 512 × 512~2048 × 2048 に制限されます。サイズを省略すると、モデルが解像度を自動選択します。
enable_prompt_expansion任意
型boolean
デフォルトtrue
結果を改善するために LLM がプロンプトを自動書き換えするかどうかを制御します。
seed任意
型integer | null
再現可能な結果を得るためのランダムシード。0~2147483647。
num_images任意 num_outputs
型integer
デフォルト1
1 – 6
生成する画像の枚数。
output_format任意
型enum
デフォルトpng
jpegpngwebp
結果の画像のファイル形式。
image_urls必須 images
型url[] · image
JPEG、JPG、PNG(アルファなし)、WEBP 形式の編集用参照画像を 1~3 枚指定します。各ファイルは最大 10MB、各軸の寸法は 384–2048px です。プロンプトでは、指定順に 'image 1'、'image 2'、'image 3' として参照します。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/qwen-image-3/edit",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 75,
    "usd": "0.075",
    "charged": 75,
    "refunded": 0
  },
  "input": {
    "prompt": "Change the text on the sneaker's side to read \"RUN\" in bold letters",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_sneaker_ad.jpg"
    ]
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
images
array of object {url, content_type, file_name, file_size}生成された画像。
seed
integer生成時に適用したシード値。

その他のモデル: 画像編集

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/alibaba/qwen-image-3/edit.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt