curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.0-text-to-video",
"prompt": "A cat playing the Moonlight Sonata on a piano, cinematic lighting, close-up shot",
"duration": 8,
"quality": "720p",
"aspect_ratio": "16:9",
"generate_audio": true,
"content_filter": true
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.0-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 165,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 50,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"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 the specified model",
"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.0 全パラメータガイド
Seedance 2.0 全シリーズ統一API。model パラメータで具体的なモデルを選択
3つの生成モード:
- Text-to-Video:テキスト記述のみで動画を生成、ウェブ検索による強化に対応
- Image-to-Video:1〜2枚の画像を先頭/末尾フレームとして動画生成を駆動
- Reference-to-Video:画像 + 動画 + 音声のマルチモーダル素材を混合参照
各モードに標準版、高速版、Mini版があり、合計9モデル
- AIGCタイプの実写素材に対応
- 非同期処理モード。返却されたタスクIDでタスク詳細を照会
- 生成された動画リンクの有効期限は24時間です。お早めに保存してください
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.0-text-to-video",
"prompt": "A cat playing the Moonlight Sonata on a piano, cinematic lighting, close-up shot",
"duration": 8,
"quality": "720p",
"aspect_ratio": "16:9",
"generate_audio": true,
"content_filter": true
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.0-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 165,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 50,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"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 the specified model",
"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
ボディ
動画生成モデル名
| モデル ID | モード | バージョン |
|---|---|---|
seedance-2.0-text-to-video | テキストから動画 | 標準 |
seedance-2.0-image-to-video | 画像から動画 | 標準 |
seedance-2.0-reference-to-video | マルチモーダル参照 | 標準 |
seedance-2.0-fast-text-to-video | テキストから動画 | 高速 |
seedance-2.0-fast-image-to-video | 画像から動画 | 高速 |
seedance-2.0-fast-reference-to-video | マルチモーダル参照 | 高速 |
seedance-2.0-mini-text-to-video | テキストから動画 | Mini |
seedance-2.0-mini-image-to-video | 画像から動画 | Mini |
seedance-2.0-mini-reference-to-video | マルチモーダル参照 | Mini |
seedance-2.0-text-to-video, seedance-2.0-image-to-video, seedance-2.0-reference-to-video, seedance-2.0-fast-text-to-video, seedance-2.0-fast-image-to-video, seedance-2.0-fast-reference-to-video, seedance-2.0-mini-text-to-video, seedance-2.0-mini-image-to-video, seedance-2.0-mini-reference-to-video "seedance-2.0-text-to-video"
生成したい動画を説明するテキストプロンプト。中国語・英語に対応。中国語は500文字以内、英語は1000語以内を推奨。プロンプトの最大長:10000 tokens
モデル別の prompt 使い方:
- Text-to-Video:テキスト記述のみ。prompt 内での
image_urls、video_urls、audio_urlsの使用は不可 - Image-to-Video:テキスト記述のみ。prompt 内での
video_urls、audio_urlsの使用は不可 - Reference-to-Video:入力素材を参照する場合は、
@image1、@video1、@audio1のような明示的なタグを優先してください。タグ番号は対応する URL 配列の順序と一致し、1 から始まります。自然言語による番号指定も認識される場合がありますが、明示的なタグのほうが各素材と用途をより正確に対応付けられます
"A cat playing the Moonlight Sonata on a piano, cinematic lighting, close-up shot"
画像 URL 配列
対応モデルと枚数制限:
- Text-to-Video:非対応
- Image-to-Video:必須、1〜2 枚
- Reference-to-Video:任意、0〜9 枚
Image-to-Video の画像動作:
| 画像枚数 | 動作 | 役割 |
|---|---|---|
| 1 枚 | 先頭フレーム画像から動画 | 自動的に first_frame に設定 |
| 2 枚 | 先頭・末尾フレーム画像から動画 | 1枚目 → first_frame、2枚目 → last_frame |
Reference-to-Video の画像役割:
- スタイル参照、商品画像、人物イメージ、先頭/末尾フレーム(promptで指定)
画像要件:
- 対応フォーマット:
.jpeg、.png、.webp - アスペクト比(幅/高さ):
0.4〜2.5 - 幅・高さピクセル:
300〜6000px - 1枚あたりのサイズ:
30MB以内 - リクエストボディの合計サイズは
64MB以内 - 先頭・末尾フレームを入力する場合、2枚の画像は同一でも可。アスペクト比が一致しない場合は先頭フレームを基準とし、末尾フレームは自動的にトリミング・適応されます
- 画像URLはサーバーから直接アクセス可能である必要があります
9["https://example.com/image1.jpg"]
参照動画 URL 配列
Reference-to-Video モデルのみ対応、他のモデルではこのパラメータは使用不可
数量制限: 0〜3 本
役割の説明:
- カメラワーク参照、動作参照、編集/延長元の動画
動画要件:
- 対応フォーマット:
.mp4、.mov - 解像度:480p、720p、1080p
- 1本あたりの動画時間:
2〜15秒、最大3本、全動画の合計時間 ≤15秒 - アスペクト比(幅/高さ):
0.4〜2.5 - 幅・高さピクセル:
300〜6000px - 画面ピクセル(幅 × 高さ):
409,600〜2,086,876(例:640×640 〜 834×1112) - 1本あたりのサイズ:
50MB以内 - フレームレート:
24〜60FPS - 動画参照を使用すると追加料金が発生します(入力動画の再生時間が課金に算入)
- 動画URLはサーバーから直接アクセス可能である必要があります
注意: audio_urls のみの入力はできません。少なくとも1枚の画像(image_urls)または1本の動画(video_urls)を含める必要があります
3["https://example.com/reference.mp4"]
参照音声 URL 配列
Reference-to-Video モデルのみ対応、他のモデルではこのパラメータは使用不可
数量制限: 0〜3 本
役割の説明:
- BGM、効果音、音声/セリフ参照
音声要件:
- 対応フォーマット:
.wav、.mp3 - 1本あたりの音声時間:
2〜15秒、最大3本、全音声の合計時間 ≤15秒 - 1本あたりのサイズ:
15MB以内 - 音声URLはサーバーから直接アクセス可能である必要があります
注意: audio_urls のみの入力はできません。少なくとも1枚の画像または1本の動画を含める必要があります
3["https://example.com/bgm.mp3"]
出力動画の再生時間(秒)、デフォルトは 5 秒
4〜15秒の任意の整数値に対応- 再生時間は課金に直接影響します
- 全9モデルに適用
4 <= x <= 158
動画の解像度、デフォルトは 720p
選択可能な値:
480p:解像度が低め、料金も低め720p:標準解像度、デフォルト値1080p:超高解像度、標準版モデルのみ対応(Text-to-Video、Image-to-Video、Reference-to-Video)。3つのFastモデルと3つのMiniモデルは未対応
480p と 720p は全9モデルに適用
480p, 720p, 1080p "720p"
動画のアスペクト比、デフォルトは adaptive
選択可能な値:
16:9(横向き)、9:16(縦向き)、1:1(正方形)、4:3、3:4、21:9(ウルトラワイド)adaptive:最適な比率を自動選択
adaptive のモデル別動作:
- Text-to-Video:プロンプトの内容に基づいて自動選択
- Image-to-Video:先頭フレーム画像のアスペクト比に基づいて自動適応
- Reference-to-Video:優先順位:動画素材の比率 > 画像素材の比率 > プロンプトからの推測
各解像度の対応ピクセル値:
| アスペクト比 | 480p | 720p | 1080p |
|---|---|---|---|
| 16:9 | 864×496 | 1280×720 | 1920×1080 |
| 4:3 | 752×560 | 1112×834 | 1664×1248 |
| 1:1 | 640×640 | 960×960 | 1440×1440 |
| 3:4 | 560×752 | 834×1112 | 1248×1664 |
| 9:16 | 496×864 | 720×1280 | 1080×1920 |
| 21:9 | 992×432 | 1470×630 | 2206×946 |
1080pは標準版モデルのみ対応
16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive "16:9"
同期音声を生成するかどうか、デフォルトは true
true:動画に同期音声(人声、効果音、BGM)を含む、追加料金なしfalse:無音動画を出力
全9モデルに適用
true
コンテンツフィルター、デフォルトは true
選択可能な値:
true:標準のコンテンツ安全チェック、これがデフォルトですfalse:コンテンツ制限を緩和し、料金が +10%(1.1x)加算されます。違法および禁止されたコンテンツはこの設定に関係なく常に適用されます
ウェブ検索と併用不可:
content_filter: falseとmodel_params.web_search: trueは同時に使用できません。両方を指定すると 400 パラメータエラーが返されます- ウェブ検索が必要な場合は
content_filter: true(デフォルト)のままにしてください
true
モデル拡張パラメータ
Text-to-Video モデルのみ対応(標準版、高速版)
Show child attributes
Show child attributes
タスク完了後の HTTPS コールバックアドレス
コールバックタイミング:
- タスク完了(completed)、失敗(failed)、またはキャンセル(cancelled)時にトリガー
- 課金確認完了後に送信
セキュリティ制限:
- 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 ステータスコードを成功とみなし、その他のステータスコードでリトライをトリガー
全9モデルに適用
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画生成タスクの作成に成功
タスク作成タイムスタンプ
1761313744
タスクID
"task-unified-1774857405-abc123"
実際に使用されたモデル名
"seedance-2.0-text-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