メインコンテンツへスキップ
POST
/
v1
/
videos
/
generations
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-fast-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
}
'
{
  "created": 1761313744,
  "id": "task-unified-1774857405-abc123",
  "model": "seedance-2.0-fast-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"
  }
}

承認

Authorization
string
header
必須

##すべてのAPIはBearer Tokenによる認証が必要です##

APIキーの取得:

APIキー管理ページ にアクセスしてAPIキーを取得してください

リクエストヘッダーに以下を追加:

Authorization: Bearer YOUR_API_KEY

ボディ

application/json
model
enum<string>
デフォルト:seedance-2.0-fast-text-to-video
必須

動画生成モデル名

利用可能なオプション:
seedance-2.0-fast-text-to-video
:

"seedance-2.0-fast-text-to-video"

prompt
string
必須

生成したい動画を説明するテキストプロンプト。中国語・英語に対応。中国語は500文字以内、英語は1000ワード以内を推奨

注意:

  • このモデルはテキストのみの動画生成です。image_urlsvideo_urlsaudio_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."

duration
integer
デフォルト:5

動画の再生時間(秒)、デフォルトは 5

説明:

  • 415 秒の任意の整数値に対応
  • 再生時間は課金に直接影響します
必須範囲: 4 <= x <= 15
:

8

quality
enum<string>
デフォルト:720p

動画の解像度、デフォルトは 720p

選択可能な値:

  • 480p:解像度が低め、料金も低め
  • 720p:標準解像度、デフォルト値
利用可能なオプション:
480p,
720p
:

"720p"

aspect_ratio
enum<string>
デフォルト:16:9

動画のアスペクト比、デフォルトは 16:9

選択可能な値:

  • 16:9(横向き)、9:16(縦向き)、1:1(正方形)、4:33:421:9(ウルトラワイド)
  • adaptive:モデルがプロンプトに基づいて最適なアスペクト比を自動選択

各解像度の対応ピクセル値:

アスペクト比480p720p
16:9864×4961280×720
4:3752×5601112×834
1:1640×640960×960
3:4560×752834×1112
9:16496×864720×1280
21:9992×4321470×630
利用可能なオプション:
16:9,
9:16,
1:1,
4:3,
3:4,
21:9,
adaptive
:

"16:9"

generate_audio
boolean
デフォルト:true

同期音声を生成するかどうか、デフォルトは true

選択可能な値:

  • true:動画に同期音声(人声、効果音、BGM)を含む、追加料金なし。会話部分をダブルクォーテーションで囲むと音声生成の品質が向上します
  • false:無音動画を出力
:

true

model_params
object

モデル拡張パラメータ

callback_url
string<uri>

タスク完了後の 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 ステータスコードを成功とみなし、その他のステータスコードでリトライをトリガー
:

"https://your-domain.com/webhooks/video-task-completed"

レスポンス

動画生成タスクの作成に成功

created
integer

タスク作成タイムスタンプ

:

1761313744

id
string

タスクID

:

"task-unified-1774857405-abc123"

model
string

実際に使用されたモデル名

:

"seedance-2.0-fast-text-to-video"

object
enum<string>

タスクの具体的なタイプ

利用可能なオプション:
video.generation.task
progress
integer

タスク進捗パーセンテージ (0-100)

必須範囲: 0 <= x <= 100
:

0

status
enum<string>

タスクステータス

利用可能なオプション:
pending,
processing,
completed,
failed
:

"pending"

task_info
object

動画タスクの詳細情報

type
enum<string>

タスクの出力タイプ

利用可能なオプション:
text,
image,
audio,
video
:

"video"

usage
object

使用量と課金情報