runapi-grok-imagine 0.2.12 → 0.2.13
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/grok_imagine/contract_gen.rb +10 -4
- 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: 2abaf28bececdb68262f69df17c4f7ce6993e8b9c06cdbcdf0bd2a28d76f1a07
|
|
4
|
+
data.tar.gz: 59af0fe8b7f046d2e7d4ce05ab3ae1f169feb8ffe737775c8e63f4655db6ad38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3bd1dc3ffdd14c1cffcbfb9685f3118fc63734d2e0491d8e9d31ad438e2a04b1b985eaf849931ab25b01e8064915bf822fbca2167fa664f5d5805fbf1fd3cec
|
|
7
|
+
data.tar.gz: c59bab1a8968d004599a6ff0d89106f74647d04c811c7e578af2ac75f61af89a0255c6c212cb80cccbfc4e92a9d41bbfa78fe39e9f5f68956cad5ab912b4e3ca
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Grok Imagine Ruby SDK is the language-specific package for Grok Imagine on RunAPI. Use this package for image and video generation, image editing, and creative production 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 `grok-imagine-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/grok-imagine; for API reference, use https://runapi.ai/docs
|
|
5
|
+
This README is the Ruby package guide inside the public `grok-imagine-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/grok-imagine; for API reference, use https://runapi.ai/docs/api/grok-imagine/text-to-image; for SDK docs, use https://runapi.ai/docs/resources/sdks.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ require "runapi/grok_imagine"
|
|
|
17
17
|
|
|
18
18
|
client = RunApi::GrokImagine::Client.new
|
|
19
19
|
task = client.text_to_video.create(
|
|
20
|
-
# Pass the Grok Imagine JSON request body from https://runapi.ai/docs
|
|
20
|
+
# Pass the Grok Imagine JSON request body from https://runapi.ai/docs/api/grok-imagine/text-to-image.
|
|
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::GrokImagine` error classes when buil
|
|
|
33
33
|
## Links
|
|
34
34
|
|
|
35
35
|
- Model page: https://runapi.ai/models/grok-imagine
|
|
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/grok-imagine/text-to-image
|
|
38
38
|
- Video 1.5 Preview pricing and rate limits: https://runapi.ai/models/grok-imagine/video-1.5-preview
|
|
39
39
|
- Video 1.5 Fast pricing and rate limits: https://runapi.ai/models/grok-imagine/video-1.5-fast
|
|
40
40
|
- Text-to-video pricing and rate limits: https://runapi.ai/models/grok-imagine/text-to-video
|
|
@@ -114,13 +114,16 @@ module RunApi
|
|
|
114
114
|
"required" => true
|
|
115
115
|
},
|
|
116
116
|
"output_resolution" => {
|
|
117
|
-
"enum" => ["480p", "720p"]
|
|
117
|
+
"enum" => ["480p", "720p", "1080p"]
|
|
118
118
|
},
|
|
119
119
|
"prompt" => {
|
|
120
120
|
"min" => 1,
|
|
121
121
|
"max" => 4096,
|
|
122
122
|
"length" => true
|
|
123
123
|
},
|
|
124
|
+
"reference_image_urls" => {
|
|
125
|
+
"max_items" => 6
|
|
126
|
+
},
|
|
124
127
|
"source_image_url" => {
|
|
125
128
|
"required" => true
|
|
126
129
|
}
|
|
@@ -140,7 +143,7 @@ module RunApi
|
|
|
140
143
|
"when" => {
|
|
141
144
|
"model" => "grok-imagine-video-1.5-preview"
|
|
142
145
|
},
|
|
143
|
-
"forbidden" => ["source_task_id", "index", "
|
|
146
|
+
"forbidden" => ["source_task_id", "index", "motion_style", "enable_safety_checker"]
|
|
144
147
|
}]
|
|
145
148
|
},
|
|
146
149
|
"text-to-image" => {
|
|
@@ -222,13 +225,16 @@ module RunApi
|
|
|
222
225
|
"required" => true
|
|
223
226
|
},
|
|
224
227
|
"output_resolution" => {
|
|
225
|
-
"enum" => ["480p", "720p"]
|
|
228
|
+
"enum" => ["480p", "720p", "1080p"]
|
|
226
229
|
},
|
|
227
230
|
"prompt" => {
|
|
228
231
|
"required" => true,
|
|
229
232
|
"min" => 1,
|
|
230
233
|
"max" => 4096,
|
|
231
234
|
"length" => true
|
|
235
|
+
},
|
|
236
|
+
"reference_image_urls" => {
|
|
237
|
+
"max_items" => 7
|
|
232
238
|
}
|
|
233
239
|
}
|
|
234
240
|
},
|
|
@@ -246,7 +252,7 @@ module RunApi
|
|
|
246
252
|
"when" => {
|
|
247
253
|
"model" => "grok-imagine-video-1.5-preview"
|
|
248
254
|
},
|
|
249
|
-
"forbidden" => ["
|
|
255
|
+
"forbidden" => ["motion_style", "enable_safety_checker"]
|
|
250
256
|
}]
|
|
251
257
|
},
|
|
252
258
|
"upscale-image" => {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-grok-imagine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.13
|
|
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 Grok Imagine Ruby SDK is the language-specific package for Grok Imagine
|
|
27
27
|
on RunAPI. Use this package for image and video generation, image editing, and creative
|
|
28
28
|
production workflows when your application needs request bodies, task status lookup,
|