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

Claude Code · ImageReleased 2026-04-01

How to Use Wan 2.7 Text to Image in Claude Code

Wan 2.7 Text to Image turns written briefs into illustrations, portraits, and poster concepts at up to 2K. Unlike Wan 2.7 Image to Image, it creates the scene from text without a reference picture.

Prompts to try with Wan 2.7 Text to Image in Claude Code

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

Read the homepage copy and design tokens in this project. Use Wan 2.7 Text to Image to create one 2048 × 2048 editorial illustration of a bicycle repair bench, with natural window light and open space above the tools.

Wan 2.7 Text to ImageClaude Code
Try asking
  • Use Wan 2.7 Text to Image to create one 2048 × 2048 conference poster concept using the event title from this project's content. Put the title at the top and a woodcut illustration of a radio telescope below it.

  • Read the lesson text in this project. Use Wan 2.7 Text to Image to create one 2048 × 2048 watercolor diagram of a seed becoming a plant, with the exact labels Seed, Root, Shoot, and Leaves.

  • Generate a product photo with Wan 2.7 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 Wan 2.7 Text to Image.

How to set up Wan 2.7 Text to Image 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.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Wan 2.7 Text to Image

    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/wan/v2.7/text-to-image",
        "input": {
          "prompt": "An astronaut riding a horse in a photorealistic style."
        }
      }'

Then paste one of the prompts above: Claude Code finds Wan 2.7 Text to Image on Spiral, shows the price and runs it.

Wan 2.7 Text to Image providers and prices

Spiral runs Wan 2.7 Text to Image through fal. Open a card for today's price, with every fee included.

falImage
Wan 2.7 · Text to Image
fal-ai/wan/v2.7/text-to-image

Settings you can ask for

Wan 2.7 Text to Image works from your prompt. Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Negative promptwhat to leave out, in words

Content to avoid in the generated image. Max 500 characters.

Number of images1 to 51

Number of images to generate (1-5).

Seeda whole number

Random seed for reproducibility (0-2147483647).

Output formatjpeg, png, or webpjpeg

The format of the generated images.

Every API field of Wan 2.7 · Text to Image is on its tool page: open its card above.

What can you do with Wan 2.7 Text to Image in Claude Code?

Turn a project's visual requirements into images that fit its screens and content. Use Wan 2.7 Image for text-bearing graphics and detailed compositions, then inspect the results in the actual layout.

Event poster concepts

Create posters from a written brief, with an exact event title, a defined visual style, and clear placement for the headline.

Character portrait development

Explore a fictional character's face, clothing, expression, and lighting from a written description before choosing a visual direction.

Architectural concept images

Turn a written description of a room or building into a concept image with specified materials, viewpoint, and time of day.

Illustrated educational graphics

Create an illustrated explanation with supplied labels and a defined arrangement. Review the wording and diagram before using it in a lesson.

Questions about Wan 2.7 Text to Image in Claude Code

Can Claude Code use Wan 2.7 Text to Image?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Wan 2.7 Text to Image like any built-in tool.

How much does Wan 2.7 Text to Image cost in Claude Code?

$0.039 per image. 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 Claude Code plan is separate.

Do I need a fal account to use Wan 2.7 Text to Image in Claude Code?

No. Spiral runs Wan 2.7 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 Wan 2.7 Text to Image in Claude Code?

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

Does Claude Code wait while Wan 2.7 Text to Image runs?

Wan 2.7 Text to Image runs in the background. Claude Code starts the run, checks on it and gives you the image when it's ready.

What is Wan 2.7 Image useful for?

Wan 2.7 Image is useful for posters, illustrated content, and visual work that combines readable text with a specified composition. Alibaba highlights text rendering, subject consistency, and complex instruction following.

Can Wan 2.7 Image put text inside a picture?

Yes. Text rendering is one of its documented strengths, making it useful for poster headlines, labels, and illustrated explainers. Give the exact wording and check the result before publishing.

Does Wan 2.7 Image support multilingual text?

Alibaba reports text rendering in 12 languages. For a localized graphic, supply the approved wording rather than asking the image model to translate it.

How should I describe the picture I want?

Specify the subject, setting, style, lighting, and composition. For example, describe a ceramic mug photographed from above on a wooden table in morning window light, rather than asking for a nice product picture.

Can Wan 2.7 Image make a 2048 × 2048 image?

Yes. A square image at 2048 × 2048 fits the documented 2K output limit shared across these models.

Get started

Start using Wan 2.7 Text to Image in Claude Code

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

Paste this into Claude Code:

Set up Claude Code

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