コンテンツへスキップ

Wan · v2.7 · Edit Video

統合

モデルID wan/v2.7/edit-video
# 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/wan/v2.7/edit-video?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

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

APIキーを取得
Alibaba 動画変換 参照入力リップシンク0–10 s1080pまで #stylized#transform#lipsync

Wan 2.7によるプロンプトベースの動画編集・スタイル変換。参照画像と音声処理は任意

Doitongで作成

DoitongコミュニティがWan27で作成した公開作品です。ワンクリックでプロンプトを再利用できます。

公開作品:2件
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... 動画

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... 動画

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

リクエストを作成

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

•必須

実行する編集または転送するスタイルの説明。

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

編集対象動画を指すURL。MP4またはMOV形式、100 MB以下、長さ2~10秒である必要があります。タイムアウトは30秒です。

duration 0 s

動画の長さ設定。2~10の明示的な値では入力の開始位置からその秒数を使用し、デフォルト値の0では入力動画全体の長さを使用します。

resolution デフォルト 1080p

結果の動画の解像度ティア。

aspect_ratio

生成動画の比率を明示的に設定するか、省略して入力動画のアスペクト比を継承します。

詳細設定 reference_image_url · audio_setting · seed · enable_safety_checker
ファイルをドロップ、または

編集用参照として使用する画像を指すURL。

audio_setting デフォルト auto

音声の扱いを選択します。'origin'では入力動画のサウンドトラックを保持し、'auto'ではモデルに再生成するかどうかを判断させます。

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

POST /run/wan/v2.7/edit-video?wait=20 見積もり → $1.50
# 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/wan/v2.7/edit-video?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

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

Wan · v2.7 · Edit Videoについて

2〜10秒のMP4またはMOV `video_url`(最大100 MB)を`prompt`に従って編集します。`reference_image_url`で編集をガイドできます。`resolution`は720pまたは1080pで、`aspect_ratio`は16:9、9:16、1:1、4:3、3:4から選択でき、デフォルトは入力動画と同じです。2〜10秒の`duration`で出力をトリミングでき、`audio_setting`で元の音声を保持できます。

パラメータ

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

名前型 デフォルト許可される値 説明
prompt必須
型string
実行する編集または転送するスタイルの説明。
video_url必須 video
型url · video
編集対象動画を指すURL。MP4またはMOV形式、100 MB以下、長さ2~10秒である必要があります。タイムアウトは30秒です。
reference_image_url任意
型url · image
編集用参照として使用する画像を指すURL。
resolution任意
型enum
デフォルト1080p
720p1080p
結果の動画の解像度ティア。
aspect_ratio任意
型enum
16:99:161:14:33:4
生成動画の比率を明示的に設定するか、省略して入力動画のアスペクト比を継承します。
duration任意
型enum
デフォルト0
02345678910
動画の長さ設定。2~10の明示的な値では入力の開始位置からその秒数を使用し、デフォルト値の0では入力動画全体の長さを使用します。
audio_setting任意
型enum
デフォルトauto
autoorigin
音声の扱いを選択します。'origin'では入力動画のサウンドトラックを保持し、'auto'ではモデルに再生成するかどうかを判断させます。
seed任意
型integer | null
再現可能な結果を得るためのランダムシード。0~2147483647。
enable_safety_checker任意
型boolean
デフォルトtrue
入力と出力のモデレーション。アカウントに無効化権限があり、オプションをオフにしない限り、すべてのリクエストで適用されます。
必須 正式名称(こちらも使用可能)

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

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.7/edit-video",
  "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": 1500,
    "usd": "1.50",
    "charged": 1500,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "actual_prompt": "string"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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はモデル独自の結果オブジェクトです。
出力フィールド
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}編集によって生成された動画ファイル。
seed
integer生成時に適用したシード値。
actual_prompt
string | nullプロンプト書き換えが有効な場合に実際に適用されたプロンプト。

その他のモデル: 動画変換

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