How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OpenAI Images API

Given a prompt and/or an input image, the model will generate a new image.

OpenAI Images API is one of 62 APIs that OpenAI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Image. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 3 operations across 3 paths, and defines 31 schemas. It is described by OpenAPI 3.2.0, at version 2.3.0.

Requests are made against a single base URL, https://api.openai.com/v1.

3 operations 3 paths 31 schemas 3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.3.0
Base URL
https://api.openai.com
Authentication
HTTP Bearer, HTTP Bearer
License
MIT
Terms of Service
Resource Areas
1

Authentication & Security 2

OpenAI Images API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (ApiKeyAuth). It accepts HTTP bearer tokens (AdminApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 POST. Each is listed below with its method, path, parameters, and response codes.

Images 3

Given a prompt and/or an input image, the model will generate a new image.

POST
/images/edits
Create image edit
createImageEdit body → 200429503
POST
/images/generations
Create image
createImage body → 200429503
POST
/images/variations
Create image variation
createImageVariation body → 200

Schemas 31

The contract defines 31 schemas that model the data the API accepts and returns. The most detailed are CreateImageEditRequest_2 (15 properties), EditImageBodyJsonParam (15 properties), CreateImageEditRequest (15 properties), EditImageBodyJsonParam_2 (15 properties). Each schema is shown below with its type and property counts.

ImagesResponse
object
The response from the image generation endpoint.
7 properties 1 required
ImageGenStreamEvent
ImageGenCompletedEvent
object
Emitted when image generation has completed and the final image is available.
8 properties 8 required
_MisalignmentSteer
object
1 property 1 required
ImageEditStreamEvent
InputFidelity
string
Control how much effort the model will exert to match the style and features, especially facial features, of input images. This parameter is only supported for…
ImageRefParam
object
Reference an input image by either URL or uploaded file ID. Provide exactly one of imageurl or fileid.
2 properties
CreateImageVariationRequest
object
6 properties 1 required
Error
object
5 properties 4 required
EditImageBodyJsonParam
object
JSON request body for image edits. Use images (array of ImageRefParam) instead of multipart image uploads. You can reference images via external URLs, data URL…
15 properties 2 required
PartialImages
ImageGenUsage
object
For gpt-image-1 only, the token usage information for the image generation.
5 properties 4 required
ImageGenPartialImageEvent
object
Emitted when a partial image is available during image generation streaming.
8 properties 8 required
_MisalignmentErrorType
ImagesUsage
object
For the GPT image models only, the token usage information for the image generation.
4 properties 4 required
ImageGenInputUsageDetails
object
The input tokens detailed information for the image generation.
2 properties 2 required
ImageEditPartialImageEvent
object
Emitted when a partial image is available during image editing streaming.
8 properties 8 required
ErrorResponse
object
1 property 1 required
MisalignmentErrorDetailsResource
object
3 properties
CreateImageEditRequest
object
15 properties 2 required
ImageGenOutputTokensDetails
object
The output token details for the image generation.
2 properties 2 required
Image
object
Represents the content or the URL of an image generated by the OpenAI API.
3 properties
CreateImageRequest
object
14 properties 1 required
ImageEditCompletedEvent
object
Emitted when image editing has completed and the final image is available.
8 properties 8 required
InputFidelity_2
string
Control how much effort the model will exert to match the style and features, especially facial features, of input images. Supports high and low on gpt-image-1…
CreateImageVariationRequest_2
object
Legacy request for the retired image variations endpoint.
6 properties 1 required
EditImageBodyJsonParam_2
object
JSON request body for image edits. Use images (array of ImageRefParam) instead of multipart image uploads. You can reference images via external URLs, data URL…
15 properties 2 required
MisalignmentErrorDetailsResource_2
object
4 properties
CreateImageEditRequest_2
object
15 properties 3 required
Image_2
object
Represents the content or the URL of an image generated by the OpenAI API.
3 properties
CreateImageRequest_2
object
14 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

openai-images-api-openapi.yml Raw ↑

Other APIs OpenAI publishes across the network.

OpenAI Responses API
OpenAI Moderations API
OpenAI Batch API
OpenAI Vector Stores API
OpenAI Uploads API
OpenAI Realtime API
OpenAI Evals API
OpenAI Videos API
OpenAI Conversations API
OpenAI Containers API
OpenAI ChatKit API
OpenAI Skills API
Where this information came from

This is an independent, third-party profile of OpenAI Images API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.