Module: RunApi::Seedance::Types
- Defined in:
- lib/runapi/seedance/types.rb
Overview
Type definitions and constants for Seedance video generation.
Constants are grouped by model generation: 1.5, 2.0/2.0-fast, and V1. Each generation has its own aspect ratio, resolution, and duration constraints reflecting different rendering capabilities.
Defined Under Namespace
Classes: AsyncTaskResponse, CompletedTextToVideoResponse, TextToVideoResponse, Video
Constant Summary collapse
- V1_MODELS =
V1-generation model identifiers: lite (low-cost), pro (high-quality), and pro-fast (speed-optimized).
%w[seedance-v1-lite seedance-v1-pro seedance-v1-pro-fast].freeze
- MODELS =
All supported model variants spanning 1.5, 2.0, and V1 generations.
(%w[seedance-1.5-pro seedance-2.0 seedance-2.0-fast] + V1_MODELS).freeze
- ASPECT_RATIOS_1_5 =
Aspect ratios for seedance-1.5-pro; required with every request.
%w[1:1 4:3 3:4 16:9 9:16 21:9].freeze
- ASPECT_RATIOS_2 =
Aspect ratios for 2.0/2.0-fast; includes “auto” for automatic selection.
[*ASPECT_RATIOS_1_5, "auto"].freeze
- ASPECT_RATIOS_V1_LITE =
Aspect ratios for seedance-v1-lite; uses 9:21 (not 21:9) for tall portrait.
%w[1:1 4:3 3:4 16:9 9:16 9:21].freeze
- ASPECT_RATIOS_V1_PRO =
Aspect ratios for seedance-v1-pro and seedance-v1-pro-fast.
%w[1:1 4:3 3:4 16:9 9:16 21:9].freeze
- RESOLUTIONS_1_5 =
Output resolutions for seedance-1.5-pro.
%w[480p 720p 1080p].freeze
- RESOLUTIONS_SEEDANCE_2 =
Output resolutions for seedance-2.0.
%w[480p 720p 1080p].freeze
- RESOLUTIONS_SEEDANCE_2_FAST =
Output resolutions for seedance-2.0-fast; capped at 720p for faster rendering.
%w[480p 720p].freeze
- RESOLUTIONS_V1 =
Output resolutions for seedance-v1-lite and seedance-v1-pro.
%w[480p 720p 1080p].freeze
- RESOLUTIONS_V1_PRO_FAST =
Output resolutions for seedance-v1-pro-fast; minimum 720p.
%w[720p 1080p].freeze
- DURATIONS_1_5 =
Allowed duration values (seconds) for seedance-1.5-pro; discrete choices only.
[4, 8, 12].freeze
- DURATION_2_RANGE =
Continuous duration range (seconds) for 2.0/2.0-fast; any integer 4-15 is accepted.
(4..15)
- DURATIONS_V1 =
Allowed duration values (seconds) for V1 models; 5 or 10.
[5, 10].freeze
- SEED_RANGE =
Valid seed range; -1 requests a random seed.
(-1..2_147_483_647)
- PROMPT_MIN_LENGTH =
Minimum prompt length in characters, enforced across all models.
3- PROMPT_MAX_LENGTH_1_5 =
Maximum prompt length for seedance-1.5-pro.
2500- PROMPT_MAX_LENGTH_2 =
Maximum prompt length for 2.0/2.0-fast (up to 20 000 characters).
20000- PROMPT_MAX_LENGTH_V1 =
Maximum prompt length for V1 models (up to 10 000 characters).
10000- FRAME_FIELDS =
Fields that specify first/last frame images for frame-conditioned generation.
%i[first_frame_image_url last_frame_image_url].freeze
- REFERENCE_FIELDS =
Fields for reference-conditioned generation (images, videos, and audio).
%i[reference_image_urls reference_video_urls reference_audio_urls].freeze