Module: RunApi::Seedance::Types

Defined in:
lib/runapi/seedance/types.rb

Overview

Type definitions and constants for Seedance video generation.

Per-model enum, range, and required constraints live in the generated contract; the constants here back the bespoke checks the contract cannot express (per-model prompt length and seed range).

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
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