Module: RunApi::GptImage::Types
- Defined in:
- lib/runapi/gpt_image/types.rb
Overview
Type definitions and constants for GPT Image 1.5. Both aspect_ratio and quality are required for all operations.
Defined Under Namespace
Classes: CompletedTextToImageResponse, Image, TextToImageResponse
Constant Summary collapse
- MODELS =
%w[gpt-image-1.5].freeze
- GENERATION_MODELS =
MODELS- EDIT_MODELS =
MODELS- ASPECT_RATIOS =
Required for all operations.
%w[1:1 2:3 3:2].freeze
- QUALITY_VALUES =
Higher quality takes longer but produces finer detail.
%w[medium high].freeze
- EditImageResponse =
Edit response – same shape as generation.
TextToImageResponse- CompletedEditImageResponse =
CompletedTextToImageResponse