Krea 2 Medium Turbo

Text-to-Image • krea

krea/krea-2-medium-turbo

  • Third-party

The fastest Krea 2 model, built for low-cost iteration on expressive illustrations, style-driven concepts, and rapid visual exploration. Keeps the Krea 2 style system and expressive visual range but uses a distilled sampling schedule so you can move through ideas much faster. Especially useful for expressive illustration, graphic styles, typography experiments, and quick campaign or concept directions.

Model Info
Terms and License link ↗
More information link ↗
Pricing <ul><li>Default (per second)$0.015</li><li>Per image$0.015</li></ul>

Usage

const response = await env.AI.run(
  'krea/krea-2-medium-turbo',
  {
    prompt: 'Ice citadel, frost mages and snow beasts, in a cool, fantasy anime style.',
    aspect_ratio: '1:1',
    resolution: '1K',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "krea/krea-2-medium-turbo",
  "input": {
    "prompt": "Ice citadel, frost mages and snow beasts, in a cool, fantasy anime style.",
    "aspect_ratio": "1:1",
    "resolution": "1K"
  }
}'

Default

{
  "state": "Completed",
  "result": {
    "image": "https://examples.aig.cloudflare.com/krea/krea-2-medium-turbo/default.png"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

Parameters

prompt

stringrequiredText prompt describing the image to generate.

aspect_ratio

stringrequiredenum: 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16Aspect ratio of the generated image.

resolution

stringrequiredenum: 1KResolution scale.

seed

numberRandom seed for reproducible generations. Pass null or omit for a random seed.

▶styles[]

arrayStyles (typically LoRAs) to apply to the generation.

▶image_style_references[]

arraymaxItems: 10Reference images to drive the visual style (up to 10).

creativity

stringdefault: lowenum: raw, low, medium, highPrompt expansion mode. `raw` disables expansion; `low`, `medium`, `high` control strength. Does not affect the K2 Intensity, Complexity, or Movement slider LoRAs.

intensity

integerdefault: 0minimum: -100maximum: 100K2 Intensity slider (-100 to 100). 0 disables the slider LoRA.

complexity

integerdefault: 0minimum: -100maximum: 100K2 Complexity slider (-100 to 100). 0 disables the slider LoRA.

movement

integerdefault: 0minimum: -100maximum: 100K2 Movement slider (-100 to 100). 0 disables the slider LoRA.

▶moodboards[]

arraymaxItems: 1Moodboard references (currently limited to one).

image

stringformat: uriPresigned URL for the generated image.

API Schemas (Raw)

Input Open Download

Output Open Download

Was this helpful?

YesNo

On this page

Krea 2 Medium Turbo - 图2Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/krea/krea-2-medium-turbo/#page","headline":"Krea 2 Medium Turbo","description":"The fastest Krea 2 model, built for low-cost iteration on expressive illustrations, style-driven concepts, and rapid visual exploration. Keeps the Krea 2 style system and expressive visual range but uses a distilled sampling schedule so you can move through ideas much faster. Especially useful for expressive illustration, graphic styles, typography experiments, and quick campaign or concept directions.","url":"https://developers.cloudflare.com/ai/models/krea/krea-2-medium-turbo/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Krea 3 is Krea's image generation and editing model, in beta. It edits one or more reference images from a text instruction, or generates an image from the prompt alone. References are passed as HTTP(S) URLs in image_urls (up to 8). Outputs go up to 2K, with optional thinking_mode, aspect_ratio, seed and regional_edit controls. title: Krea 3 image: https://developers.cloudflare.com/og-docs.png


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.

k