runapi-wan 0.2.9 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ffb6f5659a31578c58e3ee90a58d738f5f21d6f30cb452bf74e5f5c6e87b9cf
|
|
4
|
+
data.tar.gz: 79e910f5dd5539753c1b55d1fc90a826dc795bbe301106503150c1db5c948e5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c70cfd0857fd85f00b81ca6f0472e4f87bcef2513fcac16d7cead1b654156427c5708212b7f5ca77fc39d15f5182098d6000efff63cdd6053679b7314f518bcc
|
|
7
|
+
data.tar.gz: 79787af5238619fae0517571c55553ae07b420c1f2d3ea85acc092e4f41ee15e9c7bb78d6ca2573710c3857583452790573dcc303b4ec4856bb7d3b14e81ea7d
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Wan Ruby SDK is the language-specific package for Wan on RunAPI. Use this package for video generation, animation, and video editing workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Ruby.
|
|
4
4
|
|
|
5
|
-
This README is the Ruby package guide inside the public `wan-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/wan; for API reference, use https://runapi.ai/docs
|
|
5
|
+
This README is the Ruby package guide inside the public `wan-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/wan; for API reference, use https://runapi.ai/docs/api/wan/text-to-video; for SDK docs, use https://runapi.ai/docs/resources/sdks.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ require "runapi/wan"
|
|
|
17
17
|
|
|
18
18
|
client = RunApi::Wan::Client.new
|
|
19
19
|
task = client.text_to_video.create(
|
|
20
|
-
# Pass the Wan JSON request body from https://runapi.ai/docs
|
|
20
|
+
# Pass the Wan JSON request body from https://runapi.ai/docs/api/wan/text-to-video.
|
|
21
21
|
)
|
|
22
22
|
status = client.text_to_video.get(task.id)
|
|
23
23
|
```
|
|
@@ -33,8 +33,8 @@ Use Ruby keyword arguments and the `RunApi::Wan` error classes when building vid
|
|
|
33
33
|
## Links
|
|
34
34
|
|
|
35
35
|
- Model page: https://runapi.ai/models/wan
|
|
36
|
-
- SDK docs: https://runapi.ai/docs
|
|
37
|
-
- Product docs: https://runapi.ai/docs
|
|
36
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
37
|
+
- Product docs: https://runapi.ai/docs/api/wan/text-to-video
|
|
38
38
|
- Pricing and rate limits: https://runapi.ai/models/wan/2.2-a14b-text-to-video-turbo
|
|
39
39
|
- Provider comparison: https://runapi.ai/providers/alibaba
|
|
40
40
|
- Full catalog: https://runapi.ai/models
|
|
@@ -81,7 +81,13 @@ module RunApi
|
|
|
81
81
|
"required" => true
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
}
|
|
84
|
+
},
|
|
85
|
+
"rules" => [{
|
|
86
|
+
"when" => {
|
|
87
|
+
"model" => "wan-2.7-edit-video"
|
|
88
|
+
},
|
|
89
|
+
"forbidden" => ["multi_shots"]
|
|
90
|
+
}]
|
|
85
91
|
},
|
|
86
92
|
"image-to-video" => {
|
|
87
93
|
"models" => ["wan-2.2-a14b-image-to-video-turbo", "wan-2.5-image-to-video", "wan-2.6-flash-image-to-video", "wan-2.6-image-to-video", "wan-2.7-image-to-video"],
|
|
@@ -120,6 +126,7 @@ module RunApi
|
|
|
120
126
|
"required" => true
|
|
121
127
|
},
|
|
122
128
|
"duration_seconds" => {
|
|
129
|
+
"enum" => [5, 10, 15],
|
|
123
130
|
"type" => "integer"
|
|
124
131
|
},
|
|
125
132
|
"first_frame_image_url" => {
|
|
@@ -162,6 +169,16 @@ module RunApi
|
|
|
162
169
|
}
|
|
163
170
|
},
|
|
164
171
|
"rules" => [{
|
|
172
|
+
"when" => {
|
|
173
|
+
"model" => "wan-2.2-a14b-image-to-video-turbo"
|
|
174
|
+
},
|
|
175
|
+
"forbidden" => ["multi_shots"]
|
|
176
|
+
}, {
|
|
177
|
+
"when" => {
|
|
178
|
+
"model" => "wan-2.5-image-to-video"
|
|
179
|
+
},
|
|
180
|
+
"forbidden" => ["multi_shots"]
|
|
181
|
+
}, {
|
|
165
182
|
"when" => {
|
|
166
183
|
"model" => "wan-2.6-flash-image-to-video"
|
|
167
184
|
},
|
|
@@ -171,6 +188,11 @@ module RunApi
|
|
|
171
188
|
"model" => "wan-2.6-image-to-video"
|
|
172
189
|
},
|
|
173
190
|
"forbidden" => ["seed"]
|
|
191
|
+
}, {
|
|
192
|
+
"when" => {
|
|
193
|
+
"model" => "wan-2.7-image-to-video"
|
|
194
|
+
},
|
|
195
|
+
"forbidden" => ["multi_shots"]
|
|
174
196
|
}]
|
|
175
197
|
},
|
|
176
198
|
"speech-to-video" => {
|
|
@@ -299,10 +321,30 @@ module RunApi
|
|
|
299
321
|
}
|
|
300
322
|
},
|
|
301
323
|
"rules" => [{
|
|
324
|
+
"when" => {
|
|
325
|
+
"model" => "wan-2.2-a14b-text-to-video-turbo"
|
|
326
|
+
},
|
|
327
|
+
"forbidden" => ["multi_shots"]
|
|
328
|
+
}, {
|
|
329
|
+
"when" => {
|
|
330
|
+
"model" => "wan-2.5-text-to-video"
|
|
331
|
+
},
|
|
332
|
+
"forbidden" => ["multi_shots"]
|
|
333
|
+
}, {
|
|
302
334
|
"when" => {
|
|
303
335
|
"model" => "wan-2.6-text-to-video"
|
|
304
336
|
},
|
|
305
337
|
"forbidden" => ["seed"]
|
|
338
|
+
}, {
|
|
339
|
+
"when" => {
|
|
340
|
+
"model" => "wan-2.7-r2v"
|
|
341
|
+
},
|
|
342
|
+
"forbidden" => ["multi_shots"]
|
|
343
|
+
}, {
|
|
344
|
+
"when" => {
|
|
345
|
+
"model" => "wan-2.7-text-to-video"
|
|
346
|
+
},
|
|
347
|
+
"forbidden" => ["multi_shots"]
|
|
306
348
|
}]
|
|
307
349
|
}
|
|
308
350
|
}.freeze
|
|
@@ -5,7 +5,9 @@ module RunApi
|
|
|
5
5
|
module Resources
|
|
6
6
|
# Modifies existing videos guided by a text prompt and optional reference image.
|
|
7
7
|
# The 2.6 models use source_video_urls (plural, required) while 2.7 uses
|
|
8
|
-
# source_video_url (singular, required). Flash variants support audio
|
|
8
|
+
# source_video_url (singular, required). Flash variants support audio. On
|
|
9
|
+
# WAN 2.6, multi_shots controls whether the generated video uses multiple
|
|
10
|
+
# shots with transitions instead of one continuous shot.
|
|
9
11
|
class EditVideo
|
|
10
12
|
include RunApi::Core::ResourceHelpers
|
|
11
13
|
|
|
@@ -5,6 +5,8 @@ module RunApi
|
|
|
5
5
|
module Resources
|
|
6
6
|
# Generates videos driven by a source image. Flash variants trade fidelity
|
|
7
7
|
# for speed; 2.7 adds last-frame control, video continuation, and audio features.
|
|
8
|
+
# On WAN 2.6, multi_shots controls whether the generated video uses multiple
|
|
9
|
+
# shots with transitions instead of one continuous shot.
|
|
8
10
|
class ImageToVideo
|
|
9
11
|
include RunApi::Core::ResourceHelpers
|
|
10
12
|
|
|
@@ -5,7 +5,9 @@ module RunApi
|
|
|
5
5
|
module Resources
|
|
6
6
|
# Generates videos from text prompts. Supports turbo (2.2) through 2.7
|
|
7
7
|
# with progressive feature upgrades including negative prompts, watermark
|
|
8
|
-
# control, background audio, and R2V multi-reference inputs.
|
|
8
|
+
# control, background audio, and R2V multi-reference inputs. On WAN 2.6,
|
|
9
|
+
# multi_shots controls whether the generated video uses multiple shots
|
|
10
|
+
# with transitions instead of one continuous shot.
|
|
9
11
|
class TextToVideo
|
|
10
12
|
include RunApi::Core::ResourceHelpers
|
|
11
13
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-wan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RunAPI
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.3.
|
|
18
|
+
version: 0.3.3
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.3.
|
|
25
|
+
version: 0.3.3
|
|
26
26
|
description: The Wan Ruby SDK is the language-specific package for Wan on RunAPI.
|
|
27
27
|
Use this package for video generation, animation, and video editing workflows when
|
|
28
28
|
your application needs request bodies, task status lookup, and consistent RunAPI
|