[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [FLUX.1 Krea LoRA](https://spiral.ai/integrations/opencode/flux-1-krea-lora)

# How to Use FLUX.1 Krea LoRA in opencode

Use FLUX.1 Krea LoRA for photographic images with a trained style, brand identity, or product appearance. It adds LoRA customization to FLUX.1 Krea Dev's focus on realism and less oversaturated textures.

|  |  |
| --- | --- |
| Model | FLUX.1 Krea LoRA |
| Available through | fal |
| Category | Image |
| Price | $0.0455 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 FLUX.1 Krea LoRA in opencode

- Read the homepage copy and design notes, then use FLUX.1 Krea LoRA to create a photographic hero concept: a ceramic workshop, worn wooden table, soft side light, and open wall space on the left for the heading. Use 1280 × 1024, 28 steps, and guidance 3.5.
- Read the recipe page in this project and use FLUX.1 Krea LoRA to create a 1024 × 1024 editorial food image. Describe the finished dish, a linen-covered table, an overhead camera angle, and soft window light; use 28 steps and guidance 3.5.
- Use FLUX.1 Krea LoRA to create an interior concept based on the café's written design brief in this project. Show the specified materials, a view from the doorway, and late-afternoon daylight at 1280 × 1024 with 30 steps and guidance 4.
- Use FLUX.1 Krea LoRA with the pretrained style LoRA specified in the project's art brief to create a 1024 × 1024 campaign concept: an unbranded canvas backpack on a weathered bench in soft morning light. Use 28 steps and guidance 3.5, then review it against the brief.
- Read the portrait brief in this project and use FLUX.1 Krea LoRA to create a 1024 × 1280 editorial portrait concept with a chest-up composition, textured clothing, and side lighting. Use 32 steps and guidance 4.5; check the result against the requested details.

## How to set up FLUX.1 Krea 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 FLUX.1 Krea 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/flux-krea-lora",
    "input": {
      "prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture…"
    }
  }'
```

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

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

## FLUX.1 Krea LoRA tools and prices

- [FLUX.1 Krea \[dev\] with LoRAs · Text to Image](https://spiral.ai/tools/fal/fal-ai/flux-krea-lora) (fal): $0.0455 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 |
| --- | --- | --- | --- |
| image_size |  | landscape_4_3 | The size of the generated image. |
| num_inference_steps | 1 to 50 | 28 | The number of inference steps to perform. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| loras |  | [] | The LoRAs to use for the image generation. You can use any number of LoRAs and they will be merged together to generate the final image. |
| guidance_scale | 0 to 35 | 3.5 | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| num_images | 1 to 4 | 1 | The number of images to generate. This is always set to 1 for streaming output. |

## What can you do with FLUX.1 Krea LoRA in opencode?

Create photographic assets from the project's written briefs, page copy, and design notes. Use FLUX.1 Krea LoRA to explore compositions, then inspect the results in the intended layout.

### Editorial portrait concepts

Explore a portrait brief through descriptions of pose, clothing, camera distance, and light. Use the results to choose a direction for an article or photo shoot.

### Product campaign concepts

Describe a product scene with specific materials, surfaces, and lighting. Test a relevant product LoRA when available, then review the depicted appearance against the brief.

### Interior mood studies

Turn a written room concept into photographic studies of furniture, materials, and daylight. Use them to discuss atmosphere and composition.

### Food editorial imagery

Develop still-life concepts for recipes or food articles by describing plating, table surfaces, camera angle, and window light.

### Article header images

Create photographic illustrations from an article's theme, with deliberate space for a headline. Review the image for visual relevance before placing it.

### Brand style exploration

Apply a relevant style LoRA to several written scene briefs. Compare the results for a campaign's desired texture, color treatment, and mood.

### Fictional location concepts

Describe an imagined café, shop, or retreat to explore its photographic appearance. Label the result as a concept when sharing it.

## Overview

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

## FLUX.1 Krea LoRA in other agents

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

## More opencode guides

- [FLUX.1 Krea Dev](https://spiral.ai/integrations/opencode/flux-1-krea-dev)
- [FLUX.1 Krea Redux](https://spiral.ai/integrations/opencode/flux-1-krea-redux)
- [FLUX.1 Kontext Pro Text to Image](https://spiral.ai/integrations/opencode/flux-1-kontext-pro-text-to-image)
- [FLUX.1 Redux \[dev\]](https://spiral.ai/integrations/opencode/flux-1-redux-dev)
- [FLUX.1 Kontext Pro Multi](https://spiral.ai/integrations/opencode/flux-1-kontext-pro-multi)
- [FLUX.1 SRPO](https://spiral.ai/integrations/opencode/flux-1-srpo)

## Questions about FLUX.1 Krea LoRA in opencode

**Can opencode use FLUX.1 Krea LoRA?**

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

**How much does FLUX.1 Krea LoRA cost in opencode?**

$0.0455 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 FLUX.1 Krea LoRA in opencode?**

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

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

**Does opencode wait while FLUX.1 Krea LoRA runs?**

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

**What is FLUX.1 Krea LoRA good at?**

Its clearest fit is photographic imagery with realistic textures and less oversaturation. Try it for editorial portraits, interior concepts, and product campaign ideas.

**When does a LoRA help?**

Try a relevant pretrained LoRA when you need a particular style, brand identity, or product appearance. Krea notes that text prompting alone can be insufficient for the level of stylization users want.

**What resolution should I start with?**

Krea recommends working between 1024 and 1280 pixels. Start with a 1024 × 1024 image; treat the recommendation as a working range, not a documented maximum.

**Which generation settings are worth testing first?**

Start at 28 steps and guidance 3.5, then compare results within Krea's recommended ranges of 28 to 32 steps and guidance 3.5 to 5.0. Change one setting at a time so you can judge its effect.

**What should I include in a prompt?**

Describe the subject, framing, visible details, focus, and lighting. The documented example uses a close-up view and concrete surface details, which make a useful checklist for your own scenes.

