[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Krea 2 Turbo LoRA](https://spiral.ai/integrations/opencode/krea-2-turbo-lora)

# How to Use Krea 2 Turbo LoRA in opencode

Krea 2 Turbo LoRA generates images using a learned subject, character, or style. Unlike Krea 2 Turbo, it applies custom LoRA weights, making it useful for exploring new scenes with a trained visual direction.

|  |  |
| --- | --- |
| Model | Krea 2 Turbo LoRA |
| Available through | fal |
| Category | Image |
| Price | $0.013 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Krea 2 Turbo LoRA in opencode

- Read the brand brief and use Krea 2 Turbo LoRA with the project's selected style LoRA to generate a 1024 by 1024 packaging concept for loose-leaf tea. Show a cylindrical paper tin, botanical linework, forest green ink, and soft studio light.
- Use Krea 2 Turbo LoRA with the project's selected character LoRA to create a 1024 by 1024 onboarding illustration. Show the trained character reading beside a window, with morning light, a simple background, and room for interface copy above.
- Generate a product photo with Krea 2 Turbo LoRA: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.
- Make four logo concepts for a coffee brand called "Northline" with Krea 2 Turbo LoRA.
- Create a 16:9 hero image of a quiet mountain cabin at dusk with Krea 2 Turbo LoRA.

## How to set up Krea 2 Turbo LoRA in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Turbo LoRA**: 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": "fal-ai/krea-2/turbo/lora",
    "input": {
      "prompt": "a vintage travel poster for Mars"
    }
  }'
```

Then paste one of the prompts above: opencode finds Krea 2 Turbo LoRA on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Krea 2 Turbo LoRA tools and prices

- [Krea 2 Text to Image Turbo LoRA](https://spiral.ai/tools/fal/fal-ai/krea-2/turbo/lora) (fal): $0.013 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — | Random seed for reproducible generation. Image *i* uses `seed + i`. |
| image_size |  | square_hd | The size of the generated image. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| acceleration | none, regular | none | The acceleration level to use for the image generation. |
| enable_prompt_expansion |  | false | If true, the prompt is expanded with an LLM into a more detailed image-generation prompt for higher quality results. On failure, the original prompt is used unchanged. |
| output_format | jpeg, png | png | The format of the generated image. Default value: "png". |

## What can you do with Krea 2 Turbo LoRA in opencode?

Krea 2 can turn a project's written design brief into illustrations, background artwork, and visual concepts. A coding agent can use the project's layout and copy to describe the composition and place the resulting assets.

### Brand direction studies

Explore a brand brief through different materials, colors, and compositions. Compare the images before committing to a visual direction.

### Poster concepts

Develop poster artwork from a written brief, specifying the main subject, layout, and exact quoted headline. Review the lettering before production.

### Packaging exploration

Generate packaging concepts to compare color palettes, materials, illustration styles, and shelf presentation.

### Interface imagery

Create illustrations and background artwork for interface concepts. Describe the composition around the space needed for real interface text.

### Moodboard images

Turn a written mood into individual images that explore lighting, texture, medium, and subject treatment.

### Architectural concept studies

Explore an imagined interior or facade from text, comparing materials and lighting before developing the design further.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Krea 2 Turbo LoRA in other agents

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

## More opencode guides

- [Krea 2 Turbo](https://spiral.ai/integrations/opencode/krea-2-turbo)
- [Krea 2 Turbo Style](https://spiral.ai/integrations/opencode/krea-2-turbo-style)
- [Krea 2 Medium Turbo](https://spiral.ai/integrations/opencode/krea-2-medium-turbo)
- [Krea 3 Edit](https://spiral.ai/integrations/opencode/krea-3-edit)
- [Krea 2 Medium](https://spiral.ai/integrations/opencode/krea-2-medium)
- [Krea 3 Text to Image](https://spiral.ai/integrations/opencode/krea-3-text-to-image)

## Questions about Krea 2 Turbo LoRA in opencode

**Can opencode use Krea 2 Turbo LoRA?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Krea 2 Turbo LoRA like any built-in tool.

**How much does Krea 2 Turbo LoRA cost in opencode?**

$0.013 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a fal account to use Krea 2 Turbo LoRA in opencode?**

No. Spiral runs Krea 2 Turbo LoRA 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 Turbo LoRA in opencode?**

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

**Does opencode wait while Krea 2 Turbo LoRA runs?**

Krea 2 Turbo LoRA runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is Krea 2 best suited for?**

Krea 2 is designed for exploring visual directions, including brand imagery, posters, packaging, and moodboards. Use it to compare styles and compositions while developing a design.

**How large can Krea 2 images be?**

Krea documents Turbo generation at approximately 1K to 2K resolution, including 2048 by 2048 images. That guidance also applies when using Turbo with LoRA weights.

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

Write a natural-language description of the subject, composition, medium, lighting, and visible details. Krea recommends longer, detailed prompts for the best results, though short descriptions can also work.

**How do I ask Krea 2 to put words in an image?**

Specify the exact wording and put it in quotes, such as a poster headed "Night market". Describe where the words should appear and review the rendered lettering before using it.

**When does prompt expansion help?**

Try it when your description names a subject but leaves the visual direction vague. Krea designed its expander to add visual detail while preserving the original intent; compare the result with your original description.

