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

Krea: Krea 2 Medium

krea/krea-2-medium

Access Krea 2 Medium from Krea using the Puter.js AI API.

Add to your app

Model Card

Krea 2 Medium is a text-to-image model from Krea, released in July 2026 as the mid-size option in the Krea 2 family, which also includes Krea 2 Large and Krea 2 Medium Turbo.

Krea describes Krea 2 as its first foundation image model trained from scratch. The Medium tier is smaller, faster, and cheaper than Large, which is more than twice its size. Krea reports that its post-training gives stable, consistent outputs across generations, with the strongest results on illustration, anime, painting, and other expressive or artistic styles. Krea publishes no benchmark scores for it.

Through the API it generates at 1K resolution and supports aspect ratios including 1:1, 4:3, 3:2, 16:9, 4:5, 2:3, and 9:16.

It suits developers who want stable, general-purpose output with stylized or artistic looks at a low per-image cost.

Cost Per Image $0.03

per generation

Configuration output

resolution

Release Date N/A

 

Add Krea 2 Medium to your app

Use Krea 2 Medium 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: "krea/krea-2-medium"
}).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: "krea/krea-2-medium"
        }).then(image => {
            document.body.appendChild(image);
        });
    </script>
</body>
</html>

Frequently Asked Questions

How do I use Krea 2 Medium?

You can access Krea 2 Medium by Krea 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 Krea 2 Medium API free for developers?

Krea 2 Medium 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 Krea 2 Medium?
Krea 2 Medium costs $0.03 per image.
Price
Per image$0.03
Does it work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Krea 2 Medium 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 Krea 2 Medium to your app for free

Developers can integrate Krea 2 Medium 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