コンテンツへスキップ

Wan v2.6 Text to Video

統合

モデルID wan/v2.6/text-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/wan/v2.6/text-to-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"
  }'

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

このリクエスト: $0.75 750 APIクレジット · ≈ ₽80.68 このページで実行

APIキーを取得
Alibaba テキストから動画 5–15 s1080pまで #text-to-video

Wan 2.6 text-to-video。5、10、15秒クリップ、5種類のアスペクト比、任意のBGMに対応

Alibaba · 動画

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

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

リクエストを作成

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

•必須

中国語または英語で、1500文字以内の動画説明を指定します。複数ショットでは次の形式にします: 'Overall description. First shot [0-3s] content. Second shot [3-5s] content.'

duration 5 s

使用可能な長さから選択する動画の長さ: 5、10、15秒。

aspect_ratio デフォルト 16:9

動画の幅と高さの設定。Wan 2.6ではより多くの比率を選択できます。

resolution デフォルト 1080p

動画の解像度階層を選択します。Wan 2.6 T2Vでは720pと1080pを使用できます。480pには対応していません。

詳細設定 negative_prompt · audio · seed · enable_prompt_expansion · multi_shots · enable_safety_checker
デフォルト

不要な内容を指定するネガティブプロンプト。500文字以内。

audio_url
ファイルをドロップ、または

BGM用の公開アクセス可能なWAVまたはMP3ファイルのURL。長さは3~30秒、サイズは15 MB以下です。選択した動画の長さ(5、10、15秒)により最初のN秒だけ再生され、超過した音声は破棄されます。音声が先に終わる場合、動画の残りは無音になります。たとえば音声が3秒、動画が5秒の場合、最初の3秒に音声が流れ、続く2秒は無音になります。

生成を再現可能にするシード。None に設定するとシードをランダムに選択します。

POST /run/wan/v2.6/text-to-video?wait=20 見積もり → $0.75
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/wan/v2.6/text-to-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"
  }'

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

このリクエストを実行

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

Wan v2.6 Text to Videoについて

中国語または英語で最大1500文字のプロンプトから動画を生成し、時間指定のマルチショット記述にも対応します。`aspect_ratio`は16:9、9:16、1:1、4:3、3:4、`resolution`は720pまたは1080p、`duration`は5、10、15秒です。任意の`audio_url`でBGMを追加できます。プロンプト拡張と`multi_shots`はデフォルトで有効です。

パラメータ

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

名前型 デフォルト許可される値 説明
prompt必須
型string
中国語または英語で、1500文字以内の動画説明を指定します。複数ショットでは次の形式にします: 'Overall description. First shot [0-3s] content. Second shot [3-5s] content.'
audio_url任意 audio
型url · audio
BGM用の公開アクセス可能なWAVまたはMP3ファイルのURL。長さは3~30秒、サイズは15 MB以下です。選択した動画の長さ(5、10、15秒)により最初のN秒だけ再生され、超過した音声は破棄されます。音声が先に終わる場合、動画の残りは無音になります。たとえば音声が3秒、動画が5秒の場合、最初の3秒に音声が流れ、続く2秒は無音になります。
aspect_ratio任意
型enum
デフォルト16:9
16:99:161:14:33:4
動画の幅と高さの設定。Wan 2.6ではより多くの比率を選択できます。
resolution任意
型enum
デフォルト1080p
720p1080p
動画の解像度階層を選択します。Wan 2.6 T2Vでは720pと1080pを使用できます。480pには対応していません。
duration任意
型enum
デフォルト5
51015
使用可能な長さから選択する動画の長さ: 5、10、15秒。
negative_prompt任意
型string | null
デフォルト
不要な内容を指定するネガティブプロンプト。500文字以内。
enable_prompt_expansion任意
型boolean
デフォルトtrue
LLMによるプロンプト書き換え。短いプロンプトでより良い結果を得る代わりに、処理時間が長くなります。
multi_shots任意
型boolean
デフォルトtrue
trueではインテリジェントなマルチショット分割で一貫した動画の物語を作成し、falseでは単一ショットを生成します。enable_prompt_expansionがTrueの場合のみ有効です。
seed任意
型integer | null
生成を再現可能にするシード。None に設定するとシードをランダムに選択します。
enable_safety_checker任意
型boolean
デフォルトtrue
安全性チェックの切り替え。オフにするにはアカウント認証が必要です。認証がない場合、設定に関係なくすべてのリクエストがチェックされます。trueでチェッカーを有効にします。
必須 正式名称(こちらも使用可能)

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

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.6/text-to-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": 750,
    "usd": "0.75",
    "charged": 750,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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.6/text-to-video.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt