seedance-1.5-pro API
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-1.5-pro",
"prompt": "A cat playing piano"
}
'import requests
url = "https://api.evolink.ai/v1/videos/generations"
payload = {
"model": "seedance-1.5-pro",
"prompt": "A cat playing piano"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'seedance-1.5-pro', prompt: 'A cat playing piano'})
};
fetch('https://api.evolink.ai/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.evolink.ai/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedance-1.5-pro',
'prompt' => 'A cat playing piano'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.evolink.ai/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"seedance-1.5-pro\",\n \"prompt\": \"A cat playing piano\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.evolink.ai/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-1.5-pro\",\n \"prompt\": \"A cat playing piano\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evolink.ai/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seedance-1.5-pro\",\n \"prompt\": \"A cat playing piano\"\n}"
response = http.request(request)
puts response.read_body{
"created": 1761313744,
"id": "task-unified-1761313744-vux2jw0k",
"model": "seedance-1.5-pro",
"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_call",
"credits_reserved": 8,
"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 model: seedance-1.5-pro",
"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
Seedance-1.5-Pro 動画生成
- Seedance 1.5 Pro (seedance-1.5-pro) モデルは、テキストから動画、画像から動画、最初と最後のフレームなど複数の生成モードをサポートしています
- 非同期処理モード、返されたタスクIDを使用して照会してください
- 生成された動画リンクは24時間有効です。速やかに保存してください
POST
/
v1
/
videos
/
generations
seedance-1.5-pro API
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-1.5-pro",
"prompt": "A cat playing piano"
}
'import requests
url = "https://api.evolink.ai/v1/videos/generations"
payload = {
"model": "seedance-1.5-pro",
"prompt": "A cat playing piano"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'seedance-1.5-pro', prompt: 'A cat playing piano'})
};
fetch('https://api.evolink.ai/v1/videos/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.evolink.ai/v1/videos/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'seedance-1.5-pro',
'prompt' => 'A cat playing piano'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.evolink.ai/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"seedance-1.5-pro\",\n \"prompt\": \"A cat playing piano\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.evolink.ai/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"seedance-1.5-pro\",\n \"prompt\": \"A cat playing piano\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evolink.ai/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"seedance-1.5-pro\",\n \"prompt\": \"A cat playing piano\"\n}"
response = http.request(request)
puts response.read_body{
"created": 1761313744,
"id": "task-unified-1761313744-vux2jw0k",
"model": "seedance-1.5-pro",
"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_call",
"credits_reserved": 8,
"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 model: seedance-1.5-pro",
"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
ボディ
application/json
動画生成モデル名
利用可能なオプション:
seedance-1.5-pro 例:
"seedance-1.5-pro"
生成したい動画を説明するプロンプト、2000トークンまで
Maximum string length:
2000例:
"A cat playing piano"
画像から動画機能用の参照画像URLリスト
モード検出:
- 0枚 = テキストから動画
- 1枚 = 画像から動画
- 2枚 = 最初と最後のフレーム
注意:
- 1回のリクエストでサポートされる画像数:
2枚 - 画像サイズ:
10MB以下 - サポートされるファイル形式:
.jpg、.jpeg、.png、.webp - アスペクト比(幅/高さ):
0.4~2.5 - 幅と高さ:
300~6000px - 画像URLはサーバーから直接閲覧可能であるか、アクセス時に直接ダウンロードが開始される必要があります(通常、これらのURLは
.png、.jpgなどの画像拡張子で終わります)
Maximum array length:
2例:
["https://example.com/image.jpg"]
生成される動画の長さ(秒)を指定します。デフォルトは 5 秒
注意:
4秒から12秒の間の任意の整数値をサポート- 1回のリクエストの課金は
durationの値に基づきます。長い動画ほどコストが高くなります
必須範囲:
4 <= x <= 12動画の解像度、デフォルトは 720p
注意:
480p: 低解像度、低価格720p: 標準画質、標準価格、これがデフォルト値です1080p: 高画質、高価格
利用可能なオプション:
480p, 720p, 1080p 例:
"720p"
動画のアスペクト比
サポートされる値:
16:9(横長)、9:16(縦長)、1:1(正方形)、4:3、3:4、21:9(ウルトラワイド)、adaptive- デフォルト値:
16:9
例:
"16:9"
音声を生成するかどうか、有効にするとコストが増加します。デフォルトは true
オプション:
true: モデル出力の動画に同期音声が含まれます。Seedance 1.5 Pro はテキストプロンプトと視覚コンテンツに基づいて、適切な音声、効果音、BGMを自動生成できます。音声生成を最適化するために、セリフは二重引用符で囲むことをお勧めします。例: 男は女を止めて言った:「覚えておけ、絶対に指で月を指してはいけない。」false: モデル出力の動画は無音です
例:
true
タスク完了後のHTTPSコールバックURL
コールバックのタイミング:
- タスクが完了、失敗、またはキャンセルされた時にトリガーされます
- 課金確認完了後に送信されます
セキュリティ制限:
- 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のレスポンス形式と一致します
- コールバックURLが2xxステータスコードを返した場合は成功とみなされ、その他のステータスコードはリトライをトリガーします
例:
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画生成タスクが正常に作成されました
タスク作成タイムスタンプ
例:
1761313744
タスク ID
例:
"task-unified-1761313744-vux2jw0k"
使用された実際のモデル名
例:
"seedance-1.5-pro"
タスクの具体的なタイプ
利用可能なオプション:
video.generation.task タスク進捗率(0-100)
必須範囲:
0 <= x <= 100例:
0
タスクステータス
利用可能なオプション:
pending, processing, completed, failed 例:
"pending"
動画タスクの詳細情報
Show child attributes
Show child attributes
タスクの出力タイプ
利用可能なオプション:
text, image, audio, video 例:
"video"
使用量と課金情報
Show child attributes
Show child attributes