Generate an original image from a text prompt using OpenAI GPT Image 2, or EDIT images you supply. Send image_handles, image_urls or image_base64 to edit, restyle or combine up to 16 reference images; send none and it generates from the prompt alone. Editing costs exactly what generating costs at the same resolution. Returns the URL of the generated image. That URL is temporary: Goro holds a run’s results for 24 hours and nothing guarantees the file outlives that, so collect what you need within 24 hours.
Use for photorealism, clean product photography, sharp in-image text and design-ready compositions, or for edits that need to understand a brief rather than just a mask. The most instruction-faithful image model in the catalog. Pick 1K for drafts, 2K for finals, 4K when the image is going to print.
Price
0.10percallat‘2K‘.∗∗Aflatprice,andtheonlythingthatchangesitis‘resolution‘:‘1K‘costs∗∗0.06, 2K costs 0.10∗∗,‘4K‘costs∗∗0.16.
Every one of those is exact and known before the call, so the hold and the charge are the same number and there is no ceiling to reconcile. Omit resolution and you are billed the 2K price. A call that fails, times out or is stopped releases its hold in full and costs nothing.
These are all the fields this endpoint accepts. Anything else is rejected as
a validation_error rather than forwarded to the provider.
Example
Response
The full response. Values are illustrative.