Skip to content

Preliminary Support for gpt-image-1 #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

benjamin-stern
Copy link

Adds Supported Resolutions of 1024x1536 and 1536x1024
Adds Supported Qualities of High, Medium and Low.

Breaking Change
High has been renamed to Hd reflecting the name of it's value.

Note: Addition of Quality has been added specifically src/Generated/Models/GeneratedImageSize.cs

- Changed `Quality` from `High` to `Hd` across multiple files.
- Added new quality levels: `Hd`, `High`, `Medium`, `Low`, and `Auto` in `GeneratedImageQuality.cs`.
- Introduced new sizes `W1536xH1024` and `W1024xH1536` in `GeneratedImageSize.cs`.
- Enhanced `ImageEditOptions` with a new `Quality` property and updated documentation for `Size`.
- Implemented checks for the `Quality` property in `ImageEditOptions`.
- Overall improvements for better control over image generation in the OpenAI API.
Changed the initialization of the `High` property in the
`GeneratedImageQuality` struct from `HdValue` to `HighValue`.
@benjamin-stern
Copy link
Author

benjamin-stern commented May 20, 2025

@joseharriaga, @trrwilson, @ShivangiReja please take a look and approve (or recommend changes) at you earliest convenience. It's been a number of weeks since last changes and nothing has yet been done to integrate support for new image model gpt-image-1 , this takes a step in that direction.

Added `<ManagePackageVersionsCentrally>` set to `false` for improved control over package versions. The `<TargetFrameworks>` element remains unchanged but is now positioned after the new element.
@benjamin-stern
Copy link
Author

@joseharriaga , @trrwilson , @ShivangiReja any updates? Is some alternative in the works. Seems a little disappointing to leave OpenAI Developers in the lurch waiting for a simple extension of support.

This commit introduces two new constant string values, `O4MiniValue` and `O3Value`, to the `InternalCreateResponsesRequestModel` struct in the `OpenAI.Responses` namespace. These constants represent specific model identifiers for use in API requests or responses.
Copy link
Collaborator

@jsquire jsquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @benjamin-stern. Thanks very much for your contribution and interest in improving the OpenAI developer experience. We apologize for the long wait for someone to review.

Unfortunately, we cannot accept this submission, as you are editing files which are automatically generated from the REST API spec and would be overridden. The good news is that the changes that you're looking to make all appear to have been included in the v2.2.0 release, which used an updated spec.

I'm going to close this out. Thank you, again, for your efforts.

@jsquire jsquire closed this Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants