Introduction
Describe the subject, setting, lighting, and any quoted wording in prompt, then choose 1k or 2k resolution and one of eleven aspect ratios.
| Field | Value |
|---|---|
| Input | Text |
| Output | Image |
| Publisher | Microsoft |
| Release date | November 17, 2026 |
| Tasks | Text to image; image editing |
| Resolution tiers | 1k (default), 2k on text-to-image |
| Aspect ratios | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21, 4:1, 1:4 |
| Edit inputs | 1 to 5 images per request |
Key features & highlights
High identity retention in edits
In our single-photo and two-photo tests, MAI-Image-2.7 kept the woman's facial structure, expression, and studio proportions stable while changing garments and stage lighting.
Eleven preset aspect ratios
Text-to-image spans standard portrait, square, 16:9 widescreen, 21:9 cinema, and extreme 4:1 or 1:4 banner proportions.
Per-input transparent edit billing
Edit requests bill a fixed output base plus a small per-input charge for each reference photo from one through five.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | Select from 11 presets ranging from 1:1 and 4:3 to 21:9, 9:21, 4:1, and 1:4 at no extra charge. |
resolution | No | Choose 1k (default, lower rate) or 2k (double the 1k rate, up to 2720 x 1536 widescreen). |
prompt | Yes | Scene description up to 10,000 characters; put intended signage wording in quotes and note 'no extra text' if props should stay blank. at least 1 characters · at most 10000 characters |
Pricing
Billed per generated image by resolution tier (1k or 2k); aspect ratio does not affect price, and failed or content-filtered requests are refunded in full.
| Specification | Price |
|---|---|
| $0.084 / image |
| $0.168 / image |
Use cases
Wardrobe and lighting restyling
Swap a studio jacket for a tailored burnt-orange wool trench coat while preserving the subject's exact face, posture, and grey studio backdrop.
Two-photo scene compositing
Combine a dark concert stage photo and a separate portrait so the subject appears behind the vintage microphone under matching amber stage spotlights.
Widescreen architectural visualization
Render 2K 16:9 exteriors such as a Nordic timber library overlooking misty fjord water at dawn with glowing interior pendants.
Editorial tabletop and menu stills
Compose travertine stone, colored glass, and engraved brass signage in 4:3 with crisp sunlit shadows for food and hospitality concepts.
Prompt guide & pro tips
Pick generation or multi-image editing
Send text-to-image with a written brief when starting from a blank canvas, or send edit with one to five source URLs when an existing portrait or scene must anchor the result.
Specify layout, materials, and exact words
State subject, material finish, lighting direction, and any quoted sign copy upfront. When you want no extra slogans or book titles added to props, say so directly.
Choose resolution and framing for generation
Pick 1k for quick proofs or 2k for high-detail scenes like 2720 x 1536 widescreen architecture. On edit requests, the canvas follows your source photo automatically.
Verify identity and added background details
Check that edited wardrobe changes leave facial features intact and proofread any incidental prop lettering before publishing.
Text-to-image generation with MAI-Image-2.7
MAI-Image-2.7 turns structured text prompts into clean editorial stills, product photography, and architectural exteriors at 1K or 2K resolution. In our November 25, 2026 live tests, a 1K 4:3 tabletop prompt returned an 1152 x 864 PNG and a 2K 16:9 architectural exterior returned a 2720 x 1536 PNG.
Parameters and pricing
| Parameter | Options | Notes |
|---|---|---|
| prompt | 1–10,000 characters | Describe subject, materials, camera framing, and quoted wording. |
| resolution | 1k (default), 2k | Selects the per-image billing tier. |
aspect_ratio | 11 ratios (1:1 to 4:1 / 1:4) | Sets canvas proportions without changing the tier rate. |
Each delivered image is billed strictly by resolution tier. Failed runs and safety refusals incur zero charge.
Observed behaviour and prompting tips
- Material realism: Travertine marble, tinted cobalt glass, brushed brass, and wet slate reflections rendered cleanly without waxy smoothing.
- Unrequested prop copy: In our MORNING ROAST test, the model invented a short subtitle under the requested heading and printed titles on nearby prop books. Add explicit 'no additional text' instructions when packaging or props must stay clean.
- Moderation: Microsoft applies strict content screening across suggestive and adult categories. Blocked requests terminate as
content_rejectedwithout billing.
For reference-led wardrobe swaps or multi-photo compositing, switch to the edit endpoint on the MAI-Image-2.7 model page, or try MAI-Image-2.7 Flash for faster, lower-cost drafts.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "microsoft/mai-image-2.7/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"resolution": "1k",
"aspect_ratio": "1:1"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.




