Microsoft: MAI Image 2.6
Image Generationmicrosoft/mai-image-2.6MAI-Image-2.6 is Microsoft's image generation and editing model on Azure AI Foundry, the successor of MAI-Image-2.5: one image per request up to about 2.36 megapixels, and edits with up to five reference images.
上下文窗口
4K
最大输出 Token
1K
能力
视觉
可用供应商
Azure
支持的协议
openai
供应商
Azure
provider.type: "azure_foundry"输入 Token
$5/M
输出 Token
$38/M
图像输入
$8/M
输出图像
$38/M
接入协议
openai
/v1/images/edits/v1/images/generations使用文档
在 OfoxAI 调用 MAI Image 2.6:模型 ID、请求参数,以及最常遇到的报错。
代码示例
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.io/v1",api_key="YOUR_OFOX_API_KEY",)response = client.images.generate(model="microsoft/mai-image-2.6",prompt="A beautiful sunset over mountains",size="1024x1024",)print(response.data[0].url)
相关模型
常见问题
Microsoft: MAI Image 2.6 在 Ofox.ai 上的价格为输入 $5/百万 Token,输出 $38/百万 Token。按量计费,无月费。
Microsoft: MAI Image 2.6 支持 4K Token 的上下文窗口,最大输出 1K Token,可处理大型文档并维持长对话。
只需将 base URL 设置为 https://api.ofox.io/v1,并使用你的 Ofox API Key。API 兼容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
Microsoft: MAI Image 2.6 支持以下能力:视觉。通过 Ofox.ai 统一 API 访问所有功能。