Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Generate and edit readable, multilingual images through one REST API, with asynchronous jobs, webhooks, reference inputs, and 2K output.
GPT Image 2 API provides access to OpenAI's latest image generation and editing model, which powers ChatGPT Images 2.0. It replaces DALL-E 3 and GPT Image 1.5, offering enhanced capabilities through a unified REST API.
To use the GPT Image 2 API, you can send a POST /v2/images/generate request with your API key. The request body should include the prompt, model identifier (gpt-image-2), and any specific parameters for GPT Image 2, such as input_images, quality, background, number_of_images, output_format, and moderation. The API returns a jobId for polling or can push results to a provided webhook_url.
Pricing is based on credits per generation, ranging from 2 to 23 credits (approximately $0.02–$0.23) depending on the resolution and options selected. Failed jobs are refunded. A single credit balance is used across all models on Apiframe. Volume discounts are available.