Krea 2 API for Developers

Krea 2 API

Generate and edit AI images with Krea 2 via API. Sub-second generation speed with strong quality — supporting both text-to-image and image editing workflows.

Free credits on signup
Transparent per-credit pricing
No watermarks with paid plans or credit packs
Subscriptions, credit packs, or usage-based billing
Auto-scaling

Trusted by teams at

Everything You Need to Ship Krea 2

Sub-second image generation and editing with a versatile, fast model.

Sub-Second Generation
One of the fastest image models available — generate and iterate at near-instant speeds.
Text-to-Image & Editing
Supports both text-to-image generation and instruction-based image editing in a single model.
Free Tier Available
Available on the free plan at 640px — test quality before upgrading.
Fast Single-Image Generation
Sub-second output per request — iterate quickly on prompts with separate API calls.
Auto-Scaling Infrastructure
Scales compute to match demand automatically. No GPU provisioning or cold starts.
Commercial-Ready
Paid subscriptions and credit-pack purchases support non-watermarked outputs for commercial delivery.

Integrate in 3 Steps

Add fast AI image generation and editing to your app in minutes.

1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Send Your Request
Call /v1/ai-image-generator with a text prompt for text-to-image (one image per request). For editing, call /v1/ai-image-editor with reference images in assets.image_file_paths.
3
Get Results & Scale
Receive generated or edited images via response. Deploy to production — infrastructure scales automatically.
Get Started Free

Code Examples

Krea 2 in a few lines of code. Install an SDK or use the REST API directly.

from magic_hour import Client
from os import getenv

client = Client(token=getenv("MAGIC_HOUR_API_KEY"))
res = client.v1.ai_image_generator.generate(
    image_count=1,
    style={
        "prompt": "A cozy coffee shop interior with warm lighting and wooden furniture",
        "tool": "general",
    },
    aspect_ratio="16:9",
    model="krea-2",
    name="Krea 2",
    resolution="1k",
)
API Docs

Estimate Your API Costs

Every generation uses credits. Prepay with a subscription or one-time credit packs, or request usage-based billing for monthly invoicing and volume discounts.
Images Per Month
10 images
images
Recommended plan
Creator Yearly
$144
/year
144,000 credits per year
Up to 1.7 hours of video
Up to 14,400 images
PRO YEARLY covers your usage
Estimated usage
5,000credits / month
Included
25,000credits / month
Remaining headroom
20,000credits / month
TOTAL BILL
$300
/year

Krea 2 API Pricing

Subscription plans for standard usage.

Need usage-based billing?

Email us or message us in Intercom for monthly billing with graduated volume discounts.

Built for Builders

See how developers use the Krea 2 API to power real products.

Rapid Iteration
Generate dozens of prompt variations in seconds to find the right visual direction.
Image Editing Workflows
Edit existing images with natural-language instructions — change styles, objects, or backgrounds.
Social Media Content
Produce high-volume social media assets quickly with consistent quality.
Marketing Prototypes
Generate draft creative concepts for stakeholder review at scale.
Game Asset Concepts
Create concept art and visual references rapidly during early development.
E-Commerce Imagery
Generate product images and lifestyle shots quickly for catalog and ads.
Try before integrating

Try Krea 2 Free — No Code Required

Test quality first with the free tool, then plug the same output quality into your app with the API when you are ready.

Krea 2 API — Frequently Asked Questions

Magic Hour's Krea 2 API lets developers generate and edit AI images using the Krea 2 model via REST API with SDKs for Python, Node.js, Go, and Rust.

Krea 2 is designed for fast generation — one of the fastest image models available for rapid drafts and real-time applications.

Yes. Use /v1/ai-image-generator for text-to-image, or /v1/ai-image-editor with reference images for instruction-based edits.

One. Krea 2 supports a single image per request — iterate quickly by sending separate API calls.

Krea 2 is available on the free plan at 640px resolution. Higher resolutions require a paid plan.

640px and 1K resolutions in a wide range of aspect ratios.

Krea 2 costs 10 credits per image at either 640px or 1K. It is one of the most affordable models on Magic Hour.

Magic Hour offers subscription plans starting at $19/month (Creator), $39/month (Pro), and $99/month (Business), each including a monthly credit allotment. Credits are consumed per generation based on output length and model. One-time credit packs add credits without a subscription. Usage-based billing with graduated volume discounts is available by request. A free tier with credits is available on signup — no credit card required.

Sign up at magichour.ai/developer — no credit card required. You'll receive free credits and an API key immediately. The key works across all Magic Hour API endpoints including Krea 2. Start making API calls in minutes using our Python, Node.js, Go, or Rust SDKs.

New accounts get free credits to test supported free-tier API endpoints. Some models and resolutions require a paid plan; check the current endpoint page and pricing before integrating.

Start Building with the Magic Hour Krea 2 Image API

Free credits on signup. SDKs for Python, Node.js, Go, and Rust. Production-ready in minutes.