Module: OpenAI::Models::ImageEditParams::Size
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/image_edit_params.rb,
sig/openai/models/image_edit_params.rbs
Overview
The size of the generated images. Defaults to auto. For gpt-image-2,
gpt-image-2-2026-04-21, gpt-image-2.5-sunburst,
gpt-image-2.5-sunburst-2026-09-08, gpt-image-2.5-flare, and
gpt-image-2.5-flare-2026-09-08, arbitrary resolutions are supported as
WIDTHxHEIGHT strings, for example 1536x864. Width and height must both be
divisible by 16 and the requested aspect ratio must be between 1:3 and 3:1.
Resolutions above 2560x1440 are experimental, and the maximum supported
resolution is 3840x2160. The requested size must also satisfy the model's
current pixel and edge limits. The standard sizes 1024x1024, 1536x1024, and
1024x1536 are supported by the GPT image models; auto is supported for
models that allow automatic sizing.
collapse
- SIZE_1024X1024 =
:"1024x1024"- SIZE_1536X1024 =
:"1536x1024"- SIZE_1024X1536 =
:"1024x1536"- AUTO =
:auto- SIZE_256X256 =
Deprecated.
This legacy size suggestion is retained for SDK compatibility. Check the
selected GPT image model's supported sizes.
:"256x256"- SIZE_512X512 =
Deprecated.
This legacy size suggestion is retained for SDK compatibility. Check the
selected GPT image model's supported sizes.
:"512x512"
Class Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Class Method Details
.variants ⇒ Array(String, Symbol)
549 550 551 |
# File 'lib/openai/models/image_edit_params.rb', line 549 define_sorbet_constant!(:Variants) do T.type_alias { T.any(String, OpenAI::ImageEditParams::Size::TaggedSymbol) } end |