Skip to content

Conversation

apappascs
Copy link
Contributor

@apappascs apappascs commented Oct 9, 2025

Add support for OpenAI's new GPT Image models (gpt-image-1 and gpt-image-1-mini) with all new model-specific parameters according to the official API specification.

Changes:

  • Add GPT_IMAGE_1 and GPT_IMAGE_1_MINI to ImageModel enum
  • Update default image model from DALL_E_3 to GPT_IMAGE_1_MINI
  • Add 6 new gpt-image-1 specific parameters to OpenAiImageRequest:
    • background: transparency control (transparent/opaque/auto)
    • moderation: content moderation level (low/auto)
    • outputCompression: compression level 0-100% for webp/jpeg
    • outputFormat: output format (png/jpeg/webp)
    • partialImages: streaming partial images support (0-3)
    • stream: enable streaming mode
  • Update OpenAiImageOptions with new fields, getters/setters, and builder methods
  • Update documentation to reflect model-specific parameter support
  • Add comprehensive integration tests (OpenAiImageApiIT) with parameterized tests
  • Update existing tests to use new default model

Breaking Changes:

  • Default image model changed from DALL_E_3 to GPT_IMAGE_1_MINI
  • OpenAiImageRequest constructor signature updated with 6 new parameters

Reference: https://platform.openai.com/docs/models

…ameters

Add support for OpenAI's new GPT Image models (gpt-image-1 and gpt-image-1-mini)
with all new model-specific parameters according to the official API specification.

Changes:
- Add GPT_IMAGE_1 and GPT_IMAGE_1_MINI to ImageModel enum
- Update default image model from DALL_E_3 to GPT_IMAGE_1_MINI
- Add 6 new gpt-image-1 specific parameters to OpenAiImageRequest:
  * background: transparency control (transparent/opaque/auto)
  * moderation: content moderation level (low/auto)
  * outputCompression: compression level 0-100% for webp/jpeg
  * outputFormat: output format (png/jpeg/webp)
  * partialImages: streaming partial images support (0-3)
  * stream: enable streaming mode
- Update OpenAiImageOptions with new fields, getters/setters, and builder methods
- Update documentation to reflect model-specific parameter support
- Add comprehensive integration tests (OpenAiImageApiIT) with parameterized tests
- Update existing tests to use new default model

Breaking Changes:
- Default image model changed from DALL_E_3 to GPT_IMAGE_1_MINI
- OpenAiImageRequest constructor signature updated with 6 new parameters

Reference: https://platform.openai.com/docs/models
Signed-off-by: Alexandros Pappas <apappascs@gmail.com>
@apappascs apappascs changed the title feat: add OpenAI gpt-image-1 and gpt-image-1-mini models with new par… feat: add OpenAI image models with new parameters Oct 9, 2025
Signed-off-by: Alexandros Pappas <apappascs@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants