Any integer from 4s to 15s.
Video output resolution.
Video aspect ratio.
Generate audio
Generate synchronized audio.
Content filter
Standard safety filter (default true). Setting false relaxes restrictions and adds 10% to generation pricing; illegal content is always blocked.
USD-Schätzung $0.25-$0.5: Das größte Aufladepaket rechnet mit $1 = 2.000 Credits; das Starterpaket mit $1 = 1.000 Credits.
Verlauf
Lokal in diesem Browser gespeichert
0 läuft · 0 abgeschlossen
Abrechnungsregeln
Authentifizierung
Jede Anfrage muss im Authorization Header ein Bearer Token enthalten. Erstelle deinen API Key in der Konsole.
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/videos/generationsRequest-Parameter
| Parameter | Typ | Erforderlich | Hinweise |
|---|---|---|---|
model | String | Erforderlich | Die Modellkennung für den Aufruf; verwende die ID dieses Modells. |
prompt | String | Erforderlich | Textprompt, der beschreibt, was du generieren möchtest. |
duration | Zahl | Optional | Any integer from 4s to 15s. · Bereich: 4–15 · Standard: 5 |
quality | String | Optional | Video output resolution. · Optionen: 480p, 720p · Standard: 720p |
aspect_ratio | String | Optional | Video aspect ratio. · Optionen: adaptive, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 · Standard: adaptive |
generate_audio | Boolean | Optional | Generate synchronized audio. · Standard: true |
content_filter | Boolean | Optional | Standard safety filter (default true). Setting false relaxes restrictions and adds 10% to generation pricing; illegal content is always blocked. · Standard: true |
callback_url | String | Optional | Optionale Callback-Adresse, die nach Abschluss eines asynchronen Tasks aufgerufen wird. |
Request-Beispiel
curl "https://apiany.ai/v1/videos/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedance-2.0-mini-text-to-video",
"prompt": "A cinematic drone shot over a coastal city at golden hour",
"duration": 5,
"quality": "720p",
"aspect_ratio": "adaptive",
"generate_audio": true,
"content_filter": true
}'Response-Beispiel
{
"task_id": "task_abc123",
"status": "pending",
"poll_url": "/v1/tasks/task_abc123",
"request_id": "req_abc123",
"credits": {
"reserved": 1000
}
}Dieser Endpunkt ist asynchron: Nach dem Request wird sofort task_id zurückgegeben. Frage den Task-Status-Endpunkt per Polling ab, bis status succeeded ist, und lies danach result. Generierte Medienlinks sind 24 Stunden gültig.