seedinteger
Random seed for reproducible results. Omit or use -1 for a random seed.
最小: -1
最大: 4294967295
bytedance/seedance/2.0/mini/text-to-videoSeedance 2.0 Mini is Bytedance's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.
モデルを試す
次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"prompt": "An octopus finds a football in the ocean and excitedly calls its octopus friends to come and play. Cut scene to an octopus football game under the sea."
}Seedance 2.0 Mini text-to-video, the lowest-cost Seedance 2.0 tier for drafts and volume. Write the scene, including dialogue and sound, and get back a 4–15 second clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 | 16:9 | Output frame shape. |
resolution | 480p / 720p | 720p | Sets the per-second rate. |
duration | auto / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 | 5 | Output length in seconds (4–15), or auto to let the model choose. |
generate_audio | boolean | true | Native dialogue, music, and effects. Same price on or off. |
seed | integer -1–4294967295 | random | Fix it to compare prompt changes; -1 is random. |
You pay for output seconds: $0.06 at 480p, $0.12 at 720p. Audio is included. With duration: "auto" the quote assumes 15 seconds and the final charge uses the generated length.
| Output | 480p | 720p |
|---|---|---|
| 4s | $0.24 | $0.48 |
| 5s (default) | $0.30 | $0.60 |
| 10s | $0.60 | $1.20 |
| 15s | $0.90 | $1.80 |
Failed runs are not charged.
Other Seedance 2.0 Mini endpoints and tiers: bytedance/seedance/2.0/mini/image-to-video, bytedance/seedance/2.0/mini/reference-to-video, bytedance/seedance/2.5/text-to-video, bytedance/seedance/2.0/text-to-video, bytedance/seedance/2.0/fast/text-to-video.
開発を始める
このモデルをSandBase Unified Run API経由で送信します。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "bytedance/seedance/2.0/mini/text-to-video",
"prompt": "An octopus finds a football in the ocean and excitedly calls its octopus friends to come and play. Cut scene to an octopus football game under the sea.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
seedintegerRandom seed for reproducible results. Omit or use -1 for a random seed.
最小: -1
最大: 4294967295
promptstring必須The text prompt used to generate the video
duration値Output duration in seconds (4-15), or `auto` to let the model pick a length from the prompt and inputs. `auto` is pre-authorized at 15 seconds and billed on the actual output length.
デフォルト: 5
指定可能な値: "auto", 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringVideo resolution - 480p for faster generation, 720p for balance.
デフォルト: "720p"
指定可能な値: "480p", "720p"
aspect_ratiostringOutput aspect ratio. Defaults to 16:9.
デフォルト: "16:9"
指定可能な値: "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
generate_audiobooleanWhether to generate synchronized audio for the video, including sound effects, ambient sounds, and lip-synced speech. The cost of video generation is the same regardless of whether audio is generated or not.
デフォルト: true
{
"model": "bytedance/seedance/2.0/mini/text-to-video",
"prompt": "An octopus finds a football in the ocean and excitedly calls its octopus friends to come and play. Cut scene to an octopus football game under the sea.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"generate_audio": true
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"poster": "https://static.sandbase.ai/examples/posters/8c713e156c30b55f062e.jpg",
"source": "ByteDance/Volcengine schema mirror",
"source_url": "https://docs.volcengine.com/docs/ark/seedance-2-0",
"url": "https://static.sandbase.ai/examples/fdbd89eb-7929-4792-ab25-7b8eeb06f7f0/output/1e9a19b5-e4d2-444a-b719-d2d8d79bfaf9.mp4"
}
]