runapi-happyhorse 0.2.8 → 0.2.10
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 +2 -2
- data/lib/runapi/happyhorse/contract_gen.rb +49 -2
- data/lib/runapi/happyhorse/types.rb +3 -0
- 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: c765ce4e8b76524b3c705a9244356784dc95b35d5bc766db02553d6ea831b7a7
|
|
4
|
+
data.tar.gz: 91064942f99aa5d22c2ceb7bb90b290551b0217f21e33c6bad071a53d70034fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d7f37f5c7acc1db0ef7101782006e09edd1bf2665d1b0b8ba1f0057e8686c79d37ad5c1c06d2b0d45d44643048109fdeb12499ccc29890f96f648f80de29d25
|
|
7
|
+
data.tar.gz: 44b4fb59d002569c4d17423e417d8f5678e0868f9dd2812af27a09dcde3af47757ef86e33195a8e29119fde5b0ac5e9db895bdad2adfdadbb6431783fe8dd8f7
|
data/README.md
CHANGED
|
@@ -31,8 +31,8 @@ RunAPI-generated file URLs are temporary. Download and store generated images, v
|
|
|
31
31
|
## Links
|
|
32
32
|
|
|
33
33
|
- Model page: https://runapi.ai/models/happyhorse
|
|
34
|
-
- SDK docs: https://runapi.ai/docs
|
|
35
|
-
- Product docs: https://runapi.ai/docs
|
|
34
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
35
|
+
- Product docs: https://runapi.ai/docs/api/happyhorse/text-to-video
|
|
36
36
|
- Image-to-video pricing and rate limits: https://runapi.ai/models/happyhorse/image-to-video
|
|
37
37
|
- Character pricing and rate limits: https://runapi.ai/models/happyhorse/character
|
|
38
38
|
- Edit-video pricing and rate limits: https://runapi.ai/models/happyhorse/edit-video
|
|
@@ -26,8 +26,22 @@ module RunApi
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"image-to-video" => {
|
|
29
|
-
"models" => ["happyhorse-image-to-video"],
|
|
29
|
+
"models" => ["happyhorse-1.0-i2v", "happyhorse-image-to-video"],
|
|
30
30
|
"fields_by_model" => {
|
|
31
|
+
"happyhorse-1.0-i2v" => {
|
|
32
|
+
"duration_seconds" => {
|
|
33
|
+
"type" => "integer"
|
|
34
|
+
},
|
|
35
|
+
"first_frame_image_url" => {
|
|
36
|
+
"required" => true
|
|
37
|
+
},
|
|
38
|
+
"output_resolution" => {
|
|
39
|
+
"enum" => ["720p", "1080p"]
|
|
40
|
+
},
|
|
41
|
+
"seed" => {
|
|
42
|
+
"type" => "integer"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
31
45
|
"happyhorse-image-to-video" => {
|
|
32
46
|
"duration_seconds" => {
|
|
33
47
|
"type" => "integer"
|
|
@@ -45,8 +59,41 @@ module RunApi
|
|
|
45
59
|
}
|
|
46
60
|
},
|
|
47
61
|
"text-to-video" => {
|
|
48
|
-
"models" => ["happyhorse-character", "happyhorse-text-to-video"],
|
|
62
|
+
"models" => ["happyhorse-1.0-r2v", "happyhorse-1.0-t2v", "happyhorse-character", "happyhorse-text-to-video"],
|
|
49
63
|
"fields_by_model" => {
|
|
64
|
+
"happyhorse-1.0-r2v" => {
|
|
65
|
+
"aspect_ratio" => {
|
|
66
|
+
"enum" => ["16:9", "9:16", "1:1", "4:3", "3:4"]
|
|
67
|
+
},
|
|
68
|
+
"duration_seconds" => {
|
|
69
|
+
"type" => "integer"
|
|
70
|
+
},
|
|
71
|
+
"output_resolution" => {
|
|
72
|
+
"enum" => ["720p", "1080p"]
|
|
73
|
+
},
|
|
74
|
+
"reference_image_urls" => {
|
|
75
|
+
"required" => true,
|
|
76
|
+
"min_items" => 1,
|
|
77
|
+
"max_items" => 9
|
|
78
|
+
},
|
|
79
|
+
"seed" => {
|
|
80
|
+
"type" => "integer"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"happyhorse-1.0-t2v" => {
|
|
84
|
+
"aspect_ratio" => {
|
|
85
|
+
"enum" => ["16:9", "9:16", "1:1", "4:3", "3:4"]
|
|
86
|
+
},
|
|
87
|
+
"duration_seconds" => {
|
|
88
|
+
"type" => "integer"
|
|
89
|
+
},
|
|
90
|
+
"output_resolution" => {
|
|
91
|
+
"enum" => ["720p", "1080p"]
|
|
92
|
+
},
|
|
93
|
+
"seed" => {
|
|
94
|
+
"type" => "integer"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
50
97
|
"happyhorse-character" => {
|
|
51
98
|
"aspect_ratio" => {
|
|
52
99
|
"enum" => ["16:9", "9:16", "1:1", "4:3", "3:4"]
|
|
@@ -6,6 +6,9 @@ module RunApi
|
|
|
6
6
|
module Types
|
|
7
7
|
# Character-consistent model; requires 1-9 reference_image_urls.
|
|
8
8
|
CHARACTER_MODEL = "happyhorse-character"
|
|
9
|
+
HAPPYHORSE_1_0_T2V_MODEL = "happyhorse-1.0-t2v"
|
|
10
|
+
HAPPYHORSE_1_0_R2V_MODEL = "happyhorse-1.0-r2v"
|
|
11
|
+
HAPPYHORSE_1_0_I2V_MODEL = "happyhorse-1.0-i2v"
|
|
9
12
|
# Duration range in seconds (3-15). Defaults to 5.
|
|
10
13
|
DURATION_RANGE = (3..15)
|
|
11
14
|
# Reproducibility seed range.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-happyhorse
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.10
|
|
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.
|
|
18
|
+
version: 0.4.0
|
|
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.
|
|
25
|
+
version: 0.4.0
|
|
26
26
|
description: The HappyHorse Ruby SDK is the language-specific package for HappyHorse
|
|
27
27
|
on RunAPI. Use this package for video generation, animation, and video editing workflows
|
|
28
28
|
when your application needs request bodies, task status lookup, and consistent RunAPI
|