MAI Image 2.7
MAI Image 2.7 is the photorealistic image generation and editing model from Microsoft. It turns text prompts into high-fidelity images at 1K or 2K with strong prompt alignment and legible in-image typography, edits a source image from an instruction using up to five images as references, and can render subjects on a transparent background. Ideal for concept art, marketing creative, product shots and game asset iteration.
See more
MAI Image 2.7 is the photorealistic image generation and editing model from Microsoft. It turns text prompts into high-fidelity images at 1K or 2K with strong prompt alignment and legible in-image typography, edits a source image from an instruction using up to five images as references, and can render subjects on a transparent background. Ideal for concept art, marketing creative, product shots and game asset iteration.
Connect Claude, Cursor, VS Code, or Codex to Layer’s MCP server and MAI Image 2.7 becomes a tool your agent can reach for — it picks the parameters, runs the generation, and shows you the result in the conversation.
https://mcp.app.layer.ai/mcpAsk your agent
“Use MAI Image 2.7 to generate 4 variations of a crystal sword icon on a transparent background.”
execute_forge({
"base_model_id": "mai-image-2.7",
"prompt": "A crystal sword icon on a transparent background, game UI art",
"batch_size": 4,
"width": 1024,
"height": 1024
})Authenticate with a personal access token, post the model’s own form, and poll the inference until it completes. Every field below is accepted by this endpoint.
# Start the generation — returns an inference id straight away.
curl -X POST https://api.app.layer.ai/api/v2/workspaces/$WORKSPACE_ID/base-models/microsoft-mai-image-2-7/inferences \
-H "Authorization: Bearer $LAYER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A crystal sword icon on a transparent background, game UI art"
}'
# Poll until status is "complete" — the response then carries the asset URLs.
curl https://api.app.layer.ai/api/v2/workspaces/$WORKSPACE_ID/inferences/$INFERENCE_ID \
-H "Authorization: Bearer $LAYER_TOKEN"- prompt stringrequired
- Describe what to generate, or the change to make.
- color_palette any
- Colors the output should use. This model doesn't take a palette natively, so the colors are added to the prompt.
- aspect_ratio enumdefault SQUARE_1K14 options
- The shape and size of the output.
- transparency booleandefault false
- Output the subject alone, with no backdrop behind it.
- nine_slice booleandefault false
- Deliver the image as a 9-slice UI element, with its insets recorded on the file.
- guidance_file_init_image file[]
- The image to modify
- guidance_file_reference_image file[]
- Guides the edit
- output_fit any
- Trim the transparent margin, and place the image on a canvas of a fixed size.
- prompt_language string
- The language the prompt is written in, so it reaches the model as you meant it.
Why use MAI Image 2.7 for image?
High-quality image generation
MAI Image 2.7 delivers production-ready outputs with clean structure, sharp detail, and strong prompt adherence. Ideal for character art, environments, and marketing assets.
Strong prompt control
The model interprets creative instructions with high accuracy, even when switching between different styles, lighting setups, or character directions.
Clean compositions for UA
Maintains stable framing, clear silhouettes, and high focal clarity. Assets read well at mobile sizes, making it strong for UA experiments and ad creatives.
Rapid character and cosmetic ideation with strong structure
Quickly explore character poses, cosmetic ideas, and early art directions. Clean silhouettes and expressive results help teams evaluate concepts before moving to heavier models.
Fast UA creative exploration and thumbnail testing
Generate clear, high-readability frames that work well for quick A/B testing across networks. Test multiple creative angles and iterate quickly based on results.
Lightweight environment and item exploration for LiveOps
Draft environments, themed content, shop items, and event visuals in a rapid loop. Ideal for early-stage direction setting before committing to final polish.
FAQ
How much does MAI Image 2.7 cost? Is it free?+
How does Layer's pricing work?+
There are no seat fees and no feature gates. Subscriptions start at $60 a month for 1,000 Creative Units, and each further 1,000 CUs is another $60 a month. Unused units roll over to the next billing period, up to 10% of the units included in the period. You can change the amount each month. Every generation on Layer (image, video, 3D, or audio) consumes Creative Units, and you only pay for what you create.
Other image models on Layer
MAI Image 2.5
Microsoft
Microsoft's photorealistic image model with strong typography and native editing.
MAI Image 2.7 Flash
Microsoft
The fast, low-cost tier of Microsoft's MAI Image 2.7, with native editing and transparent backgrounds.
Kling v4 Long Image
Kling
Kling's v4 long image model. Designs a full-length webpage, or a product detail page from 1-3 product photos, as one tall image.
Kling v4 Image
Kling
Kling's v4 image model. Generates and edits images at 2K or 4K from a prompt and up to 10 reference images.
Topaz Generative Enhance
Topaz Labs
Topaz Generative Enhance for enhanced details.
Seedream 5.5 Layerize
ByteDance
Split a finished image into up to 99 labeled, editable layers with Seedream 5.5 Layerize.