[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Krea 3 Text to Image](https://spiral.ai/integrations/opencode/krea-3-text-to-image)

# How to Use Krea 3 Text to Image in opencode

Krea 3 Text to Image creates images from written briefs, including photographic concepts with specific lighting and materials. Unlike Krea 3 Edit, it starts from text alone rather than an existing image.

|  |  |
| --- | --- |
| Model | Krea 3 Text to Image |
| Available through | fal |
| Category | Image |
| Price | $0.130975 per megapixel. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Krea 3 Text to Image in opencode

- Read the homepage brief in this project and use Krea 3 Text to Image to create a 1536 × 1024 editorial photograph for it. Specify a concrete subject and light source, leave the right third clear for HTML copy, and save the result in the image assets directory.
- Use Krea 3 Text to Image to create a 2048 × 2048 ink illustration for the gardening article in this project. Show hands planting a seedling, use black ink on white, and keep all article text outside the image.
- Review this project's campaign brief and use Krea 3 Text to Image to draft a 1536 × 1024 studio photograph of a ceramic cup on linen. Use morning window light from the left and a softly blurred background.
- Generate a product photo with Krea 3 Text to Image: 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 3 Text to Image.

## How to set up Krea 3 Text to Image 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 3 Text to Image**: 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/v3/text-to-image",
    "input": {
      "prompt": "A red fox curled up asleep in fresh snow at dawn, soft pink light on the pine trees behind it"
    }
  }'
```

Then paste one of the prompts above: opencode finds Krea 3 Text to Image on Spiral, shows the price and runs it.

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

## Krea 3 Text to Image tools and prices

- [Krea 3 Text to Image](https://spiral.ai/tools/fal/krea/v3/text-to-image) (fal): $0.130975 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| model | berry, jam | berry | Model variant: berry favors quality, jam favors speed. |
| image_size |  | auto | Output size, rounded up to multiples of 16, at most 4,220,160 total pixels (1680×2512). auto lets the prompt expander pick the aspect ratio at about 2048×2048. |
| reasoning_level | low, medium | medium | How much effort the harness spends reasoning about the given prompt. Higher reasoning effort means slower generation time. Both levels bill $0.025 per output megapixel. |
| negative_prompt |  |  | What to keep out of the image. Used by berry only. |
| seed |  | — | Latent noise seed. Use a new seed when editing a previous output again. |
| output_format | png, jpeg | png | Output image format. |

## What can you do with Krea 3 Text to Image in opencode?

Turn project design briefs into images for pages, documentation, and presentations with Krea 3. Use the project's visual requirements to specify composition, materials, lighting, and the details each result must retain.

### Editorial photography concepts

Use Krea 3 Text to Image to explore an article image with a defined subject, camera view, and light source. Leave room for the publication's headline instead of generating a page of copy.

### Product campaign concepts

Use Krea 3 Text to Image to draft a product scene before a shoot, such as glazed ceramics on linen or a bottle against hard afternoon shadows.

### Interior mood studies

Use Krea 3 Text to Image to explore a room described through materials, furniture placement, daylight, and camera position before choosing a design direction.

### Illustrated publishing assets

Use Krea 3 Text to Image to draft an ink drawing or painted illustration for an article, presentation, or campaign.

## Overview

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

## Krea 3 Text to Image in other agents

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

## More opencode guides

- [Krea 3 Edit](https://spiral.ai/integrations/opencode/krea-3-edit)
- [Luma Uni-1 Edit](https://spiral.ai/integrations/opencode/luma-uni-1-edit)
- [Krea 2 Turbo Style](https://spiral.ai/integrations/opencode/krea-2-turbo-style)
- [Luma Uni-1 Max](https://spiral.ai/integrations/opencode/luma-uni-1-max)
- [Krea 2 Turbo LoRA](https://spiral.ai/integrations/opencode/krea-2-turbo-lora)
- [Luma Uni-1 Max Edit](https://spiral.ai/integrations/opencode/luma-uni-1-max-edit)

## Questions about Krea 3 Text to Image in opencode

**Can opencode use Krea 3 Text to Image?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Krea 3 Text to Image like any built-in tool.

**How much does Krea 3 Text to Image cost in opencode?**

$0.130975 per megapixel. 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 3 Text to Image in opencode?**

No. Spiral runs Krea 3 Text to Image 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 3 Text to Image in opencode?**

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

**Does opencode wait while Krea 3 Text to Image runs?**

Krea 3 Text to Image runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**How should I describe a photographic result?**

Specify the scene, the light source, and the camera view. For example, describe a ceramic cup on linen, morning light from the left, and a close view with a softly blurred background.

**What output size can I request?**

The listed Krea 3 endpoints support up to 4,220,160 pixels. Dimensions are rounded up to multiples of 16, so 2048 × 2048 fits within the limit.

**Can I rely on Krea 3 for dense text layouts?**

Krea identifies extremely dense small text as a remaining weakness. Use larger, shorter text in the image, and add detailed copy separately when accuracy matters.

**Does using the same seed reproduce the same image?**

It does not guarantee an identical result. Krea says prompt expansion can vary between runs even when the seed stays the same.

**When should I increase reasoning effort?**

Try more reasoning when a detailed brief needs additional planning. It takes longer, so compare the result with your usual setting before making it your default.

