コンテンツへスキップ

try-on

統合

モデルID cat-vton
# 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/cat-vton?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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",
    "cloth_type": "upper"
  }'

# 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.018 18 APIクレジット このページで実行

APIキーを取得
Open model 画像編集 #try-on#fashion#clothing

衣服の種類を選択でき、衣服画像を人物写真に合成するバーチャル試着

Open model · 画像

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

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

リクエストを作成

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

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

人物画像を指すURL。

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

衣服の画像を指すURL。

cloth_type •必須

試着する衣服のカテゴリ。upperは上半身用、lowerは下半身用、overallは全身用、innerはジャケットの下のTシャツなどの内側のレイヤー、outerはTシャツを覆うジャケットなどの外側のレイヤーを示します。

image_size デフォルト portrait_4_3

生成画像の寸法。

詳細設定 num_inference_steps · guidance_scale · seed · enable_safety_checker
デフォルト 30

実行する推論ステップ数。

デフォルト 2.5

画像選択におけるプロンプト準拠度。CFG(Classifier Free Guidance)として表します。

画像再現用のシード。画像を再現するには、シード、入力、モデルバージョンを変更しないでください。その条件では毎回同一の結果になります。

POST /run/cat-vton?wait=20 見積もり → $0.018
# 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/cat-vton?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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",
    "cloth_type": "upper"
  }'

# 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キーを取得

try-onについて

指定した衣服を人物が着用した画像を生成します。`human_image_url`、`garment_image_url`、`cloth_type`が必要で、cloth_typeにはupper、lower、overall、inner、outerを指定できます。出力サイズにはportrait_4_3やsquare_hdなどのプリセットを使用します。`num_inference_steps`(1〜50)、`guidance_scale`、seedを調整できます。

パラメータ

名前型 デフォルト許可される値 説明
human_image_url必須
型url · image
人物画像を指すURL。
garment_image_url必須
型url · image
衣服の画像を指すURL。
cloth_type必須
型enum
upperloweroverallinnerouter
試着する衣服のカテゴリ。upperは上半身用、lowerは下半身用、overallは全身用、innerはジャケットの下のTシャツなどの内側のレイヤー、outerはTシャツを覆うジャケットなどの外側のレイヤーを示します。
image_size任意
型object
デフォルトportrait_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
生成画像の寸法。
num_inference_steps任意
型integer
デフォルト30
1 – 50
実行する推論ステップ数。
guidance_scale任意
型number
デフォルト2.5
0 – 20
画像選択におけるプロンプト準拠度。CFG(Classifier Free Guidance)として表します。
seed任意
型integer | null
画像再現用のシード。画像を再現するには、シード、入力、モデルバージョンを変更しないでください。その条件では毎回同一の結果になります。
enable_safety_checker任意
型boolean
デフォルトtrue
呼び出し元に権限がある場合、false に設定するとスクリーニングを緩和できます。
必須

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

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "cat-vton",
  "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": 18,
    "usd": "0.018",
    "charged": 18,
    "refunded": 0
  },
  "input": {
    "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",
    "cloth_type": "upper"
  },
  "output": {
    "image": {
      "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,
      "width": 1024,
      "height": 768
    }
  },
  "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はモデル独自の結果オブジェクトです。
出力フィールド
image
object {url, content_type, file_name, file_size, width, height}出力として生成された画像。

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