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

AI Forever: Kandinsky 2.2

ai-forever/kandinsky-2.2

Access Kandinsky 2.2 from AI Forever using the Puter.js AI API.

Add to your app

Model Card

Kandinsky 2.2 is a multilingual text-to-image model from Sber AI's AI Forever research group, an upgrade over Kandinsky 2 in the same Kandinsky family.

It keeps the two-stage design of a diffusion image prior feeding a latent diffusion U-Net and MoVQ decoder, but swaps in a larger CLIP ViT-bigG-14 image encoder (1.8B parameters) in place of Kandinsky 2's CLIP ViT-L/14 (427M parameters). The stronger encoder improves how closely generated images follow the prompt and raises overall image quality. The update also added ControlNet support for guided generation and increased supported resolution to 1024px with multiple aspect ratios.

It is trained on the LAION HighRes dataset and fine-tuned on roughly 2 million high-resolution, high-quality image-caption pairs for sharper photorealism.

It suits use cases that need higher-resolution output or ControlNet-style guided generation, at the same per-image cost as Kandinsky 2.

Cost Per Image $0.0014

per generation

Configuration second

resolution

Release Date N/A

 

Add Kandinsky 2.2 to your app

Use Kandinsky 2.2 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: "ai-forever/kandinsky-2.2"
}).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: "ai-forever/kandinsky-2.2"
        }).then(image => {
            document.body.appendChild(image);
        });
    </script>
</body>
</html>

Frequently Asked Questions

How do I use Kandinsky 2.2?

You can access Kandinsky 2.2 by AI Forever 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 Kandinsky 2.2 API free for developers?

Kandinsky 2.2 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 Kandinsky 2.2?
Kandinsky 2.2 costs $0.0014 per image.
Price
Per image$0.0014
Does it work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Kandinsky 2.2 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 Kandinsky 2.2 to your app for free

Developers can integrate Kandinsky 2.2 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