OpenAI

OpenAI: GPT Image 2

Image Generation
openai/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.

0 kontextfenster
0 max. ausgabe-tokens
Veröffentlicht: 2026-04-21
Unterstützte Protokolle:OpenAIopenai
Verfügbare Anbieter:AzureAzure
Fähigkeiten:VisionPrompt Caching

Preise

TypPreis
Eingabe-Tokens$5/M
Ausgabe-Tokens$30/M
Bildeingabe$8/M
Ausgabe Bild$30/M
Cache-Lesen$1.25/M
Gecachtes Bild$2/M

Code-Beispiele

from openai import OpenAI
client = 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)

Häufig gestellte Fragen

OpenAI: GPT Image 2 auf Ofox.ai kostet $5/M pro Million Eingabe-Tokens und $30/M pro Million Ausgabe-Tokens. Pay-as-you-go, keine monatlichen Gebühren.