Overview
Video generation is asynchronous. You submit a request and receive a task ID, then poll for the result.
Request Body
Video model (e.g., kling-v2.6-pro, veo3.1, sora-2).
Text description of the video to generate.
Optional starting image for image-to-video generation.
Video duration in seconds (model-dependent).
Aspect ratio (e.g., 16:9, 9:16, 1:1).
Response
Unique task identifier for polling.
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-v2.6-pro",
"prompt": "A cat walking through a garden, cinematic lighting",
"duration": 5
}'
{
"task_id": "video_abc123",
"status": "pending",
"model": "kling-v2.6-pro",
"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"
}
)
Available Models
| Model | Type | Description |
|---|
kling-v2.6-pro | T2V/I2V | Realistic motion |
veo3.1 | T2V | Google’s latest |
veo3.1-pro | T2V | Professional quality |
sora-2 | T2V | OpenAI Sora |
hailuo-2.3-pro | T2V | Fast generation |
wan2.6-i2v | I2V | Image to video |