Module: RunApi::Seedream::Types
- Defined in:
- lib/runapi/seedream/types.rb
Overview
Seedream type constants and response models. Model families differ in supported params: 4.5/5-lite require aspect_ratio and output_quality; V4 uses output_resolution and supports seed/output_count.
Defined Under Namespace
Classes: CompletedTextToImageResponse, Image, TextToImageResponse
Constant Summary collapse
- MODELS =
%w[ seedream-4.5-text-to-image seedream-4.5-edit seedream-5-lite-text-to-image seedream-5-lite-edit seedream-v4-text-to-image seedream-v4-edit ].freeze
- TEXT_TO_IMAGE_MODELS =
%w[seedream-4.5-text-to-image seedream-5-lite-text-to-image seedream-v4-text-to-image].freeze
- EDIT_MODELS =
%w[seedream-4.5-edit seedream-5-lite-edit seedream-v4-edit].freeze
- LITE_MODELS =
%w[seedream-5-lite-text-to-image seedream-5-lite-edit].freeze
- V4_MODELS =
%w[seedream-v4-text-to-image seedream-v4-edit].freeze
- ASPECT_RATIOS =
%w[1:1 4:3 3:4 16:9 9:16 2:3 3:2 21:9].freeze
- OUTPUT_QUALITIES =
%w[basic high].freeze
- V4_OUTPUT_RESOLUTIONS =
%w[1k 2k 4k].freeze
- EditImageResponse =
TextToImageResponse- CompletedEditImageResponse =
CompletedTextToImageResponse