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 存取所有功能。