runapi-seedream 0.4.0 → 0.6.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: f174aec9eb30f7457384baa78f50f0fe2978453a34a0b7a6a65766d3d4c5bb4e
4
- data.tar.gz: a5f69b9d3d29123179a0f455688d7f8ab01fb6c9c3cc46ba862f9229dfcc38c7
3
+ metadata.gz: 7c3e1589210fdf9340edc6abd2a695afe711d733bb1fee4f6c408ea854bfcc5d
4
+ data.tar.gz: f6a9aba8e7d9e2bb411102fd7d715f22a43a81bd843d93435f2f629259d3dd6c
5
5
  SHA512:
6
- metadata.gz: 1471a52a9943aaa838592d7551f6d5600a08fd6db30da8da2d94f4cf9a54f77862c59c9ac7b5b46e3205e7cde25419515d07d9d3d7c98006f50808dc3bef1b71
7
- data.tar.gz: 59c32983ddb1537f8b2c506af45050652f7b39c21fe9e0186c67f5233f0d314af5570b98aa59b794a0ca49bc4bd57484e6379c02cff96586928485456e98ad6f
6
+ metadata.gz: f0a1a6164f59dc6977b2873fbb70bd28e4e30b4dfb7bb75525c464108cae308226b0987cff8ecf960070c77e2227198be2841ab1a716bd117da8542c8d8bfe75
7
+ data.tar.gz: ccde24cfd6a738bf5afe3a479fa858726a42b40d3dc51924f7b9e94f3443fd6046e3ab6d2babead57c597384973322fec7d5a98f2cdfdccb0709f6bbfce1f044
data/README.md CHANGED
@@ -34,6 +34,14 @@ RunAPI-generated file URLs are temporary. Download and store generated images, v
34
34
 
35
35
  Use `seedream-5-pro-text-to-image` for generation, `seedream-5-pro-edit` for image editing, and `seedream-5-pro-layer-decomposition` to separate one image into a base image and ordered transparent layers.
36
36
 
37
+ ## Seedream 5.5
38
+
39
+ Use `seedream-5.5-text-to-image`, `seedream-5.5-edit`, or `seedream-5.5-layer-decomposition` with the existing generation, editing, and decomposition resources. Text-to-image requires `aspect_ratio`. Generation and editing use `output_resolution` (`1k`, `1.5k`, `2k`, default `2k`) and `background` (`auto`, `transparent`, `opaque`, default `auto`). Transparent output requires PNG.
40
+
41
+ Editing accepts 1-10 JPEG, PNG, or WebP sources up to 10 MB each and defaults `aspect_ratio` to `auto`. Prompts accept 5-5000 characters. These models accept no `output_quality`, `seed`, or `output_count`.
42
+
43
+ Decomposition accepts one JPEG, PNG, or WebP source up to 10 MB and an optional prompt up to 2000 characters. `size` accepts `auto`, `1K`, `1.5K`, or `2K`, default `auto`. `max_images` is an upper bound of 2-100 outputs including the base image, default 30. `text_recognition` defaults to `false`. `output_format` defaults to `png` and affects only the base image. Query `usage.generated_images` for the actual output count.
44
+
37
45
  ## Language notes
38
46
 
39
47
  Use Ruby keyword arguments and the `RunApi::Seedream` error classes when building image jobs, Rails workers, or scripts. The package exposes `text_to_image`, `edit_image`, and `decompose_layers`. Keep `RUNAPI_API_KEY` in the environment or your secret manager; never commit API keys or callback secrets.
@@ -5,7 +5,7 @@ module RunApi
5
5
  module Resources
6
6
  # Seedream image editing resource.
7
7
  # Modifies source images according to a text prompt.
8
- # 5 Pro and V4 accept up to 10 source images; 4.5 and 5-Lite accept up to 14.
8
+ # 5 Pro, 5.5, and V4 accept up to 10 source images; 4.5 and 5-Lite accept up to 14.
9
9
  class EditImage
10
10
  include RunApi::Core::ResourceHelpers
11
11
 
@@ -5,7 +5,8 @@ module RunApi
5
5
  # Seedream type constants and response models.
6
6
  # Model families differ in supported params: 4.5/5-Lite/5 Pro require
7
7
  # aspect_ratio and output_quality; 5-Lite/5 Pro also support output_format; V4 uses
8
- # output_resolution and supports seed/output_count.
8
+ # output_resolution and supports seed/output_count. 5.5 uses output_resolution
9
+ # and supports background for generation and editing.
9
10
  module Types
10
11
  class Image < RunApi::Core::BaseModel
11
12
  optional :url, String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-seedream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.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.6.0
18
+ version: 0.6.1
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.6.0
25
+ version: 0.6.1
26
26
  description: The Seedream Ruby SDK is the language-specific package for Seedream on
27
27
  RunAPI. Use this package for image generation, image editing, and creative production
28
28
  workflows when your application needs request bodies, task status lookup, and consistent