Get started
Learn the basics and make your first request with the KREA API.
// npm install @krea-ai/sdk
import { Krea } from "@krea-ai/sdk"
const krea = new Krea({ apiKey: process.env.KREA_API_KEY });
const result = await krea.subscribe("image/krea/krea-2/medium", {
input: {
prompt: "a cinematic glass cabin beside a frozen lake at sunrise",
aspect_ratio: "16:9",
resolution: "1K"
},
});
console.log(result.data?.urls[0]);Agents
Add the Krea MCP to Claude Code
Run the following command in your terminal, then sign in with your Krea account when Claude Code asks you to connect.
claude mcp add --transport http krea-ai https://api.krea.ai/mcp
Try the playground
Build requests from live endpoint schemas and preview the code before you run.
Open playgroundCreate a token
Sign in when you are ready to create a workspace API token and start sending requests.
Get API token