runapi-infinitetalk 0.2.1 → 0.2.5

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: 3d5ecd424dbd68d27c0187e3990398e1a67f8850f559656e0838f74fc916d934
4
- data.tar.gz: b61ac858fb14128cc2c26060c3bc7f1cb08e447084c783332195d69f69902c73
3
+ metadata.gz: 4fa0e1602f6bec3ba27af06b285047d873ab0994632c1018b0457c30ea538a6c
4
+ data.tar.gz: 86d3f1116b288566c4a1e0cf6dd18f16c3043b3e48b79da9211d3814ec650685
5
5
  SHA512:
6
- metadata.gz: 06136aa6b6ca4109712c4bbcccda80898f93d68bfde27ccc28b7ea9c50d82d2e1328612360160be9f6f5d89dd881e426cc06ed8629b5c4d6acb82195715bcd26
7
- data.tar.gz: 2ef816878703fb34146ed3d41c80caf57dc1f617e796d2d0f32d9f80c39a94024481a5900ead8f6a1ff6efda10db96c828926ec14ac39a74b77d89fd7437dce3
6
+ metadata.gz: 803e3c8713bc01a19513f2800cea7ac73dc12b875f589d5a92457a36810dd5d160c717fddb11022ac5eadea52227ae6e18f89ccd64aa36bbb868d01aaf97258c
7
+ data.tar.gz: e8f15d25513e3ca96775bbfdbdf18d26d74a8758ecbb4426b46b9134634e4f5be7f8a5ca0c99f137c3189839a98e272a5df60ef77d3d3e38367bfacc237ce946
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Infinitetalk API Ruby SDK for RunAPI
2
+
3
+ The infinitetalk api Ruby SDK is the language-specific package for InfiniteTalk on RunAPI. Use this infinitetalk api package for text-to-video, image-to-video, video editing, and animation flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Ruby.
4
+
5
+ This infinitetalk api README is the Ruby package guide inside the public `infinitalk-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/infinitalk; for API reference, use https://runapi.ai/docs#infinitalk; for SDK docs, use https://runapi.ai/docs#sdk-infinitalk.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ gem install runapi-infinitalk
11
+ ```
12
+
13
+ ## Quick start
14
+
15
+ ```ruby
16
+ require "runapi-infinitalk"
17
+
18
+ client = RunApi::Infinitalk::Client.new
19
+ task = client.from_audios.create(
20
+ # Pass the InfiniteTalk JSON request body from https://runapi.ai/docs#infinitalk.
21
+ )
22
+ status = client.from_audios.get(task.id)
23
+ ```
24
+
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
+
27
+ ## Language notes
28
+
29
+ Use Ruby keyword arguments and the `RunApi::Infinitalk` error classes when building video jobs, Rails workers, or scripts. The available resources include from audios. Keep `RUNAPI_API_KEY` in the environment or your secret manager; never commit API keys or callback secrets.
30
+
31
+ ## Links
32
+
33
+ - Model page: https://runapi.ai/models/infinitalk
34
+ - SDK docs: https://runapi.ai/docs#sdk-infinitalk
35
+ - Product docs: https://runapi.ai/docs#infinitalk
36
+ - Pricing and rate limits: https://runapi.ai/models/infinitalk
37
+ - Provider comparison: https://runapi.ai/providers/meigen-ai
38
+ - Full catalog: https://runapi.ai/models
39
+ - Repository: https://github.com/runapi-ai/infinitalk-sdk
40
+
41
+ ## License
42
+
43
+ Licensed under the Apache License, Version 2.0.
@@ -40,15 +40,15 @@ module RunApi
40
40
  raise Core::ValidationError, "Invalid model: #{model}. Must be one of: #{Types::MODELS.join(", ")}"
41
41
  end
42
42
 
43
- validate_required!(params, :image_url)
44
- validate_required!(params, :audio_url)
43
+ validate_required!(params, :source_image_url)
44
+ validate_required!(params, :source_audio_url)
45
45
  prompt = param(params, :prompt)
46
46
  raise Core::ValidationError, "prompt is required" unless prompt.is_a?(String) && !prompt.empty?
47
47
  if prompt.length > PROMPT_MAX_LENGTH
48
48
  raise Core::ValidationError, "prompt must be at most #{PROMPT_MAX_LENGTH} characters"
49
49
  end
50
50
 
51
- validate_optional!(params, :resolution, Types::RESOLUTIONS)
51
+ validate_optional!(params, :output_resolution, Types::RESOLUTIONS)
52
52
 
53
53
  seed = param(params, :seed)
54
54
  return if seed.nil?
@@ -13,12 +13,12 @@ module RunApi
13
13
  class AudioToVideoResponse < RunApi::Core::TaskResponse
14
14
  required :id, String
15
15
  optional :status, String, enum: -> { RunApi::Core::TaskResponse::Status::ALL }
16
- optional :videos, [ -> { Video } ]
16
+ optional :videos, [-> { Video }]
17
17
  optional :error, String
18
18
  end
19
19
 
20
20
  class CompletedAudioToVideoResponse < AudioToVideoResponse
21
- required :videos, [ -> { Video } ]
21
+ required :videos, [-> { Video }]
22
22
  end
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-infinitetalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - RunAPI
@@ -15,22 +15,27 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '0.1'
18
+ version: 0.2.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.1'
26
- description: RunAPI InfiniteTalk SDK for JavaScript, Ruby, and Go
25
+ version: 0.2.5
26
+ description: The infinitetalk api Ruby SDK is the language-specific package for InfiniteTalk
27
+ on RunAPI. Use this infinitetalk api package for text-to-video, image-to-video,
28
+ video editing, and animation flows when your application needs JSON request bodies,
29
+ task status lookup, and consistent RunAPI errors in Ruby.
27
30
  email:
28
31
  - contact@runapi.ai
29
32
  executables: []
30
33
  extensions: []
31
- extra_rdoc_files: []
34
+ extra_rdoc_files:
35
+ - README.md
32
36
  files:
33
37
  - LICENSE
38
+ - README.md
34
39
  - lib/runapi-infinitetalk.rb
35
40
  - lib/runapi/infinitetalk.rb
36
41
  - lib/runapi/infinitetalk/client.rb
@@ -41,7 +46,7 @@ licenses:
41
46
  - Apache-2.0
42
47
  metadata:
43
48
  homepage_uri: https://runapi.ai/models/infinitetalk
44
- documentation_uri: https://runapi.ai/models/infinitetalk
49
+ documentation_uri: https://github.com/runapi-ai/infinitetalk-sdk/blob/main/ruby/README.md
45
50
  source_code_uri: https://github.com/runapi-ai/infinitetalk-sdk
46
51
  changelog_uri: https://github.com/runapi-ai/infinitetalk-sdk/blob/main/CHANGELOG.md
47
52
  rdoc_options: []
@@ -58,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
63
  - !ruby/object:Gem::Version
59
64
  version: '0'
60
65
  requirements: []
61
- rubygems_version: 4.0.6
66
+ rubygems_version: 4.0.10
62
67
  specification_version: 4
63
- summary: InfiniteTalk API SDKs for JavaScript, Ruby, and Go on RunAPI.
68
+ summary: Infinitetalk API Ruby SDK for RunAPI
64
69
  test_files: []