{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.5-flash-image-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": false,
"estimated_time": 165,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 50,
"user_group": "default"
}
}{
"error": {
"code": "invalid_parameter",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: seedance-2.5-flash-image-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Seedance 2.5 Flash Image-to-Video 画像から動画
- 画像1枚入力で先頭フレーム動画を生成、画像2枚入力で先頭・末尾フレーム動画を生成(モデルが自動判断)
- 非同期処理モード。返却されたタスクIDで照会してください
- 生成された動画リンクの有効期限は24時間です。お早めに保存してください
{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.5-flash-image-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": false,
"estimated_time": 165,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 50,
"user_group": "default"
}
}{
"error": {
"code": "invalid_parameter",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: seedance-2.5-flash-image-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}承認
##すべてのAPIはBearer Tokenによる認証が必要です##
APIキーの取得:
APIキー管理ページ にアクセスしてAPIキーを取得してください
リクエストヘッダーに以下を追加:
Authorization: Bearer YOUR_API_KEY
ボディ
動画生成モデル名
seedance-2.5-flash-image-to-video "seedance-2.5-flash-image-to-video"
生成したい動画を説明するテキストプロンプト。中国語・英語に対応。中国語は500文字以内、英語は1000ワード以内を推奨。プロンプトの最大長:10000 tokens
注意:
- このモデルは
video_urls、audio_urlsの入力には対応していません
"The camera slowly zooms in, the scene gradually comes to life"
画像 URL 配列、1〜2 枚
画像枚数と動作:
| 画像枚数 | 動作 | 役割 |
|---|---|---|
| 1 枚 | 先頭フレーム画像から動画 | 自動的に first_frame に設定 |
| 2 枚 | 先頭・末尾フレーム画像から動画 | 1枚目 → first_frame、2枚目 → last_frame |
画像要件:
- 対応フォーマット:
.jpeg、.png、.webp - アスペクト比(幅/高さ):
0.4〜2.5 - 幅・高さピクセル:
300〜6000px - 1枚あたりのサイズ:
30MB以内 - リクエストボディの合計サイズは
64MB以内 - 先頭・末尾フレームを入力する場合、2枚の画像は同一でも可。アスペクト比が異なる場合は先頭フレームを基準とし、末尾フレームは自動トリミングで適応
- 画像URLはサーバーから直接アクセス可能である必要があります
1 - 2 elements["https://example.com/first-frame.jpg"]
動画の再生時間(秒)、デフォルトは 5 秒
説明:
4〜30秒の任意の整数値に対応-1(自動の長さ)には対応していません。指定すると 400 パラメータエラーになります- 再生時間は課金に直接影響します
課金ルール:
- 秒単位で課金され、課金対象の長さは出力時間(
duration)です
4 <= x <= 305
動画の解像度、デフォルトは 720p
選択可能な値:
480p:解像度が低め、料金も低め720p:標準解像度、デフォルト値
480p, 720p "720p"
動画のアスペクト比、Image-to-Video では adaptive のみ対応
選択可能な値:
adaptive:出力比率は先頭フレーム画像に従います。このパラメータは省略することもできます- 本モデルでは
16:9、9:16などの固定比率を指定できません
adaptive "adaptive"
同期音声を生成するかどうか、デフォルトは true
選択可能な値:
true:動画に同期音声を含む、追加料金なしfalse:無音動画を出力
true
タスク完了後の HTTPS コールバックアドレス
コールバックタイミング:
- タスク完了(completed)または失敗(failed)時にトリガー
- 課金確認完了後に送信
セキュリティ制限:
- HTTPS プロトコルのみ対応
- プライベートIPアドレスへのコールバックは禁止(127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.x など)
- URL の長さは
2048文字以内
コールバックメカニズム:
- タイムアウト:
10秒 - 失敗後最大
3回リトライ(失敗後1/2/4秒でそれぞれリトライ) - コールバックレスポンスボディのフォーマットはタスク照会APIの返却フォーマットと同一
- 2xx ステータスコードを成功とみなし、その他のステータスコードでリトライをトリガー
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画生成タスクの作成に成功
タスク作成タイムスタンプ
1761313744
タスクID
"task-unified-1774857405-abc123"
実際に使用されたモデル名
"seedance-2.5-flash-image-to-video"
タスクの具体的なタイプ
video.generation.task タスク進捗パーセンテージ (0-100)
0 <= x <= 1000
タスクステータス
pending, processing, completed, failed "pending"
動画タスクの詳細情報
Show child attributes
Show child attributes
タスクの出力タイプ
text, image, audio, video "video"
使用量と課金情報
Show child attributes
Show child attributes