@scenario-labs/sdk 1.1.0 → 2.0.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.
Files changed (236) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +67 -43
  7. package/client.js.map +1 -1
  8. package/client.mjs +67 -44
  9. package/client.mjs.map +1 -1
  10. package/core/api-promise.js +7 -7
  11. package/core/api-promise.js.map +1 -1
  12. package/core/api-promise.mjs +7 -7
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.js +6 -0
  15. package/core/error.js.map +1 -1
  16. package/core/error.mjs +6 -0
  17. package/core/error.mjs.map +1 -1
  18. package/core/pagination.js +24 -6
  19. package/core/pagination.js.map +1 -1
  20. package/core/pagination.mjs +24 -6
  21. package/core/pagination.mjs.map +1 -1
  22. package/core/resource.js +1 -0
  23. package/core/resource.js.map +1 -1
  24. package/core/resource.mjs +1 -0
  25. package/core/resource.mjs.map +1 -1
  26. package/index.d.mts +1 -0
  27. package/index.d.mts.map +1 -1
  28. package/index.d.ts +1 -0
  29. package/index.d.ts.map +1 -1
  30. package/index.js +3 -1
  31. package/index.js.map +1 -1
  32. package/index.mjs +1 -0
  33. package/index.mjs.map +1 -1
  34. package/internal/detect-platform.js +1 -1
  35. package/internal/detect-platform.js.map +1 -1
  36. package/internal/detect-platform.mjs +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/qs/stringify.js +1 -1
  39. package/internal/qs/stringify.js.map +1 -1
  40. package/internal/qs/stringify.mjs +1 -1
  41. package/internal/qs/stringify.mjs.map +1 -1
  42. package/internal/request-options.d.mts +0 -4
  43. package/internal/request-options.d.mts.map +1 -1
  44. package/internal/request-options.d.ts +0 -4
  45. package/internal/request-options.d.ts.map +1 -1
  46. package/internal/request-options.js.map +1 -1
  47. package/internal/request-options.mjs.map +1 -1
  48. package/internal/to-file.js +2 -2
  49. package/internal/to-file.js.map +1 -1
  50. package/internal/to-file.mjs +2 -2
  51. package/internal/to-file.mjs.map +1 -1
  52. package/internal/tslib.js +0 -18
  53. package/internal/tslib.mjs +1 -17
  54. package/internal/types.d.mts +6 -6
  55. package/internal/types.d.mts.map +1 -1
  56. package/internal/types.d.ts +6 -6
  57. package/internal/types.d.ts.map +1 -1
  58. package/internal/utils/log.d.mts.map +1 -1
  59. package/internal/utils/log.d.ts.map +1 -1
  60. package/internal/utils/log.js +2 -0
  61. package/internal/utils/log.js.map +1 -1
  62. package/internal/utils/log.mjs +2 -0
  63. package/internal/utils/log.mjs.map +1 -1
  64. package/lib/job.js +3 -3
  65. package/lib/job.js.map +1 -1
  66. package/lib/job.mjs +3 -3
  67. package/lib/job.mjs.map +1 -1
  68. package/lib/models.js +1 -4
  69. package/lib/models.js.map +1 -1
  70. package/lib/models.mjs +1 -4
  71. package/lib/models.mjs.map +1 -1
  72. package/lib/scenario.js +6 -9
  73. package/lib/scenario.js.map +1 -1
  74. package/lib/scenario.mjs +6 -9
  75. package/lib/scenario.mjs.map +1 -1
  76. package/lib/upload.js +6 -6
  77. package/lib/upload.js.map +1 -1
  78. package/lib/upload.mjs +6 -6
  79. package/lib/upload.mjs.map +1 -1
  80. package/lib/workflow.d.mts +2 -2
  81. package/lib/workflow.d.mts.map +1 -1
  82. package/lib/workflow.d.ts +2 -2
  83. package/lib/workflow.d.ts.map +1 -1
  84. package/lib/workflow.js +2 -2
  85. package/lib/workflow.js.map +1 -1
  86. package/lib/workflow.mjs +2 -2
  87. package/lib/workflow.mjs.map +1 -1
  88. package/lib/workflow_converter.d.mts +174 -0
  89. package/lib/workflow_converter.d.mts.map +1 -0
  90. package/lib/workflow_converter.d.ts +174 -0
  91. package/lib/workflow_converter.d.ts.map +1 -0
  92. package/lib/workflow_converter.js +995 -0
  93. package/lib/workflow_converter.js.map +1 -0
  94. package/lib/workflow_converter.mjs +992 -0
  95. package/lib/workflow_converter.mjs.map +1 -0
  96. package/package.json +1 -1
  97. package/resources/assets/assets.d.mts +13 -5
  98. package/resources/assets/assets.d.mts.map +1 -1
  99. package/resources/assets/assets.d.ts +13 -5
  100. package/resources/assets/assets.d.ts.map +1 -1
  101. package/resources/assets/assets.js +1 -8
  102. package/resources/assets/assets.js.map +1 -1
  103. package/resources/assets/assets.mjs +1 -8
  104. package/resources/assets/assets.mjs.map +1 -1
  105. package/resources/assets/index.d.mts +0 -1
  106. package/resources/assets/index.d.mts.map +1 -1
  107. package/resources/assets/index.d.ts +0 -1
  108. package/resources/assets/index.d.ts.map +1 -1
  109. package/resources/assets/index.js +1 -3
  110. package/resources/assets/index.js.map +1 -1
  111. package/resources/assets/index.mjs +0 -1
  112. package/resources/assets/index.mjs.map +1 -1
  113. package/resources/collections/collections.js +2 -5
  114. package/resources/collections/collections.js.map +1 -1
  115. package/resources/collections/collections.mjs +2 -5
  116. package/resources/collections/collections.mjs.map +1 -1
  117. package/resources/generate.d.mts +96 -0
  118. package/resources/generate.d.mts.map +1 -1
  119. package/resources/generate.d.ts +96 -0
  120. package/resources/generate.d.ts.map +1 -1
  121. package/resources/index.d.mts +2 -1
  122. package/resources/index.d.mts.map +1 -1
  123. package/resources/index.d.ts +2 -1
  124. package/resources/index.d.ts.map +1 -1
  125. package/resources/index.js +3 -1
  126. package/resources/index.js.map +1 -1
  127. package/resources/index.mjs +1 -0
  128. package/resources/index.mjs.map +1 -1
  129. package/resources/jobs.d.mts +46 -3
  130. package/resources/jobs.d.mts.map +1 -1
  131. package/resources/jobs.d.ts +46 -3
  132. package/resources/jobs.d.ts.map +1 -1
  133. package/resources/models/examples.d.mts +24 -0
  134. package/resources/models/examples.d.mts.map +1 -1
  135. package/resources/models/examples.d.ts +24 -0
  136. package/resources/models/examples.d.ts.map +1 -1
  137. package/resources/models/models.d.mts +55 -11
  138. package/resources/models/models.d.mts.map +1 -1
  139. package/resources/models/models.d.ts +55 -11
  140. package/resources/models/models.d.ts.map +1 -1
  141. package/resources/models/models.js +4 -7
  142. package/resources/models/models.js.map +1 -1
  143. package/resources/models/models.mjs +4 -7
  144. package/resources/models/models.mjs.map +1 -1
  145. package/resources/models/train.d.mts +24 -0
  146. package/resources/models/train.d.mts.map +1 -1
  147. package/resources/models/train.d.ts +24 -0
  148. package/resources/models/train.d.ts.map +1 -1
  149. package/resources/oscu.d.mts +5 -0
  150. package/resources/oscu.d.mts.map +1 -1
  151. package/resources/oscu.d.ts +5 -0
  152. package/resources/oscu.d.ts.map +1 -1
  153. package/resources/oscu.js +5 -0
  154. package/resources/oscu.js.map +1 -1
  155. package/resources/oscu.mjs +5 -0
  156. package/resources/oscu.mjs.map +1 -1
  157. package/resources/pricing/index.d.mts +3 -0
  158. package/resources/pricing/index.d.mts.map +1 -0
  159. package/resources/pricing/index.d.ts +3 -0
  160. package/resources/pricing/index.d.ts.map +1 -0
  161. package/resources/pricing/index.js +9 -0
  162. package/resources/pricing/index.js.map +1 -0
  163. package/resources/pricing/index.mjs +4 -0
  164. package/resources/pricing/index.mjs.map +1 -0
  165. package/resources/pricing/oscu.d.mts +25 -0
  166. package/resources/pricing/oscu.d.mts.map +1 -0
  167. package/resources/pricing/oscu.d.ts +25 -0
  168. package/resources/pricing/oscu.d.ts.map +1 -0
  169. package/resources/pricing/oscu.js +16 -0
  170. package/resources/pricing/oscu.js.map +1 -0
  171. package/resources/pricing/oscu.mjs +12 -0
  172. package/resources/pricing/oscu.mjs.map +1 -0
  173. package/resources/pricing/pricing.d.mts +10 -0
  174. package/resources/pricing/pricing.d.mts.map +1 -0
  175. package/resources/pricing/pricing.d.ts +10 -0
  176. package/resources/pricing/pricing.d.ts.map +1 -0
  177. package/resources/pricing/pricing.js +14 -0
  178. package/resources/pricing/pricing.js.map +1 -0
  179. package/resources/pricing/pricing.mjs +9 -0
  180. package/resources/pricing/pricing.mjs.map +1 -0
  181. package/resources/pricing.d.mts +2 -0
  182. package/resources/pricing.d.mts.map +1 -0
  183. package/resources/pricing.d.ts +2 -0
  184. package/resources/pricing.d.ts.map +1 -0
  185. package/resources/pricing.js +6 -0
  186. package/resources/pricing.js.map +1 -0
  187. package/resources/pricing.mjs +3 -0
  188. package/resources/pricing.mjs.map +1 -0
  189. package/resources/usages.d.mts +29 -4
  190. package/resources/usages.d.mts.map +1 -1
  191. package/resources/usages.d.ts +29 -4
  192. package/resources/usages.d.ts.map +1 -1
  193. package/resources/workflows.d.mts +1298 -1152
  194. package/resources/workflows.d.mts.map +1 -1
  195. package/resources/workflows.d.ts +1298 -1152
  196. package/resources/workflows.d.ts.map +1 -1
  197. package/resources/workflows.js +8 -4
  198. package/resources/workflows.js.map +1 -1
  199. package/resources/workflows.mjs +8 -4
  200. package/resources/workflows.mjs.map +1 -1
  201. package/src/client.ts +24 -11
  202. package/src/index.ts +14 -0
  203. package/src/internal/request-options.ts +0 -2
  204. package/src/internal/types.ts +6 -8
  205. package/src/internal/utils/log.ts +2 -0
  206. package/src/lib/workflow.ts +4 -4
  207. package/src/lib/workflow_converter.ts +1250 -0
  208. package/src/resources/assets/assets.ts +17 -13
  209. package/src/resources/assets/index.ts +0 -6
  210. package/src/resources/generate.ts +112 -0
  211. package/src/resources/index.ts +3 -1
  212. package/src/resources/jobs.ts +54 -4
  213. package/src/resources/models/examples.ts +28 -0
  214. package/src/resources/models/models.ts +100 -11
  215. package/src/resources/models/train.ts +28 -0
  216. package/src/resources/oscu.ts +5 -0
  217. package/src/resources/pricing/index.ts +4 -0
  218. package/src/resources/pricing/oscu.ts +35 -0
  219. package/src/resources/pricing/pricing.ts +15 -0
  220. package/src/resources/pricing.ts +3 -0
  221. package/src/resources/usages.ts +33 -3
  222. package/src/resources/workflows.ts +1691 -1519
  223. package/src/version.ts +1 -1
  224. package/version.d.mts +1 -1
  225. package/version.d.ts +1 -1
  226. package/version.js +1 -1
  227. package/version.mjs +1 -1
  228. package/resources/assets/public.d.mts +0 -1538
  229. package/resources/assets/public.d.mts.map +0 -1
  230. package/resources/assets/public.d.ts +0 -1538
  231. package/resources/assets/public.d.ts.map +0 -1
  232. package/resources/assets/public.js +0 -28
  233. package/resources/assets/public.js.map +0 -1
  234. package/resources/assets/public.mjs +0 -24
  235. package/resources/assets/public.mjs.map +0 -1
  236. package/src/resources/assets/public.ts +0 -2461
@@ -1,1538 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class Public extends APIResource {
5
- /**
6
- * Get the details of an asset. @deprecated Use GET /assets/{assetId} with
7
- * Authorization: public-auth-token header instead.
8
- *
9
- * @deprecated
10
- */
11
- retrieve(assetID: string, options?: RequestOptions): APIPromise<PublicRetrieveResponse>;
12
- /**
13
- * List all public assets. @deprecated Use GET /assets with Authorization:
14
- * public-auth-token header instead.
15
- *
16
- * @deprecated
17
- */
18
- list(query?: PublicListParams | null | undefined, options?: RequestOptions): APIPromise<PublicListResponse>;
19
- }
20
- export interface PublicRetrieveResponse {
21
- asset: PublicRetrieveResponse.Asset;
22
- }
23
- export declare namespace PublicRetrieveResponse {
24
- interface Asset {
25
- /**
26
- * The asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
27
- */
28
- id: string;
29
- /**
30
- * The author user ID (example: "dcf121faaa1a0a0bbbd9ca1b73d62aea")
31
- */
32
- authorId: string;
33
- /**
34
- * A list of CollectionId this asset belongs to
35
- */
36
- collectionIds: Array<string>;
37
- /**
38
- * The asset creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
39
- */
40
- createdAt: string;
41
- /**
42
- * List of edit capabilities
43
- */
44
- editCapabilities: Array<'DETECTION' | 'GENERATIVE_FILL' | 'PIXELATE' | 'PROMPT_EDITING' | 'REFINE' | 'REFRAME' | 'REMOVE_BACKGROUND' | 'SEGMENTATION' | 'UPSCALE' | 'UPSCALE_360' | 'VECTORIZATION'>;
45
- /**
46
- * The kind of asset
47
- */
48
- kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
49
- /**
50
- * Metadata of the asset with some additional information
51
- */
52
- metadata: Asset.Metadata;
53
- /**
54
- * The mime type of the asset (example: "image/png")
55
- */
56
- mimeType: string;
57
- /**
58
- * The owner (project) ID (example: "proj_23tlk332lkht3kl2" or
59
- * "team_dlkhgs23tlk3hlkth32lkht3kl2" for old teams)
60
- */
61
- ownerId: string;
62
- /**
63
- * The privacy of the asset
64
- */
65
- privacy: 'private' | 'public' | 'unlisted';
66
- /**
67
- * The properties of the asset, content may depend on the kind of asset returned
68
- */
69
- properties: Asset.Properties;
70
- /**
71
- * source of the asset
72
- */
73
- source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
74
- /**
75
- * The actual status
76
- */
77
- status: 'error' | 'pending' | 'success';
78
- /**
79
- * The associated tags (example: ["sci-fi", "landscape"])
80
- */
81
- tags: Array<string>;
82
- /**
83
- * The asset last update date as an ISO string (example:
84
- * "2023-02-03T11:19:41.579Z")
85
- */
86
- updatedAt: string;
87
- /**
88
- * Signed URL to get the asset content
89
- */
90
- url: string;
91
- /**
92
- * Automatic captioning of the asset
93
- */
94
- automaticCaptioning?: string;
95
- /**
96
- * The description, it will contain in priority:
97
- *
98
- * - the manual description
99
- * - the advanced captioning when the asset is used in training flow
100
- * - the automatic captioning
101
- */
102
- description?: string;
103
- /**
104
- * The embedding of the asset when requested.
105
- *
106
- * Only available when an asset can be embedded (ie: not Detection maps)
107
- */
108
- embedding?: Array<number>;
109
- /**
110
- * The video asset's first frame.
111
- *
112
- * Contains the assetId and the url of the first frame.
113
- */
114
- firstFrame?: Asset.FirstFrame;
115
- /**
116
- * Whether the asset is hidden.
117
- */
118
- isHidden?: boolean;
119
- /**
120
- * The video asset's last frame.
121
- *
122
- * Contains the assetId and the url of the last frame.
123
- */
124
- lastFrame?: Asset.LastFrame;
125
- /**
126
- * The NSFW labels
127
- */
128
- nsfw?: Array<string>;
129
- /**
130
- * The original file url.
131
- *
132
- * Contains the url of the original file. without any conversion. Only available
133
- * for some specific video, audio and threeD assets. Is only specified if the given
134
- * asset data has been replaced with a new file during the creation of the asset.
135
- */
136
- originalFileUrl?: string;
137
- /**
138
- * The output index of the asset within a job This index is an positive integer
139
- * that starts at 0 It is used to differentiate between multiple outputs of the
140
- * same job If the job has only one output, this index is 0
141
- */
142
- outputIndex?: number;
143
- /**
144
- * The asset's preview.
145
- *
146
- * Contains the assetId and the url of the preview.
147
- */
148
- preview?: Asset.Preview;
149
- /**
150
- * The asset's thumbnail.
151
- *
152
- * Contains the assetId and the url of the thumbnail.
153
- */
154
- thumbnail?: Asset.Thumbnail;
155
- }
156
- namespace Asset {
157
- /**
158
- * Metadata of the asset with some additional information
159
- */
160
- interface Metadata {
161
- kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
162
- /**
163
- * The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
164
- * from a text to image model
165
- */
166
- type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-controlnet' | 'inference-controlnet-img2img' | 'inference-controlnet-inpaint' | 'inference-controlnet-inpaint-ip-adapter' | 'inference-controlnet-ip-adapter' | 'inference-controlnet-reference' | 'inference-controlnet-texture' | 'inference-img2img' | 'inference-img2img-ip-adapter' | 'inference-img2img-texture' | 'inference-inpaint' | 'inference-inpaint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt2img' | 'inference-txt2img-ip-adapter' | 'inference-txt2img-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture-albedo' | 'texture-ao' | 'texture-edge' | 'texture-height' | 'texture-metallic' | 'texture-normal' | 'texture-smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
167
- /**
168
- * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
169
- */
170
- angular?: number;
171
- /**
172
- * The optional aspect ratio given for the generation, only applicable for some
173
- * models
174
- */
175
- aspectRatio?: string;
176
- /**
177
- * Int to set between 0 and 255 for the opacity of the background in the result
178
- * images.
179
- */
180
- backgroundOpacity?: number;
181
- /**
182
- * The baseModelId that maybe changed at inference time
183
- */
184
- baseModelId?: string;
185
- /**
186
- * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
187
- */
188
- bbox?: Array<number>;
189
- /**
190
- * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
191
- */
192
- betterQuality?: boolean;
193
- /**
194
- * The control image already processed by canny detector. Must reference an
195
- * existing AssetId.
196
- */
197
- cannyStructureImage?: string;
198
- /**
199
- * Activate clustering.
200
- */
201
- clustering?: boolean;
202
- /**
203
- * Ensure upscaled tile have the same color histogram as original tile.
204
- */
205
- colorCorrection?: boolean;
206
- colorMode?: string;
207
- colorPrecision?: number;
208
- /**
209
- * Flux Kontext LoRA to style the image. For Flux Kontext Prompt Editing.
210
- */
211
- concepts?: Array<Metadata.Concept>;
212
- contours?: Array<Array<Array<Array<number>>>>;
213
- /**
214
- * End step for control.
215
- */
216
- controlEnd?: number;
217
- /**
218
- * The date when the asset was copied to a project
219
- */
220
- copiedAt?: string;
221
- cornerThreshold?: number;
222
- /**
223
- * Allow the generation of "hallucinations" during the upscale process, which adds
224
- * additional details and deviates from the original image. Default: optimized for
225
- * your preset and style.
226
- */
227
- creativity?: number;
228
- /**
229
- * Amount of decay in creativity over the upscale process. The lowest the value,
230
- * the less the creativity will be preserved over the upscale process.
231
- */
232
- creativityDecay?: number;
233
- /**
234
- * If true, use the default parameters
235
- */
236
- defaultParameters?: boolean;
237
- /**
238
- * The depth fidelity if a depth image provided
239
- */
240
- depthFidelity?: number;
241
- /**
242
- * The control image processed by depth estimator. Must reference an existing
243
- * AssetId.
244
- */
245
- depthImage?: string;
246
- /**
247
- * Amount of details to remove or add
248
- */
249
- detailsLevel?: number;
250
- /**
251
- * The number of pixels to dilate the result masks.
252
- */
253
- dilate?: number;
254
- /**
255
- * Contrast factor for Grayscale detector
256
- */
257
- factor?: number;
258
- filterSpeckle?: number;
259
- /**
260
- * Determine the scale at which the upscale process works.
261
- *
262
- * - With a small value, the upscale works at the largest scale, resulting in fewer
263
- * added details and more coherent images. Ideal for portraits, for example.
264
- * - With a large value, the upscale works at the smallest scale, resulting in more
265
- * added details and more hallucinations. Ideal for landscapes, for example.
266
- *
267
- * (info): A small value is slower and more expensive to run.
268
- */
269
- fractality?: number;
270
- /**
271
- * Apply extra control to the Skybox 360 geometry. The higher the value, the more
272
- * the 360 geometry will influence the generated skybox image.
273
- *
274
- * Use with caution. Default is adapted to the other parameters.
275
- */
276
- geometryEnforcement?: number;
277
- /**
278
- * The guidance used to generate this asset
279
- */
280
- guidance?: number;
281
- halfMode?: boolean;
282
- hdr?: number;
283
- height?: number;
284
- /**
285
- * High threshold for Canny detector
286
- */
287
- highThreshold?: number;
288
- /**
289
- * (deprecated) Horizontal expansion ratio.
290
- */
291
- horizontalExpansionRatio?: number;
292
- /**
293
- * The input image to process. Must reference an existing AssetId or be a data URL.
294
- */
295
- image?: string;
296
- /**
297
- * Strengthen the similarity to the original image during the upscale. Default:
298
- * optimized for your preset and style.
299
- */
300
- imageFidelity?: number;
301
- /**
302
- * Preserve the seamless properties of skybox or texture images. Input has to be of
303
- * same type (seamless).
304
- */
305
- imageType?: 'seamfull' | 'skybox' | 'texture';
306
- /**
307
- * The id of the Inference describing how this image was generated
308
- */
309
- inferenceId?: string;
310
- /**
311
- * When set to `high`, allows to better preserve details from the input images in
312
- * the output. This is especially useful when using images that contain elements
313
- * like faces or logos that require accurate preservation in the generated image.
314
- *
315
- * You can provide multiple input images that will all be preserved with high
316
- * fidelity, but keep in mind that the first image will be preserved with richer
317
- * textures and finer details, so if you include elements such as faces, consider
318
- * placing them in the first image.
319
- *
320
- * Only available for the `gpt-image-1` model.
321
- */
322
- inputFidelity?: 'high' | 'low';
323
- /**
324
- * Location of the input image in the output.
325
- */
326
- inputLocation?: 'bottom' | 'left' | 'middle' | 'right' | 'top';
327
- /**
328
- * To invert the relief
329
- */
330
- invert?: boolean;
331
- /**
332
- * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
333
- */
334
- keypointThreshold?: number;
335
- layerDifference?: number;
336
- lengthThreshold?: number;
337
- /**
338
- * The ISO timestamp when the lock on the canvas will expire
339
- */
340
- lockExpiresAt?: string;
341
- /**
342
- * Low threshold for Canny detector
343
- */
344
- lowThreshold?: number;
345
- /**
346
- * The mask used for the asset generation or editing
347
- */
348
- mask?: string;
349
- maxIterations?: number;
350
- /**
351
- * Maximum threshold for Grayscale conversion
352
- */
353
- maxThreshold?: number;
354
- /**
355
- * Minimum threshold for Grayscale conversion
356
- */
357
- minThreshold?: number;
358
- /**
359
- * Modality to detect
360
- */
361
- modality?: 'canny' | 'depth' | 'grayscale' | 'lineart_anime' | 'mlsd' | 'normal' | 'pose' | 'scribble' | 'segmentation' | 'sketch';
362
- mode?: string;
363
- /**
364
- * The modelId used to generate this asset
365
- */
366
- modelId?: string;
367
- /**
368
- * The type of the generator used
369
- */
370
- modelType?: 'custom' | 'elevenlabs-voice' | 'flux.1' | 'flux.1-composition' | 'flux.1-kontext-dev' | 'flux.1-kontext-lora' | 'flux.1-krea-dev' | 'flux.1-krea-lora' | 'flux.1-lora' | 'flux.1-pro' | 'flux.1.1-pro-ultra' | 'flux.2-dev-edit-lora' | 'flux.2-dev-lora' | 'flux.2-klein-4b-edit-lora' | 'flux.2-klein-4b-lora' | 'flux.2-klein-9b-edit-lora' | 'flux.2-klein-9b-lora' | 'flux.2-klein-base-4b-edit-lora' | 'flux.2-klein-base-4b-lora' | 'flux.2-klein-base-9b-edit-lora' | 'flux.2-klein-base-9b-lora' | 'flux1.1-pro' | 'gpt-image-1' | 'qwen-image-2512-lora' | 'qwen-image-edit-2509-lora' | 'qwen-image-edit-2511-lora' | 'qwen-image-edit-lora' | 'qwen-image-lora' | 'sd-1_5' | 'sd-1_5-composition' | 'sd-1_5-lora' | 'sd-xl' | 'sd-xl-composition' | 'sd-xl-lora' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora';
371
- name?: string;
372
- nbMasks?: number;
373
- /**
374
- * The negative prompt used to generate this asset
375
- */
376
- negativePrompt?: string;
377
- /**
378
- * Controls the influence of the negative prompt. Default 0 means the negative
379
- * prompt has no effect. Higher values increase negative prompt influence. Must
380
- * be > 0 if negativePrompt is provided.
381
- */
382
- negativePromptStrength?: number;
383
- /**
384
- * The number of denoising steps for each image generation.
385
- */
386
- numInferenceSteps?: number;
387
- /**
388
- * The number of outputs to generate.
389
- */
390
- numOutputs?: number;
391
- originalAssetId?: string;
392
- outputIndex?: number;
393
- /**
394
- * Overlap percentage for the output image.
395
- */
396
- overlapPercentage?: number;
397
- /**
398
- * Override the embeddings of the model. Only your prompt and negativePrompt will
399
- * be used. Use with caution.
400
- */
401
- overrideEmbeddings?: boolean;
402
- parentId?: string;
403
- parentJobId?: string;
404
- pathPrecision?: number;
405
- /**
406
- * List of points (label, x, y) in the image where label = 0 for background and 1
407
- * for object.
408
- */
409
- points?: Array<Array<number>>;
410
- /**
411
- * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
412
- */
413
- polished?: number;
414
- preset?: string;
415
- progressPercent?: number;
416
- /**
417
- * The prompt that guided the asset generation or editing
418
- */
419
- prompt?: string;
420
- /**
421
- * Increase the fidelity to the prompt during upscale. Default: optimized for your
422
- * preset and style.
423
- */
424
- promptFidelity?: number;
425
- /**
426
- * How raised is the surface? 0 is flat like water, 1 is like a very rough rock
427
- */
428
- raised?: number;
429
- /**
430
- * The reference images used for the asset generation or editing
431
- */
432
- referenceImages?: Array<string>;
433
- /**
434
- * Additional refinement steps before scaling.
435
- *
436
- * If scalingFactor == 1, the refinement process will be applied (1 +
437
- * refinementSteps) times. If scalingFactor > 1, the refinement process will be
438
- * applied refinementSteps times.
439
- */
440
- refinementSteps?: number;
441
- /**
442
- * Remove background for Grayscale detector
443
- */
444
- removeBackground?: boolean;
445
- /**
446
- * Size proportion of the input image in the output.
447
- */
448
- resizeOption?: number;
449
- /**
450
- * Boolean to output the contours.
451
- */
452
- resultContours?: boolean;
453
- /**
454
- * Boolean to able output the cut out object.
455
- */
456
- resultImage?: boolean;
457
- /**
458
- * Boolean to able return the masks (binary image) in the response.
459
- */
460
- resultMask?: boolean;
461
- rootParentId?: string;
462
- /**
463
- * Save a flipbook of the texture. Deactivated when the input texture is larger
464
- * than 2048x2048px
465
- */
466
- saveFlipbook?: boolean;
467
- /**
468
- * Scaling factor (when `targetWidth` not specified)
469
- */
470
- scalingFactor?: number;
471
- /**
472
- * The scheduler used to generate this asset
473
- */
474
- scheduler?: string;
475
- /**
476
- * The seed used to generate this asset. <!> Can be a string or a number in some
477
- * cases <!>.
478
- */
479
- seed?: string;
480
- /**
481
- * Sharpen tiles.
482
- */
483
- sharpen?: boolean;
484
- /**
485
- * How shiny is the surface? 0 is like a matte surface, 1 is like a diamond
486
- */
487
- shiny?: number;
488
- size?: number;
489
- /**
490
- * Activate sketch detection instead of canny.
491
- */
492
- sketch?: boolean;
493
- sourceProjectId?: string;
494
- spliceThreshold?: number;
495
- /**
496
- * The strength
497
- *
498
- * Only available for the `flux-kontext` LoRA model.
499
- */
500
- strength?: number;
501
- /**
502
- * Strength for the input image structure preservation
503
- */
504
- structureFidelity?: number;
505
- /**
506
- * The control image for structure. A canny detector will be applied to this image.
507
- * Must reference an existing AssetId.
508
- */
509
- structureImage?: string;
510
- style?: '3d-cartoon' | '3d-rendered' | 'anime' | 'cartoon' | 'cinematic' | 'claymation' | 'cloud-skydome' | 'comic' | 'cyberpunk' | 'enchanted' | 'fantasy' | 'ink' | 'manga' | 'manga-color' | 'minimalist' | 'neon-tron' | 'oil-painting' | 'pastel' | 'photo' | 'photography' | 'psychedelic' | 'retro-fantasy' | 'scifi-concept-art' | 'space' | 'standard' | 'whimsical';
511
- /**
512
- * The higher the value the more it will look like the style image(s)
513
- */
514
- styleFidelity?: number;
515
- /**
516
- * List of style images. Most of the time, only one image is enough. It must be
517
- * existing AssetIds.
518
- */
519
- styleImages?: Array<string>;
520
- /**
521
- * Condition the influence of the style image(s). The higher the value, the more
522
- * the style images will influence the upscaled image.
523
- */
524
- styleImagesFidelity?: number;
525
- /**
526
- * The target height of the output image.
527
- */
528
- targetHeight?: number;
529
- /**
530
- * Target width for the upscaled image, take priority over scaling factor
531
- */
532
- targetWidth?: number;
533
- /**
534
- * A textual description / keywords describing the object of interest.
535
- */
536
- text?: string;
537
- /**
538
- * The asset to convert in texture maps. Must reference an existing AssetId.
539
- */
540
- texture?: string;
541
- /**
542
- * The thumbnail of the canvas
543
- */
544
- thumbnail?: Metadata.Thumbnail;
545
- /**
546
- * If set to true, during the upscaling process, the model will match tiles of the
547
- * source image with tiles of the style image(s). This will result in a more
548
- * coherent restyle. Works best with style images that have a similar composition.
549
- */
550
- tileStyle?: boolean;
551
- trainingImage?: boolean;
552
- /**
553
- * (deprecated) Vertical expansion ratio.
554
- */
555
- verticalExpansionRatio?: number;
556
- /**
557
- * The width of the rendered image.
558
- */
559
- width?: number;
560
- }
561
- namespace Metadata {
562
- interface Concept {
563
- /**
564
- * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
565
- */
566
- modelId: string;
567
- /**
568
- * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
569
- * is between 0 and 2.
570
- */
571
- scale: number;
572
- /**
573
- * The epoch of the model (example: "000001") Only available for Flux Lora Trained
574
- * models
575
- */
576
- modelEpoch?: string;
577
- }
578
- /**
579
- * The thumbnail of the canvas
580
- */
581
- interface Thumbnail {
582
- /**
583
- * The AssetId of the image used as a thumbnail for the canvas (example:
584
- * "asset_GTrL3mq4SXWyMxkOHRxlpw")
585
- */
586
- assetId: string;
587
- /**
588
- * The url of the image used as a thumbnail for the canvas
589
- */
590
- url: string;
591
- }
592
- }
593
- /**
594
- * The properties of the asset, content may depend on the kind of asset returned
595
- */
596
- interface Properties {
597
- size: number;
598
- /**
599
- * Number of animation frames if animations exist
600
- */
601
- animationFrameCount?: number;
602
- /**
603
- * Bitrate of the media in bits per second
604
- */
605
- bitrate?: number;
606
- /**
607
- * Number of bones if skeleton exists
608
- */
609
- boneCount?: number;
610
- /**
611
- * Number of channels of the audio
612
- */
613
- channels?: number;
614
- /**
615
- * Classification of the audio
616
- */
617
- classification?: 'effect' | 'interview' | 'music' | 'other' | 'sound' | 'speech' | 'text' | 'unknown';
618
- /**
619
- * Codec name of the media
620
- */
621
- codecName?: string;
622
- /**
623
- * Description of the audio
624
- */
625
- description?: string;
626
- /**
627
- * Bounding box dimensions [width, height, depth]
628
- */
629
- dimensions?: Array<number>;
630
- /**
631
- * Duration of the media in seconds
632
- */
633
- duration?: number;
634
- /**
635
- * Number of faces/triangles in the mesh
636
- */
637
- faceCount?: number;
638
- /**
639
- * Format of the mesh file (e.g. 'glb', etc.)
640
- */
641
- format?: string;
642
- /**
643
- * Frame rate of the video in frames per second
644
- */
645
- frameRate?: number;
646
- /**
647
- * Whether the mesh has animations
648
- */
649
- hasAnimations?: boolean;
650
- /**
651
- * Whether the mesh has normal vectors
652
- */
653
- hasNormals?: boolean;
654
- /**
655
- * Whether the mesh has bones/skeleton
656
- */
657
- hasSkeleton?: boolean;
658
- /**
659
- * Whether the mesh has UV coordinates
660
- */
661
- hasUVs?: boolean;
662
- height?: number;
663
- /**
664
- * Number of frames in the video
665
- */
666
- nbFrames?: number;
667
- /**
668
- * Sample rate of the media in Hz
669
- */
670
- sampleRate?: number;
671
- /**
672
- * Transcription of the audio
673
- */
674
- transcription?: Properties.Transcription;
675
- /**
676
- * Number of vertices in the mesh
677
- */
678
- vertexCount?: number;
679
- width?: number;
680
- }
681
- namespace Properties {
682
- /**
683
- * Transcription of the audio
684
- */
685
- interface Transcription {
686
- text: string;
687
- }
688
- }
689
- /**
690
- * The video asset's first frame.
691
- *
692
- * Contains the assetId and the url of the first frame.
693
- */
694
- interface FirstFrame {
695
- assetId: string;
696
- url: string;
697
- }
698
- /**
699
- * The video asset's last frame.
700
- *
701
- * Contains the assetId and the url of the last frame.
702
- */
703
- interface LastFrame {
704
- assetId: string;
705
- url: string;
706
- }
707
- /**
708
- * The asset's preview.
709
- *
710
- * Contains the assetId and the url of the preview.
711
- */
712
- interface Preview {
713
- assetId: string;
714
- url: string;
715
- }
716
- /**
717
- * The asset's thumbnail.
718
- *
719
- * Contains the assetId and the url of the thumbnail.
720
- */
721
- interface Thumbnail {
722
- assetId: string;
723
- url: string;
724
- }
725
- }
726
- }
727
- export interface PublicListResponse {
728
- assets: Array<PublicListResponse.Asset>;
729
- /**
730
- * A token to query the next page of assets
731
- */
732
- nextPaginationToken?: string;
733
- }
734
- export declare namespace PublicListResponse {
735
- interface Asset {
736
- /**
737
- * The asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
738
- */
739
- id: string;
740
- /**
741
- * The author user ID (example: "dcf121faaa1a0a0bbbd9ca1b73d62aea")
742
- */
743
- authorId: string;
744
- /**
745
- * A list of CollectionId this asset belongs to
746
- */
747
- collectionIds: Array<string>;
748
- /**
749
- * The asset creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
750
- */
751
- createdAt: string;
752
- /**
753
- * List of edit capabilities
754
- */
755
- editCapabilities: Array<'DETECTION' | 'GENERATIVE_FILL' | 'PIXELATE' | 'PROMPT_EDITING' | 'REFINE' | 'REFRAME' | 'REMOVE_BACKGROUND' | 'SEGMENTATION' | 'UPSCALE' | 'UPSCALE_360' | 'VECTORIZATION'>;
756
- /**
757
- * The kind of asset
758
- */
759
- kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
760
- /**
761
- * Metadata of the asset with some additional information
762
- */
763
- metadata: Asset.Metadata;
764
- /**
765
- * The mime type of the asset (example: "image/png")
766
- */
767
- mimeType: string;
768
- /**
769
- * The owner (project) ID (example: "proj_23tlk332lkht3kl2" or
770
- * "team_dlkhgs23tlk3hlkth32lkht3kl2" for old teams)
771
- */
772
- ownerId: string;
773
- /**
774
- * The privacy of the asset
775
- */
776
- privacy: 'private' | 'public' | 'unlisted';
777
- /**
778
- * The properties of the asset, content may depend on the kind of asset returned
779
- */
780
- properties: Asset.Properties;
781
- /**
782
- * source of the asset
783
- */
784
- source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-control-net' | 'inference-control-net-img' | 'inference-control-net-inpainting' | 'inference-control-net-inpainting-ip-adapter' | 'inference-control-net-ip-adapter' | 'inference-control-net-reference' | 'inference-control-net-texture' | 'inference-img' | 'inference-img-ip-adapter' | 'inference-img-texture' | 'inference-in-paint' | 'inference-in-paint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt' | 'inference-txt-ip-adapter' | 'inference-txt-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture:albedo' | 'texture:ao' | 'texture:edge' | 'texture:height' | 'texture:metallic' | 'texture:normal' | 'texture:smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
785
- /**
786
- * The actual status
787
- */
788
- status: 'error' | 'pending' | 'success';
789
- /**
790
- * The associated tags (example: ["sci-fi", "landscape"])
791
- */
792
- tags: Array<string>;
793
- /**
794
- * The asset last update date as an ISO string (example:
795
- * "2023-02-03T11:19:41.579Z")
796
- */
797
- updatedAt: string;
798
- /**
799
- * Signed URL to get the asset content
800
- */
801
- url: string;
802
- /**
803
- * Automatic captioning of the asset
804
- */
805
- automaticCaptioning?: string;
806
- /**
807
- * The description, it will contain in priority:
808
- *
809
- * - the manual description
810
- * - the advanced captioning when the asset is used in training flow
811
- * - the automatic captioning
812
- */
813
- description?: string;
814
- /**
815
- * The embedding of the asset when requested.
816
- *
817
- * Only available when an asset can be embedded (ie: not Detection maps)
818
- */
819
- embedding?: Array<number>;
820
- /**
821
- * The video asset's first frame.
822
- *
823
- * Contains the assetId and the url of the first frame.
824
- */
825
- firstFrame?: Asset.FirstFrame;
826
- /**
827
- * Whether the asset is hidden.
828
- */
829
- isHidden?: boolean;
830
- /**
831
- * The video asset's last frame.
832
- *
833
- * Contains the assetId and the url of the last frame.
834
- */
835
- lastFrame?: Asset.LastFrame;
836
- /**
837
- * The NSFW labels
838
- */
839
- nsfw?: Array<string>;
840
- /**
841
- * The original file url.
842
- *
843
- * Contains the url of the original file. without any conversion. Only available
844
- * for some specific video, audio and threeD assets. Is only specified if the given
845
- * asset data has been replaced with a new file during the creation of the asset.
846
- */
847
- originalFileUrl?: string;
848
- /**
849
- * The output index of the asset within a job This index is an positive integer
850
- * that starts at 0 It is used to differentiate between multiple outputs of the
851
- * same job If the job has only one output, this index is 0
852
- */
853
- outputIndex?: number;
854
- /**
855
- * The asset's preview.
856
- *
857
- * Contains the assetId and the url of the preview.
858
- */
859
- preview?: Asset.Preview;
860
- /**
861
- * The asset's thumbnail.
862
- *
863
- * Contains the assetId and the url of the thumbnail.
864
- */
865
- thumbnail?: Asset.Thumbnail;
866
- }
867
- namespace Asset {
868
- /**
869
- * Metadata of the asset with some additional information
870
- */
871
- interface Metadata {
872
- kind: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
873
- /**
874
- * The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
875
- * from a text to image model
876
- */
877
- type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2video' | 'inference-controlnet' | 'inference-controlnet-img2img' | 'inference-controlnet-inpaint' | 'inference-controlnet-inpaint-ip-adapter' | 'inference-controlnet-ip-adapter' | 'inference-controlnet-reference' | 'inference-controlnet-texture' | 'inference-img2img' | 'inference-img2img-ip-adapter' | 'inference-img2img-texture' | 'inference-inpaint' | 'inference-inpaint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-txt2img' | 'inference-txt2img-ip-adapter' | 'inference-txt2img-texture' | 'patch' | 'pixelization' | 'reframe' | 'restyle' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'texture' | 'texture-albedo' | 'texture-ao' | 'texture-edge' | 'texture-height' | 'texture-metallic' | 'texture-normal' | 'texture-smoothness' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
878
- /**
879
- * How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
880
- */
881
- angular?: number;
882
- /**
883
- * The optional aspect ratio given for the generation, only applicable for some
884
- * models
885
- */
886
- aspectRatio?: string;
887
- /**
888
- * Int to set between 0 and 255 for the opacity of the background in the result
889
- * images.
890
- */
891
- backgroundOpacity?: number;
892
- /**
893
- * The baseModelId that maybe changed at inference time
894
- */
895
- baseModelId?: string;
896
- /**
897
- * A bounding box around the object of interest, in the format [x1, y1, x2, y2].
898
- */
899
- bbox?: Array<number>;
900
- /**
901
- * Remove small dark spots (i.e. “pepper”) and connect small bright cracks.
902
- */
903
- betterQuality?: boolean;
904
- /**
905
- * The control image already processed by canny detector. Must reference an
906
- * existing AssetId.
907
- */
908
- cannyStructureImage?: string;
909
- /**
910
- * Activate clustering.
911
- */
912
- clustering?: boolean;
913
- /**
914
- * Ensure upscaled tile have the same color histogram as original tile.
915
- */
916
- colorCorrection?: boolean;
917
- colorMode?: string;
918
- colorPrecision?: number;
919
- /**
920
- * Flux Kontext LoRA to style the image. For Flux Kontext Prompt Editing.
921
- */
922
- concepts?: Array<Metadata.Concept>;
923
- contours?: Array<Array<Array<Array<number>>>>;
924
- /**
925
- * End step for control.
926
- */
927
- controlEnd?: number;
928
- /**
929
- * The date when the asset was copied to a project
930
- */
931
- copiedAt?: string;
932
- cornerThreshold?: number;
933
- /**
934
- * Allow the generation of "hallucinations" during the upscale process, which adds
935
- * additional details and deviates from the original image. Default: optimized for
936
- * your preset and style.
937
- */
938
- creativity?: number;
939
- /**
940
- * Amount of decay in creativity over the upscale process. The lowest the value,
941
- * the less the creativity will be preserved over the upscale process.
942
- */
943
- creativityDecay?: number;
944
- /**
945
- * If true, use the default parameters
946
- */
947
- defaultParameters?: boolean;
948
- /**
949
- * The depth fidelity if a depth image provided
950
- */
951
- depthFidelity?: number;
952
- /**
953
- * The control image processed by depth estimator. Must reference an existing
954
- * AssetId.
955
- */
956
- depthImage?: string;
957
- /**
958
- * Amount of details to remove or add
959
- */
960
- detailsLevel?: number;
961
- /**
962
- * The number of pixels to dilate the result masks.
963
- */
964
- dilate?: number;
965
- /**
966
- * Contrast factor for Grayscale detector
967
- */
968
- factor?: number;
969
- filterSpeckle?: number;
970
- /**
971
- * Determine the scale at which the upscale process works.
972
- *
973
- * - With a small value, the upscale works at the largest scale, resulting in fewer
974
- * added details and more coherent images. Ideal for portraits, for example.
975
- * - With a large value, the upscale works at the smallest scale, resulting in more
976
- * added details and more hallucinations. Ideal for landscapes, for example.
977
- *
978
- * (info): A small value is slower and more expensive to run.
979
- */
980
- fractality?: number;
981
- /**
982
- * Apply extra control to the Skybox 360 geometry. The higher the value, the more
983
- * the 360 geometry will influence the generated skybox image.
984
- *
985
- * Use with caution. Default is adapted to the other parameters.
986
- */
987
- geometryEnforcement?: number;
988
- /**
989
- * The guidance used to generate this asset
990
- */
991
- guidance?: number;
992
- halfMode?: boolean;
993
- hdr?: number;
994
- height?: number;
995
- /**
996
- * High threshold for Canny detector
997
- */
998
- highThreshold?: number;
999
- /**
1000
- * (deprecated) Horizontal expansion ratio.
1001
- */
1002
- horizontalExpansionRatio?: number;
1003
- /**
1004
- * The input image to process. Must reference an existing AssetId or be a data URL.
1005
- */
1006
- image?: string;
1007
- /**
1008
- * Strengthen the similarity to the original image during the upscale. Default:
1009
- * optimized for your preset and style.
1010
- */
1011
- imageFidelity?: number;
1012
- /**
1013
- * Preserve the seamless properties of skybox or texture images. Input has to be of
1014
- * same type (seamless).
1015
- */
1016
- imageType?: 'seamfull' | 'skybox' | 'texture';
1017
- /**
1018
- * The id of the Inference describing how this image was generated
1019
- */
1020
- inferenceId?: string;
1021
- /**
1022
- * When set to `high`, allows to better preserve details from the input images in
1023
- * the output. This is especially useful when using images that contain elements
1024
- * like faces or logos that require accurate preservation in the generated image.
1025
- *
1026
- * You can provide multiple input images that will all be preserved with high
1027
- * fidelity, but keep in mind that the first image will be preserved with richer
1028
- * textures and finer details, so if you include elements such as faces, consider
1029
- * placing them in the first image.
1030
- *
1031
- * Only available for the `gpt-image-1` model.
1032
- */
1033
- inputFidelity?: 'high' | 'low';
1034
- /**
1035
- * Location of the input image in the output.
1036
- */
1037
- inputLocation?: 'bottom' | 'left' | 'middle' | 'right' | 'top';
1038
- /**
1039
- * To invert the relief
1040
- */
1041
- invert?: boolean;
1042
- /**
1043
- * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
1044
- */
1045
- keypointThreshold?: number;
1046
- layerDifference?: number;
1047
- lengthThreshold?: number;
1048
- /**
1049
- * The ISO timestamp when the lock on the canvas will expire
1050
- */
1051
- lockExpiresAt?: string;
1052
- /**
1053
- * Low threshold for Canny detector
1054
- */
1055
- lowThreshold?: number;
1056
- /**
1057
- * The mask used for the asset generation or editing
1058
- */
1059
- mask?: string;
1060
- maxIterations?: number;
1061
- /**
1062
- * Maximum threshold for Grayscale conversion
1063
- */
1064
- maxThreshold?: number;
1065
- /**
1066
- * Minimum threshold for Grayscale conversion
1067
- */
1068
- minThreshold?: number;
1069
- /**
1070
- * Modality to detect
1071
- */
1072
- modality?: 'canny' | 'depth' | 'grayscale' | 'lineart_anime' | 'mlsd' | 'normal' | 'pose' | 'scribble' | 'segmentation' | 'sketch';
1073
- mode?: string;
1074
- /**
1075
- * The modelId used to generate this asset
1076
- */
1077
- modelId?: string;
1078
- /**
1079
- * The type of the generator used
1080
- */
1081
- modelType?: 'custom' | 'elevenlabs-voice' | 'flux.1' | 'flux.1-composition' | 'flux.1-kontext-dev' | 'flux.1-kontext-lora' | 'flux.1-krea-dev' | 'flux.1-krea-lora' | 'flux.1-lora' | 'flux.1-pro' | 'flux.1.1-pro-ultra' | 'flux.2-dev-edit-lora' | 'flux.2-dev-lora' | 'flux.2-klein-4b-edit-lora' | 'flux.2-klein-4b-lora' | 'flux.2-klein-9b-edit-lora' | 'flux.2-klein-9b-lora' | 'flux.2-klein-base-4b-edit-lora' | 'flux.2-klein-base-4b-lora' | 'flux.2-klein-base-9b-edit-lora' | 'flux.2-klein-base-9b-lora' | 'flux1.1-pro' | 'gpt-image-1' | 'qwen-image-2512-lora' | 'qwen-image-edit-2509-lora' | 'qwen-image-edit-2511-lora' | 'qwen-image-edit-lora' | 'qwen-image-lora' | 'sd-1_5' | 'sd-1_5-composition' | 'sd-1_5-lora' | 'sd-xl' | 'sd-xl-composition' | 'sd-xl-lora' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora';
1082
- name?: string;
1083
- nbMasks?: number;
1084
- /**
1085
- * The negative prompt used to generate this asset
1086
- */
1087
- negativePrompt?: string;
1088
- /**
1089
- * Controls the influence of the negative prompt. Default 0 means the negative
1090
- * prompt has no effect. Higher values increase negative prompt influence. Must
1091
- * be > 0 if negativePrompt is provided.
1092
- */
1093
- negativePromptStrength?: number;
1094
- /**
1095
- * The number of denoising steps for each image generation.
1096
- */
1097
- numInferenceSteps?: number;
1098
- /**
1099
- * The number of outputs to generate.
1100
- */
1101
- numOutputs?: number;
1102
- originalAssetId?: string;
1103
- outputIndex?: number;
1104
- /**
1105
- * Overlap percentage for the output image.
1106
- */
1107
- overlapPercentage?: number;
1108
- /**
1109
- * Override the embeddings of the model. Only your prompt and negativePrompt will
1110
- * be used. Use with caution.
1111
- */
1112
- overrideEmbeddings?: boolean;
1113
- parentId?: string;
1114
- parentJobId?: string;
1115
- pathPrecision?: number;
1116
- /**
1117
- * List of points (label, x, y) in the image where label = 0 for background and 1
1118
- * for object.
1119
- */
1120
- points?: Array<Array<number>>;
1121
- /**
1122
- * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
1123
- */
1124
- polished?: number;
1125
- preset?: string;
1126
- progressPercent?: number;
1127
- /**
1128
- * The prompt that guided the asset generation or editing
1129
- */
1130
- prompt?: string;
1131
- /**
1132
- * Increase the fidelity to the prompt during upscale. Default: optimized for your
1133
- * preset and style.
1134
- */
1135
- promptFidelity?: number;
1136
- /**
1137
- * How raised is the surface? 0 is flat like water, 1 is like a very rough rock
1138
- */
1139
- raised?: number;
1140
- /**
1141
- * The reference images used for the asset generation or editing
1142
- */
1143
- referenceImages?: Array<string>;
1144
- /**
1145
- * Additional refinement steps before scaling.
1146
- *
1147
- * If scalingFactor == 1, the refinement process will be applied (1 +
1148
- * refinementSteps) times. If scalingFactor > 1, the refinement process will be
1149
- * applied refinementSteps times.
1150
- */
1151
- refinementSteps?: number;
1152
- /**
1153
- * Remove background for Grayscale detector
1154
- */
1155
- removeBackground?: boolean;
1156
- /**
1157
- * Size proportion of the input image in the output.
1158
- */
1159
- resizeOption?: number;
1160
- /**
1161
- * Boolean to output the contours.
1162
- */
1163
- resultContours?: boolean;
1164
- /**
1165
- * Boolean to able output the cut out object.
1166
- */
1167
- resultImage?: boolean;
1168
- /**
1169
- * Boolean to able return the masks (binary image) in the response.
1170
- */
1171
- resultMask?: boolean;
1172
- rootParentId?: string;
1173
- /**
1174
- * Save a flipbook of the texture. Deactivated when the input texture is larger
1175
- * than 2048x2048px
1176
- */
1177
- saveFlipbook?: boolean;
1178
- /**
1179
- * Scaling factor (when `targetWidth` not specified)
1180
- */
1181
- scalingFactor?: number;
1182
- /**
1183
- * The scheduler used to generate this asset
1184
- */
1185
- scheduler?: string;
1186
- /**
1187
- * The seed used to generate this asset. <!> Can be a string or a number in some
1188
- * cases <!>.
1189
- */
1190
- seed?: string;
1191
- /**
1192
- * Sharpen tiles.
1193
- */
1194
- sharpen?: boolean;
1195
- /**
1196
- * How shiny is the surface? 0 is like a matte surface, 1 is like a diamond
1197
- */
1198
- shiny?: number;
1199
- size?: number;
1200
- /**
1201
- * Activate sketch detection instead of canny.
1202
- */
1203
- sketch?: boolean;
1204
- sourceProjectId?: string;
1205
- spliceThreshold?: number;
1206
- /**
1207
- * The strength
1208
- *
1209
- * Only available for the `flux-kontext` LoRA model.
1210
- */
1211
- strength?: number;
1212
- /**
1213
- * Strength for the input image structure preservation
1214
- */
1215
- structureFidelity?: number;
1216
- /**
1217
- * The control image for structure. A canny detector will be applied to this image.
1218
- * Must reference an existing AssetId.
1219
- */
1220
- structureImage?: string;
1221
- style?: '3d-cartoon' | '3d-rendered' | 'anime' | 'cartoon' | 'cinematic' | 'claymation' | 'cloud-skydome' | 'comic' | 'cyberpunk' | 'enchanted' | 'fantasy' | 'ink' | 'manga' | 'manga-color' | 'minimalist' | 'neon-tron' | 'oil-painting' | 'pastel' | 'photo' | 'photography' | 'psychedelic' | 'retro-fantasy' | 'scifi-concept-art' | 'space' | 'standard' | 'whimsical';
1222
- /**
1223
- * The higher the value the more it will look like the style image(s)
1224
- */
1225
- styleFidelity?: number;
1226
- /**
1227
- * List of style images. Most of the time, only one image is enough. It must be
1228
- * existing AssetIds.
1229
- */
1230
- styleImages?: Array<string>;
1231
- /**
1232
- * Condition the influence of the style image(s). The higher the value, the more
1233
- * the style images will influence the upscaled image.
1234
- */
1235
- styleImagesFidelity?: number;
1236
- /**
1237
- * The target height of the output image.
1238
- */
1239
- targetHeight?: number;
1240
- /**
1241
- * Target width for the upscaled image, take priority over scaling factor
1242
- */
1243
- targetWidth?: number;
1244
- /**
1245
- * A textual description / keywords describing the object of interest.
1246
- */
1247
- text?: string;
1248
- /**
1249
- * The asset to convert in texture maps. Must reference an existing AssetId.
1250
- */
1251
- texture?: string;
1252
- /**
1253
- * The thumbnail of the canvas
1254
- */
1255
- thumbnail?: Metadata.Thumbnail;
1256
- /**
1257
- * If set to true, during the upscaling process, the model will match tiles of the
1258
- * source image with tiles of the style image(s). This will result in a more
1259
- * coherent restyle. Works best with style images that have a similar composition.
1260
- */
1261
- tileStyle?: boolean;
1262
- trainingImage?: boolean;
1263
- /**
1264
- * (deprecated) Vertical expansion ratio.
1265
- */
1266
- verticalExpansionRatio?: number;
1267
- /**
1268
- * The width of the rendered image.
1269
- */
1270
- width?: number;
1271
- }
1272
- namespace Metadata {
1273
- interface Concept {
1274
- /**
1275
- * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
1276
- */
1277
- modelId: string;
1278
- /**
1279
- * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
1280
- * is between 0 and 2.
1281
- */
1282
- scale: number;
1283
- /**
1284
- * The epoch of the model (example: "000001") Only available for Flux Lora Trained
1285
- * models
1286
- */
1287
- modelEpoch?: string;
1288
- }
1289
- /**
1290
- * The thumbnail of the canvas
1291
- */
1292
- interface Thumbnail {
1293
- /**
1294
- * The AssetId of the image used as a thumbnail for the canvas (example:
1295
- * "asset_GTrL3mq4SXWyMxkOHRxlpw")
1296
- */
1297
- assetId: string;
1298
- /**
1299
- * The url of the image used as a thumbnail for the canvas
1300
- */
1301
- url: string;
1302
- }
1303
- }
1304
- /**
1305
- * The properties of the asset, content may depend on the kind of asset returned
1306
- */
1307
- interface Properties {
1308
- size: number;
1309
- /**
1310
- * Number of animation frames if animations exist
1311
- */
1312
- animationFrameCount?: number;
1313
- /**
1314
- * Bitrate of the media in bits per second
1315
- */
1316
- bitrate?: number;
1317
- /**
1318
- * Number of bones if skeleton exists
1319
- */
1320
- boneCount?: number;
1321
- /**
1322
- * Number of channels of the audio
1323
- */
1324
- channels?: number;
1325
- /**
1326
- * Classification of the audio
1327
- */
1328
- classification?: 'effect' | 'interview' | 'music' | 'other' | 'sound' | 'speech' | 'text' | 'unknown';
1329
- /**
1330
- * Codec name of the media
1331
- */
1332
- codecName?: string;
1333
- /**
1334
- * Description of the audio
1335
- */
1336
- description?: string;
1337
- /**
1338
- * Bounding box dimensions [width, height, depth]
1339
- */
1340
- dimensions?: Array<number>;
1341
- /**
1342
- * Duration of the media in seconds
1343
- */
1344
- duration?: number;
1345
- /**
1346
- * Number of faces/triangles in the mesh
1347
- */
1348
- faceCount?: number;
1349
- /**
1350
- * Format of the mesh file (e.g. 'glb', etc.)
1351
- */
1352
- format?: string;
1353
- /**
1354
- * Frame rate of the video in frames per second
1355
- */
1356
- frameRate?: number;
1357
- /**
1358
- * Whether the mesh has animations
1359
- */
1360
- hasAnimations?: boolean;
1361
- /**
1362
- * Whether the mesh has normal vectors
1363
- */
1364
- hasNormals?: boolean;
1365
- /**
1366
- * Whether the mesh has bones/skeleton
1367
- */
1368
- hasSkeleton?: boolean;
1369
- /**
1370
- * Whether the mesh has UV coordinates
1371
- */
1372
- hasUVs?: boolean;
1373
- height?: number;
1374
- /**
1375
- * Number of frames in the video
1376
- */
1377
- nbFrames?: number;
1378
- /**
1379
- * Sample rate of the media in Hz
1380
- */
1381
- sampleRate?: number;
1382
- /**
1383
- * Transcription of the audio
1384
- */
1385
- transcription?: Properties.Transcription;
1386
- /**
1387
- * Number of vertices in the mesh
1388
- */
1389
- vertexCount?: number;
1390
- width?: number;
1391
- }
1392
- namespace Properties {
1393
- /**
1394
- * Transcription of the audio
1395
- */
1396
- interface Transcription {
1397
- text: string;
1398
- }
1399
- }
1400
- /**
1401
- * The video asset's first frame.
1402
- *
1403
- * Contains the assetId and the url of the first frame.
1404
- */
1405
- interface FirstFrame {
1406
- assetId: string;
1407
- url: string;
1408
- }
1409
- /**
1410
- * The video asset's last frame.
1411
- *
1412
- * Contains the assetId and the url of the last frame.
1413
- */
1414
- interface LastFrame {
1415
- assetId: string;
1416
- url: string;
1417
- }
1418
- /**
1419
- * The asset's preview.
1420
- *
1421
- * Contains the assetId and the url of the preview.
1422
- */
1423
- interface Preview {
1424
- assetId: string;
1425
- url: string;
1426
- }
1427
- /**
1428
- * The asset's thumbnail.
1429
- *
1430
- * Contains the assetId and the url of the thumbnail.
1431
- */
1432
- interface Thumbnail {
1433
- assetId: string;
1434
- url: string;
1435
- }
1436
- }
1437
- }
1438
- export interface PublicListParams {
1439
- /**
1440
- * Filter results to only return assets created after the specified ISO string date
1441
- * (exclusive). Requires the sortBy parameter to be "createdAt"
1442
- */
1443
- createdAfter?: string;
1444
- /**
1445
- * Filter results to only return assets created before the specified ISO string
1446
- * date (exclusive). Requires the sortBy parameter to be "createdAt"
1447
- */
1448
- createdBefore?: string;
1449
- /**
1450
- * List assets generated from all inferences coming from a specific model (this is
1451
- * not the training images)
1452
- */
1453
- modelId?: string;
1454
- /**
1455
- * If set to true, returns the original asset without transformation
1456
- */
1457
- originalAssets?: boolean;
1458
- /**
1459
- * The number of items to return in the response. The default value is 50, maximum
1460
- * value is 100, minimum value is 1
1461
- */
1462
- pageSize?: number;
1463
- /**
1464
- * A token you received in a previous request to query the next page of items
1465
- */
1466
- paginationToken?: string;
1467
- /**
1468
- * Sort results by the createdAt or updatedAt
1469
- */
1470
- sortBy?: string;
1471
- /**
1472
- * Sort results in ascending (asc) or descending (desc) order
1473
- */
1474
- sortDirection?: string;
1475
- /**
1476
- * List of tags, comma separated. Only for public assets on all teams.
1477
- */
1478
- tags?: string;
1479
- /**
1480
- * List all the assets of a specific type. The parameter "type" and "types" cannot
1481
- * be used together. Can be any of the following values: inference-txt2img,
1482
- * inference-txt2img-ip-adapter, inference-txt2img-texture, inference-img2img,
1483
- * inference-img2img-ip-adapter, inference-img2img-texture, inference-inpaint,
1484
- * inference-inpaint-ip-adapter, inference-reference, inference-reference-texture,
1485
- * inference-controlnet, inference-controlnet-ip-adapter,
1486
- * inference-controlnet-img2img, inference-controlnet-reference,
1487
- * inference-controlnet-inpaint, inference-controlnet-inpaint-ip-adapter,
1488
- * inference-controlnet-texture, background-removal, canvas, canvas-export,
1489
- * canvas-drawing, detection, patch, pixelization, upscale, upscale-texture,
1490
- * upscale-skybox, vectorization, segment, segmentation-image, segmentation-mask,
1491
- * skybox-base-360, skybox-hdri, skybox-3d, restyle, reframe, generative-fill,
1492
- * texture, texture-height, texture-normal, texture-smoothness, texture-metallic,
1493
- * texture-edge, texture-ao, texture-albedo, image-prompt-editing, unknown, img23d,
1494
- * txt23d, video23d, 3d23d, 3d23d-texture, 3d-texture, 3d-texture-mtl,
1495
- * 3d-texture-albedo, 3d-texture-normal, 3d-texture-roughness, 3d-texture-metallic,
1496
- * img2video, txt2audio, audio2audio, audio2video, video2audio, voice-clone,
1497
- * video2video, video2img, txt2img, img2img, txt2video, uploaded, uploaded-video,
1498
- * uploaded-audio, uploaded-3d, uploaded-avatar, upscale-video, assets with a type
1499
- * starting with "inference-" will be returned
1500
- */
1501
- type?: 'inference-txt2img' | 'inference-txt2img-ip-adapter' | 'inference-txt2img-texture' | 'inference-img2img' | 'inference-img2img-ip-adapter' | 'inference-img2img-texture' | 'inference-inpaint' | 'inference-inpaint-ip-adapter' | 'inference-reference' | 'inference-reference-texture' | 'inference-controlnet' | 'inference-controlnet-ip-adapter' | 'inference-controlnet-img2img' | 'inference-controlnet-reference' | 'inference-controlnet-inpaint' | 'inference-controlnet-inpaint-ip-adapter' | 'inference-controlnet-texture' | 'background-removal' | 'canvas' | 'canvas-export' | 'canvas-drawing' | 'detection' | 'patch' | 'pixelization' | 'upscale' | 'upscale-texture' | 'upscale-skybox' | 'vectorization' | 'segment' | 'segmentation-image' | 'segmentation-mask' | 'skybox-base-360' | 'skybox-hdri' | 'skybox-3d' | 'restyle' | 'reframe' | 'generative-fill' | 'texture' | 'texture-height' | 'texture-normal' | 'texture-smoothness' | 'texture-metallic' | 'texture-edge' | 'texture-ao' | 'texture-albedo' | 'image-prompt-editing' | 'unknown' | 'img23d' | 'txt23d' | 'video23d' | '3d23d' | '3d23d-texture' | '3d-texture' | '3d-texture-mtl' | '3d-texture-albedo' | '3d-texture-normal' | '3d-texture-roughness' | '3d-texture-metallic' | 'img2video' | 'txt2audio' | 'audio2audio' | 'audio2video' | 'video2audio' | 'voice-clone' | 'video2video' | 'video2img' | 'txt2img' | 'img2img' | 'txt2video' | 'uploaded' | 'uploaded-video' | 'uploaded-audio' | 'uploaded-3d' | 'uploaded-avatar' | 'upscale-video';
1502
- /**
1503
- * List of the asset types to request. The parameter "type" and "types" cannot be
1504
- * used together. Can be any of the following values: inference-txt2img,
1505
- * inference-txt2img-ip-adapter, inference-txt2img-texture, inference-img2img,
1506
- * inference-img2img-ip-adapter, inference-img2img-texture, inference-inpaint,
1507
- * inference-inpaint-ip-adapter, inference-reference, inference-reference-texture,
1508
- * inference-controlnet, inference-controlnet-ip-adapter,
1509
- * inference-controlnet-img2img, inference-controlnet-reference,
1510
- * inference-controlnet-inpaint, inference-controlnet-inpaint-ip-adapter,
1511
- * inference-controlnet-texture, background-removal, canvas, canvas-export,
1512
- * canvas-drawing, detection, patch, pixelization, upscale, upscale-texture,
1513
- * upscale-skybox, vectorization, segment, segmentation-image, segmentation-mask,
1514
- * skybox-base-360, skybox-hdri, skybox-3d, restyle, reframe, generative-fill,
1515
- * texture, texture-height, texture-normal, texture-smoothness, texture-metallic,
1516
- * texture-edge, texture-ao, texture-albedo, image-prompt-editing, unknown, img23d,
1517
- * txt23d, video23d, 3d23d, 3d23d-texture, 3d-texture, 3d-texture-mtl,
1518
- * 3d-texture-albedo, 3d-texture-normal, 3d-texture-roughness, 3d-texture-metallic,
1519
- * img2video, txt2audio, audio2audio, audio2video, video2audio, voice-clone,
1520
- * video2video, video2img, txt2img, img2img, txt2video, uploaded, uploaded-video,
1521
- * uploaded-audio, uploaded-3d, uploaded-avatar, upscale-video
1522
- */
1523
- types?: string;
1524
- /**
1525
- * Filter results to only return assets updated after the specified ISO string date
1526
- * (exclusive). Requires the sortBy parameter to be "updatedAt"
1527
- */
1528
- updatedAfter?: string;
1529
- /**
1530
- * Filter results to only return assets updated before the specified ISO string
1531
- * date (exclusive). Requires the sortBy parameter to be "updatedAt"
1532
- */
1533
- updatedBefore?: string;
1534
- }
1535
- export declare namespace Public {
1536
- export { type PublicRetrieveResponse as PublicRetrieveResponse, type PublicListResponse as PublicListResponse, type PublicListParams as PublicListParams, };
1537
- }
1538
- //# sourceMappingURL=public.d.mts.map