runapi-seedream 0.5.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 +4 -4
- data/README.md +8 -0
- data/lib/runapi/seedream/resources/edit_image.rb +1 -1
- data/lib/runapi/seedream/types.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c3e1589210fdf9340edc6abd2a695afe711d733bb1fee4f6c408ea854bfcc5d
|
|
4
|
+
data.tar.gz: f6a9aba8e7d9e2bb411102fd7d715f22a43a81bd843d93435f2f629259d3dd6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|