コンテンツへスキップ

FLUX Virtual Try-On

統合

モデルID flux-pro/v1/vto
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-pro/v1/vto?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "human_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "garment_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

例と同様のファイル: $0.048 48 APIクレジット 実行前にファイルを計測します このページで実行

APIキーを取得
Black Forest Labs 画像編集 #image-to-image#vton

衣服画像を人物写真に合成するバーチャル試着

Black Forest Labs · 画像

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

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

•必須

自然言語で記述した衣服のスタイリング指示。重ね着、裾を入れる、袖をまくるなど、人物上での配置を指定します。

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

衣服を着せる人物写真のURL。2メガピクセルまでで、1 MP未満を推奨します。この写真が出力のアスペクト比を決定します。

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

衣服の参照画像を画像URLで指定します。複数の衣服は送信前に1枚の合成画像へまとめます。画像は1メガピクセル以下にし、約0.5 MPを推奨します。

詳細設定 output_format · seed · enable_safety_checker
output_format デフォルト jpeg

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

生成シード。省略するとランダムに選択されます。入力も変わらない場合、固定シードを指定すると画像結果を再現できます。

POST /run/flux-pro/v1/vto?wait=20 見積もり → $0.048
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-pro/v1/vto?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "human_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "garment_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

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

このリクエストを実行

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

FLUX Virtual Try-Onについて

`garment_image_url`の衣服を`human_image_url`の人物に合成し、着用方法を説明する`prompt`に従います。出力は人物画像のアスペクト比を維持します。人物画像は2メガピクセル、衣服画像は1メガピクセルまでに制限されます。複数の衣服は1枚の合成画像にまとめてください。

パラメータ

名前型 デフォルト許可される値 説明
prompt必須
型string
自然言語で記述した衣服のスタイリング指示。重ね着、裾を入れる、袖をまくるなど、人物上での配置を指定します。
human_image_url必須
型url · image
衣服を着せる人物写真のURL。2メガピクセルまでで、1 MP未満を推奨します。この写真が出力のアスペクト比を決定します。
garment_image_url必須
型url · image
衣服の参照画像を画像URLで指定します。複数の衣服は送信前に1枚の合成画像へまとめます。画像は1メガピクセル以下にし、約0.5 MPを推奨します。
seed任意
型integer | null
生成シード。省略するとランダムに選択されます。入力も変わらない場合、固定シードを指定すると画像結果を再現できます。
output_format任意
型enum
デフォルトjpeg
jpegpng
結果の画像のファイル形式。
enable_safety_checker任意
型boolean
デフォルトtrue
呼び出し元に権限がある場合、false に設定するとスクリーニングを緩和できます。
必須

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

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-pro/v1/vto",
  "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": 48,
    "usd": "0.048",
    "charged": 48,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "human_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "garment_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
images
array of object {url, width, height, content_type}生成画像のファイル情報。
timings
object
seed
integer画像生成シード。入力でシードを省略した場合はランダムに選ばれた値を含み、それ以外では指定値を繰り返します。
has_nsfw_concepts
array of boolean生成画像に NSFW 概念が含まれるかどうかを示します。
prompt
string画像生成時に使用するプロンプト。

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

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