Module: RunApi::GptImage2::Types
- Defined in:
- lib/runapi/gpt_image_2/types.rb
Overview
Type definitions and constants for GPT Image 2. Unlike GPT Image 1.5, aspect_ratio and output_resolution are optional.
Defined Under Namespace
Classes: CompletedTextToImageResponse, Image, TextToImageResponse
Constant Summary collapse
- MODELS =
%w[gpt-image-2].freeze
- GENERATION_MODELS =
MODELS- EDIT_MODELS =
MODELS- ASPECT_RATIOS =
‘auto’ lets the model choose based on the prompt content.
%w[auto 1:1 9:16 16:9 4:3 3:4].freeze
- RESOLUTIONS =
Output resolution tiers. 1:1 is limited to 1k and 2k.
%w[1k 2k 4k].freeze
- EditImageResponse =
Edit response – same shape as generation.
TextToImageResponse- CompletedEditImageResponse =
CompletedTextToImageResponse