runapi-midjourney 0.3.1 → 0.4.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f707698f339954864ee5c8686e693b010f1157cd76d4bf3441a00c1d1296e3d
|
|
4
|
+
data.tar.gz: 4684242173bed806c235e86906de58d5bb8cde9870fb5e211586140eeba1ef66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b1c3949876aeed53bc97e8a98e824cec3a20a2f3de7ab6f950e5a2741cbd675ae9f88675a3d8be85e7bae1589097d2fff813e28244e71bbb55b61a3abb65805
|
|
7
|
+
data.tar.gz: 6d8b735ec710035f7bfeb62f9966377c7ee360b0f603d1f61b294d73ceab1e6cb78511974e300dd039032c4205c63e55caa0b1638c0c52f4d7010e65f939cb09
|
data/README.md
CHANGED
|
@@ -26,8 +26,8 @@ Use `create`, `get`, and `run` for `text_to_image`, `edit_image`, `image_to_vide
|
|
|
26
26
|
## Links
|
|
27
27
|
|
|
28
28
|
- Model page: https://runapi.ai/models/midjourney
|
|
29
|
-
- Product docs: https://runapi.ai/docs
|
|
30
|
-
- SDK docs: https://runapi.ai/docs
|
|
29
|
+
- Product docs: https://runapi.ai/docs/api/midjourney/text-to-image
|
|
30
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
31
31
|
- V8.1 details: https://runapi.ai/models/midjourney/v8.1
|
|
32
32
|
- Image editing details: https://runapi.ai/models/midjourney/edit-image
|
|
33
33
|
- Image-to-video details: https://runapi.ai/models/midjourney/image-to-video
|
|
@@ -15,7 +15,13 @@ module RunApi
|
|
|
15
15
|
def run(options: nil, **params)
|
|
16
16
|
params = compact_params(params)
|
|
17
17
|
validate_contract!(CONTRACT["get-seed"], params)
|
|
18
|
-
|
|
18
|
+
run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def subscribe(options: nil, **params)
|
|
22
|
+
params = compact_params(params)
|
|
23
|
+
validate_contract!(CONTRACT["get-seed"], params)
|
|
24
|
+
subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
|
|
19
25
|
end
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -15,7 +15,13 @@ module RunApi
|
|
|
15
15
|
def run(options: nil, **params)
|
|
16
16
|
params = compact_params(params)
|
|
17
17
|
validate_contract!(CONTRACT["image-to-prompt"], params)
|
|
18
|
-
|
|
18
|
+
run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def subscribe(options: nil, **params)
|
|
22
|
+
params = compact_params(params)
|
|
23
|
+
validate_contract!(CONTRACT["image-to-prompt"], params)
|
|
24
|
+
subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
|
|
19
25
|
end
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -15,7 +15,13 @@ module RunApi
|
|
|
15
15
|
def run(options: nil, **params)
|
|
16
16
|
params = compact_params(params)
|
|
17
17
|
validate_contract!(CONTRACT["shorten-prompt"], params)
|
|
18
|
-
|
|
18
|
+
run_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def subscribe(options: nil, **params)
|
|
22
|
+
params = compact_params(params)
|
|
23
|
+
validate_contract!(CONTRACT["shorten-prompt"], params)
|
|
24
|
+
subscribe_hybrid(ENDPOINT, body: params, options: options, response_class: RESPONSE_CLASS)
|
|
19
25
|
end
|
|
20
26
|
end
|
|
21
27
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-midjourney
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
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.5.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.5.0
|
|
26
26
|
description: Use `runapi-midjourney` for Midjourney image generation, editing, image-to-video,
|
|
27
27
|
first-video extension, image-to-prompt, prompt shortening, and seed lookup in Ruby
|
|
28
28
|
applications and workers.
|