GPT Image 2
OpenAI's GPT Image 2 family for text-to-image generation and reference-based image editing via the OpenAI Images API.
- image
- openai
- gpt-image-2
$0.03$0.0075-75%/ req
Advanced AI research lab behind Images and Sora models.
Production-ready OpenAI models available through E2X.
One API key. One endpoint. Every OpenAI model.
const result = await fetch(
'https://api.e2x.ai/v1/generate/submit',
{
method: 'POST',
headers: {
Authorization: `Bearer ${E2X_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
modelId: 'openai/your-model-slug',
prompt: 'A neon-lit city at midnight',
}),
},
);
const json = await result.json();Explore alternative providers for similar use cases
Build with OpenAI
Access OpenAI's latest models with unified billing, authentication, and infrastructure — one key, one request shape.