runapi-grok-imagine 0.2.5 → 0.2.6

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: 2a047d16be2aff78876ef12c324ceb1dd91628110f031e10a2eadf82d05dc2f9
4
- data.tar.gz: 46cb2e7890b52532bc163f092cd6c3742157d510d993f6eb6200d74458cf381e
3
+ metadata.gz: 58e4ae262b66e7ef4d87ebb55d1b2f06538bd98c995d69479020b4c57ee078e5
4
+ data.tar.gz: bfb6de17046de4da1688e55726992de2843d8b4d163043f077caf2c6ad5d4d73
5
5
  SHA512:
6
- metadata.gz: 529b03b9e38c76f7b752922fb78ca5834c244d1d5ee138a581a6c35676cfbb299af96120deb4bc3fba875ff46af464e6480e66a1fd7a227452852de55bdf5828
7
- data.tar.gz: 78261dbc81e54c95471e30d15396f8cdfde4b6b52c87ceb95bed106aba320f00ab07daca0ad0300f9a5a4bf51394a05b46c247bc4a71048d38c0cf45187cc16f
6
+ metadata.gz: c40cd80ce506d1031d3c33d0e9c0d0d9bb87cf503f40fb2d58c0a108acc37dda04b442c51dcf75157e9f4dc2baabb43e74812bdfedc561554c63c92e75bfe81a
7
+ data.tar.gz: 0ce317911aee0cf7d13911413d8c0b9a03edf61f97bedaa01e7dcfc7ac7a7ffda9f049d636a823259b706d6dd03b5aba2c64ab7d4e5d852af5f611d81b2b0b77
data/README.md CHANGED
@@ -24,6 +24,8 @@ status = client.text_to_video.get(task.id)
24
24
 
25
25
  Use `create` when you want to submit a task and return quickly, `get` when you need the latest task state, and `run` when a script should create and poll until completion. In web request handlers, prefer `create` plus webhook or later `get` polling so a worker is not held open.
26
26
 
27
+ RunAPI-generated file URLs are temporary. Download and store generated images, videos, audio, or other files in your own durable storage within 7 days; do not treat returned URLs as long-term assets.
28
+
27
29
  ## Language notes
28
30
 
29
31
  Use Ruby keyword arguments and the `RunApi::GrokImagine` error classes when building image jobs, Rails workers, or scripts. The available resources include text to videos, image to videos, text to images, image to images, extensions, and upscales. Keep `RUNAPI_API_KEY` in the environment or your secret manager; never commit API keys or callback secrets.
@@ -11,25 +11,22 @@ module RunApi
11
11
  # prompt: "A drone shot over a neon cityscape",
12
12
  # output_resolution: "720p"
13
13
  # )
14
- class Client
15
- # @return [Resources::TextToVideo]
14
+ class Client < RunApi::Core::Client
15
+ # @return [Resources::TextToVideo] Text-to-video generation operations.
16
16
  attr_reader :text_to_video
17
- # @return [Resources::ImageToVideo]
17
+ # @return [Resources::ImageToVideo] Image-to-video generation operations.
18
18
  attr_reader :image_to_video
19
- # @return [Resources::TextToImage]
19
+ # @return [Resources::TextToImage] Text-to-image generation operations.
20
20
  attr_reader :text_to_image
21
- # @return [Resources::EditImage]
21
+ # @return [Resources::EditImage] Prompt-guided image editing operations.
22
22
  attr_reader :edit_image
23
- # @return [Resources::Extensions]
23
+ # @return [Resources::Extensions] Extend a previously generated video.
24
24
  attr_reader :extensions
25
- # @return [Resources::Upscales]
25
+ # @return [Resources::Upscales] Upscale a previously generated video.
26
26
  attr_reader :upscales
27
27
 
28
28
  def initialize(api_key: nil, **options)
29
- @api_key = Core::Auth.resolve_api_key(api_key)
30
-
31
- client_options = Core::ClientOptions.new(api_key: @api_key, **options)
32
- http = client_options.http_client || Core::HttpClient.new(client_options)
29
+ super
33
30
 
34
31
  @text_to_video = Resources::TextToVideo.new(http)
35
32
  @image_to_video = Resources::ImageToVideo.new(http)
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.5
4
+ version: 0.2.6
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.2.5
18
+ version: 0.2.6
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.2.5
25
+ version: 0.2.6
26
26
  description: The grok imagine api Ruby SDK is the language-specific package for Grok
27
27
  Imagine on RunAPI. Use this grok imagine api package for text-to-image, image editing,
28
28
  and creative production flows when your application needs JSON request bodies, task