Our GPT Image API lets you create, edit, and transform images with state‑of‑the‑art generative models directly from your code. Our new image generation API is based on our latest multimodal model for high-fidelity generation and editing.
Some headline features include:
Capability | Prompt | Output |
Text rendering on top of image | Generate a meme that overlays the words 'rejection' over an image of kyle anderson blocking a shot from victor wembanyama on the spurs home court. make the image photorealistic and the meme text in the style of a .. meme |
|
Instruction following / detail Photorealism | I'd like a photorealistic image of a tyrannosaurus rex riding a skateboard. she should have on a 1997 type hip-hop baggy outfit, doing an ollie and board grab over a velociraptor that is breakdancing. the velociraptor should be wearing a neon windbreaker outfit with oakley-type sunglasses. |
|
Granular image editing | Generate a photorealistic image of downtown toronto on a saturday in summer 2006, it's a beautiful late june day near the st lawrence market, people are shopping and eating peameal bacon sandwiches, and there is a world cup match shown on a big screen in a plaza in the background. the photo should be reminiscent of that a digital camera from 2006 would take, with a timestamp like a printed photo would have. |
It knows what St. Lawrence Market and Toronto looks like, down to the shape and color of the tables. |
Editing based on image input | Generate a version of this i can hang in my living room, as a painting in the style of gustav klimt. change the color palette to more of a pastel/spring palette - make sure to retain the details of the cat's unique coat.
|
|
Real-world context and text rendering within image | Create a poster of different types of whales i can use in my classroom. make it a studio ghibli style
|
|
Text rendering within image | Visualize the step-by-step process of making a backstitch with a simple explanation under each image. create this in the style of war posters from world war ii in britain
|
|
Inclusion of custom elements (logo), instruction following | create a photorealistic poster advertising kimbap, soondubu jjigae, and kalbi including images of each dish for the in-house restaurant of kukje supermarket. include the attached logo. Make the poster look modern and the food very appetizing. include the korean and english words for each dish. it should look polished and sleek, neat and befitting of a modern, upscale asian establishment. |
|
For a deep‑dive reference, check out our API documentation.
Frequently Asked Questions
What can I do with the GPT Image API?
You can:
Generate brand‑new images from a text prompt
Edit an existing image (e.g., inpaint, apply style changes)
Create variations of an image (DALL·E 2 only)
Which model should I choose?
Model | Endpoints | Best For |
GPT Image (default) | generations, edits | Highest quality, detailed instruction following, transparent backgrounds |
DALL·E 3 | generations | Larger resolutions, text‑forward imagery |
DALL·E 2 | generations, edits, variations | Lower cost, rapid concurrent requests |
How do I get started and what parameters can I tweak?
If you’d like a quick example to get started and for more details about available parameters that you can adjust, please check out our API Platform documentation.
How does content safety work?
All image requests are filtered under the OpenAI policy.
For our GPT Image API, you can opt configure the image moderation options - please find more information here.
Where are images stored, and for how long?
Images generated by the API are not stored permanently by OpenAI. If you request response_format:"url"
the link remains valid for up to 60 minutes. Always download or cache the file if you need long‑term access.
What does it cost?
For more details about pricing, check out our model page.
Can I edit only part of an image?
Yes. Supply a mask PNG where the transparent pixels indicate the area to replace. The mask must match the original image’s dimensions. Please see details here.
Will my API organization need to be verified?
Yes. To verify your API organization, please follow the steps in API Organization Verification.
Are there rate limits?
Rate limits can be found on the model page.