Module: RunApi::Kling::Types

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

Defined Under Namespace

Classes: AiAvatarResponse, AsyncTaskResponse, CompletedAiAvatarResponse, CompletedImageToVideoResponse, CompletedMotionControlResponse, CompletedTextToVideoResponse, ImageToVideoResponse, MotionControlResponse, TextToVideoResponse, Video

Constant Summary collapse

TEXT_TO_VIDEO_MODELS =
%w[
  kling-3.0
  kling-v2.5-turbo-text-to-video-pro
  kling-v2.1-master-text-to-video
].freeze
AI_AVATAR_MODELS =
%w[
  kling-ai-avatar-pro
  kling-ai-avatar-standard
  kling-ai-avatar-v1-pro
  kling-v1-avatar-standard
].freeze
IMAGE_TO_VIDEO_MODELS =
%w[
  kling-v2.5-turbo-image-to-video-pro
  kling-v2.1-pro
  kling-v2.1-standard
  kling-v2.1-master-image-to-video
].freeze
TEXT_TO_VIDEO_OUTPUT_RESOLUTIONS =
%w[720p 1080p 4k].freeze
MOTION_CONTROL_MODELS =
%w[kling-3.0].freeze
MOTION_CONTROL_OUTPUT_RESOLUTIONS =
%w[720p 1080p].freeze
MOTION_CONTROL_CHARACTER_ORIENTATIONS =
%w[video image].freeze
MOTION_CONTROL_BACKGROUND_SOURCES =
%w[video image].freeze
ASPECT_RATIOS =
%w[16:9 9:16 1:1].freeze
DURATION_RANGE =
(3..15)
MULTI_PROMPT_DURATION_RANGE =
(1..12)
FIXED_DURATIONS =
[5, 10].freeze
MULTI_PROMPT_MAX_LENGTH =
500