Module: RunApi::Wan::Types
- Defined in:
- lib/runapi/wan/types.rb
Defined Under Namespace
Classes: CompletedImageTaskResponse, CompletedVideoTaskResponse, Image, ImageTaskResponse, Video, VideoTaskResponse
Constant Summary collapse
- TEXT_TO_VIDEO_MODELS =
Text-to-video variants: 2.2 turbo (fast, lower res) through 2.7 (highest quality) and R2V (accepts reference images, videos, first-frame, and audio).
%w[ wan-2.2-a14b-text-to-video-turbo wan-2.5-text-to-video wan-2.6-text-to-video wan-2.7-text-to-video wan-2.7-r2v ].freeze
- IMAGE_TO_VIDEO_MODELS =
Image-to-video variants. Flash trades fidelity for speed; 2.7 adds last-frame control, video continuation, driving/background audio, and watermark.
%w[ wan-2.2-a14b-image-to-video-turbo wan-2.5-image-to-video wan-2.6-image-to-video wan-2.6-flash-image-to-video wan-2.7-image-to-video ].freeze
- SPEECH_TO_VIDEO_MODELS =
Speech-driven lip-sync model for talking-head video generation.
%w[wan-2.2-a14b-speech-to-video-turbo].freeze
- ANIMATE_MODELS =
Motion transfer: move (preserves subject) and replace (swaps subject).
%w[wan-2.2-animate-move wan-2.2-animate-replace].freeze
- TEXT_TO_IMAGE_MODELS =
Image generation: standard and pro. Pro model supports thinking_mode for enhanced reasoning.
%w[wan-2.7-image wan-2.7-image-pro].freeze
- EDIT_VIDEO_MODELS =
Video editing: 2.6 uses source_video_urls (plural), 2.7 uses source_video_url (singular). Flash variants support audio generation and multi-shot mode.
%w[ wan-2.6-edit-video wan-2.6-flash-edit-video wan-2.7-edit-video ].freeze