@scenario-labs/sdk 2.4.0 → 2.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.
- package/CHANGELOG.md +47 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/lib/workflow_converter.d.mts +4 -0
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +4 -0
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +64 -34
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +64 -34
- package/lib/workflow_converter.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +269 -31
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +269 -31
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/generate.d.mts +159 -51
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +159 -51
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +1 -5
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +1 -5
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/jobs.d.mts +30 -12
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +30 -12
- package/resources/jobs.d.ts.map +1 -1
- package/resources/models/description.d.mts +62 -4
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +62 -4
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/examples.d.mts +94 -64
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +94 -64
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/models.d.mts +239 -295
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +239 -295
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/train.d.mts +92 -110
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +92 -110
- package/resources/models/train.d.ts.map +1 -1
- package/resources/search.d.mts +2 -2
- package/resources/search.d.ts +2 -2
- package/resources/uploads.d.mts +2 -3
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +2 -3
- package/resources/uploads.d.ts.map +1 -1
- package/resources/usages.d.mts +44 -15
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +44 -15
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +63 -45
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +63 -45
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +4 -4
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +4 -4
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +1 -1
- package/src/lib/workflow_converter.ts +96 -35
- package/src/resources/assets/assets.ts +300 -62
- package/src/resources/generate.ts +159 -129
- package/src/resources/index.ts +1 -1
- package/src/resources/jobs.ts +27 -37
- package/src/resources/models/description.ts +70 -12
- package/src/resources/models/examples.ts +100 -88
- package/src/resources/models/models.ts +228 -385
- package/src/resources/models/train.ts +89 -139
- package/src/resources/search.ts +2 -2
- package/src/resources/uploads.ts +2 -3
- package/src/resources/usages.ts +47 -20
- package/src/resources/workflows.ts +48 -157
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -59,13 +59,9 @@ export class Generate extends APIResource {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Generate with any model (Image, Video, Audio, 3d).
|
|
62
|
+
* Generate with any model (Image, Video, Audio, 3d, Text).
|
|
63
63
|
*
|
|
64
64
|
* You can retrieve the model inputs from the `GET /models/{modelId}` endpoint.
|
|
65
|
-
*
|
|
66
|
-
* **Note**: This endpoint is not available yet for SD1.5, SDXL and Flux.1 based
|
|
67
|
-
* models. For these models, use the `POST /generate/{inferenceType}` endpoint. Ex:
|
|
68
|
-
* `POST /generate/txt2img`
|
|
69
65
|
*/
|
|
70
66
|
runModel(
|
|
71
67
|
modelID: string,
|
|
@@ -101,12 +97,12 @@ export interface GenerateCaptionResponse {
|
|
|
101
97
|
job: GenerateCaptionResponse.Job;
|
|
102
98
|
|
|
103
99
|
/**
|
|
104
|
-
* The
|
|
100
|
+
* The Compute Units cost for the request billed
|
|
105
101
|
*/
|
|
106
102
|
creativeUnitsCost?: number;
|
|
107
103
|
|
|
108
104
|
/**
|
|
109
|
-
* The
|
|
105
|
+
* The Compute Units discount for the request billed
|
|
110
106
|
*/
|
|
111
107
|
creativeUnitsDiscount?: number;
|
|
112
108
|
|
|
@@ -171,6 +167,7 @@ export namespace GenerateCaptionResponse {
|
|
|
171
167
|
| 'skybox-base-360'
|
|
172
168
|
| 'skybox-hdri'
|
|
173
169
|
| 'skybox-upscale-360'
|
|
170
|
+
| 'splat'
|
|
174
171
|
| 'texture'
|
|
175
172
|
| 'translate'
|
|
176
173
|
| 'upload'
|
|
@@ -578,12 +575,6 @@ export namespace GenerateCaptionResponse {
|
|
|
578
575
|
| 'qwen-image-edit-2511-lora'
|
|
579
576
|
| 'qwen-image-edit-lora'
|
|
580
577
|
| 'qwen-image-lora'
|
|
581
|
-
| 'sd-1_5'
|
|
582
|
-
| 'sd-1_5-composition'
|
|
583
|
-
| 'sd-1_5-lora'
|
|
584
|
-
| 'sd-xl'
|
|
585
|
-
| 'sd-xl-composition'
|
|
586
|
-
| 'sd-xl-lora'
|
|
587
578
|
| 'zimage-de-turbo-lora'
|
|
588
579
|
| 'zimage-lora'
|
|
589
580
|
| 'zimage-turbo-lora'
|
|
@@ -811,12 +802,6 @@ export namespace GenerateCaptionResponse {
|
|
|
811
802
|
| 'qwen-image-edit-2511-lora'
|
|
812
803
|
| 'qwen-image-edit-lora'
|
|
813
804
|
| 'qwen-image-lora'
|
|
814
|
-
| 'sd-1_5'
|
|
815
|
-
| 'sd-1_5-composition'
|
|
816
|
-
| 'sd-1_5-lora'
|
|
817
|
-
| 'sd-xl'
|
|
818
|
-
| 'sd-xl-composition'
|
|
819
|
-
| 'sd-xl-lora'
|
|
820
805
|
| 'zimage-de-turbo-lora'
|
|
821
806
|
| 'zimage-lora'
|
|
822
807
|
| 'zimage-turbo-lora'
|
|
@@ -1082,6 +1067,13 @@ export namespace GenerateCaptionResponse {
|
|
|
1082
1067
|
cuCost: number;
|
|
1083
1068
|
|
|
1084
1069
|
cuDiscount: number;
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
1073
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
1074
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
1075
|
+
*/
|
|
1076
|
+
disableRefund?: boolean;
|
|
1085
1077
|
}
|
|
1086
1078
|
}
|
|
1087
1079
|
|
|
@@ -1178,12 +1170,12 @@ export interface GenerateDescribeStyleResponse {
|
|
|
1178
1170
|
synthesis: string;
|
|
1179
1171
|
|
|
1180
1172
|
/**
|
|
1181
|
-
* The
|
|
1173
|
+
* The Compute Units cost for the request billed
|
|
1182
1174
|
*/
|
|
1183
1175
|
creativeUnitsCost?: number;
|
|
1184
1176
|
|
|
1185
1177
|
/**
|
|
1186
|
-
* The
|
|
1178
|
+
* The Compute Units discount for the request billed
|
|
1187
1179
|
*/
|
|
1188
1180
|
creativeUnitsDiscount?: number;
|
|
1189
1181
|
|
|
@@ -1240,6 +1232,7 @@ export namespace GenerateDescribeStyleResponse {
|
|
|
1240
1232
|
| 'skybox-base-360'
|
|
1241
1233
|
| 'skybox-hdri'
|
|
1242
1234
|
| 'skybox-upscale-360'
|
|
1235
|
+
| 'splat'
|
|
1243
1236
|
| 'texture'
|
|
1244
1237
|
| 'translate'
|
|
1245
1238
|
| 'upload'
|
|
@@ -1647,12 +1640,6 @@ export namespace GenerateDescribeStyleResponse {
|
|
|
1647
1640
|
| 'qwen-image-edit-2511-lora'
|
|
1648
1641
|
| 'qwen-image-edit-lora'
|
|
1649
1642
|
| 'qwen-image-lora'
|
|
1650
|
-
| 'sd-1_5'
|
|
1651
|
-
| 'sd-1_5-composition'
|
|
1652
|
-
| 'sd-1_5-lora'
|
|
1653
|
-
| 'sd-xl'
|
|
1654
|
-
| 'sd-xl-composition'
|
|
1655
|
-
| 'sd-xl-lora'
|
|
1656
1643
|
| 'zimage-de-turbo-lora'
|
|
1657
1644
|
| 'zimage-lora'
|
|
1658
1645
|
| 'zimage-turbo-lora'
|
|
@@ -1880,12 +1867,6 @@ export namespace GenerateDescribeStyleResponse {
|
|
|
1880
1867
|
| 'qwen-image-edit-2511-lora'
|
|
1881
1868
|
| 'qwen-image-edit-lora'
|
|
1882
1869
|
| 'qwen-image-lora'
|
|
1883
|
-
| 'sd-1_5'
|
|
1884
|
-
| 'sd-1_5-composition'
|
|
1885
|
-
| 'sd-1_5-lora'
|
|
1886
|
-
| 'sd-xl'
|
|
1887
|
-
| 'sd-xl-composition'
|
|
1888
|
-
| 'sd-xl-lora'
|
|
1889
1870
|
| 'zimage-de-turbo-lora'
|
|
1890
1871
|
| 'zimage-lora'
|
|
1891
1872
|
| 'zimage-turbo-lora'
|
|
@@ -2151,6 +2132,13 @@ export namespace GenerateDescribeStyleResponse {
|
|
|
2151
2132
|
cuCost: number;
|
|
2152
2133
|
|
|
2153
2134
|
cuDiscount: number;
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
2138
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
2139
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
2140
|
+
*/
|
|
2141
|
+
disableRefund?: boolean;
|
|
2154
2142
|
}
|
|
2155
2143
|
}
|
|
2156
2144
|
|
|
@@ -2239,12 +2227,12 @@ export interface GenerateDetectResponse {
|
|
|
2239
2227
|
asset?: GenerateDetectResponse.Asset;
|
|
2240
2228
|
|
|
2241
2229
|
/**
|
|
2242
|
-
* The
|
|
2230
|
+
* The Compute Units cost for the request billed
|
|
2243
2231
|
*/
|
|
2244
2232
|
creativeUnitsCost?: number;
|
|
2245
2233
|
|
|
2246
2234
|
/**
|
|
2247
|
-
* The
|
|
2235
|
+
* The Compute Units discount for the request billed
|
|
2248
2236
|
*/
|
|
2249
2237
|
creativeUnitsDiscount?: number;
|
|
2250
2238
|
|
|
@@ -2301,6 +2289,7 @@ export namespace GenerateDetectResponse {
|
|
|
2301
2289
|
| 'skybox-base-360'
|
|
2302
2290
|
| 'skybox-hdri'
|
|
2303
2291
|
| 'skybox-upscale-360'
|
|
2292
|
+
| 'splat'
|
|
2304
2293
|
| 'texture'
|
|
2305
2294
|
| 'translate'
|
|
2306
2295
|
| 'upload'
|
|
@@ -2708,12 +2697,6 @@ export namespace GenerateDetectResponse {
|
|
|
2708
2697
|
| 'qwen-image-edit-2511-lora'
|
|
2709
2698
|
| 'qwen-image-edit-lora'
|
|
2710
2699
|
| 'qwen-image-lora'
|
|
2711
|
-
| 'sd-1_5'
|
|
2712
|
-
| 'sd-1_5-composition'
|
|
2713
|
-
| 'sd-1_5-lora'
|
|
2714
|
-
| 'sd-xl'
|
|
2715
|
-
| 'sd-xl-composition'
|
|
2716
|
-
| 'sd-xl-lora'
|
|
2717
2700
|
| 'zimage-de-turbo-lora'
|
|
2718
2701
|
| 'zimage-lora'
|
|
2719
2702
|
| 'zimage-turbo-lora'
|
|
@@ -2941,12 +2924,6 @@ export namespace GenerateDetectResponse {
|
|
|
2941
2924
|
| 'qwen-image-edit-2511-lora'
|
|
2942
2925
|
| 'qwen-image-edit-lora'
|
|
2943
2926
|
| 'qwen-image-lora'
|
|
2944
|
-
| 'sd-1_5'
|
|
2945
|
-
| 'sd-1_5-composition'
|
|
2946
|
-
| 'sd-1_5-lora'
|
|
2947
|
-
| 'sd-xl'
|
|
2948
|
-
| 'sd-xl-composition'
|
|
2949
|
-
| 'sd-xl-lora'
|
|
2950
2927
|
| 'zimage-de-turbo-lora'
|
|
2951
2928
|
| 'zimage-lora'
|
|
2952
2929
|
| 'zimage-turbo-lora'
|
|
@@ -3212,6 +3189,13 @@ export namespace GenerateDetectResponse {
|
|
|
3212
3189
|
cuCost: number;
|
|
3213
3190
|
|
|
3214
3191
|
cuDiscount: number;
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
3195
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
3196
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
3197
|
+
*/
|
|
3198
|
+
disableRefund?: boolean;
|
|
3215
3199
|
}
|
|
3216
3200
|
}
|
|
3217
3201
|
|
|
@@ -3308,6 +3292,7 @@ export namespace GenerateDetectResponse {
|
|
|
3308
3292
|
| 'image-prompt-editing'
|
|
3309
3293
|
| 'img23d'
|
|
3310
3294
|
| 'img2img'
|
|
3295
|
+
| 'img2splat'
|
|
3311
3296
|
| 'img2txt'
|
|
3312
3297
|
| 'img2video'
|
|
3313
3298
|
| 'inference-control-net'
|
|
@@ -3497,6 +3482,7 @@ export namespace GenerateDetectResponse {
|
|
|
3497
3482
|
| 'image-prompt-editing'
|
|
3498
3483
|
| 'img23d'
|
|
3499
3484
|
| 'img2img'
|
|
3485
|
+
| 'img2splat'
|
|
3500
3486
|
| 'img2txt'
|
|
3501
3487
|
| 'img2video'
|
|
3502
3488
|
| 'inference-controlnet'
|
|
@@ -3841,12 +3827,6 @@ export namespace GenerateDetectResponse {
|
|
|
3841
3827
|
| 'qwen-image-edit-2511-lora'
|
|
3842
3828
|
| 'qwen-image-edit-lora'
|
|
3843
3829
|
| 'qwen-image-lora'
|
|
3844
|
-
| 'sd-1_5'
|
|
3845
|
-
| 'sd-1_5-composition'
|
|
3846
|
-
| 'sd-1_5-lora'
|
|
3847
|
-
| 'sd-xl'
|
|
3848
|
-
| 'sd-xl-composition'
|
|
3849
|
-
| 'sd-xl-lora'
|
|
3850
3830
|
| 'zimage-de-turbo-lora'
|
|
3851
3831
|
| 'zimage-lora'
|
|
3852
3832
|
| 'zimage-turbo-lora';
|
|
@@ -4183,6 +4163,18 @@ export namespace GenerateDetectResponse {
|
|
|
4183
4163
|
*/
|
|
4184
4164
|
boneCount?: number;
|
|
4185
4165
|
|
|
4166
|
+
/**
|
|
4167
|
+
* Recommended preview camera mode emitted by the generator (gsplat route); passed
|
|
4168
|
+
* through to mesh-rendering verbatim.
|
|
4169
|
+
*/
|
|
4170
|
+
cameraMode?: 'aerial' | 'interior' | 'turntable';
|
|
4171
|
+
|
|
4172
|
+
/**
|
|
4173
|
+
* Recommended preview camera path emitted by the generator (gsplat route); passed
|
|
4174
|
+
* through to mesh-rendering verbatim.
|
|
4175
|
+
*/
|
|
4176
|
+
cameraTrajectory?: Array<Properties.CameraTrajectory>;
|
|
4177
|
+
|
|
4186
4178
|
/**
|
|
4187
4179
|
* Number of channels of the audio
|
|
4188
4180
|
*/
|
|
@@ -4303,6 +4295,28 @@ export namespace GenerateDetectResponse {
|
|
|
4303
4295
|
}
|
|
4304
4296
|
|
|
4305
4297
|
export namespace Properties {
|
|
4298
|
+
/**
|
|
4299
|
+
* One explicit camera keyframe for the splat route. Several are interpolated over
|
|
4300
|
+
* the requested frames into an orbit/fly-through; a single keyframe renders a
|
|
4301
|
+
* static view. Overrides {@link SplatCameraMode} when provided.
|
|
4302
|
+
*/
|
|
4303
|
+
export interface CameraTrajectory {
|
|
4304
|
+
/**
|
|
4305
|
+
* Camera eye position in the splat's world frame.
|
|
4306
|
+
*/
|
|
4307
|
+
position: Array<unknown>;
|
|
4308
|
+
|
|
4309
|
+
/**
|
|
4310
|
+
* Look-at point in the splat's world frame.
|
|
4311
|
+
*/
|
|
4312
|
+
target: Array<unknown>;
|
|
4313
|
+
|
|
4314
|
+
/**
|
|
4315
|
+
* Vertical field of view in degrees (defaults to 50 in the renderer).
|
|
4316
|
+
*/
|
|
4317
|
+
fov?: number;
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4306
4320
|
/**
|
|
4307
4321
|
* Transcription of the audio
|
|
4308
4322
|
*/
|
|
@@ -4446,12 +4460,12 @@ export interface GenerateEmbedResponse {
|
|
|
4446
4460
|
job: GenerateEmbedResponse.Job;
|
|
4447
4461
|
|
|
4448
4462
|
/**
|
|
4449
|
-
* The
|
|
4463
|
+
* The Compute Units cost for the request billed
|
|
4450
4464
|
*/
|
|
4451
4465
|
creativeUnitsCost?: number;
|
|
4452
4466
|
|
|
4453
4467
|
/**
|
|
4454
|
-
* The
|
|
4468
|
+
* The Compute Units discount for the request billed
|
|
4455
4469
|
*/
|
|
4456
4470
|
creativeUnitsDiscount?: number;
|
|
4457
4471
|
|
|
@@ -4508,6 +4522,7 @@ export namespace GenerateEmbedResponse {
|
|
|
4508
4522
|
| 'skybox-base-360'
|
|
4509
4523
|
| 'skybox-hdri'
|
|
4510
4524
|
| 'skybox-upscale-360'
|
|
4525
|
+
| 'splat'
|
|
4511
4526
|
| 'texture'
|
|
4512
4527
|
| 'translate'
|
|
4513
4528
|
| 'upload'
|
|
@@ -4915,12 +4930,6 @@ export namespace GenerateEmbedResponse {
|
|
|
4915
4930
|
| 'qwen-image-edit-2511-lora'
|
|
4916
4931
|
| 'qwen-image-edit-lora'
|
|
4917
4932
|
| 'qwen-image-lora'
|
|
4918
|
-
| 'sd-1_5'
|
|
4919
|
-
| 'sd-1_5-composition'
|
|
4920
|
-
| 'sd-1_5-lora'
|
|
4921
|
-
| 'sd-xl'
|
|
4922
|
-
| 'sd-xl-composition'
|
|
4923
|
-
| 'sd-xl-lora'
|
|
4924
4933
|
| 'zimage-de-turbo-lora'
|
|
4925
4934
|
| 'zimage-lora'
|
|
4926
4935
|
| 'zimage-turbo-lora'
|
|
@@ -5148,12 +5157,6 @@ export namespace GenerateEmbedResponse {
|
|
|
5148
5157
|
| 'qwen-image-edit-2511-lora'
|
|
5149
5158
|
| 'qwen-image-edit-lora'
|
|
5150
5159
|
| 'qwen-image-lora'
|
|
5151
|
-
| 'sd-1_5'
|
|
5152
|
-
| 'sd-1_5-composition'
|
|
5153
|
-
| 'sd-1_5-lora'
|
|
5154
|
-
| 'sd-xl'
|
|
5155
|
-
| 'sd-xl-composition'
|
|
5156
|
-
| 'sd-xl-lora'
|
|
5157
5160
|
| 'zimage-de-turbo-lora'
|
|
5158
5161
|
| 'zimage-lora'
|
|
5159
5162
|
| 'zimage-turbo-lora'
|
|
@@ -5419,6 +5422,13 @@ export namespace GenerateEmbedResponse {
|
|
|
5419
5422
|
cuCost: number;
|
|
5420
5423
|
|
|
5421
5424
|
cuDiscount: number;
|
|
5425
|
+
|
|
5426
|
+
/**
|
|
5427
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
5428
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
5429
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
5430
|
+
*/
|
|
5431
|
+
disableRefund?: boolean;
|
|
5422
5432
|
}
|
|
5423
5433
|
}
|
|
5424
5434
|
|
|
@@ -5507,12 +5517,12 @@ export interface GeneratePatchResponse {
|
|
|
5507
5517
|
asset?: GeneratePatchResponse.Asset;
|
|
5508
5518
|
|
|
5509
5519
|
/**
|
|
5510
|
-
* The
|
|
5520
|
+
* The Compute Units cost for the request billed
|
|
5511
5521
|
*/
|
|
5512
5522
|
creativeUnitsCost?: number;
|
|
5513
5523
|
|
|
5514
5524
|
/**
|
|
5515
|
-
* The
|
|
5525
|
+
* The Compute Units discount for the request billed
|
|
5516
5526
|
*/
|
|
5517
5527
|
creativeUnitsDiscount?: number;
|
|
5518
5528
|
|
|
@@ -5569,6 +5579,7 @@ export namespace GeneratePatchResponse {
|
|
|
5569
5579
|
| 'skybox-base-360'
|
|
5570
5580
|
| 'skybox-hdri'
|
|
5571
5581
|
| 'skybox-upscale-360'
|
|
5582
|
+
| 'splat'
|
|
5572
5583
|
| 'texture'
|
|
5573
5584
|
| 'translate'
|
|
5574
5585
|
| 'upload'
|
|
@@ -5976,12 +5987,6 @@ export namespace GeneratePatchResponse {
|
|
|
5976
5987
|
| 'qwen-image-edit-2511-lora'
|
|
5977
5988
|
| 'qwen-image-edit-lora'
|
|
5978
5989
|
| 'qwen-image-lora'
|
|
5979
|
-
| 'sd-1_5'
|
|
5980
|
-
| 'sd-1_5-composition'
|
|
5981
|
-
| 'sd-1_5-lora'
|
|
5982
|
-
| 'sd-xl'
|
|
5983
|
-
| 'sd-xl-composition'
|
|
5984
|
-
| 'sd-xl-lora'
|
|
5985
5990
|
| 'zimage-de-turbo-lora'
|
|
5986
5991
|
| 'zimage-lora'
|
|
5987
5992
|
| 'zimage-turbo-lora'
|
|
@@ -6209,12 +6214,6 @@ export namespace GeneratePatchResponse {
|
|
|
6209
6214
|
| 'qwen-image-edit-2511-lora'
|
|
6210
6215
|
| 'qwen-image-edit-lora'
|
|
6211
6216
|
| 'qwen-image-lora'
|
|
6212
|
-
| 'sd-1_5'
|
|
6213
|
-
| 'sd-1_5-composition'
|
|
6214
|
-
| 'sd-1_5-lora'
|
|
6215
|
-
| 'sd-xl'
|
|
6216
|
-
| 'sd-xl-composition'
|
|
6217
|
-
| 'sd-xl-lora'
|
|
6218
6217
|
| 'zimage-de-turbo-lora'
|
|
6219
6218
|
| 'zimage-lora'
|
|
6220
6219
|
| 'zimage-turbo-lora'
|
|
@@ -6480,6 +6479,13 @@ export namespace GeneratePatchResponse {
|
|
|
6480
6479
|
cuCost: number;
|
|
6481
6480
|
|
|
6482
6481
|
cuDiscount: number;
|
|
6482
|
+
|
|
6483
|
+
/**
|
|
6484
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
6485
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
6486
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
6487
|
+
*/
|
|
6488
|
+
disableRefund?: boolean;
|
|
6483
6489
|
}
|
|
6484
6490
|
}
|
|
6485
6491
|
|
|
@@ -6576,6 +6582,7 @@ export namespace GeneratePatchResponse {
|
|
|
6576
6582
|
| 'image-prompt-editing'
|
|
6577
6583
|
| 'img23d'
|
|
6578
6584
|
| 'img2img'
|
|
6585
|
+
| 'img2splat'
|
|
6579
6586
|
| 'img2txt'
|
|
6580
6587
|
| 'img2video'
|
|
6581
6588
|
| 'inference-control-net'
|
|
@@ -6765,6 +6772,7 @@ export namespace GeneratePatchResponse {
|
|
|
6765
6772
|
| 'image-prompt-editing'
|
|
6766
6773
|
| 'img23d'
|
|
6767
6774
|
| 'img2img'
|
|
6775
|
+
| 'img2splat'
|
|
6768
6776
|
| 'img2txt'
|
|
6769
6777
|
| 'img2video'
|
|
6770
6778
|
| 'inference-controlnet'
|
|
@@ -7109,12 +7117,6 @@ export namespace GeneratePatchResponse {
|
|
|
7109
7117
|
| 'qwen-image-edit-2511-lora'
|
|
7110
7118
|
| 'qwen-image-edit-lora'
|
|
7111
7119
|
| 'qwen-image-lora'
|
|
7112
|
-
| 'sd-1_5'
|
|
7113
|
-
| 'sd-1_5-composition'
|
|
7114
|
-
| 'sd-1_5-lora'
|
|
7115
|
-
| 'sd-xl'
|
|
7116
|
-
| 'sd-xl-composition'
|
|
7117
|
-
| 'sd-xl-lora'
|
|
7118
7120
|
| 'zimage-de-turbo-lora'
|
|
7119
7121
|
| 'zimage-lora'
|
|
7120
7122
|
| 'zimage-turbo-lora';
|
|
@@ -7451,6 +7453,18 @@ export namespace GeneratePatchResponse {
|
|
|
7451
7453
|
*/
|
|
7452
7454
|
boneCount?: number;
|
|
7453
7455
|
|
|
7456
|
+
/**
|
|
7457
|
+
* Recommended preview camera mode emitted by the generator (gsplat route); passed
|
|
7458
|
+
* through to mesh-rendering verbatim.
|
|
7459
|
+
*/
|
|
7460
|
+
cameraMode?: 'aerial' | 'interior' | 'turntable';
|
|
7461
|
+
|
|
7462
|
+
/**
|
|
7463
|
+
* Recommended preview camera path emitted by the generator (gsplat route); passed
|
|
7464
|
+
* through to mesh-rendering verbatim.
|
|
7465
|
+
*/
|
|
7466
|
+
cameraTrajectory?: Array<Properties.CameraTrajectory>;
|
|
7467
|
+
|
|
7454
7468
|
/**
|
|
7455
7469
|
* Number of channels of the audio
|
|
7456
7470
|
*/
|
|
@@ -7571,6 +7585,28 @@ export namespace GeneratePatchResponse {
|
|
|
7571
7585
|
}
|
|
7572
7586
|
|
|
7573
7587
|
export namespace Properties {
|
|
7588
|
+
/**
|
|
7589
|
+
* One explicit camera keyframe for the splat route. Several are interpolated over
|
|
7590
|
+
* the requested frames into an orbit/fly-through; a single keyframe renders a
|
|
7591
|
+
* static view. Overrides {@link SplatCameraMode} when provided.
|
|
7592
|
+
*/
|
|
7593
|
+
export interface CameraTrajectory {
|
|
7594
|
+
/**
|
|
7595
|
+
* Camera eye position in the splat's world frame.
|
|
7596
|
+
*/
|
|
7597
|
+
position: Array<unknown>;
|
|
7598
|
+
|
|
7599
|
+
/**
|
|
7600
|
+
* Look-at point in the splat's world frame.
|
|
7601
|
+
*/
|
|
7602
|
+
target: Array<unknown>;
|
|
7603
|
+
|
|
7604
|
+
/**
|
|
7605
|
+
* Vertical field of view in degrees (defaults to 50 in the renderer).
|
|
7606
|
+
*/
|
|
7607
|
+
fov?: number;
|
|
7608
|
+
}
|
|
7609
|
+
|
|
7574
7610
|
/**
|
|
7575
7611
|
* Transcription of the audio
|
|
7576
7612
|
*/
|
|
@@ -7718,12 +7754,12 @@ export interface GeneratePromptResponse {
|
|
|
7718
7754
|
calls?: Array<GeneratePromptResponse.Call>;
|
|
7719
7755
|
|
|
7720
7756
|
/**
|
|
7721
|
-
* The
|
|
7757
|
+
* The Compute Units cost for the request billed
|
|
7722
7758
|
*/
|
|
7723
7759
|
creativeUnitsCost?: number;
|
|
7724
7760
|
|
|
7725
7761
|
/**
|
|
7726
|
-
* The
|
|
7762
|
+
* The Compute Units discount for the request billed
|
|
7727
7763
|
*/
|
|
7728
7764
|
creativeUnitsDiscount?: number;
|
|
7729
7765
|
|
|
@@ -7785,6 +7821,7 @@ export namespace GeneratePromptResponse {
|
|
|
7785
7821
|
| 'skybox-base-360'
|
|
7786
7822
|
| 'skybox-hdri'
|
|
7787
7823
|
| 'skybox-upscale-360'
|
|
7824
|
+
| 'splat'
|
|
7788
7825
|
| 'texture'
|
|
7789
7826
|
| 'translate'
|
|
7790
7827
|
| 'upload'
|
|
@@ -8192,12 +8229,6 @@ export namespace GeneratePromptResponse {
|
|
|
8192
8229
|
| 'qwen-image-edit-2511-lora'
|
|
8193
8230
|
| 'qwen-image-edit-lora'
|
|
8194
8231
|
| 'qwen-image-lora'
|
|
8195
|
-
| 'sd-1_5'
|
|
8196
|
-
| 'sd-1_5-composition'
|
|
8197
|
-
| 'sd-1_5-lora'
|
|
8198
|
-
| 'sd-xl'
|
|
8199
|
-
| 'sd-xl-composition'
|
|
8200
|
-
| 'sd-xl-lora'
|
|
8201
8232
|
| 'zimage-de-turbo-lora'
|
|
8202
8233
|
| 'zimage-lora'
|
|
8203
8234
|
| 'zimage-turbo-lora'
|
|
@@ -8425,12 +8456,6 @@ export namespace GeneratePromptResponse {
|
|
|
8425
8456
|
| 'qwen-image-edit-2511-lora'
|
|
8426
8457
|
| 'qwen-image-edit-lora'
|
|
8427
8458
|
| 'qwen-image-lora'
|
|
8428
|
-
| 'sd-1_5'
|
|
8429
|
-
| 'sd-1_5-composition'
|
|
8430
|
-
| 'sd-1_5-lora'
|
|
8431
|
-
| 'sd-xl'
|
|
8432
|
-
| 'sd-xl-composition'
|
|
8433
|
-
| 'sd-xl-lora'
|
|
8434
8459
|
| 'zimage-de-turbo-lora'
|
|
8435
8460
|
| 'zimage-lora'
|
|
8436
8461
|
| 'zimage-turbo-lora'
|
|
@@ -8696,6 +8721,13 @@ export namespace GeneratePromptResponse {
|
|
|
8696
8721
|
cuCost: number;
|
|
8697
8722
|
|
|
8698
8723
|
cuDiscount: number;
|
|
8724
|
+
|
|
8725
|
+
/**
|
|
8726
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
8727
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
8728
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
8729
|
+
*/
|
|
8730
|
+
disableRefund?: boolean;
|
|
8699
8731
|
}
|
|
8700
8732
|
}
|
|
8701
8733
|
|
|
@@ -8806,12 +8838,12 @@ export interface GenerateRunModelResponse {
|
|
|
8806
8838
|
job: GenerateRunModelResponse.Job;
|
|
8807
8839
|
|
|
8808
8840
|
/**
|
|
8809
|
-
* The
|
|
8841
|
+
* The Compute Units cost for the request billed
|
|
8810
8842
|
*/
|
|
8811
8843
|
creativeUnitsCost?: number;
|
|
8812
8844
|
|
|
8813
8845
|
/**
|
|
8814
|
-
* The
|
|
8846
|
+
* The Compute Units discount for the request billed
|
|
8815
8847
|
*/
|
|
8816
8848
|
creativeUnitsDiscount?: number;
|
|
8817
8849
|
|
|
@@ -8868,6 +8900,7 @@ export namespace GenerateRunModelResponse {
|
|
|
8868
8900
|
| 'skybox-base-360'
|
|
8869
8901
|
| 'skybox-hdri'
|
|
8870
8902
|
| 'skybox-upscale-360'
|
|
8903
|
+
| 'splat'
|
|
8871
8904
|
| 'texture'
|
|
8872
8905
|
| 'translate'
|
|
8873
8906
|
| 'upload'
|
|
@@ -9275,12 +9308,6 @@ export namespace GenerateRunModelResponse {
|
|
|
9275
9308
|
| 'qwen-image-edit-2511-lora'
|
|
9276
9309
|
| 'qwen-image-edit-lora'
|
|
9277
9310
|
| 'qwen-image-lora'
|
|
9278
|
-
| 'sd-1_5'
|
|
9279
|
-
| 'sd-1_5-composition'
|
|
9280
|
-
| 'sd-1_5-lora'
|
|
9281
|
-
| 'sd-xl'
|
|
9282
|
-
| 'sd-xl-composition'
|
|
9283
|
-
| 'sd-xl-lora'
|
|
9284
9311
|
| 'zimage-de-turbo-lora'
|
|
9285
9312
|
| 'zimage-lora'
|
|
9286
9313
|
| 'zimage-turbo-lora'
|
|
@@ -9508,12 +9535,6 @@ export namespace GenerateRunModelResponse {
|
|
|
9508
9535
|
| 'qwen-image-edit-2511-lora'
|
|
9509
9536
|
| 'qwen-image-edit-lora'
|
|
9510
9537
|
| 'qwen-image-lora'
|
|
9511
|
-
| 'sd-1_5'
|
|
9512
|
-
| 'sd-1_5-composition'
|
|
9513
|
-
| 'sd-1_5-lora'
|
|
9514
|
-
| 'sd-xl'
|
|
9515
|
-
| 'sd-xl-composition'
|
|
9516
|
-
| 'sd-xl-lora'
|
|
9517
9538
|
| 'zimage-de-turbo-lora'
|
|
9518
9539
|
| 'zimage-lora'
|
|
9519
9540
|
| 'zimage-turbo-lora'
|
|
@@ -9779,6 +9800,13 @@ export namespace GenerateRunModelResponse {
|
|
|
9779
9800
|
cuCost: number;
|
|
9780
9801
|
|
|
9781
9802
|
cuDiscount: number;
|
|
9803
|
+
|
|
9804
|
+
/**
|
|
9805
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
9806
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
9807
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
9808
|
+
*/
|
|
9809
|
+
disableRefund?: boolean;
|
|
9782
9810
|
}
|
|
9783
9811
|
}
|
|
9784
9812
|
|
|
@@ -9875,12 +9903,12 @@ export interface GenerateTranslateResponse {
|
|
|
9875
9903
|
translation: string;
|
|
9876
9904
|
|
|
9877
9905
|
/**
|
|
9878
|
-
* The
|
|
9906
|
+
* The Compute Units cost for the request billed
|
|
9879
9907
|
*/
|
|
9880
9908
|
creativeUnitsCost?: number;
|
|
9881
9909
|
|
|
9882
9910
|
/**
|
|
9883
|
-
* The
|
|
9911
|
+
* The Compute Units discount for the request billed
|
|
9884
9912
|
*/
|
|
9885
9913
|
creativeUnitsDiscount?: number;
|
|
9886
9914
|
|
|
@@ -9937,6 +9965,7 @@ export namespace GenerateTranslateResponse {
|
|
|
9937
9965
|
| 'skybox-base-360'
|
|
9938
9966
|
| 'skybox-hdri'
|
|
9939
9967
|
| 'skybox-upscale-360'
|
|
9968
|
+
| 'splat'
|
|
9940
9969
|
| 'texture'
|
|
9941
9970
|
| 'translate'
|
|
9942
9971
|
| 'upload'
|
|
@@ -10344,12 +10373,6 @@ export namespace GenerateTranslateResponse {
|
|
|
10344
10373
|
| 'qwen-image-edit-2511-lora'
|
|
10345
10374
|
| 'qwen-image-edit-lora'
|
|
10346
10375
|
| 'qwen-image-lora'
|
|
10347
|
-
| 'sd-1_5'
|
|
10348
|
-
| 'sd-1_5-composition'
|
|
10349
|
-
| 'sd-1_5-lora'
|
|
10350
|
-
| 'sd-xl'
|
|
10351
|
-
| 'sd-xl-composition'
|
|
10352
|
-
| 'sd-xl-lora'
|
|
10353
10376
|
| 'zimage-de-turbo-lora'
|
|
10354
10377
|
| 'zimage-lora'
|
|
10355
10378
|
| 'zimage-turbo-lora'
|
|
@@ -10577,12 +10600,6 @@ export namespace GenerateTranslateResponse {
|
|
|
10577
10600
|
| 'qwen-image-edit-2511-lora'
|
|
10578
10601
|
| 'qwen-image-edit-lora'
|
|
10579
10602
|
| 'qwen-image-lora'
|
|
10580
|
-
| 'sd-1_5'
|
|
10581
|
-
| 'sd-1_5-composition'
|
|
10582
|
-
| 'sd-1_5-lora'
|
|
10583
|
-
| 'sd-xl'
|
|
10584
|
-
| 'sd-xl-composition'
|
|
10585
|
-
| 'sd-xl-lora'
|
|
10586
10603
|
| 'zimage-de-turbo-lora'
|
|
10587
10604
|
| 'zimage-lora'
|
|
10588
10605
|
| 'zimage-turbo-lora'
|
|
@@ -10848,6 +10865,13 @@ export namespace GenerateTranslateResponse {
|
|
|
10848
10865
|
cuCost: number;
|
|
10849
10866
|
|
|
10850
10867
|
cuDiscount: number;
|
|
10868
|
+
|
|
10869
|
+
/**
|
|
10870
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
10871
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
10872
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
10873
|
+
*/
|
|
10874
|
+
disableRefund?: boolean;
|
|
10851
10875
|
}
|
|
10852
10876
|
}
|
|
10853
10877
|
|
|
@@ -11321,11 +11345,17 @@ export interface GeneratePromptParams {
|
|
|
11321
11345
|
* \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=\")
|
|
11322
11346
|
* or the asset IDs (example: \"asset_GTrL3mq4SXWyMxkOHRxlpw\").
|
|
11323
11347
|
*
|
|
11348
|
+
* A referenced asset ID may point to an image or a video. A video is used for
|
|
11349
|
+
* visual conditioning via its first and last frames (a single frame when only one
|
|
11350
|
+
* is available) and stays a single reference.
|
|
11351
|
+
*
|
|
11324
11352
|
* Notes:
|
|
11325
11353
|
*
|
|
11326
11354
|
* - in `contextual` mode, images condition prompt generation by using their actual
|
|
11327
11355
|
* descriptions as context
|
|
11328
11356
|
* - in all other modes, it supersedes the `modelId` parameter when provided.
|
|
11357
|
+
* - `contextual-v2` (and modes aliased to it) accepts up to 15 references; the
|
|
11358
|
+
* other modes accept up to 5.
|
|
11329
11359
|
*/
|
|
11330
11360
|
images?: Array<string>;
|
|
11331
11361
|
|
package/src/resources/index.ts
CHANGED
|
@@ -126,9 +126,9 @@ export {
|
|
|
126
126
|
type WorkflowCreateParams,
|
|
127
127
|
type WorkflowUpdateParams,
|
|
128
128
|
type WorkflowListParams,
|
|
129
|
-
type WorkflowApproveUserParams,
|
|
130
129
|
type WorkflowGetTagsParams,
|
|
131
130
|
type WorkflowRunParams,
|
|
132
131
|
type WorkflowUserApprovalParams,
|
|
132
|
+
type WorkflowApproveUserParams,
|
|
133
133
|
type WorkflowListResponsesWorkflowsCursor,
|
|
134
134
|
} from './workflows';
|