Krea 2 is an aesthetics-focused image generation model available on Replicate and Cloudflare AI Gateway. Unlike benchmark-optimized models, it has a strong built-in aesthetic — favoring film photography looks, cinematic compositions, and tasteful outputs — without requiring verbose prompts. It comes in three variants: Large (rawer, more flexible, best for photorealism and expressive styles), Medium (faster, more consistent, good for illustration and anime), and Medium Turbo (fastest, ideal for quick iteration). Code examples are provided for both Replicate's JavaScript SDK and Cloudflare's REST API and Workers AI binding.

7m read timeFrom replicate.com
Post cover image
Table of contents
Portraits and photorealismCinematic framesIllustrationProduct and ad creativesRunning Krea 2 on ReplicateRunning Krea 2 on Cloudflare AI Gateway

Questions this post answers

What is the difference between Krea 2 Large, Medium, and Medium Turbo?

Krea 2 Large is more than twice the size of Medium, has softer post-training, and produces rawer, more textured, flexible outputs — best for photorealism, grain, motion blur, and expressive artistic styles. Medium is smaller, faster, and more cost-efficient with extensive post-training for stable, consistent results across illustration, anime, and painting. Medium Turbo is the fastest variant, suited for low-cost iteration, graphic styles, and quick concept directions. Developers choosing between Krea 2 variants for production image pipelines track these trade-offs on daily.dev.

How do I run Krea 2 on Replicate using JavaScript?

Import the Replicate SDK and call replicate.run() with the model identifier 'krea-ai/krea-2-medium', passing a prompt and aspect_ratio in the input object. The call returns a URL to the generated image. All three Krea 2 variants — Large, Medium, and Medium Turbo — are available on Replicate using their respective model slugs. Developers integrating image generation into their apps find working code patterns like this on daily.dev.

Can I run Krea 2 through Cloudflare AI Gateway without a Krea API key?

Yes. When running Krea 2 through Cloudflare AI Gateway, you do not need a Krea API key. Cloudflare handles provider credentials and bills usage through Unified Billing. You can use the Workers AI binding with env.AI.run() or the Cloudflare REST API, and the gateway supports logging, caching, and rate limiting out of the box. Teams evaluating AI gateway options for third-party model access compare approaches like this on daily.dev.

197 Impressions