gpt-image-1
Last updated
Was this helpful?
Last updated
Was this helpful?
GPT Image 1 is OpenAI's new state-of-the-art image generation model. It's a natively multimodal language model that generates images based on a text prompt.
If you don’t have an API key for the AI/ML API yet, feel free to use our .
Let's generate an image of the specified size using a simple prompt.
We obtained the following 1536x1024 image by running this code example (~ 26 s):
"A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses. Realistic photo."
"A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses."
"Racoon eating ice-cream"
The text prompt describing the content, style, or composition of the image to be generated.
auto
Possible values: auto
Possible values: The number of images to generate.
1
100
The format of the generated image.
png
Possible values: The quality of the image that will be generated.
medium
Possible values: The size of the generated image.
1024x1024
Possible values: The format in which the generated images are returned.
url
Possible values: No content