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

Muse Code · ImageReleased 2026-06-02

How to Use MAI Image 2.5 in Muse Code

Use MAI Image 2.5 for product imagery, realistic scenes, and posters with text inside the image. It is the base model in the 2.5 series; Pro adds higher fidelity for demanding artwork.

Prompts to try with MAI Image 2.5 in Muse Code

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

Read the homepage copy and design tokens, then use MAI Image 2.5 to create a 16:9 photograph of a ceramic desk lamp. Match the project colors, use soft window light, and leave the left third open for HTML text.

MAI Image 2.5Muse Code
Try asking
  • Use MAI Image 2.5 to generate a square product image for our fictional coffee brand. Read the brand brief, describe a paper coffee bag on a walnut table, and quote the approved brand name on the label.

  • Read the event page, then use MAI Image 2.5 to make a 3:4 poster concept. Include only the approved event title in quotation marks, place it above the scene, and compare the rendered spelling with the source copy.

  • Use MAI Image 2.5 to create a 3:2 editorial image for the gardening article in this project. Show a sunlit potting bench, terracotta pots, and soil textures. Save the image and add descriptive alt text.

  • Read the product brief and use MAI Image 2.5 to create a square concept image of our fictional stainless steel travel mug. Specify an eye-level camera, brushed metal, soft side lighting, and a plain background.

How to set up MAI Image 2.5 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 MAI Image 2.5

    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": "microsoft/mai-image-2.5",
        "input": {
          "prompt": "A photorealistic concept-art poster of a university campus at sunset, cinematic lighting, a banner reading \"LOUISVILLE\" in bold serif type."
        }
      }'

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

MAI Image 2.5 providers and prices

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

falImage
Mai Image 2.5 Text to Image
microsoft/mai-image-2.5

Settings you can ask for

MAI Image 2.5 works from your prompt. Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of images1 to 41

The number of images to generate.

Aspect ratioauto, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, or 2:3auto

The aspect ratio of the generated image. Use "auto" to let the model decide based on the prompt.

Output formatjpeg, png, or webppng

The format of the generated image.

Every API field of Mai Image 2.5 Text to Image is on its tool page: open its card above.

What can you do with MAI Image 2.5 in Muse Code?

Create product imagery and realistic visual assets from the project's written design requirements. A coding agent can turn those requirements into image briefs, save the results, and place them in the interface.

Product campaign concepts

Create a product scene with a specific material, camera angle, and light source. Use it to compare visual directions before commissioning final photography.

Posters with embedded text

Explore event posters or packaging concepts with quoted headlines and explicit text placement. Review every word before using the artwork.

Realistic editorial illustrations

Generate a scene for an article or presentation by describing its subject, setting, lighting, and mood. Use the result as an illustration and check any factual details.

Brand imagery

Turn a written creative brief into image concepts with defined colors, materials, and composition. Keep those directions explicit when comparing alternatives.

Presentation visuals

Create a realistic scene with a deliberately open area for slide copy. Describe the image composition separately from any words you want rendered inside it.

Packaging studies

Explore how a fictional product could look with different materials, label layouts, and lighting. Quote the label wording and inspect the resulting typography.

Questions about MAI Image 2.5 in Muse Code

Can Muse Code use MAI Image 2.5?

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

How much does MAI Image 2.5 cost in Muse Code?

Up to $0.078 per run at the default inputs. $0.078 per unit of `num_images`. 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 MAI Image 2.5 in Muse Code?

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

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

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

Does Muse Code wait while MAI Image 2.5 runs?

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

What is MAI Image 2.5 good at?

Start with product shots, realistic scenes, and promotional artwork. Lighting, reflections, and text inside posters or packaging are documented strengths.

Can MAI Image 2.5 put readable text in an image?

Yes. Microsoft specifically documents labels, posters, packaging, and signage as supported text-rendering uses. Check the wording before publishing.

What is its maximum image resolution?

The model card specifies a maximum area of 1,048,576 pixels, equivalent to 1024 × 1024 for a square image. Plan larger deliverables around that pixel budget.

How should I write a prompt?

Describe the subject, camera view, lighting, layout, and mood. Put any words that should appear inside the image in quotation marks and state where they belong.

What should I check in the output?

Check visual details against your brief, especially anything readers might treat as factual. Microsoft warns that plausible-looking details can still be inaccurate or misleading.

Get started

Start using MAI Image 2.5 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