{ "model_id": "krea/krea-2-large", "provider_id": "krea", "name": "Krea 2 Large", "description": "More than 2x the size of Medium, with softer post-training. Outputs are rawer, more textured, and more flexible \u2014 at its best, Large produces results Medium can't match. Strongest on photorealism, raw looks (motion blur, grain, low dynamic range), and expressive and artistic styles.", "task": "Text-to-Image", "tags": [ "Image Generation", "Text to Image", "Photorealism", "Style Transfer" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per image": 0.06 }, "examples": [ { "name": "Default", "description": "Official Krea 2 Large example from https://docs.krea.ai/developers/krea-2/overview.", "input": { "prompt": "a cinematic glass cabin beside a frozen lake at sunrise", "aspect_ratio": "16:9", "resolution": "1K" }, "output": { "image": "https://examples.aig.cloudflare.com/krea/krea-2-large/default.png" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/krea/krea-2-large/default.png" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'krea/krea-2-large',\n {\n prompt: 'a cinematic glass cabin beside a frozen lake at sunrise',\n aspect_ratio: '16:9',\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-large\",\n \"input\": {\n \"prompt\": \"a cinematic glass cabin beside a frozen lake at sunrise\",\n \"aspect_ratio\": \"16:9\",\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-large", "terms": "https://www.krea.ai/terms", "cover_image_url": null, "metadata": { "Max Resolution": "1K", "Max Style References": "10", "Moodboards": "Yes", "Style Transfer": "Yes", "Price (text-to-image)": "$0.060", "Price (with style references)": "$0.065", "Price (with moodboards)": "$0.070" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "krea", "pricing": { "output_image_count": 0.06 } } ], "banner": null, "created_at": "2026-06-17 14:18:34", "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 } } }