curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.5-text-to-video",
"prompt": "A macro lens focuses on a green glass frog on a leaf. The focus gradually shifts from its smooth skin to its completely transparent abdomen, where a bright red heart is beating powerfully and rhythmically.",
"duration": 8,
"quality": "720p",
"aspect_ratio": "16:9",
"generate_audio": true,
"content_filter": true
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.5-text-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-text-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"
}
}{
"error": {
"code": "draft_unavailable",
"message": "Draft mode is not available on the selected service right now. Retry later or send the request without draft.",
"type": "invalid_request_error"
}
}Seedance 2.5 Text-to-Video テキストから動画
- テキストプロンプトのみで動画を生成し、ウェブ検索による最新情報の反映に対応
- AIGCタイプの実写素材に対応
- プレビューモードに対応:
draft: trueを指定すると、まず 480p のプレビュー動画を生成します。内容を確認してから Draft-to-Video で 1080p の正式動画に変換できます。2 回の処理はそれぞれ課金されます - 非同期処理モード。返却されたタスク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.5-text-to-video",
"prompt": "A macro lens focuses on a green glass frog on a leaf. The focus gradually shifts from its smooth skin to its completely transparent abdomen, where a bright red heart is beating powerfully and rhythmically.",
"duration": 8,
"quality": "720p",
"aspect_ratio": "16:9",
"generate_audio": true,
"content_filter": true
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.5-text-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-text-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"
}
}{
"error": {
"code": "draft_unavailable",
"message": "Draft mode is not available on the selected service right now. Retry later or send the request without draft.",
"type": "invalid_request_error"
}
}承認
##すべてのAPIはBearer Tokenによる認証が必要です##
APIキーの取得:
APIキー管理ページ にアクセスしてAPIキーを取得してください
リクエストヘッダーに以下を追加:
Authorization: Bearer YOUR_API_KEY
ボディ
動画生成モデル名
seedance-2.5-text-to-video "seedance-2.5-text-to-video"
生成したい動画を説明するテキストプロンプト。中国語・英語に対応。中国語は500文字以内、英語は1000ワード以内を推奨。プロンプトの最大長:10000 tokens
注意:
- このモデルはテキストのみの動画生成です。
image_urls、video_urls、audio_urlsの入力には対応していません
"A macro lens focuses on a green glass frog on a leaf. The focus gradually shifts from its smooth skin to its completely transparent abdomen, where a bright red heart is beating powerfully and rhythmically."
動画の再生時間(秒)、デフォルトは 5 秒
説明:
4〜30秒の任意の整数値に対応-1:自動時長。モデルが4–30秒の範囲で決定し、実際の出力時間に基づいて課金されます- 再生時間は課金に直接影響します
8
動画の解像度、デフォルトは 720p
選択可能な値:
480p:解像度が低め、料金も低め720p:標準解像度、デフォルト値1080p:超高解像度
プレビューモード: draft が true の場合、480p のみ使用できます。省略した場合も自動的に 480p が使用されます
480p, 720p, 1080p "720p"
プレビューモードの切り替え。デフォルトは false
説明:
true:まず 480p のプレビュー動画を生成します。より短時間で生成され、通常の 480p 料金が適用されます- 有効にした場合、
qualityは480pを指定するか省略してください。それ以外の解像度を指定すると 400 パラメータエラーが返されます - リクエストボディのトップレベルでのみ指定できます。
model_params内に指定すると 400 パラメータエラーが返されます
正式動画への変換:
- プレビュー動画が完成すると、タスク照会で
draft_expires_atが返されます - この期限より前に、Seedance 2.5 Draft-to-Video にプレビュー動画のタスク ID を渡すと、同じ内容の 1080p 正式動画を生成できます
- 正式動画とプレビュー動画は別々に課金されます。内容に満足できない場合は変換せず、プレビュー動画の料金のみを支払うこともできます
- デフォルトの有効期限はプレビュー動画の完成から 24 時間です。実際の期限は
draft_expires_atを基準にしてください。待機中に期限が切れた場合も変換に失敗するため、早めに変換リクエストを送信してください
一時的に利用できない場合: サービスが一時的に利用できない場合、503 が返されることがあります。エラーコードが draft_unavailable の場合は、時間をおいて再試行するか、draft を省略して通常モードで生成してください
false
動画のアスペクト比、デフォルトは adaptive
選択可能な値:
16:9(横向き)、9:16(縦向き)、1:1(正方形)、4:3、3:4、21:9(ウルトラワイド)adaptive:モデルがプロンプトに基づいて最適なアスペクト比を自動選択
各解像度の対応ピクセル値:
| アスペクト比 | 480p | 720p | 1080p |
|---|---|---|---|
| 16:9 | 854×480 | 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 | 480×854 | 720×1280 | 1080×1920 |
| 21:9 | 992×432 | 1470×630 | 2206×946 |
16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive "16:9"
同期音声を生成するかどうか、デフォルトは true
選択可能な値:
true:動画に同期音声(人声、効果音、BGM)を含む、追加料金なし。会話部分をダブルクォーテーションで囲むと音声生成の品質が向上しますfalse:無音動画を出力
true
コンテンツフィルター、デフォルトは true
選択可能な値:
true:標準のコンテンツ安全チェック、これがデフォルトですfalse:コンテンツ制限を緩和し、料金が +10%(1.1x)加算されます。違法および禁止されたコンテンツはこの設定に関係なく常に適用されます
ウェブ検索と併用不可:
content_filter: falseとmodel_params.web_search: trueは同時に使用できません。両方を指定すると 400 パラメータエラーが返されます- ウェブ検索が必要な場合は
content_filter: true(デフォルト)のままにしてください
true
出力コンテナ形式、デフォルトは mp4
選択可能な値:
mp4:H.264 エンコード、互換性が最も高く標準的な色精度(デフォルト)mov:H.264 + yuv444p クロマサンプリング + PCM 音声。色再現性が高く、カラーグレーディングやキーイング、合成などのポストプロダクション向け。ブラウザ内での再生に対応しない場合があるため、ダウンロードして VLC / mpv / ffplay で再生してください。追加料金なし
mp4, mov "mp4"
モデル拡張パラメータ
Show child attributes
Show child attributes
タスク完了後の 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-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