You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-generated SDK sync from ark-apis at d20f0d68da2100d87a660921aedc9b72d75c6a34.
Generated files are overwritten by the sync pipeline and should not be edited by hand.
Sync-Source-Commit: 49c3974c74c71949bddedab29bcd594c319301e6
Ark-APIs-Commit: d20f0d68da2100d87a660921aedc9b72d75c6a34
Release-Version: 0.6.0
Copy file name to clipboardExpand all lines: src/arkruntime/types/images/create_image_generation_request.py
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,11 @@
6
6
7
7
from __future__ importannotations
8
8
9
-
fromtypingimportList, Optional
9
+
fromtypingimportList, Optional, Union
10
10
11
11
fromarkruntime._modelsimportBaseModel
12
12
13
+
from .backgroundimportBackground
13
14
from .optimize_prompt_optionsimportOptimizePromptOptions
14
15
from .output_formatimportOutputFormat
15
16
from .response_formatimportResponseFormat
@@ -23,13 +24,13 @@ class CreateImageGenerationRequest(BaseModel):
23
24
"""
24
25
The model identifier to use.
25
26
"""
26
-
prompt: str
27
+
prompt: Optional[str] =None
27
28
"""
28
-
Text prompt describing the desired image.
29
+
Text prompt describing the desired image. Required for standard generation; may be omitted for automatic layer decomposition when `layer_decomposition=true`.
29
30
"""
30
-
image: Optional[List[str]] =None
31
+
image: Optional[Union[str, List[str]]] =None
31
32
"""
32
-
Reference / edit images. Each entry is a URL or a `data:` URI.
33
+
Reference / edit images, as a single URL or `data:` URI, or an array of them.
33
34
"""
34
35
stream: Optional[bool] =None
35
36
"""
@@ -81,6 +82,10 @@ class CreateImageGenerationRequest(BaseModel):
81
82
"""
82
83
Container/codec for the generated image bytes.
83
84
"""
85
+
background: Optional[Background] =None
86
+
"""
87
+
Output background. Defaults to `opaque`. `transparent` requires exactly one PNG reference image with an alpha channel and PNG output.
88
+
"""
84
89
layer_decomposition: Optional[bool] =None
85
90
"""
86
91
Decompose one reference image into a base image and independently
Copy file name to clipboardExpand all lines: src/arkruntime/types/images/create_image_generation_request_param.py
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,11 @@
6
6
7
7
from __future__ importannotations
8
8
9
-
fromtypingimportList, Optional
9
+
fromtypingimportList, Optional, Union
10
10
11
11
fromtyping_extensionsimportRequired, TypedDict
12
12
13
+
from .backgroundimportBackground
13
14
from .optimize_prompt_options_paramimportOptimizePromptOptionsParam
14
15
from .output_formatimportOutputFormat
15
16
from .response_formatimportResponseFormat
@@ -24,11 +25,11 @@ class CreateImageGenerationRequestParam(TypedDict, total=False):
24
25
model: Required[str]
25
26
"""The model identifier to use."""
26
27
27
-
prompt: Required[str]
28
-
"""Text prompt describing the desired image."""
28
+
prompt: Optional[str]
29
+
"""Text prompt describing the desired image. Required for standard generation; may be omitted for automatic layer decomposition when `layer_decomposition=true`."""
29
30
30
-
image: Optional[List[str]]
31
-
"""Reference / edit images. Each entry is a URL or a `data:` URI."""
31
+
image: Optional[Union[str, List[str]]]
32
+
"""Reference / edit images, as a single URL or `data:` URI, or an array of them."""
32
33
33
34
stream: Optional[bool]
34
35
"""Stream partial images as they are generated (server-sent events)."""
@@ -66,6 +67,9 @@ class CreateImageGenerationRequestParam(TypedDict, total=False):
66
67
output_format: Optional[OutputFormat]
67
68
"""Container/codec for the generated image bytes."""
68
69
70
+
background: Optional[Background]
71
+
"""Output background. Defaults to `opaque`. `transparent` requires exactly one PNG reference image with an alpha channel and PNG output."""
72
+
69
73
layer_decomposition: Optional[bool]
70
74
"""
71
75
Decompose one reference image into a base image and independently
0 commit comments