About GPT Image 1.5
GPT Image 1.5 is an image generation model that excels in generating high-fidelity images with strong prompt adherence, while preserving composition, lighting, and fine-grained detail from input images.
Some other noteworthy features of GPT Image 1.5 include image-to-image editing, support for resolutions like 1024x1024, 1536x1024, and 1024x1536, and options for adjustable quality, input fidelity, and background (auto, transparent, opaque).
Ready to build with GPT Image 1.5?
Try GPT Image 1.5 in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.
curl -sSf -X POST https://hub.oxen.ai/api/ai/images/generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "gpt-image-1-5",
"prompt": "An ox standing in the middle of a long open road, in the snow, centered and staring at the camera. It is quietly snowing around him.",
"output_format": "png",
"size": "auto"
}'Request parameters
Every field GPT Image 1.5 accepts in the request body. See the API reference for response formats.
https://hub.oxen.ai/api/ai/images/generate| Field | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | Text description of what you want to generate, or the instruction on how to edit the given image. Use @Image1, @Image2, etc. to reference the input images. |
input_image | array<string>nullable | No | — | Input images to transform or use as reference. Reference them in the prompt as @Image1, @Image2, etc. |
output_format | string | No | "png" | Format of the output imageswebpjpegpng |
size | string | No | "auto" | The size of the generated images. Must be one of portrait (1024x1536), landscape (1536x1024), or auto (1024x1024 or determined by model)autosquareportraitlandscape |