AI Image & Video Generation API

40+ image and video models, one REST API. Generate, upscale, train custom LoRAs, and build creative pipelines. Simple compute-unit pricing. No infrastructure to manage.

Krea 2 is now available through the API. Read the Krea 2 API launch post.

generate.js
// 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"
  },
});

// https://gen.krea.ai/images/80ead844-02a6-467d-ba9e-fcd401bcb9a6.png
console.log(result.data?.urls[0]);

Simple integration

Start generating in minutes

One SDK call. One prompt. Get an image back. Works in any language you already use.

generate.js
// 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"
  },
});

// https://gen.krea.ai/images/80ead844-02a6-467d-ba9e-fcd401bcb9a6.png
console.log(result.data?.urls[0]);
response.json 200 OK
{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "created_at": "2025-01-15T10:30:00.000Z",
  "completed_at": "2025-01-15T10:30:04.000Z",
  "result": {
    "urls": [
      "https://gen.krea.ai/images/80ead844-02a6-467d-ba9e-fcd401bcb9a6.png"
    ]
  }
}
AI-generated images from Krea text to image API
20+ image models

Text to Image API

Generate product shots, marketing assets, and editorial photography from a single API call. Pick from 20+ models like Flux, Imagen 4, and Nano Banana Pro, or let Krea choose the best one for your prompt. No need to manage multiple provider accounts or stitch together different SDKs.

Get Started
Cinematic scene generated with Krea video API
20+ video models

Video Generation API

Turn text or images into video with models like Veo 3, Kling, and Wan 2.5. Build video ads, social content, or product demos programmatically. Many of these models have limited public API access elsewhere. On Krea, they all share the same endpoint.

Get Started
High-resolution AI-enhanced image of an owl
Up to 22K resolution

Image Upscaling API

Take any image up to 22K resolution with Topaz-powered AI enhancement. Three modes: standard for clean upscaling, bloom for stylized detail, and generative for adding new detail at scale. Perfect for print-ready assets or high-res product imagery.

Get Started
Custom LoRA model training with Krea API
Custom model training

LoRA Training API

Train custom models on your brand, characters, or product line. Upload images, fine-tune on Flux, and use your trained styles in every generation request. Build pipelines that produce on-brand assets without manual intervention.

Get Started
Visual workflows

Build workflows visually, ship them as an API

Chain models together in a no-code node editor. Connect image generation to upscaling, feed outputs into video, or run batch jobs with branching logic. When it works, hit deploy and call it from your code like any other endpoint.

Get Started

The best AI models, already picked for you

40+ models from Flux, Imagen, Veo, Kling, and more. We test, curate, and maintain them so you skip the guesswork. One integration, one billing system. Swap models per request.

Image Models

Nano Banana 2

$0.06 per image

15s

Nano Banana Pro

$0.15 per image

30s

Flux

$0.04 per image

4s

Flux 1.1 Pro

$0.06 per image

11s

Imagen 4

$0.04 per image

32s

Imagen 4 Ultra

$0.06 per image

30s

ChatGPT Image

from $0.03 per image

60s

Seedream 5 Lite

$0.04 per image

20s

Ideogram 3.0

$0.06 per image

18s

Flux Kontext

$0.04 per image

5s

Video Models

Veo 3

$0.20 per second of video

5 min

Veo 3.1

$0.20 per second of video

4 min

Kling 2.6

$0.07 per second of video

3 min

Hailuo 2.3

from $0.28 per video

3 min

Runway Gen-4.5

$0.12 per second of video

2 min

Sora 2

$0.10 per second of video

4 min

Wan 2.5

from $0.05 per second of video

3 min

Seedance Pro

from $0.25 per video

3 min

Ray 2

$0.40 per video

3 min

Veo 2

$0.50 per second of video

3 min

Enhancement Models

Topaz

$0.10 per upscaled image

19s

Topaz Generative

$0.27 per upscaled image

1.5 min

Topaz Bloom

$0.51 per upscaled image

2 min

Developer experience

Built to get out of your way

Multi-language SDKs

Full examples in Python, Node.js, Go, and cURL. OpenAPI spec included for code generation.

Webhooks

Add an X-Webhook-URL header and get a POST when your job finishes. No polling required.

Automatic queueing

Hit your concurrency limit? Jobs queue in a backlog automatically instead of getting dropped.

Bearer token auth

Create API keys from API Tokens. Pass them as Bearer headers. That's it.

Asset management

Upload, list, and retrieve generated assets through the API. Up to 75 MB per file.

Job lifecycle tracking

Every job goes through queued, processing, and completed states. Poll or use webhooks to track.

Frequently Asked Questions

Start building with the Krea API

Get your API key and start generating with 40+ AI models in minutes. Same compute units, same account, one API.

Get Started