Class: WhopSDK::Models::MediaAsset::Generation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::MediaAsset::Generation
- Defined in:
- lib/whop_sdk/models/media_asset.rb,
sig/whop_sdk/models/media_asset.rbs
Overview
Defined Under Namespace
Modules: Resolution
Instance Attribute Summary collapse
-
#duration_seconds ⇒ Float?
Requested video length in seconds.
-
#prompt ⇒ String
What the asset was generated from.
- #reference_media ⇒ Array<String>
-
#resolution ⇒ Symbol, ...
Requested video resolution.
Instance Method Summary collapse
-
#initialize(duration_seconds:, prompt:, reference_media:, resolution:) ⇒ Object
constructor
Some parameter documentations has been truncated, see Generation for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(duration_seconds:, prompt:, reference_media:, resolution:) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::MediaAsset::Generation for more details.
The inputs the asset was generated from.
|
|
# File 'lib/whop_sdk/models/media_asset.rb', line 152
|
Instance Attribute Details
#duration_seconds ⇒ Float?
Requested video length in seconds. null for images.
132 |
# File 'lib/whop_sdk/models/media_asset.rb', line 132 required :duration_seconds, Float, nil?: true |
#prompt ⇒ String
What the asset was generated from.
138 |
# File 'lib/whop_sdk/models/media_asset.rb', line 138 required :prompt, String |
#reference_media ⇒ Array<String>
143 |
# File 'lib/whop_sdk/models/media_asset.rb', line 143 required :reference_media, WhopSDK::Internal::Type::ArrayOf[String] |
#resolution ⇒ Symbol, ...
Requested video resolution. null for images. 1080p is not supported by
Seedance 2.0 Fast or Mini; 4k is only supported by Seedance 2.0.
150 |
# File 'lib/whop_sdk/models/media_asset.rb', line 150 required :resolution, enum: -> { WhopSDK::MediaAsset::Generation::Resolution }, nil?: true |
Instance Method Details
#to_hash ⇒ {
105 |
# File 'sig/whop_sdk/models/media_asset.rbs', line 105
def to_hash: -> {
|