POST
/
kling
/
video
/
text-to-video
curl -X POST https://www.anyfast.ai/kling/video/text-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cat running on the grass",
    "duration": 5
  }'
Generate videos from text using the Kuaishou Kling model.

Request Parameters

prompt
string
required
Video description prompt.
negative_prompt
string
Negative prompt.
duration
number
Video duration (seconds).
aspect_ratio
string
Aspect ratio.
curl -X POST https://www.anyfast.ai/kling/video/text-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cat running on the grass",
    "duration": 5
  }'