Introduction
Send a text prompt with resolution (1k or 2k) and aspect_ratio to generate crisp stills quickly at lower per-image cost.
| 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 | 11 presets (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
Economy pricing for iterative canvases
Built for interactive design apps and batch generation where per-image margins matter most.
Bilingual signage readability at 2K
Our 2K twilight alley test rendered both Latin 'RAMEN 24H' and crisp Japanese shop signs cleanly.
Consistent identity on background swaps
Our terrace swap and stage composite both kept the source woman's likeness intact across outdoor and spotlight lighting.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | Choose from 11 standard, cinematic, or banner ratios with no rate change. |
resolution | No | Pick 1k (default) for fastest throughput or 2k for sharper wide frames up to 2720 x 1536. |
prompt | Yes | Describe subject, lighting, and any quoted sign copy up to 10,000 characters. at least 1 characters · at most 10000 characters |
Pricing
Billed per generated image by resolution tier (1k or 2k); aspect ratio adds no surcharge, and failed or moderated requests incur zero charge.
| Specification | Price |
|---|---|
| $0.03 / image |
| $0.0492 / image |
Use cases
E-commerce product scenes at scale
Render clean Scandinavian tabletop stills such as matte ceramic headphones on pale oak wood for catalog thumbnails.
Street photography with bilingual signage
Generate 2K 16:9 twilight alleys with legible English and Japanese neon signs for editorial headers.
Rapid location swaps for portraits
Move a studio portrait onto a sunlit Mediterranean coastal terrace while keeping face, hair, and clothing locked.
Fast multi-photo stage mockups
Composite a performer portrait onto a concert stage photo at a fraction of flagship edit cost.
Prompt guide & pro tips
Start high-volume drafts in Flash
Use text-to-image at 1k for rapid layout explorations or 2k when street signage and small labels need extra sharpness.
Supply clean source photos for edits
Pass one photo for background swaps or up to five photos for compositing; describe preserved details first.
Control incidental signage explicitly
State exact quoted sign copy like 'RAMEN 24H' and tell the model to keep surrounding props unbranded if needed.
Escalate hero frames when required
Keep Flash for batch variants and switch only hero deliverables to flagship MAI-Image-2.7 if you need finer cloth or specular micro-detail.
Fast 1K–2K text-to-image with MAI-Image-2.7 Flash
MAI-Image-2.7 Flash brings Microsoft's 2.7 image architecture to high-throughput workloads. In our November 25, 2026 verification runs, 1K square output returned 1024 x 1024 and 2K 16:9 returned 2720 x 1536 with sharp multi-script storefront lettering.
Controls and billing
| Parameter | Options | Effect |
|---|---|---|
| prompt | 1–10,000 characters | Guides scene, style, and quoted text. |
| resolution | 1k (default), 2k | Determines the flat per-image tier rate. |
aspect_ratio | 11 ratios | Sets frame shape at no extra cost. |
Failed runs and content-policy refusals are fully refunded.
Test notes
- Strong value for catalog concepts, social headers, and rapid prompt iteration before upgrading final hero frames to MAI-Image-2.7.
- Strict content filtering declined all five adult ladder rungs without billing.
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-flash/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.




