runapi-flux-kontext 0.2.3 → 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: f02b6c8d6a277adf0c9f107aba74bcd1386de50675042b279d1467355263b2ff
4
- data.tar.gz: 332267483e79e90e7262bafbf7614e004d27d7562be616b20fb775285f777fa6
3
+ metadata.gz: 9ca7b5863c0ddfe15a6fe0f308e1098494cede66606aff70563003379d53e127
4
+ data.tar.gz: abc26292fc5b3debd3048e39c2a9388eeb656b9cb75f11ba61e55483494eb5dc
5
5
  SHA512:
6
- metadata.gz: ebc605f974ba99711add487c2e0334a52c2a699f3d87ffb8903f6007b32bdd61294bffae2ab9eb745a35be7a3a2e078fe6f6579d5b71885d13e53f231e328e19
7
- data.tar.gz: dbe3121b42f41445e749e705aa2f1472c95e0b267bd05dca64a8cfe3a786f9c2008bc818aaad435326697f2ae909a0b41e86a249948ff2bdcacdc7b4f1c4a1c7
6
+ metadata.gz: 839a8767907dd6ed7a1c19a87d86c0145a5d5f2e9739ff8a0ebecddf65bfb750701156522edaf7f40e373905603b00b25a2d2bdaeb5b1828922a215127d6d9bb
7
+ data.tar.gz: d85d4b53ee990810bd516fe8fe1bcddd4e5d0d9848c02e648642fc0a68682f2264e7874bf199c14e90e00d450210888fb56cdda5bf5172e6ef5dcdf0dc843b7a
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Flux Kontext API Ruby SDK for RunAPI
2
+
3
+ The flux kontext api Ruby SDK is the language-specific package for Flux Kontext on RunAPI. Use this flux kontext api package for text-to-image, image editing, and creative production flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Ruby.
4
+
5
+ This flux kontext api README is the Ruby package guide inside the public `flux-kontext-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/flux-kontext; for API reference, use https://runapi.ai/docs#flux-kontext; for SDK docs, use https://runapi.ai/docs#sdk-flux-kontext.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ gem install runapi-flux-kontext
11
+ ```
12
+
13
+ ## Quick start
14
+
15
+ ```ruby
16
+ require "runapi-flux-kontext"
17
+
18
+ client = RunApi::FluxKontext::Client.new
19
+ task = client.generations.create(
20
+ # Pass the Flux Kontext JSON request body from https://runapi.ai/docs#flux-kontext.
21
+ )
22
+ status = client.generations.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::FluxKontext` error classes when building image jobs, Rails workers, or scripts. The available resources include generations. 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/flux-kontext
34
+ - SDK docs: https://runapi.ai/docs#sdk-flux-kontext
35
+ - Product docs: https://runapi.ai/docs#flux-kontext
36
+ - Pricing and rate limits: https://runapi.ai/models/flux-kontext/pro
37
+ - Provider comparison: https://runapi.ai/providers/black-forest-labs
38
+ - Full catalog: https://runapi.ai/models
39
+ - Repository: https://github.com/runapi-ai/flux-kontext-sdk
40
+
41
+ ## License
42
+
43
+ Licensed under the Apache License, Version 2.0.
@@ -16,7 +16,7 @@ module RunApi
16
16
  class TextToImageResponse < RunApi::Core::TaskResponse
17
17
  required :id, String
18
18
  optional :status, String, enum: -> { RunApi::Core::TaskResponse::Status::ALL }
19
- optional :images, [ -> { Image } ]
19
+ optional :images, [-> { Image }]
20
20
  optional :error, String
21
21
  end
22
22
 
@@ -24,7 +24,7 @@ module RunApi
24
24
  # `status: "completed"`. `images` is required so consumers never have to
25
25
  # null-check it on a successful task.
26
26
  class CompletedTextToImageResponse < TextToImageResponse
27
- required :images, [ -> { Image } ]
27
+ required :images, [-> { Image }]
28
28
  end
29
29
  end
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-flux-kontext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
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.2.3
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.2.3
26
- description: RunAPI Flux Kontext SDK for JavaScript, Ruby, and Go
25
+ version: 0.2.5
26
+ description: The flux kontext api Ruby SDK is the language-specific package for Flux
27
+ Kontext on RunAPI. Use this flux kontext api package for text-to-image, image editing,
28
+ and creative production flows when your application needs JSON request bodies, task
29
+ 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-flux_kontext.rb
35
40
  - lib/runapi/flux_kontext.rb
36
41
  - lib/runapi/flux_kontext/client.rb
@@ -41,7 +46,7 @@ licenses:
41
46
  - Apache-2.0
42
47
  metadata:
43
48
  homepage_uri: https://runapi.ai/models/flux-kontext
44
- documentation_uri: https://runapi.ai/models/flux-kontext
49
+ documentation_uri: https://github.com/runapi-ai/flux-kontext-sdk/blob/main/ruby/README.md
45
50
  source_code_uri: https://github.com/runapi-ai/flux-kontext-sdk
46
51
  changelog_uri: https://github.com/runapi-ai/flux-kontext-sdk/blob/main/CHANGELOG.md
47
52
  rdoc_options: []
@@ -60,5 +65,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
65
  requirements: []
61
66
  rubygems_version: 4.0.10
62
67
  specification_version: 4
63
- summary: Flux Kontext API SDKs for JavaScript, Ruby, and Go on RunAPI.
68
+ summary: Flux Kontext API Ruby SDK for RunAPI
64
69
  test_files: []