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-mini-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
}
'import requests
url = "https://api.evolink.ai/v1/videos/generations"
payload = {
"model": "seedance-2.0-mini-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
}
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-2.0-mini-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
})
};
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-2.0-mini-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
]),
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-2.0-mini-text-to-video\",\n \"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.\",\n \"duration\": 8,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\",\n \"generate_audio\": true,\n \"content_filter\": true\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-2.0-mini-text-to-video\",\n \"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.\",\n \"duration\": 8,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\",\n \"generate_audio\": true,\n \"content_filter\": true\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-2.0-mini-text-to-video\",\n \"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.\",\n \"duration\": 8,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\",\n \"generate_audio\": true,\n \"content_filter\": true\n}"
response = http.request(request)
puts response.read_body{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.0-mini-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 model: seedance-2.0-mini-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"
}
}Seedance 2.0 Mini Text-to-Video
- Videogenerierung aus reinen Textprompts
- Unterstützt jetzt AIGC-Real-Person-Materialien
- Asynchroner Verarbeitungsmodus, verwenden Sie die zurückgegebene Aufgaben-ID zur Abfrage
- Der generierte Video-Link ist 24 Stunden gültig, bitte speichern Sie ihn rechtzeitig
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-mini-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
}
'import requests
url = "https://api.evolink.ai/v1/videos/generations"
payload = {
"model": "seedance-2.0-mini-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
}
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-2.0-mini-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
})
};
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-2.0-mini-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
]),
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-2.0-mini-text-to-video\",\n \"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.\",\n \"duration\": 8,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\",\n \"generate_audio\": true,\n \"content_filter\": true\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-2.0-mini-text-to-video\",\n \"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.\",\n \"duration\": 8,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\",\n \"generate_audio\": true,\n \"content_filter\": true\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-2.0-mini-text-to-video\",\n \"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.\",\n \"duration\": 8,\n \"quality\": \"720p\",\n \"aspect_ratio\": \"16:9\",\n \"generate_audio\": true,\n \"content_filter\": true\n}"
response = http.request(request)
puts response.read_body{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "seedance-2.0-mini-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 model: seedance-2.0-mini-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"
}
}Autorisierungen
##Alle Schnittstellen erfordern eine Authentifizierung mit Bearer Token##
API Key erhalten:
Besuchen Sie die API-Key-Verwaltungsseite, um Ihren API Key zu erhalten
Fügen Sie ihn im Anfrage-Header hinzu:
Authorization: Bearer YOUR_API_KEY
Body
Name des Videogenerierungsmodells
seedance-2.0-mini-text-to-video "seedance-2.0-mini-text-to-video"
Textprompt zur Beschreibung des gewünschten Videos. Unterstützt Chinesisch und Englisch, empfohlen max. 500 Zeichen auf Chinesisch, max. 1000 Wörter auf Englisch. Maximale Prompt-Länge: 10000 Tokens
Hinweis:
- Dieses Modell ist ein reines Text-to-Video-Modell und unterstützt keine Eingabe von
image_urls,video_urlsoderaudio_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."
Videodauer (Sekunden), Standard ist 5 Sekunden
Hinweise:
- Unterstützt beliebige Ganzzahlwerte zwischen
4und15Sekunden - Die Dauer wirkt sich direkt auf die Abrechnung aus
4 <= x <= 158
Videoauflösung, Standard ist 720p
Verfügbare Werte:
480p: Niedrigere Auflösung, günstigerer Preis720p: Standardauflösung, dies ist der Standardwert1080p: Ultra-HD-Auflösung, demnächst verfügbar
480p, 720p "720p"
Video-Seitenverhältnis, Standard ist adaptive
Verfügbare Werte:
16:9(Querformat),9:16(Hochformat),1:1(Quadrat),4:3,3:4,21:9(Ultraweitbild)adaptive: Das Modell wählt intelligent das beste Seitenverhältnis basierend auf dem Prompt
Pixelwerte pro Auflösung:
| Seitenverhältnis | 480p | 720p |
|---|---|---|
| 16:9 | 864×496 | 1280×720 |
| 4:3 | 752×560 | 1112×834 |
| 1:1 | 640×640 | 960×960 |
| 3:4 | 560×752 | 834×1112 |
| 9:16 | 496×864 | 720×1280 |
| 21:9 | 992×432 | 1470×630 |
16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive "16:9"
Ob synchronisiertes Audio generiert werden soll, Standard ist true
Verfügbare Werte:
true: Video enthält synchronisiertes Audio (Stimmen, Soundeffekte, Hintergrundmusik), keine zusätzlichen Kosten. Es wird empfohlen, Dialogteile in Anführungszeichen zu setzen, um die Audiogenerierung zu optimierenfalse: Stummes Video ausgeben
true
Inhaltsfilter, Standard ist true
Verfügbare Werte:
true: Standardmäßige Inhaltssicherheitsprüfung, dies ist der Standardfalse: Lockert die Inhaltsbeschränkungen, Abrechnung mit +10% (1.1x). Illegale und verbotene Inhalte werden unabhängig von dieser Einstellung immer durchgesetzt
Nicht mit der Websuche kombinierbar:
content_filter: falseundmodel_params.web_search: truekönnen nicht zusammen verwendet werden; werden beide gesendet, wird ein 400-Parameterfehler zurückgegeben- Behalten Sie
content_filter: true(Standard) bei, wenn die Websuche benötigt wird
true
HTTPS-Callback-URL nach Aufgabenabschluss
Callback-Zeitpunkte:
- Wird ausgelöst bei Aufgabenabschluss (completed), Fehler (failed) oder Abbruch (cancelled)
- Wird nach Bestätigung der Abrechnung gesendet
Sicherheitseinschränkungen:
- Nur HTTPS-Protokoll unterstützt
- Callbacks an interne IP-Adressen sind verboten (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x usw.)
- URL-Länge maximal
2048Zeichen
Callback-Mechanismus:
- Timeout:
10Sekunden - Maximal
3Wiederholungsversuche nach Fehler (jeweils nach1/2/4Sekunden) - Das Format des Callback-Antwortkörpers entspricht dem Rückgabeformat der Aufgabenabfrage-Schnittstelle
- Ein 2xx-Statuscode gilt als Erfolg, andere Statuscodes lösen Wiederholungsversuche aus
"https://your-domain.com/webhooks/video-task-completed"
Antwort
Videogenerierungsaufgabe erfolgreich erstellt
Zeitstempel der Aufgabenerstellung
1761313744
Aufgaben-ID
"task-unified-1774857405-abc123"
Tatsächlich verwendeter Modellname
"seedance-2.0-mini-text-to-video"
Spezifischer Aufgabentyp
video.generation.task Aufgabenfortschritt in Prozent (0-100)
0 <= x <= 1000
Aufgabenstatus
pending, processing, completed, failed "pending"
Detaillierte Informationen zur Videoaufgabe
Show child attributes
Show child attributes
Ausgabetyp der Aufgabe
text, image, audio, video "video"
Nutzungs- und Abrechnungsinformationen
Show child attributes
Show child attributes