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 最大出力トークン
リリース日: 2026-04-21
対応プロトコル:openai
利用可能なプロバイダー:OpenAI
機能:Visionプロンプトキャッシュ
Providers
OpenAI
-15%入力トークン
$4.25/M
$5/M
出力トークン
$25.5/M
$30/M
キャッシュ読込
$1.06/M
$1.25/M
画像入力
$8/M
キャッシュ画像
$2/M
画像出力
$30/M
Web検索
$0.01/R
Protocols
openai
/v1/images/generationsコード例
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)
関連モデル
よくある質問
Ofox.aiでのOpenAI: GPT Image 2の料金は、入力100万トークンあたり$5/M、出力100万トークンあたり$30/Mです。従量課金制、月額料金なし。
OpenAI: GPT Image 2は0トークンのコンテキストウィンドウと最大0トークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
OpenAI: GPT Image 2は以下の機能に対応:Vision, プロンプトキャッシュ。Ofox.ai統合APIですべての機能にアクセスできます。