Skip to main content

video models

Kling 2.1 Standard

Kling 2.1 Standard provides high-value AI video generation through PiAPI.

Get Started!

Get started

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

curl -X POST 'https://api.piapi.ai/api/v1/task' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "kling",
    "task_type": "video_generation",
    "input": {
      "version": "2.1",
      "mode": "std",
      "duration": 5,
      "aspect_ratio": "16:9",
      "prompt": "A cinematic shot of a futuristic city at sunset."
    }
  }'

# → { "task_id": "9d5a…", "status": "pending" }