Zum Hauptinhalt springen
POST
/
v1
/
videos
/
generations
curl -X POST "https://api.lemondata.cc/v1/videos/generations" \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-video",
    "prompt": "A cat walking through a garden, cinematic lighting",
    "duration": 5
  }'
{
  "task_id": "video_abc123",
  "status": "pending",
  "model": "kling-video",
  "created_at": 1706000000
}

Übersicht

Die Video-Generierung erfolgt asynchron. Sie senden eine Anfrage und erhalten eine Task-ID, anschließend fragen Sie das Ergebnis ab (Polling).

Request Body

model
string
Standard:"kling-video"
Video-Modell (z. B. kling-video, veo3.1, wan2.6-i2v).
prompt
string
erforderlich
Textbeschreibung des zu generierenden Videos.
image_url
string
Optionales Startbild für die Image-to-Video-Generierung.
duration
integer
Videodauer in Sekunden (modellabhängig).
aspect_ratio
string
Seitenverhältnis (z. B. 16:9, 9:16, 1:1).
resolution
string
Videoauflösung (z. B. 1080p, 720p).
fps
integer
Bilder pro Sekunde (1-120).
negative_prompt
string
Was bei der Video-Generierung vermieden werden soll.
seed
integer
Zufallswert (Seed) für reproduzierbare Generierung.
cfg_scale
number
Classifier-free Guidance Scale (0-20).
motion_strength
number
Bewegungsintensität (0-1).
start_image
string
URL des Startbildes.
end_image
string
URL des Endbildes.
user
string
Eine eindeutige Kennung für den Endnutzer.

Response

task_id
string
Eindeutige Task-Kennung für das Polling.
status
string
Initialer Status: pending.
model
string
Verwendetes Modell.
curl -X POST "https://api.lemondata.cc/v1/videos/generations" \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-video",
    "prompt": "A cat walking through a garden, cinematic lighting",
    "duration": 5
  }'
{
  "task_id": "video_abc123",
  "status": "pending",
  "model": "kling-video",
  "created_at": 1706000000
}

Image to Video

response = requests.post(
    "https://api.lemondata.cc/v1/videos/generations",
    headers={"Authorization": "Bearer sk-your-api-key"},
    json={
        "model": "wan2.6-i2v",
        "prompt": "The person starts walking forward",
        "image_url": "https://example.com/image.jpg"
    }
)

Verfügbare Modelle

ModellTypBeschreibung
kling-videoT2V/I2VRealistische Bewegung, mehrere Versionen (v1.0-v2.6)
veo3.1T2VGoogles neuestes Modell
veo3.1-proT2VProfessionelle Qualität
minimax/video-01T2VHoher Rhythmus und Stabilität
wan2.6-i2vI2VImage to Video