Azure图像模型

MAI Image 2.5 Pro

模型介绍

MAI-Image-2.5-Pro is the flagship of Microsoft's MAI image family, designed for complex compositions with strong object and character consistency, accurate material properties and coherent spatial reasoning. Best suited for photorealistic scenes, rich documentary-style imagery and demanding creative work. Supports text-to-image generation and image-to-image editing. 通过统一 API 即可完成接入,支持弹性并发、用量监控和团队级密钥管理,适合从快速验证到稳定调用的完整链路。

MICROSOFT
模型类型图像模型
上下文4K
最大输出1K
起步价格$5 / M
API 协议

能力与模态

当前模型版本支持的输入输出能力

输入模态
模型体验
Function Calling
结构化输出
网页搜索
输出模态
前缀续写
Cache
批量推理
模型微调

模型价格

价格与能力以接口实时数据为准

按量计费
输入价格$5 / M
输出价格$106 / M
图片输入$8 / M
图片输出 Token$106 / M

API 接口

当前模型可以使用的调用端点

/v1/images/generations支持

API 接入示例

选择协议与语言,配置 API Key 后运行

Images · Generations

先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。

POSThttps://api.tikway.ai/v1/images/generations
curl --fail-with-body 'https://api.tikway.ai/v1/images/generations' \  -H "Authorization: Bearer $AI_GATEWAY_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "model": "microsoft/mai-image-2.5-pro",  "prompt": "A quiet coastal town at sunrise, soft natural light"}'
查看完整接入文档

模型接入常见问题

调用 MAI Image 2.5 Pro 应填写哪个模型 ID?

本页模型 ID 为 microsoft/mai-image-2.5-pro。按对应协议原样复制,不能用展示名称代替,也不要自行增删前缀。

MAI Image 2.5 Pro 支持哪些 API 协议?

目录当前列出的协议为:OpenAI。查看本页调用示例中的完整端点、鉴权方式和参数;不同协议不能直接共用请求体。

接入教程

AI API 中转 · 多模型接入AI API 费用怎么算?Tikway Token 计费与报错排查Tikway 模型与费用核对:模型 ID、调用记录与证据边界