runapi-hailuo 0.2.8 → 0.2.9
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 +4 -4
- data/README.md +4 -4
- data/lib/runapi/hailuo/contract_gen.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee6c06274d70c0297e5a8813221c1ccb84352eee8456e6acb41be52bdf5e083d
|
|
4
|
+
data.tar.gz: 7f39c00a8faeca4c30b5615b8d4033c2a9fef466ab8ca27d61180594523c91d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9a0695a819970a9d404f521e8324c034104eba7ca1f7848a65f0b2991e89c07738a873bb1ce5ec7e1e162a35d5842e57bb21fcdc904f7e017885ab89cce7182
|
|
7
|
+
data.tar.gz: 8939f71a5400b2e5286101acdab234956d2d12f8dabdf52cf7b95ddeb6853add4329e603819c003713de7fe8113c6b74fec73e96afe46f062d26cb29b6ce0f07
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Hailuo Ruby SDK is the language-specific package for Hailuo 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 `hailuo-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/hailuo; for API reference, use https://runapi.ai/docs
|
|
5
|
+
This README is the Ruby package guide inside the public `hailuo-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/hailuo; for API reference, use https://runapi.ai/docs/api/hailuo/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/hailuo"
|
|
|
17
17
|
|
|
18
18
|
client = RunApi::Hailuo::Client.new
|
|
19
19
|
task = client.text_to_video.create(
|
|
20
|
-
# Pass the Hailuo JSON request body from https://runapi.ai/docs
|
|
20
|
+
# Pass the Hailuo JSON request body from https://runapi.ai/docs/api/hailuo/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::Hailuo` error classes when building
|
|
|
33
33
|
## Links
|
|
34
34
|
|
|
35
35
|
- Model page: https://runapi.ai/models/hailuo
|
|
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/hailuo/text-to-video
|
|
38
38
|
- Pricing and rate limits: https://runapi.ai/models/hailuo/02-text-to-video-pro
|
|
39
39
|
- Provider comparison: https://runapi.ai/providers/minimax
|
|
40
40
|
- Full catalog: https://runapi.ai/models
|
|
@@ -50,7 +50,13 @@ module RunApi
|
|
|
50
50
|
"enum" => ["768p", "1080p"]
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"rules" => [{
|
|
55
|
+
"when" => {
|
|
56
|
+
"model" => "hailuo-02-image-to-video-pro"
|
|
57
|
+
},
|
|
58
|
+
"forbidden" => ["enable_safety_checker"]
|
|
59
|
+
}]
|
|
54
60
|
},
|
|
55
61
|
"text-to-video" => {
|
|
56
62
|
"models" => ["hailuo-02-text-to-video-pro", "hailuo-02-text-to-video-standard"],
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-hailuo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
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.5
|
|
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.5
|
|
26
26
|
description: The Hailuo Ruby SDK is the language-specific package for Hailuo 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
|