Spiral gives your agent every tool with one account. Browse the tools →

VS Code · Image

How to Use Recraft V4.1 Utility in VS Code

Recraft V4.1 Utility makes straightforward product shots, mockups, and graphics for repeated creative work. It generates at 1K, while Recraft V4.1 Utility Pro adds 2K output and finer detail.

Prompts to try with Recraft V4.1 Utility in VS Code

Copy an example into VS Code, or ask in your own words.

Read the onboarding copy in this project, then use Recraft V4.1 Utility to create a square illustration of a small seedling for the first screen. Use flat shapes, muted green and cream, a calm mood, and no lettering.

Recraft V4.1 UtilityVS Code
Try asking
  • Read the empty-state requirements, then use Recraft V4.1 Utility to create a simple ink illustration of an open mailbox. Center it on white with generous margins and no lettering.

  • Use Recraft V4.1 Utility to explore three product-image compositions from the project brief, generating each separately. Keep the object and lighting description fixed; change only its placement in the frame.

  • Use Recraft V4.1 Utility to generate a square concept image for the ceramic mug described in the product brief. Show the full object from the front, with even studio lighting and a plain white background.

  • Use Recraft V4.1 Utility to create a front-facing blank cardboard box mockup for the packaging page in this project. Show the full box, natural paper texture, even lighting, and a neutral background.

How to set up Recraft V4.1 Utility in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS 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.

    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 Utility

    One request; the result comes back by polling or a webhook.

    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/utility/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: VS Code finds Recraft V4.1 Utility on Spiral, shows the price and runs it.

Recraft V4.1 Utility providers and prices

Spiral runs Recraft V4.1 Utility through fal. Open a card for today's price, with every fee included.

falImage
Recraft V4.1 Utility · Text to Image
fal-ai/recraft/v4.1/utility/text-to-image

What can you do with Recraft V4.1 Utility in VS Code?

Create product mockups and app illustration concepts from the project's written requirements. Use Recraft V4.1 Utility for simple scenes, with explicit framing and material instructions.

Product concept images

Turn a written product idea into a front-facing studio image with a plain background and clearly described materials.

Blank packaging mockups

Generate unprinted boxes, bottles, or pouches to explore packaging shapes before adding artwork.

Creative A/B exploration

Explore a product concept with different backgrounds or subject placements, changing one part of the brief at a time.

App illustration concepts

Create simple illustrations for onboarding or empty states from written briefs. Specify the medium, subject, and mood.

Material studies

Compare a proposed object's appearance in ceramic, brushed metal, or matte plastic using the same framing and lighting brief.

Presentation mockups

Generate simple, unbranded product scenes for pitch decks, with enough space around the object for slide text.

Questions about Recraft V4.1 Utility in VS Code

Can VS Code use Recraft V4.1 Utility?

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

How much does Recraft V4.1 Utility cost in VS Code?

$0.0455 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

Do I need a fal account to use Recraft V4.1 Utility in VS Code?

No. Spiral runs Recraft V4.1 Utility 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 Utility in VS Code?

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

Does VS Code wait while Recraft V4.1 Utility runs?

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

What is Recraft V4.1 Utility best for?

Simple product shots, blank mockups, and straightforward graphics. Its flat lighting and front-facing compositions suit work where the subject needs to be easy to see.

When should I choose Recraft V4.1 Utility Pro?

Choose Pro when you need higher resolution and finer detail. Recraft V4.1 Utility produces 1K raster images; Pro produces 2K raster images.

What are the square output dimensions?

Recraft documents 1024 × 1024 pixels for Recraft V4.1 Utility and 2048 × 2048 pixels for Recraft V4.1 Utility Pro.

Can Recraft V4.1 Utility create editable SVG files?

These two models produce raster images. Choose a Recraft Vector model when the deliverable needs editable SVG paths.

How detailed should my prompt be?

Start short when exploring an idea. For a specific result, describe the subject, background, framing, materials, and lighting; both models support prompts up to 10,000 characters.

Get started

Start using Recraft V4.1 Utility in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options