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/5 Pro require aspect_ratio and output_quality; 5-Lite/5 Pro also support output_format; V4 uses output_resolution and supports seed/output_count.

Defined Under Namespace

Classes: CompletedTextToImageResponse, Image, TextToImageResponse

Constant Summary collapse

LITE_MODELS =

Model groupings used by bespoke prompt-length selection (a per-model rule the contract cannot express). Model membership and field enums are validated by the generated CONTRACT.

%w[seedream-5-lite-text-to-image seedream-5-lite-edit].freeze
PRO_MODELS =
%w[seedream-5-pro-text-to-image seedream-5-pro-edit].freeze
V4_MODELS =
%w[seedream-v4-text-to-image seedream-v4-edit].freeze
LONG_PROMPT_MODELS =
(PRO_MODELS + V4_MODELS).freeze
MINIMUM_THREE_PROMPT_MODELS =
(LITE_MODELS + PRO_MODELS).freeze
EditImageResponse =
TextToImageResponse
CompletedEditImageResponse =
CompletedTextToImageResponse