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

Muse Code · Image

How to Use Muse Image Edit in Muse Code

Muse Image Edit makes targeted changes to existing images and combines visual references into one scene. Unlike Muse Image Text to Image, it can use an existing subject or composition as the starting point for further edits.

Prompts to try with Muse Image Edit in Muse Code

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

Use Muse Image Edit on the product image in the project's assets folder. Change only the backdrop to dark green; preserve the product shape, label wording, camera angle, and lighting.

Muse Image EditMuse Code
Try asking
  • Use Muse Image Edit with the project's approved character sheet and city illustration. Create one wide comic panel showing the character waiting at a crosswalk; preserve the costume, face, and drawing style.

  • Remove the background from the photo I attach with Muse Image Edit and give me a transparent PNG. Save the result in ./assets.

  • Use Muse Image Edit to clean up these product shots so they sit on pure white.

  • Edit this image with Muse Image Edit: keep the subject, swap the background for a sunlit studio.

How to set up Muse Image Edit in Muse Code

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

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    muse mcp login spiral

Use the Spiral skill

  1. Send Muse 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 Muse Image Edit

    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": "meta/muse-image/edit",
        "input": {
          "prompt": "A cinematic editorial portrait in soft window light with crisp typography",
          "image_urls": [
            "<image_urls>"
          ]
        }
      }'

Then paste one of the prompts above: Muse Code finds Muse Image Edit on Spiral, shows the price and runs it.

Muse Image Edit providers and prices

Spiral runs Muse Image Edit through fal. Open a card for today's price, with every fee included.

falImage

Settings you can ask for

Muse Image Edit works from your prompt and image URLs. Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of images1 to 101

The number of edited images to generate.

Output formatjpeg, png, or webpwebp

The format of the generated image.

Every API field of Meta Muse Image Edit · Image Editing is on its tool page: open its card above.

What can you do with Muse Image Edit in Muse Code?

Create image assets from project briefs and turn visual feedback into concrete revisions. Muse Image can support website artwork, illustrated documentation, and campaign mockups with specific composition and short lettering.

Campaign concept boards

Explore a written campaign idea with Muse Image Text to Image, or develop supplied campaign artwork with Muse Image Edit. Specify the composition, palette, and short headline.

Editorial illustrations

Create an illustration from an article brief or rework an existing illustration. Describe the central metaphor and the visual style instead of asking for a generic image about the topic.

Event poster concepts

Build a poster from a written brief or revise supplied poster artwork. Keep the title short and check the rendered wording before approving it.

Comic artwork

Use Muse Image Text to Image for initial character sheets and scene concepts. Use Muse Image Edit with approved references for continuing panels and short speech bubbles.

Website illustration concepts

Generate artwork from a website brief or adapt supplied artwork for a new composition. Specify where the subject belongs and where the design needs empty space.

Product scene concepts

Visualize a described product in a studio scene with Muse Image Text to Image. Use Muse Image Edit when an existing product image must guide the result.

Targeted artwork revisions

Change a named object, color, or piece of lettering in supplied artwork. State which subject details, lighting, and background should stay the same.

Reference-based compositions

Combine supplied subjects, objects, and settings into one image. Explain the role of each reference and describe the intended arrangement.

Questions about Muse Image Edit in Muse Code

Can Muse Code use Muse Image Edit?

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Muse Image Edit like any built-in tool.

How much does Muse Image Edit cost in Muse Code?

$0.013 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 Muse Code plan is separate.

Do I need a fal account to use Muse Image Edit in Muse Code?

No. Spiral runs Muse Image Edit on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Muse Image Edit in Muse Code?

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

Does Muse Code wait while Muse Image Edit runs?

Muse Image Edit runs in the background. Muse Code starts the run, checks on it and gives you the image when it's ready.

What is Muse Image good at?

Muse Image suits briefs that combine a clear subject, deliberate composition, and short lettering. Useful starting points include campaign artwork, editorial illustrations, and comic panels.

Can Muse Image put readable text in an image?

Yes, but exact lettering can vary between attempts. Keep the wording short, spell it out exactly, and check every word before using the image.

What resolution does Muse Image produce?

The documented output is roughly 2.5 megapixels. Requested dimensions control the image's proportions rather than guaranteeing that exact pixel size.

How should I write a Muse Image prompt?

Describe the subject, arrangement, visual style, and lighting in concrete terms. For lettering, provide the exact words and explain which text should be most prominent.

Will repeating a Muse Image prompt reproduce the same image?

Treat a repeated request as another attempt rather than an exact copy. For a continuing series, keep an approved reference and use Muse Image Edit to guide subsequent images.

Get started

Start using Muse Image Edit in Muse Code

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

Paste this into Muse Code:

Set up Muse Code

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