- サードパーティ
ByteDance の Seedance 2.0 動画モデルの高速版です。同じマルチモーダルアーキテクチャを共有しつつ、品質の一部を速度と引き換えにしています。テキストから動画、画像から動画、ネイティブ音声生成、マルチモーダル参照(画像・動画・音声)、動画編集、動画延長に対応します。
| モデル情報 | |
|---|---|
| 詳細情報 | リンク ↗ |
| 料金 | Cloudflare ダッシュボードで料金を見る ↗ |
const response = await env.AI.run(
'bytedance/seedance-2.0-fast',
{
prompt: 'A golden retriever running through a field of sunflowers on a sunny day',
aspect_ratio: '16:9',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedance-2.0-fast",
"input": {
"prompt": "A golden retriever running through a field of sunflowers on a sunny day",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/bytedance/seedance-2.0-fast/quick-video.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}ポートレート動画 — SNS 向けの縦向き動画です
const response = await env.AI.run(
'bytedance/seedance-2.0-fast',
{
prompt: 'A barista pouring latte art in a cozy coffee shop, close-up with shallow depth of field',
aspect_ratio: '9:16',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedance-2.0-fast",
"input": {
"prompt": "A barista pouring latte art in a cozy coffee shop, close-up with shallow depth of field",
"aspect_ratio": "9:16",
"duration": 5,
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/bytedance/seedance-2.0-fast/portrait-video.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}バーチャルアバター参照 — 信頼済みアセットライブラリのバーチャルキャラクターアバターを使います
const response = await env.AI.run(
'bytedance/seedance-2.0-fast',
{
image: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg',
prompt: 'The scene gently animates with subtle motion',
aspect_ratio: '16:9',
duration: 5,
resolution: '720p',
use_virtual_avatar: true,
generate_audio: false,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "bytedance/seedance-2.0-fast",
"input": {
"image": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg",
"prompt": "The scene gently animates with subtle motion",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p",
"use_virtual_avatar": true,
"generate_audio": false
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/bytedance/seedance-2.0-fast/virtual-avatar-reference.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}prompt
string必須maxLength: 2000生成する動画を説明するテキストプロンプトですimage
string画像から動画向けの参照画像です(HTTP(S) URL または Base64 data URI)reference_video
stringスタイル/動きのガイド用の参照動画です(HTTP(S) URL または Base64 data URI)last_frame_image
string最終フレームのガイド用の参照画像です(HTTP(S) URL または Base64 data URI)。開始フレームの画像も指定したときだけ有効です。▶reference_images[]
arraymaxItems: 4キャラクター、アバター、服装、環境向けの動画生成をガイドする参照画像です(1〜4 枚、HTTP(S) URL または Base64 data URI)。最初/最後のフレーム画像と同時には使えません。duration
integer必須デフォルト: 5minimum: 4maximum: 12動画の長さ(秒)ですresolution
string必須デフォルト: 720penum: 480p, 720p動画の解像度ですaspect_ratio
string必須デフォルト: 16:9enum: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, 9:21動画のアスペクト比です。画像を使う場合は無視されます。fps
number必須デフォルト: 24const: 24フレームレート(1 秒あたりのフレーム数)ですcamera_fixed
boolean必須デフォルト: falseカメラ位置を固定するかどうかですgenerate_audio
boolean動画と一緒に音声を生成するかどうかですwatermark
boolean必須デフォルト: false出力動画にウォーターマークを付けるかどうかですseed
integerminimum: -9007199254740991maximum: 9007199254740991生成結果を再現するための乱数シードですuse_virtual_avatar
boolean必須デフォルト: false生成前に、画像参照入力(`image`、`reference_images`、`last_frame_image`)を ByteDance の信頼できる仮想アバター素材ライブラリ経由で処理します。顔検出やディープフェイク検出でブロックされやすい、AI 生成/仮想キャラクターのアバター向けですvideo
stringformat: uri生成された動画の URL です