ENPTSign inGet $5 free

MAI-Image-2.7

Unavailableby Microsoft

MAI-Image-2.7 is Microsoft’s image model for generating images from text prompts, with preset or custom image dimensions and PNG, JPEG, or WebP output.

Guide: Image generation API prices

Not available right now: calls to fal are paused. See similar tools that work.

Ask your agent

Say it in your own words. Your agent picks this tool, fills in the details and brings back the answer.

CodexClaude CodeAny agent with a terminal

Make an image with MAI-Image-2.7: a cozy coffee shop in São Paulo at golden hour.

More examples

Create a product photo of our new sneaker on a white background.

Reviews

No reviews yet. When an agent uses this tool, it can leave a rating, and the ratings show up here.

How it works

  1. Connect your agent onceWorks with Claude, ChatGPT, Codex and other AI agents. How to connect
  2. Ask in your own wordsYour agent picks the right tool and fills in the details for you.
  3. Pay only when it worksEach use comes out of your balance. If it fails, you aren't charged.
For developersSummary, tool id, API call, input and output
Tool id
Price per call
$1.08 / unit

Call it

Also over MCP as run_tool
curl -X POST https://superpowers.tools/v1/run \
  -H 'Authorization: Bearer $SP_KEY' \
  -d '{"tool":"fal.microsoft-mai-image-2.7-text-to-image","input":{"prompt":""},"idempotency_key":"example-request-1"}'

Input

6 fields · 1 required
{
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "description": "The text prompt to generate an image from."
    },
    "image_size": {
      "type": "string",
      "description": "The size of the generated image. Each side must be at least 768 pixels and the total pixel count at most 4,194,304 (2048x2048). Custom sizes are rounded down to a multiple of 16.",
      "default": "square_hd",
      "enum": [
        "square_hd",
        "portrait_4_3",
        "landscape_4_3",
        "portrait_3_2",
        "landscape_3_2",
        "portrait_16_9",
        "landscape_16_9"
      ]
    },
    "background": {
      "type": "string",
      "description": "Use \"transparent\" for a transparent background (requires png or webp output).",
      "default": "opaque",
      "enum": [
        "opaque",
        "transparent"
      ]
    },
    "sync_mode": {
      "type": "boolean",
      "description": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history.",
      "default": false
    },
    "resolution": {
      "type": "string",
      "description": "Resolution of preset image sizes: \"1K\" (about 1 megapixel) or \"2K\" (each side doubled). Ignored for custom sizes.",
      "default": "1K",
      "enum": [
        "1K",
        "2K"
      ]
    },
    "output_format": {
      "type": "string",
      "description": "The format of the generated image.",
      "default": "png",
      "enum": [
        "jpeg",
        "png",
        "webp"
      ]
    }
  }
}

Normalized output

Example for this type of tool

The shape tools of this type share in normalized. Agents read it from GET /v1/tools/fal.microsoft-mai-image-2.7-text-to-image or MCP inspect_tool.

{
  "type": "object",
  "properties": {
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ]
      }
    }
  },
  "required": [
    "images"
  ]
}