Microsoft MAI Image 2.5 Text-to-Image is a fast AI image generation model that creates photorealistic, design-ready images from text prompts with strong realism, typography, and stylized visual control. Ready-to-use REST inference API for creative design, marketing visuals, product mockups, brand assets, social media content, concept art, and professional text-to-image workflows with simple integration, no coldstarts, and affordable pricing.
就緒

$0.05每次運行·~20 / $1

A cinematic movie still of an adult US woman standing alone on a rainy city street at night, wet pavement reflecting neon lights, long black coat, calm but emotional expression, soft bokeh background, realistic rain, shallow depth of field, dramatic cinematic lighting, photorealistic, no text
Microsoft MAI Image 2.5 Text-to-Image generates images from natural-language prompts with a simple workflow for prompt input, size selection, and output format control. It is suitable for concept art, marketing visuals, social media content, product mockups, and other prompt-driven image generation workflows.
Prompt-based image generation Turn natural-language descriptions into polished visual outputs.
Simple parameter set Use a lightweight workflow with prompt, size, and output format controls.
Flexible output sizing Choose the output size preset that best matches your intended composition.
Multiple output formats
Export generated images in supported formats such as png.
Production-ready API Suitable for creative ideation, campaign visuals, concept generation, and content production workflows.
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate. |
| size | No | Output image size preset, such as 1:1. |
| output_format | No | Output image format, such as png. |
A cinematic movie still of an adult US woman standing alone on a rainy city street at night, wet pavement reflecting neon lights, long black coat, calm but emotional expression, soft bokeh background, realistic rain, shallow depth of field, dramatic cinematic lighting, photorealistic, no text
Pricing includes a fixed base image charge plus a small surcharge based on prompt length.
size and output_format do not affect pricingpng when you want better image quality for downstream editing.prompt is required.
Pricing includes a fixed base image charge and a prompt-length surcharge.
Better prompts usually improve output quality and consistency.
Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/microsoft/mai-image-2.5/text-to-image with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Mai Image 2.5 Text To Image below.
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/microsoft/mai-image-2.5/text-to-image" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1:1",
"output_format": "png"
}'
# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# When status is "completed", read the output from data.outputs[0].// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env
const result = await client.run("microsoft/mai-image-2.5/text-to-image", {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1:1",
"output_format": "png"
});
console.log(result.outputs[0]); // → URL of the generated output# pip install wavespeed
import wavespeed
output = wavespeed.run(
"microsoft/mai-image-2.5/text-to-image",
{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1:1",
"output_format": "png"
}
)
print(output["outputs"][0]) # → URL of the generated outputMai Image 2.5 Text To Image is a Microsoft model for image generation, exposed as a REST API on WaveSpeedAI. Microsoft MAI Image 2.5 Text-to-Image is a fast AI image generation model that creates photorealistic, design-ready images from text prompts with strong realism, typography, and stylized visual control. Ready-to-use REST inference API for creative design, marketing visuals, product mockups, brand assets, social media content, concept art, and professional text-to-image workflows with simple integration, no coldstarts, and affordable pricing. You can call it programmatically or try it from the playground above.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/microsoft/microsoft-mai-image-2.5-text-to-image.
Mai Image 2.5 Text To Image starts at $0.050 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
Key inputs: `prompt`, `size`, `output_format`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/microsoft/microsoft-mai-image-2.5-text-to-image.
Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.
Commercial usage rights depend on the model's license, set by its provider (Microsoft). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.