[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Recraft V4.1](https://spiral.ai/integrations/opencode/recraft-v4-1)

# How to Use Recraft V4.1 in opencode

Recraft V4.1 suits editorial photos, illustrations, and visual concept exploration from short briefs. Choose it for exploring light and composition; Recraft V4.1 Pro adds higher-resolution output for larger deliverables.

|  |  |
| --- | --- |
| Model | Recraft V4.1 |
| Available through | fal |
| Category | Image |
| Price | $0.0455 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Recraft V4.1 in opencode

- Read the homepage copy and layout in this project. Use Recraft V4.1 to create a landscape editorial photo of a ceramic workshop, with the workbench on the left and clear space on the right for the existing headline.
- Read the article about task overload in this project. Use Recraft V4.1 to create an editorial illustration of a small paper boat navigating stacks of paperwork, using the site's existing colors.
- Use Recraft V4.1 to generate a 2048×2048 campaign image for the coffee product described in this project's brief: an unbranded matte bag beside a ceramic cup, directional morning light, visible paper texture, no lettering.
- Use Recraft V4.1 to explore three separate hero concepts for this project's gardening app: a sunlit potting bench, a close-up seedling, and an illustrated rooftop garden. Keep open space for HTML text.
- Inspect the onboarding copy and color tokens in this project. Use Recraft V4.1 to create a square illustration of a person organizing a cluttered desk, with simple shapes and a plain background.

## How to set up Recraft V4.1 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 Recraft V4.1**: 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/recraft/v4.1/text-to-image",
    "input": {
      "prompt": "Tilt-shift miniature effect on a real Portuguese fishing village at golden hour, colorful boats in the harbor appearing toy-like, selective focus band across…"
    }
  }'
```

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

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

## Recraft V4.1 tools and prices

- [Recraft V4.1 Text to Image](https://spiral.ai/tools/fal/fal-ai/recraft/v4.1/text-to-image) (fal): $0.0455 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | square_hd |  |
| colors |  | [] | An array of preferable colors |
| background_color |  | — | The preferable background color of the generated images. |

## What can you do with Recraft V4.1 in opencode?

Create artwork that fits the page or app you are building. A coding agent can turn project copy and layout requirements into briefs for editorial images, illustrations, and campaign concepts.

### Website hero artwork

Create a photographic or illustrated scene with the subject on one side and open space for a headline added in the page layout.

### Editorial illustrations

Turn an article's central idea into a visual metaphor, such as a paper boat navigating a crowded desk for a story about managing workload.

### Campaign concept exploration

Explore several lighting, material, and composition directions for the same campaign brief before choosing an approach.

### Product photography concepts

Visualize a fictional ceramic cup, watch, or skincare bottle in a described setting to plan a shoot or presentation.

### Portrait art direction

Explore wardrobe, framing, background, and lighting for an editorial portrait using a fictional adult subject.

### Environment concept art

Describe a bookstore, workshop, or imagined landscape and explore its atmosphere, spatial arrangement, and materials.

### Mixed-media social artwork

Combine a photographic subject with cut-paper shapes or illustrated elements, leaving captions for the final layout.

## Overview

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

## Recraft V4.1 in other agents

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

## More opencode guides

- [Recraft V4 Vector](https://spiral.ai/integrations/opencode/recraft-v4-vector)
- [Recraft V4.1 Flash](https://spiral.ai/integrations/opencode/recraft-v4-1-flash)
- [Recraft V4 Styles Vector](https://spiral.ai/integrations/opencode/recraft-v4-styles-vector)
- [Recraft V4.1 Pro](https://spiral.ai/integrations/opencode/recraft-v4-1-pro)
- [Recraft V4 Styles Pro Vector](https://spiral.ai/integrations/opencode/recraft-v4-styles-pro-vector)
- [Recraft V4.1 Pro Vector](https://spiral.ai/integrations/opencode/recraft-v4-1-pro-vector)

## Questions about Recraft V4.1 in opencode

**Can opencode use Recraft V4.1?**

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

**How much does Recraft V4.1 cost in opencode?**

$0.0455 per image. 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 Recraft V4.1 in opencode?**

No. Spiral runs Recraft V4.1 on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Recraft V4.1 in opencode?**

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

**Does opencode wait while Recraft V4.1 runs?**

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

**What is Recraft V4.1 useful for?**

Use it for editorial imagery, campaign concepts, illustrations, and art-directed photography. Give the prompt a subject, a visual treatment, and a clear composition.

**Should I write a short prompt or a detailed brief?**

Start short when exploring a visual direction. For a specific deliverable, describe the framing, materials, lighting, background, and space needed for surrounding copy.

**How should I prompt words inside an image?**

Put the exact wording in quotation marks and describe its size and placement. Check the rendered letters before using the image, especially with the original Recraft V4.1 Flash.

**Will these text-to-image models return an editable SVG?**

These Recraft V4.1 text-to-image models produce raster artwork. For a logo concept, treat the result as an image rather than editable vector paths.

**Why does the model add an unexpected camera angle or lighting treatment?**

Recraft V4.1 makes creative choices about light, mood, and composition. If a particular arrangement matters, specify the camera position, subject placement, and lighting direction instead of leaving them open.

