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.
0 上下文視窗
0 最大輸出 token
發布日期: 2026-04-21
支援的協定:openai
可用供應商:Azure
能力:視覺提示快取
定價
| 類型 | 價格 |
|---|---|
| 輸入 Token | $5/M |
| 輸出 Token | $30/M |
| 圖像輸入 | $8/M |
| 輸出圖像 | $30/M |
| 快取讀取 | $1.25/M |
| 快取圖像 | $2/M |
程式碼範例
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.ai/v1",api_key="YOUR_OFOX_API_KEY",)response = client.images.generate(model="openai/gpt-image-2",prompt="A beautiful sunset over mountains",size="1024x1024",)print(response.data[0].url)
相關模型
常見問題
OpenAI: GPT Image 2 在 Ofox.ai 上的價格為輸入 $5/M/百萬 Token,輸出 $30/M/百萬 Token。按量計費,無月費。
OpenAI: GPT Image 2 支援 0 Token 的上下文視窗,最大輸出 0 Token,可處理大型文件並維持長對話。
只需將 base URL 設定為 https://api.ofox.ai/v1,並使用你的 Ofox API Key。API 相容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
OpenAI: GPT Image 2 支援以下能力:視覺, 提示快取。透過 Ofox.ai 統一 API 存取所有功能。