Redeem voucher

MAI-Image-2.7

azure/mai-image-2.7

MAI-Image-2.7 是微软 AI 推出的图像生成与编辑模型,属于 MAI-Image-2.7 系列中的高精度版本,同系列还有速度更快的 MAI-Image-2.7 Flash。该模型适合生成可直接用于设计的视觉素材,支持可控的迭代编辑,包括多参考图编辑功能:可融合最多五张输入图像中的人物、产品、风格与场景,同时保留构图与细节。长宽比可固定,也可交由模型根据构图自行选择。

Modalities
Public starting price
Priced by multiple attributes
Added to catalog
Nov 20, 2026

Online Inference

Configure input

Controls and defaults come directly from this model’s API schema.

Configure the model first, then sign in when you are ready to generate.Sign in to generate

Task result

Preview the model before signing inAll controls are available now. Sign in only when you submit the task.
MAI-Image-2.7
Progress—
Elapsed—
Request ID—

Task History

Task history

Only generation records from the last seven days are available.

Generation details

API Call

MAI-Image-2.7 code examples and API guide

Modelmesh normalizes requests and responses across service providers behind one consistent API.

Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.

Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.

#!/usr/bin/env bash set -euo pipefail API_KEY="$SSY_API_KEY" curl --fail-with-body --silent --show-error --location \ --request POST \ "https://router.shengsuanyun.com/api/v1/tasks/generations" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer ${API_KEY}" \ --data '{ "model": "azure/mai-image-2.7", "n": 1, "prompt": "深蓝色夜空下,一座白色天文台立在红色峡谷边缘,电影感广角摄影。", "size": "1024x1024" }'
                  
                    
                        
                        #!/usr/bin/env bash
                      
                        
                        set -euo pipefail
                      
                        
                        ​
                      
                        
                        API_KEY="$SSY_API_KEY"
                      
                        
                        ​
                      
                        
                        curl --fail-with-body --silent --show-error --location \
                      
                        
                          --request POST \
                      
                        
                          "https://router.shengsuanyun.com/api/v1/tasks/generations" \
                      
                        
                          --header "Content-Type: application/json" \
                      
                        
                          --header "Authorization: Bearer ${API_KEY}" \
                      
                        
                          --data '{
                      
                        
                          "model": "azure/mai-image-2.7",
                      
                        
                          "n": 1,
                      
                        
                          "prompt": "深蓝色夜空下,一座白色天文台立在红色峡谷边缘,电影感广角摄影。",
                      
                        
                          "size": "1024x1024"
                      
                        
                        }'
                      
                  
                
#!/usr/bin/env bash set -euo pipefail API_KEY="$SSY_API_KEY" REQUEST_ID="${SSY_REQUEST_ID:?Set SSY_REQUEST_ID to the ID returned by task submission}" curl --fail-with-body --silent --show-error --location \ --request GET \ "https://router.shengsuanyun.com/api/v1/tasks/generations/${REQUEST_ID}" \ --header "Authorization: Bearer ${API_KEY}"
                  
                    
                        
                        #!/usr/bin/env bash
                      
                        
                        set -euo pipefail
                      
                        
                        ​
                      
                        
                        API_KEY="$SSY_API_KEY"
                      
                        
                        REQUEST_ID="${SSY_REQUEST_ID:?Set SSY_REQUEST_ID to the ID returned by task submission}"
                      
                        
                        ​
                      
                        
                        curl --fail-with-body --silent --show-error --location \
                      
                        
                          --request GET \
                      
                        
                          "https://router.shengsuanyun.com/api/v1/tasks/generations/${REQUEST_ID}" \
                      
                        
                          --header "Authorization: Bearer ${API_KEY}"
                      
                  
                

Pricing

Pricing Details

计费公式: 图片费用(元)=(文本输入 Token × 文本输入单价 + 图片输入 Token × 图片输入单价 + 图片输出 Token × 图片输出单价)÷ 1,000,000

人民币刊例单价

文本输入(元/百万 tokens) 图片输入(元/百万 tokens) 图片输出(元/百万 tokens)
35.00 56.00 238.00