AI Image & Video Generation API

100 image, video, and enhancement models, one REST API. Generate, upscale, train custom LoRAs, and build creative pipelines. Simple per-generation pricing in dollars. No infrastructure to manage.

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"
  },
});

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"
  },
});

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, Seedream 5, 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 Seedance 2.5, Kling, and Veo 3.1. 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

100 models from Krea, Nano Banana, Seedance, Kling, Veo, and more. We test, curate, and maintain them so you skip the guesswork. One integration, one billing system. Swap models per request.

Image Models

Krea 3

from $0.03 per image

15s

Krea 2 Medium

from $0.03 per image

15s

Krea 2 Turbo

from $0.015 per image

10s

Krea 2 Large

from $0.06 per image

25s

Nano Banana Pro

from $0.15 per image

40s

Nano Banana 2.1

from $0.045 per image

25s

ChatGPT 2

Variable

2 min

Flux.1 Dev

$0.007 per image

10s

Video Models

Seedance 2.5

Variable

3 min

Kling 3.0

from $0.084 per second of video

2 min

Kling 4.0

from $0.157 per second of video

4 min

Veo 3.1

from $0.80 per video

2 min

Runway Gen-4.5

$0.12 per second of video

3 min

Wan 3.0

from $0.075 per second of video

3 min

Seedance 2.0

from $0.0809 per second of video

5 min

MiniMax H3 Max

from $0.175 per video

3 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.

Krea Agent

One brief
Every asset

Try Agent

Frequently Asked Questions

Start building with the Krea API

Get your API key and start generating with 100 AI models in minutes. One account, one API balance, every model.

Get Started Prefer to self-host? Explore model licensing