[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Recraft V4](https://spiral.ai/integrations/claude-code/recraft-v4)

# How to Use Recraft V4 in Claude Code

Recraft V4 makes raster illustrations, campaign concepts, and photographic images from text. Its 1024×1024 square output suits visual exploration, while Recraft V4 Pro provides 2048×2048 output for more detailed work.

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

## Prompts to try with Recraft V4 in Claude Code

- Read the homepage copy and use Recraft V4 to create a 1024×1024 editorial illustration of its central idea. Put the subject on the right, leave the left open for HTML text, and save the image with the project assets.
- Read the latest blog draft and use Recraft V4 to create a 1024×1024 cover illustration. Choose one concrete scene from the article, use the site's palette, and keep all lettering in HTML.
- Use Recraft V4 to create a 1024×1024 illustration for the empty reading list screen: a fox asleep beside a stack of books, flat shapes, dark green and white, centered composition. Save it and check its appearance at the component's display size.
- Use Recraft V4 to create a 2048×2048 hero image for the ceramics shop in this project: a handmade charcoal bowl on a stone surface, side lighting, visible glaze texture, and open space above. Add it to the homepage and preview the crop.
- Use Recraft V4 to create 2048×2048 artwork for the project's jazz event page: a close view of a brass trumpet, hard light from the upper left, and the short headline 'NIGHT SESSION'. Check the lettering before adding it.

## How to set up Recraft V4 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 Recraft V4**: 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/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: Claude Code finds Recraft V4 on Spiral, shows the price and runs it.

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

## Recraft V4 tools and prices

- [Recraft V4 Normal · Text to Image](https://spiral.ai/tools/fal/fal-ai/recraft/v4/text-to-image) (fal): $0.052 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 in Claude Code?

Create website artwork from the project's written design brief and place it in the page layout. A coding agent can turn existing copy into a visual prompt and check the result in context.

### Website hero artwork

Generate a photographic scene or illustration with the subject to one side and open space for a headline added in the page layout.

### Campaign concept exploration

Try different subjects, lighting directions, and compositions before choosing an image direction for a campaign.

### Editorial illustrations

Turn an article's central idea into a specific illustrated scene with a defined palette and focal point.

### Product photography concepts

Describe a product, surface, material, and lighting setup to explore a proposed photo shoot.

### Event poster concepts

Combine an illustrated or photographic subject with a short event headline. Proofread the rendered text before preparing the final layout.

### Social post artwork

Create square campaign images around a recurring written brief for palette, framing, and lighting.

## Overview

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

## Recraft V4 in other agents

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

## More Claude Code guides

- [Recraft V3 Text to Image](https://spiral.ai/integrations/claude-code/recraft-v3-text-to-image)
- [Recraft V4 Pro](https://spiral.ai/integrations/claude-code/recraft-v4-pro)
- [Recraft V3 Image to Image](https://spiral.ai/integrations/claude-code/recraft-v3-image-to-image)
- [Recraft V4 Pro Vector](https://spiral.ai/integrations/claude-code/recraft-v4-pro-vector)
- [Recraft Crisp Upscale](https://spiral.ai/integrations/claude-code/recraft-crisp-upscale)
- [Recraft V4 Styles](https://spiral.ai/integrations/claude-code/recraft-v4-styles)

## Questions about Recraft V4 in Claude Code

**Can Claude Code use Recraft V4?**

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

**How much does Recraft V4 cost in Claude Code?**

$0.052 per image. 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 Recraft V4 in Claude Code?**

No. Spiral runs Recraft V4 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 in Claude Code?**

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

**Does Claude Code wait while Recraft V4 runs?**

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

**What is Recraft V4 good at?**

Recraft V4 suits photographic campaign concepts, illustrations, and graphics with short text. Give it a clear subject, composition, and lighting direction when the image needs to follow a specific brief.

**How does Recraft V4 Pro differ from Recraft V4?**

Recraft V4 produces 1024×1024 square images; Recraft V4 Pro produces 2048×2048 square images. Use Recraft V4 for exploration and Recraft V4 Pro when finer detail matters.

**Can Recraft V4 put readable text in an image?**

Yes, Recraft documents support for short and medium-length phrases. Keep poster headlines and packaging copy brief, then check the generated wording before using it.

**Should a Recraft V4 prompt be short or detailed?**

Use a short prompt to explore visual directions. For a defined result, describe the subject and setting first, then placement, lighting, camera angle, and mood.

**What should I check before using a generated image?**

Inspect small faces and hands for distorted anatomy, and proofread any text. Recraft describes stronger anatomy and realism in Recraft V4 Pro, but inspection remains a useful final step.

