Zum Hauptinhalt springen

Übersicht

Die KI-Video-Generierung entwickelt sich rasant. Ace Data Cloud bietet 7 verschiedene Video-Generierungs-APIs an, die eine Vielzahl von Szenarien abdecken, von Text-zu-Video bis Bild-zu-Video.

Verfügbare Video-Generierungsdienste

DienstEndpunktModellEigenschaften
SoraPOST /sora/videossora-2, sora-2-proVon OpenAI, filmische Qualität
VeoPOST /veo/videosveo3, veo3-fastVon Google, unterstützt 4K
KlingPOST /kling/videoskling-v2-5-turboVon Kuaishou, hohe Geschwindigkeit
LumaPOST /luma/videosSteuerung von Anfangs- und Endbild
HailuoPOST /hailuo/videosminimax-t2vVon MiniMax
SeedancePOST /seedance/videosdoubao-seedance-1-0-pro-250528Von ByteDance
WanPOST /wan/videoswan2.6-t2vVon Alibaba

Schnellstart

Sora Video-Generierung

import requests

response = requests.post(
    "https://api.acedata.cloud/sora/videos",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "A cat playing in a sunny garden",
        "model": "sora-2",
        "duration": 10,
        "orientation": "landscape",
    },
)
print(response.json())

Kling Video-Generierung

response = requests.post(
    "https://api.acedata.cloud/kling/videos",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "application/json",
    },
    json={
        "action": "text2video",
        "prompt": "A white cat walking in the snow",
        "model": "kling-v2-5-turbo",
        "duration": 5,
        "aspect_ratio": "16:9",
    },
)
print(response.json())

Veo Video-Generierung

response = requests.post(
    "https://api.acedata.cloud/veo/videos",
    headers={
        "Authorization": "Bearer YOUR_API_TOKEN",
        "Content-Type": "application/json",
    },
    json={
        "action": "text2video",
        "prompt": "A coffee mug rotating on a marble counter",
        "model": "veo3",
    },
)
print(response.json())

Asynchrone Aufgabenverarbeitung

Die Video-Generierung benötigt in der Regel längere Zeit. Alle Video-APIs unterstützen:
  1. Callback-Benachrichtigung: Setzen Sie callback_url in der Anfrage, um das Ergebnis nach Fertigstellung automatisch zu erhalten.
  2. Polling-Abfrage: Abfrage des Aufgabenstatus über den Endpunkt /tasks.
# Verwendung der Callback-URL
data = {
    "prompt": "A sunrise over mountains",
    "model": "sora-2",
    "callback_url": "https://your-server.com/webhook",
}

# Oder Abfrage des Aufgabenstatus per Polling
task_response = requests.post("https://api.acedata.cloud/sora/tasks",
    headers={"Authorization": "Bearer YOUR_API_TOKEN"},
    json={"task_id": "your-task-id"})

Empfehlungen zur Auswahl

  • Beste Bildqualität: Sora (sora-2-pro)
  • Schnellste Geschwindigkeit: Kling (kling-v2-5-turbo)
  • Höchste Auflösung: Veo (unterstützt 4K)
  • Steuerung von Anfangs- und Endbild: Luma
  • Preis-Leistungs-Verhältnis: Wan
Besuchen Sie platform.acedata.cloud für eine kostenlose Testversion.