Skip to content

gpt-image-1 size missing in ImageEditParams #1480

Open
@yong-opus

Description

@yong-opus

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

The Images type ImageEditParams is missing size for gpt-image-1 model. Should align with the comment, to add extra sizes '1536x1024' | '1024x1536' | 'auto'

/**
   * The size of the generated images. Must be one of `1024x1024`, `1536x1024`
   * (landscape), `1024x1536` (portrait), or `auto` (default value) for
   * `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`.
   */
  size?: '256x256' | '512x512' | '1024x1024' | null;

To Reproduce

  1. Install latest v4.96.0 update
  2. Import ImageEditParams with model gpt-image-1

Code snippets

/**
   * The size of the generated images. Must be one of `1024x1024`, `1536x1024`
   * (landscape), `1024x1536` (portrait), or `auto` (default value) for
   * `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`.
   */
  size?: '256x256' | '512x512' | '1024x1024' | '1536x1024' |  '1024x1536' | 'auto' | null;

OS

macOS

Node version

v20.15.0

Library version

4.96.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions