@runapi.ai/seedream 0.4.0 → 0.5.1
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.
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ type AspectRatio = '1:1' | '4:3' | '3:4' | '16:9' | '9:16' | '2:3' | '3:2' | '21
|
|
|
13
13
|
type OutputQuality = 'basic' | 'high';
|
|
14
14
|
/** Output image format for 5-Lite and 5 Pro models. */
|
|
15
15
|
type OutputFormat = 'png' | 'jpeg';
|
|
16
|
+
type Background = 'transparent';
|
|
16
17
|
/** Pixel resolution tier for V4 models. */
|
|
17
18
|
type V4OutputResolution = '1k' | '2k' | '4k';
|
|
18
19
|
/**
|
|
@@ -76,6 +77,8 @@ interface Generation5ProEditParams extends ImageGenerationBaseParams {
|
|
|
76
77
|
source_image_urls: string[];
|
|
77
78
|
/** Output image format (default: "png"). */
|
|
78
79
|
output_format?: OutputFormat;
|
|
80
|
+
/** Keep the transparent background of the source image. Requires exactly one PNG source image with an alpha channel and output_format "png". */
|
|
81
|
+
background?: Background;
|
|
79
82
|
}
|
|
80
83
|
interface GenerationV4TextParams extends V4GenerationBaseParams {
|
|
81
84
|
model: 'seedream-v4-text-to-image';
|
|
@@ -259,4 +262,4 @@ declare class SeedreamClient extends BaseClient {
|
|
|
259
262
|
constructor(options?: ClientOptions);
|
|
260
263
|
}
|
|
261
264
|
|
|
262
|
-
export { type AspectRatio, type BoundingBox, type CompletedDecomposeLayersResponse, type CompletedEditImageResponse, type CompletedTextToImageResponse, type DecomposeLayersModel, type DecomposeLayersParams, type DecomposeLayersResponse, type EditImageModel, type EditImageParams, type EditImageResponse, type Generation45EditImageParams, type Generation45TextParams, type Generation5LiteEditParams, type Generation5LiteTextParams, type Generation5ProEditParams, type Generation5ProTextParams, type GenerationV4EditParams, type GenerationV4TextParams, type Image, type Layer, type OutputFormat, type OutputQuality, SeedreamClient, type SeedreamModel, type TaskCreateResponse, type TextToImageModel, type TextToImageParams, type TextToImageResponse, type V4OutputResolution };
|
|
265
|
+
export { type AspectRatio, type Background, type BoundingBox, type CompletedDecomposeLayersResponse, type CompletedEditImageResponse, type CompletedTextToImageResponse, type DecomposeLayersModel, type DecomposeLayersParams, type DecomposeLayersResponse, type EditImageModel, type EditImageParams, type EditImageResponse, type Generation45EditImageParams, type Generation45TextParams, type Generation5LiteEditParams, type Generation5LiteTextParams, type Generation5ProEditParams, type Generation5ProTextParams, type GenerationV4EditParams, type GenerationV4TextParams, type Image, type Layer, type OutputFormat, type OutputQuality, SeedreamClient, type SeedreamModel, type TaskCreateResponse, type TextToImageModel, type TextToImageParams, type TextToImageResponse, type V4OutputResolution };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ type AspectRatio = '1:1' | '4:3' | '3:4' | '16:9' | '9:16' | '2:3' | '3:2' | '21
|
|
|
13
13
|
type OutputQuality = 'basic' | 'high';
|
|
14
14
|
/** Output image format for 5-Lite and 5 Pro models. */
|
|
15
15
|
type OutputFormat = 'png' | 'jpeg';
|
|
16
|
+
type Background = 'transparent';
|
|
16
17
|
/** Pixel resolution tier for V4 models. */
|
|
17
18
|
type V4OutputResolution = '1k' | '2k' | '4k';
|
|
18
19
|
/**
|
|
@@ -76,6 +77,8 @@ interface Generation5ProEditParams extends ImageGenerationBaseParams {
|
|
|
76
77
|
source_image_urls: string[];
|
|
77
78
|
/** Output image format (default: "png"). */
|
|
78
79
|
output_format?: OutputFormat;
|
|
80
|
+
/** Keep the transparent background of the source image. Requires exactly one PNG source image with an alpha channel and output_format "png". */
|
|
81
|
+
background?: Background;
|
|
79
82
|
}
|
|
80
83
|
interface GenerationV4TextParams extends V4GenerationBaseParams {
|
|
81
84
|
model: 'seedream-v4-text-to-image';
|
|
@@ -259,4 +262,4 @@ declare class SeedreamClient extends BaseClient {
|
|
|
259
262
|
constructor(options?: ClientOptions);
|
|
260
263
|
}
|
|
261
264
|
|
|
262
|
-
export { type AspectRatio, type BoundingBox, type CompletedDecomposeLayersResponse, type CompletedEditImageResponse, type CompletedTextToImageResponse, type DecomposeLayersModel, type DecomposeLayersParams, type DecomposeLayersResponse, type EditImageModel, type EditImageParams, type EditImageResponse, type Generation45EditImageParams, type Generation45TextParams, type Generation5LiteEditParams, type Generation5LiteTextParams, type Generation5ProEditParams, type Generation5ProTextParams, type GenerationV4EditParams, type GenerationV4TextParams, type Image, type Layer, type OutputFormat, type OutputQuality, SeedreamClient, type SeedreamModel, type TaskCreateResponse, type TextToImageModel, type TextToImageParams, type TextToImageResponse, type V4OutputResolution };
|
|
265
|
+
export { type AspectRatio, type Background, type BoundingBox, type CompletedDecomposeLayersResponse, type CompletedEditImageResponse, type CompletedTextToImageResponse, type DecomposeLayersModel, type DecomposeLayersParams, type DecomposeLayersResponse, type EditImageModel, type EditImageParams, type EditImageResponse, type Generation45EditImageParams, type Generation45TextParams, type Generation5LiteEditParams, type Generation5LiteTextParams, type Generation5ProEditParams, type Generation5ProTextParams, type GenerationV4EditParams, type GenerationV4TextParams, type Image, type Layer, type OutputFormat, type OutputQuality, SeedreamClient, type SeedreamModel, type TaskCreateResponse, type TextToImageModel, type TextToImageParams, type TextToImageResponse, type V4OutputResolution };
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"runapi": {
|
|
4
4
|
"slug": "seedream"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.1",
|
|
7
7
|
"description": "RunAPI Seedream SDK for text-to-image and edit-image workflows in JavaScript, Python, Ruby, Go, Java, and PHP",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"module": "./dist/index.mjs",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"clean": "rm -rf dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@runapi.ai/core": "^0.5.
|
|
34
|
+
"@runapi.ai/core": "^0.5.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.0.0",
|
|
38
|
-
"@vitest/coverage-v8": "^1.
|
|
38
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
39
39
|
"tsup": "^8.0.0",
|
|
40
40
|
"typescript": "^5.4.0",
|
|
41
|
-
"vitest": "^1.
|
|
41
|
+
"vitest": "^4.1.11"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|