{ "model_id": "krea/krea-2-medium-turbo", "provider_id": "krea", "name": "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.", "task": "Text-to-Image", "tags": [ "Image Generation", "Text to Image", "Fast", "Illustration", "Style Transfer" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per image": 0.015 }, "examples": [ { "name": "Default", "description": "Official Krea 2 Medium Turbo example from https://docs.krea.ai/api-reference/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" }, "output": { "image": "https://examples.aig.cloudflare.com/krea/krea-2-medium-turbo/default.png" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/krea/krea-2-medium-turbo/default.png" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'krea/krea-2-medium-turbo',\n {\n prompt: 'Ice citadel, frost mages and snow beasts, in a cool, fantasy anime style.',\n aspect_ratio: '1:1',\n resolution: '1K',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"krea/krea-2-medium-turbo\",\n \"input\": {\n \"prompt\": \"Ice citadel, frost mages and snow beasts, in a cool, fantasy anime style.\",\n \"aspect_ratio\": \"1:1\",\n \"resolution\": \"1K\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": false, "zdr_comment": null, "external_info": "https://docs.krea.ai/api-reference/krea/krea-2-medium-turbo", "terms": "https://www.krea.ai/terms", "cover_image_url": null, "metadata": { "Max Resolution": "1K", "Max Style References": "10", "Moodboards": "Yes", "Style Transfer": "Yes", "Generation Time": "~4 seconds", "Price (text-to-image)": "$0.015", "Price (with style references)": "$0.0175", "Price (with moodboards)": "$0.020" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "krea", "pricing": { "output_image_count": 0.015 } } ], "banner": null, "created_at": "2026-06-17 14:17:23", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string", "description": "Text prompt describing the image to generate." }, "aspect_ratio": { "type": "string", "enum": [ "1:1", "4:3", "3:2", "16:9", "2.35:1", "4:5", "2:3", "9:16" ], "description": "Aspect ratio of the generated image." }, "resolution": { "type": "string", "enum": [ "1K" ], "description": "Resolution scale." }, "seed": { "description": "Random seed for reproducible generations. Pass null or omit for a random seed.", "type": [ "number", "null" ] }, "styles": { "description": "Styles (typically LoRAs) to apply to the generation.", "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Style (typically LoRA) identifier." }, "strength": { "type": "number", "minimum": -2, "maximum": 2, "description": "Style strength, between -2 and 2." } }, "required": [ "id", "strength" ], "additionalProperties": false } }, "image_style_references": { "description": "Reference images to drive the visual style (up to 10).", "maxItems": 10, "type": "array", "items": { "type": "object", "properties": { "url": { "type": "string", "format": "uri", "description": "URL of the reference image (max 1024 chars)." }, "strength": { "description": "Style influence (0 = no influence, 1 = maximum). Default 0.5.", "default": 0.5, "type": "number", "minimum": 0, "maximum": 1 } }, "required": [ "url" ], "additionalProperties": false } }, "creativity": { "description": "Prompt expansion mode. `raw` disables expansion; `low`, `medium`, `high` control strength. Does not affect the K2 Intensity, Complexity, or Movement slider LoRAs.", "default": "low", "type": "string", "enum": [ "raw", "low", "medium", "high" ] }, "intensity": { "description": "K2 Intensity slider (-100 to 100). 0 disables the slider LoRA.", "default": 0, "type": "integer", "minimum": -100, "maximum": 100 }, "complexity": { "description": "K2 Complexity slider (-100 to 100). 0 disables the slider LoRA.", "default": 0, "type": "integer", "minimum": -100, "maximum": 100 }, "movement": { "description": "K2 Movement slider (-100 to 100). 0 disables the slider LoRA.", "default": 0, "type": "integer", "minimum": -100, "maximum": 100 }, "moodboards": { "description": "Moodboard references (currently limited to one).", "maxItems": 1, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", "description": "Moodboard identifier." }, "strength": { "description": "Moodboard influence (0 = no influence, 1 = maximum). Default 0.23.", "default": 0.23, "type": "number", "minimum": 0, "maximum": 1 } }, "required": [ "id" ], "additionalProperties": false } } }, "required": [ "prompt", "aspect_ratio", "resolution" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "type": "string", "format": "uri", "description": "Presigned URL for the generated image." } }, "required": [ "image" ], "additionalProperties": false } } }