Azure图像模型
GPT Image 2
模型介绍
GPT-image-2 is OpenAI's latest cutting-edge image generation model. Key value adds include better performance, quality, editing controls, and face preservation. The model supports high input_fidelity and adding/removing one aspect of the image while retaining others. This model includes improvements in aspect ratio, resolution, and editing capabilities. 通过统一 API 即可完成接入,支持弹性并发、用量监控和团队级密钥管理,适合从快速验证到稳定调用的完整链路。
模型类型图像模型
上下文—
最大输出—
起步价格$5 / M
API 协议
能力与模态
当前模型版本支持的输入输出能力
输入模态
模型体验
Function Calling
结构化输出
网页搜索
输出模态
前缀续写
Cache
批量推理
模型微调
模型价格
价格与能力以接口实时数据为准
输入价格$5 / M
输出价格$30 / M
缓存读取$1.25 / M
网页搜索$0.035 / request
图片输入$8 / M
图片输出 Token$30 / M
API 接口
当前模型可以使用的调用端点
/v1/images/edits支持
/v1/images/generations支持
API 接入示例
选择协议与语言,配置 API Key 后运行
先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。
POST
https://api.tikway.ai/v1/images/generations1curl --fail-with-body 'https://api.tikway.ai/v1/images/generations' \2 -H "Authorization: Bearer $AI_GATEWAY_API_KEY" \3 -H 'Content-Type: application/json' \4 -d '{5 "model": "openai/gpt-image-2",6 "prompt": "A quiet coastal town at sunrise, soft natural light"7}'