[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Krea 2 Medium](https://spiral.ai/integrations/claude-code/krea-2-medium)

# How to Use Krea 2 Medium in Claude Code

Krea 2 Medium suits editorial illustration, anime, painting, and expressive visual work. Compared with Krea 2 Medium Turbo, it is the better choice when style adherence and final polish matter more than fast exploration.

|  |  |
| --- | --- |
| Model | Krea 2 Medium |
| Available through | fal |
| Category | Image |
| Price | Up to $0.0455 per run at the default inputs. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Krea 2 Medium in Claude Code

- Read the homepage copy and use Krea 2 Medium to create a landscape editorial illustration of a cyclist crossing a quiet city at dawn. Use painted shapes, muted orange and navy, and leave the left third open for the headline.
- Use the project's existing illustration as a style reference with Krea 2 Medium. Generate a square image of a gardener carrying seedlings, starting with reference strength around 0.6.
- Use Krea 2 Medium to make landscape artwork for the project's reading page: a small library inside a tree, cut-paper illustration, forest green and rust, soft side lighting. Use raw creativity so the prompt is not expanded.
- Use Krea 2 Medium to explore three separate poster concepts for the project's community event page: a screen print, a paper collage, and an ink drawing of neighbors sharing a long table. Keep each portrait image free of text.
- Use Krea 2 Medium to generate three separate square illustrations for the onboarding screens: planting a seed, watering a sprout, and harvesting a tomato. Describe each in the same flat painted style and use low creativity.

## How to set up Krea 2 Medium in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Krea 2 Medium**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "krea/v2/medium/text-to-image",
    "input": {
      "prompt": "A Van Gogh-tinged Provençal farmhouse under starry nights."
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Krea 2 Medium on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Krea 2 Medium tools and prices

- [Krea 2 Medium](https://spiral.ai/tools/fal/krea/v2/medium/text-to-image) (fal): Up to $0.0455 per run at the default inputs.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| aspect_ratio | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | 1:1 | Aspect ratio of the generated image. |
| creativity | raw, low, medium, high | medium | Controls how loosely the model interprets the prompt. Higher values produce more creative results that may drift from the prompt; lower values stay closer to the prompt. |
| seed |  | — | Random seed for reproducible generation. |
| image_style_references |  | [] | Optional list of reference images that guide the style of the generated image. At most 10 entries. |
| styles |  | [] | Optional list of Krea preset styles (LoRA-based) to apply. Each entry references a style by `id` from the Krea styles catalog. At most 10 entries. |
| moodboards |  | [] | Optional moodboard to apply to the generation. Krea currently accepts at most one moodboard per request. Each entry references a moodboard by `id` (UUID). |

## What can you do with Krea 2 Medium in Claude Code?

Create illustration assets while working on the page or app that will use them. Krea 2 lets you explore visual treatments and use references or moodboards to guide the result.

### Editorial illustration

Turn an article's main idea into an expressive illustration. Try a literal scene and a visual metaphor before choosing the final direction.

### Campaign concept reviews

Explore several visual treatments for one campaign brief, keeping the subject fixed while changing the medium, framing, or mood.

### Illustrated poster concepts

Develop poster artwork with a clear focal subject and room for a headline. Compare graphic treatments before committing to the layout.

### Style reference studies

Use an existing image as a style reference for a newly described subject. Compare how strongly the reference should shape the result.

### Moodboard-led illustration series

Generate separate illustrations under one moodboard, using its palette, texture, and composition as a common direction.

### Graphic treatment comparisons

Render the same subject as a screen print, painted illustration, and paper collage. Review which treatment best communicates the brief.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Krea 2 Medium in other agents

- [Amp](https://spiral.ai/integrations/amp/krea-2-medium)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/krea-2-medium)
- [Claude](https://spiral.ai/integrations/claude-desktop/krea-2-medium)
- [Cline](https://spiral.ai/integrations/cline/krea-2-medium)
- [Codex](https://spiral.ai/integrations/codex/krea-2-medium)
- [Cursor](https://spiral.ai/integrations/cursor/krea-2-medium)
- [Devin](https://spiral.ai/integrations/devin/krea-2-medium)
- [dots](https://spiral.ai/integrations/dots/krea-2-medium)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/krea-2-medium)
- [Gemini](https://spiral.ai/integrations/gemini/krea-2-medium)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/krea-2-medium)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/krea-2-medium)
- [goose](https://spiral.ai/integrations/goose/krea-2-medium)
- [Grok](https://spiral.ai/integrations/grok/krea-2-medium)
- [Grok Build](https://spiral.ai/integrations/grok-build/krea-2-medium)
- [Hermes](https://spiral.ai/integrations/hermes/krea-2-medium)
- [Instinct](https://spiral.ai/integrations/instinct/krea-2-medium)
- [Manus](https://spiral.ai/integrations/manus/krea-2-medium)
- [Muse](https://spiral.ai/integrations/muse/krea-2-medium)
- [Muse Code](https://spiral.ai/integrations/muse-code/krea-2-medium)
- [n8n](https://spiral.ai/integrations/n8n/krea-2-medium)
- [Notion](https://spiral.ai/integrations/notion/krea-2-medium)
- [OpenClaw](https://spiral.ai/integrations/openclaw/krea-2-medium)
- [opencode](https://spiral.ai/integrations/opencode/krea-2-medium)
- [Perplexity](https://spiral.ai/integrations/perplexity/krea-2-medium)
- [Raycast](https://spiral.ai/integrations/raycast/krea-2-medium)
- [VS Code](https://spiral.ai/integrations/vscode/krea-2-medium)
- [Windsurf](https://spiral.ai/integrations/windsurf/krea-2-medium)
- [Zapier](https://spiral.ai/integrations/zapier/krea-2-medium)

## More Claude Code guides

- [Krea 2 Large](https://spiral.ai/integrations/claude-code/krea-2-large)
- [Krea 2 Medium Turbo](https://spiral.ai/integrations/claude-code/krea-2-medium-turbo)
- [Kling O3 Text to Image](https://spiral.ai/integrations/claude-code/kling-o3-text-to-image)
- [Krea 2 Turbo](https://spiral.ai/integrations/claude-code/krea-2-turbo)
- [Kling O3 Image to Image](https://spiral.ai/integrations/claude-code/kling-o3-image-to-image)
- [Krea 2 Turbo LoRA](https://spiral.ai/integrations/claude-code/krea-2-turbo-lora)

## Questions about Krea 2 Medium in Claude Code

**Can Claude Code use Krea 2 Medium?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Krea 2 Medium like any built-in tool.

**How much does Krea 2 Medium cost in Claude Code?**

Up to $0.0455 per run at the default inputs. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need a fal account to use Krea 2 Medium in Claude Code?**

No. Spiral runs Krea 2 Medium on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Krea 2 Medium in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Krea 2 Medium runs?**

Krea 2 Medium runs in the background. Claude Code starts the run, checks on it and gives you the image when it's ready.

**What is Krea 2 good at?**

Krea 2 suits expressive illustration and visual concept work. Use it to explore graphic styles, campaign directions, and the look of an image before settling on a final composition.

**How should I write a Krea 2 prompt?**

Give it a clear subject, then specify the medium, palette, framing, and mood you want. For example: a city cyclist in a two-color screen print, viewed from below, with large shapes and a quiet background.

**When should I lower creativity?**

Lower creativity when the written brief should lead the result. Higher creativity gives Krea 2 more room to interpret the image, but it can also drift from your instructions.

**What does raw creativity do?**

Raw turns off prompt expansion. Use it when you have already described the image in detail and want to avoid added interpretation.

**How should I use a style reference?**

Choose a reference for the visual treatment you want, then describe the new subject in your prompt. Krea recommends starting around 0.6 reference strength and adjusting from there.

