Ship a Full-Stack App with One Prompt

Copy this prompt into your AI coding agent, or open it in one below.

Give this to your AI Create a to-do list app using Puter.js

Coding manually? see the guide

Kling: Kling Image 2.1

kling/kling-v2-1

Access Kling Image 2.1 from Kling using the Puter.js AI API.

Add to your app

Model Card

Kling Image 2.1 is a text-to-image generation model from Kuaishou, the company behind the Kling AI video and image models. It is described as a high-fidelity model known for detailed photorealistic output, natural lighting, and strong character consistency.

The model supports eight aspect ratios (16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, and 21:9), which covers landscape, portrait, square, and ultrawide formats without cropping afterward. Through Puter it costs about $0.014 per 1k image, so it is inexpensive to use for batches and iteration.

It suits developers who need photorealistic images or consistent characters across generations, such as portraits, product and food scenes, interiors, and marketing visuals. No official benchmark scores have been published for this model.

Cost Per Image $0.014

per generation

Configuration output

resolution

Release Date N/A

 

Add Kling Image 2.1 to your app

Use Kling Image 2.1 in your app with the Puter.js AI API, no API keys or setup required.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.txt2img("A serene mountain landscape at sunset", {
    model: "kling/kling-v2-1"
}).then(image => {
    document.body.appendChild(image);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2img("A serene mountain landscape at sunset", {
            model: "kling/kling-v2-1"
        }).then(image => {
            document.body.appendChild(image);
        });
    </script>
</body>
</html>

More AI Models From Kling

Find other Kling models →

Video

Kling 3.0 Turbo

Kling 3.0 Turbo is a video generation model from Kuaishou's Kling team, released as a faster, lower-cost variant in the Kling 3.0 family. It generates video with synchronized audio and is tuned for quick turnaround in high-volume workloads. The release notes highlight improved lip-sync, which makes it a fit for talking-head and dialogue clips. Through the API it supports 720p and 1080p output at 24 FPS, with clip lengths from 3 to 15 seconds. Choose it when generation speed and cost per clip matter more than maximum fidelity. Third-party comparisons say the original Kling 3.0 remains the better pick for 4K output and its storyboard tooling. It suits developers building apps that generate many short clips, such as marketing videos, social content, and spoken-word scenes.

Image

Kling Image 3.0

Kling Image 3.0 is a text-to-image model from Kuaishou's Kling AI, released as part of the Kling 3.0 series alongside Video 3.0, Video 3.0 Omni, and Image 3.0 Omni. Kuaishou describes the series as having major upgrades in consistency and photorealistic output. It did not publish benchmark numbers for the image model in the sources we found, so we do not cite any here. Through the API it supports eight aspect ratios (16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, and 21:9), which covers landscape, portrait, square, and ultrawide layouts. It costs $0.028 per 1k image. It suits developers who want photorealistic output from a single model at a low per-image price, and who need flexible output shapes for web, social, or banner use.

Video

Kling 3.0

Kling 3.0 is a video generation model from Kuaishou, released in February 2026 as the successor to Kling 2.6. It generates video from text prompts and reference images, and produces synchronized audio together with the video. It supports multi-shot generation, so a single prompt can produce a clip with several cuts, and clips run up to 15 seconds. An Elements feature lets you supply reference images or clips to keep characters consistent across shots. Audio includes dialogue bound to specific characters in English, Chinese, Japanese, Korean and Spanish. On Puter, it accepts durations from 3 to 15 seconds and outputs at 720p, 1080p or 4k. Kling 3.0 suits developers building short narrative clips, character-driven scenes or ads where multiple shots and spoken audio need to come from one API call.

Frequently Asked Questions

How do I use Kling Image 2.1?

You can access Kling Image 2.1 by Kling through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required.

Is the Kling Image 2.1 API free for developers?

Kling Image 2.1 is free to integrate using the Puter.js AI API. With the User-Pays Model, you can add AI to your app for $0, since users cover their own AI usage through their Puter account.

What is the pricing for Kling Image 2.1?
Kling Image 2.1 costs $0.014 per image.
Price
Per image$0.014
Does it work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Kling Image 2.1 API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.

Add Kling Image 2.1 to your app for free

Developers can integrate Kling Image 2.1 for free using the Puter.js AI API.
With the User-Pays Model, each user covers their own AI usage instead of the developer.

Get started How pricing works