Skip to main content

video models

Kling 4 API / Cinematic video generation with text, image, video, and audio references

Kling 4 is live on PiAPI. Generate 720p or 1080p video with Kling 4.0, or choose Kling 4.0 Flash for fast 720p generations.

지금 시작하기!

Kling 4 API pricing

Pricing is calculated per second of generated output. Omni reference video can add billable input duration.

Kling 4.0 · 720p

$0.1667 /sec

  • Standard video generation
  • 3–30 second output

Kling 4.0 · 1080p

$0.25 /sec

  • Pro video generation
  • 3–30 second output

Kling 4.0 Flash · 720p

$0.10 /sec

  • Flash video generation
  • 3–20 second output

Ready to generate with Kling 4?

Kling 4 capabilities

A single asynchronous API for standard, Flash, and multimodal Kling 4 workflows.

Kling 4.0 and Flash

Choose Kling 4.0 for 720p or 1080p output, or Kling 4.0 Flash for fast 720p generation.

Flexible video entry

Use text-to-video, image-to-video, or multimodal references with explicit 3–30 second standard or 3–20 second Flash durations.

Multimodal Omni references

Standard Kling 4 Omni accepts up to 10 images, 5 videos, and 3 audio references in one task.

Predictable per-second pricing

Standard Kling 4 costs $0.1667/sec at 720p and $0.25/sec at 1080p; Flash costs $0.10/sec at 720p.

Compact result contract

Completed tasks expose the generated video at output.video, with one output per task.

API access

Create a task with model kling and version 4.0 or 4.0-flash, then poll it until completion.

Availability

Kling 4 is available now through the PiAPI API and Workspace Playground.

Generation

One output is returned per task in output.video.

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.

Create a task

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": "text_to_video",
  "input": {
    "version": "4.0",
    "duration": 5,
    "mode": "std",
    "aspect_ratio": "16:9",
    "prompt": "A tree moving gently in the wind"
  }
}'

Retrieve the result

curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
  -H 'X-API-Key: YOUR_API_KEY'

video

Pricing

    Kling 4 API FAQ

    What is Kling 4?

    Kling 4 is PiAPI's latest Kling video generation API. It supports text-to-video, image-to-video, and multimodal Omni references through one asynchronous task API.

    How do I access Kling 4 through PiAPI?

    Create a task with model kling and version 4.0 or 4.0-flash, then poll the task until it completes. The Kling 4 Playground and API quickstart use the same request contract.

    How much does Kling 4 cost?

    Kling 4.0 costs $0.1667 per second at 720p and $0.25 per second at 1080p. Kling 4.0 Flash costs $0.10 per second at 720p.

    What duration and reference limits does Kling 4 support?

    Kling 4.0 supports 3–30 second outputs and Kling 4.0 Flash supports 3–20 seconds. Standard Omni accepts up to 10 images, 5 videos, and 3 audio references.

    What does a completed Kling 4 task return?

    Completed Kling 4 tasks return the generated URL in output.video. Continue polling the task until status is completed or failed.

    More questions? See the API docs.