@scenario-labs/sdk 2.4.0 → 2.5.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 +28 -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 +3 -0
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +3 -0
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +62 -34
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +62 -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 +157 -51
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +157 -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 +91 -35
- package/src/resources/assets/assets.ts +300 -62
- package/src/resources/generate.ts +157 -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
|
@@ -90,7 +90,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
90
90
|
/**
|
|
91
91
|
* source of the asset
|
|
92
92
|
*/
|
|
93
|
-
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
93
|
+
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2splat' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
94
94
|
/**
|
|
95
95
|
* The actual status
|
|
96
96
|
*/
|
|
@@ -183,7 +183,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
183
183
|
* The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
|
|
184
184
|
* from a text to image model
|
|
185
185
|
*/
|
|
186
|
-
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
186
|
+
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2splat' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
187
187
|
/**
|
|
188
188
|
* How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
|
|
189
189
|
*/
|
|
@@ -377,7 +377,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
377
377
|
/**
|
|
378
378
|
* The type of the generator used
|
|
379
379
|
*/
|
|
380
|
-
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' | '
|
|
380
|
+
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' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora';
|
|
381
381
|
name?: string;
|
|
382
382
|
nbMasks?: number;
|
|
383
383
|
/**
|
|
@@ -621,6 +621,16 @@ export declare namespace ExampleUpdateResponse {
|
|
|
621
621
|
* Number of bones if skeleton exists
|
|
622
622
|
*/
|
|
623
623
|
boneCount?: number;
|
|
624
|
+
/**
|
|
625
|
+
* Recommended preview camera mode emitted by the generator (gsplat route); passed
|
|
626
|
+
* through to mesh-rendering verbatim.
|
|
627
|
+
*/
|
|
628
|
+
cameraMode?: 'aerial' | 'interior' | 'turntable';
|
|
629
|
+
/**
|
|
630
|
+
* Recommended preview camera path emitted by the generator (gsplat route); passed
|
|
631
|
+
* through to mesh-rendering verbatim.
|
|
632
|
+
*/
|
|
633
|
+
cameraTrajectory?: Array<Properties.CameraTrajectory>;
|
|
624
634
|
/**
|
|
625
635
|
* Number of channels of the audio
|
|
626
636
|
*/
|
|
@@ -718,6 +728,25 @@ export declare namespace ExampleUpdateResponse {
|
|
|
718
728
|
wordCount?: number;
|
|
719
729
|
}
|
|
720
730
|
namespace Properties {
|
|
731
|
+
/**
|
|
732
|
+
* One explicit camera keyframe for the splat route. Several are interpolated over
|
|
733
|
+
* the requested frames into an orbit/fly-through; a single keyframe renders a
|
|
734
|
+
* static view. Overrides {@link SplatCameraMode} when provided.
|
|
735
|
+
*/
|
|
736
|
+
interface CameraTrajectory {
|
|
737
|
+
/**
|
|
738
|
+
* Camera eye position in the splat's world frame.
|
|
739
|
+
*/
|
|
740
|
+
position: Array<unknown>;
|
|
741
|
+
/**
|
|
742
|
+
* Look-at point in the splat's world frame.
|
|
743
|
+
*/
|
|
744
|
+
target: Array<unknown>;
|
|
745
|
+
/**
|
|
746
|
+
* Vertical field of view in degrees (defaults to 50 in the renderer).
|
|
747
|
+
*/
|
|
748
|
+
fov?: number;
|
|
749
|
+
}
|
|
721
750
|
/**
|
|
722
751
|
* Transcription of the audio
|
|
723
752
|
*/
|
|
@@ -776,10 +805,8 @@ export declare namespace ExampleUpdateResponse {
|
|
|
776
805
|
*
|
|
777
806
|
* Selecting the right type will condition the expected parameters.
|
|
778
807
|
*
|
|
779
|
-
* Note:
|
|
780
|
-
*
|
|
781
|
-
* `modelId`: one of `["stable-diffusion-inpainting",
|
|
782
|
-
* "stable-diffusion-xl-1.0-inpainting-0.1"] will be used.
|
|
808
|
+
* Note: for inpainting with models that support multiple base models, Scenario
|
|
809
|
+
* determines the best available `baseModel` for a given `modelId`.
|
|
783
810
|
*/
|
|
784
811
|
type: 'controlnet' | 'controlnet_img2img' | 'controlnet_inpaint' | 'controlnet_inpaint_ip_adapter' | 'controlnet_ip_adapter' | 'controlnet_reference' | 'controlnet_texture' | 'img2img' | 'img2img_ip_adapter' | 'img2img_texture' | 'inpaint' | 'inpaint_ip_adapter' | 'outpaint' | 'reference' | 'reference_texture' | 'txt2img' | 'txt2img_ip_adapter' | 'txt2img_texture';
|
|
785
812
|
/**
|
|
@@ -861,16 +888,12 @@ export declare namespace ExampleUpdateResponse {
|
|
|
861
888
|
*
|
|
862
889
|
* - For Flux dev models, the default is 3.5 and allowed values are within [0, 10]
|
|
863
890
|
* - For Flux pro models, the default is 3 and allowed values are within [2, 5]
|
|
864
|
-
* - For SDXL models, the default is 6 and allowed values are within [0, 20]
|
|
865
|
-
* - For SD1.5 models, the default is 7.5 and allowed values are within [0, 20]
|
|
866
891
|
*/
|
|
867
892
|
guidance?: number;
|
|
868
893
|
/**
|
|
869
894
|
* The height of the generated images, must be a 8 multiple (within [64, 2048],
|
|
870
|
-
* default: 512) If model.type is `
|
|
871
|
-
*
|
|
872
|
-
* within [64, 1024] If model.type is `flux.1.1-pro-ultra`, you can use the
|
|
873
|
-
* aspectRatio parameter instead
|
|
895
|
+
* default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
|
|
896
|
+
* parameter instead
|
|
874
897
|
*/
|
|
875
898
|
height?: number;
|
|
876
899
|
/**
|
|
@@ -931,18 +954,6 @@ export declare namespace ExampleUpdateResponse {
|
|
|
931
954
|
* The modality associated with the control image used for the generation: it can
|
|
932
955
|
* either be an object with a combination of maximum
|
|
933
956
|
*
|
|
934
|
-
* For models of SD1.5 family:
|
|
935
|
-
*
|
|
936
|
-
* - up to 3 modalities from `canny`, `pose`, `depth`, `lines`, `seg`, `scribble`,
|
|
937
|
-
* `lineart`, `normal-map`, `illusion`
|
|
938
|
-
* - or one of the following presets: `character`, `landscape`, `city`, `interior`.
|
|
939
|
-
*
|
|
940
|
-
* For models of the SDXL family:
|
|
941
|
-
*
|
|
942
|
-
* - up to 3 modalities from `canny`, `pose`, `depth`, `seg`, `illusion`,
|
|
943
|
-
* `scribble`
|
|
944
|
-
* - or one of the following presets: `character`, `landscape`.
|
|
945
|
-
*
|
|
946
957
|
* For models of the FLUX schnell or dev families:
|
|
947
958
|
*
|
|
948
959
|
* - one modality from: `canny`, `tile`, `depth`, `blur`, `pose`, `gray`,
|
|
@@ -1025,10 +1036,8 @@ export declare namespace ExampleUpdateResponse {
|
|
|
1025
1036
|
styleFidelity?: number;
|
|
1026
1037
|
/**
|
|
1027
1038
|
* The width of the generated images, must be a 8 multiple (within [64, 2048],
|
|
1028
|
-
* default: 512) If model.type is `
|
|
1029
|
-
*
|
|
1030
|
-
* within [64, 1024] If model.type is `flux.1.1-pro-ultra`, you can use the
|
|
1031
|
-
* aspectRatio parameter instead
|
|
1039
|
+
* default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
|
|
1040
|
+
* parameter instead
|
|
1032
1041
|
*/
|
|
1033
1042
|
width?: number;
|
|
1034
1043
|
}
|
|
@@ -1065,7 +1074,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
1065
1074
|
/**
|
|
1066
1075
|
* The type of job
|
|
1067
1076
|
*/
|
|
1068
|
-
jobType: 'assets-download' | 'canvas-export' | 'caption' | 'caption-llava' | 'custom' | 'describe-style' | 'detection' | 'embed' | 'flux' | 'flux-model-training' | 'generate-prompt' | 'image-generation' | 'image-prompt-editing' | 'inference' | 'mesh-preview-rendering' | 'model-download' | 'model-import' | 'model-training' | 'musubi-model-training' | 'openai-image-generation' | 'patch-image' | 'pixelate' | 'reframe' | 'remove-background' | 'repaint' | 'restyle' | 'segment' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'skybox-upscale-360' | 'texture' | 'translate' | 'upload' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'vectorize' | 'workflow';
|
|
1077
|
+
jobType: 'assets-download' | 'canvas-export' | 'caption' | 'caption-llava' | 'custom' | 'describe-style' | 'detection' | 'embed' | 'flux' | 'flux-model-training' | 'generate-prompt' | 'image-generation' | 'image-prompt-editing' | 'inference' | 'mesh-preview-rendering' | 'model-download' | 'model-import' | 'model-training' | 'musubi-model-training' | 'openai-image-generation' | 'patch-image' | 'pixelate' | 'reframe' | 'remove-background' | 'repaint' | 'restyle' | 'segment' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'skybox-upscale-360' | 'splat' | 'texture' | 'translate' | 'upload' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'vectorize' | 'workflow';
|
|
1069
1078
|
/**
|
|
1070
1079
|
* Metadata of the job with some additional information
|
|
1071
1080
|
*/
|
|
@@ -1355,7 +1364,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
1355
1364
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
1356
1365
|
* available for \`model_array\` input type.
|
|
1357
1366
|
*/
|
|
1358
|
-
modelTypes?: Array<'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' | '
|
|
1367
|
+
modelTypes?: Array<'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' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora'>;
|
|
1359
1368
|
/**
|
|
1360
1369
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
1361
1370
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -1513,7 +1522,7 @@ export declare namespace ExampleUpdateResponse {
|
|
|
1513
1522
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
1514
1523
|
* available for \`model_array\` input type.
|
|
1515
1524
|
*/
|
|
1516
|
-
modelTypes?: Array<'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' | '
|
|
1525
|
+
modelTypes?: Array<'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' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora'>;
|
|
1517
1526
|
/**
|
|
1518
1527
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
1519
1528
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -1734,6 +1743,12 @@ export declare namespace ExampleUpdateResponse {
|
|
|
1734
1743
|
interface Billing {
|
|
1735
1744
|
cuCost: number;
|
|
1736
1745
|
cuDiscount: number;
|
|
1746
|
+
/**
|
|
1747
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
1748
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
1749
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
1750
|
+
*/
|
|
1751
|
+
disableRefund?: boolean;
|
|
1737
1752
|
}
|
|
1738
1753
|
}
|
|
1739
1754
|
}
|
|
@@ -1817,7 +1832,7 @@ export declare namespace ExampleListResponse {
|
|
|
1817
1832
|
/**
|
|
1818
1833
|
* source of the asset
|
|
1819
1834
|
*/
|
|
1820
|
-
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1835
|
+
source: '3d23d' | '3d23d:texture' | '3d:texture' | '3d:texture:albedo' | '3d:texture:metallic' | '3d:texture:mtl' | '3d:texture:normal' | '3d:texture:roughness' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2splat' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1821
1836
|
/**
|
|
1822
1837
|
* The actual status
|
|
1823
1838
|
*/
|
|
@@ -1910,7 +1925,7 @@ export declare namespace ExampleListResponse {
|
|
|
1910
1925
|
* The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
|
|
1911
1926
|
* from a text to image model
|
|
1912
1927
|
*/
|
|
1913
|
-
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1928
|
+
type: '3d-texture' | '3d-texture-albedo' | '3d-texture-metallic' | '3d-texture-mtl' | '3d-texture-normal' | '3d-texture-roughness' | '3d23d' | '3d23d-texture' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'background-removal' | 'canvas' | 'canvas-drawing' | 'canvas-export' | 'detection' | 'generative-fill' | 'image-prompt-editing' | 'img23d' | 'img2img' | 'img2splat' | 'img2txt' | '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' | 'txt2txt' | 'txt2video' | 'unknown' | 'uploaded' | 'uploaded-3d' | 'uploaded-audio' | 'uploaded-avatar' | 'uploaded-text' | 'uploaded-video' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'upscale-video' | 'vectorization' | 'video23d' | 'video2audio' | 'video2img' | 'video2video' | 'voice-clone';
|
|
1914
1929
|
/**
|
|
1915
1930
|
* How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
|
|
1916
1931
|
*/
|
|
@@ -2104,7 +2119,7 @@ export declare namespace ExampleListResponse {
|
|
|
2104
2119
|
/**
|
|
2105
2120
|
* The type of the generator used
|
|
2106
2121
|
*/
|
|
2107
|
-
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' | '
|
|
2122
|
+
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' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora';
|
|
2108
2123
|
name?: string;
|
|
2109
2124
|
nbMasks?: number;
|
|
2110
2125
|
/**
|
|
@@ -2348,6 +2363,16 @@ export declare namespace ExampleListResponse {
|
|
|
2348
2363
|
* Number of bones if skeleton exists
|
|
2349
2364
|
*/
|
|
2350
2365
|
boneCount?: number;
|
|
2366
|
+
/**
|
|
2367
|
+
* Recommended preview camera mode emitted by the generator (gsplat route); passed
|
|
2368
|
+
* through to mesh-rendering verbatim.
|
|
2369
|
+
*/
|
|
2370
|
+
cameraMode?: 'aerial' | 'interior' | 'turntable';
|
|
2371
|
+
/**
|
|
2372
|
+
* Recommended preview camera path emitted by the generator (gsplat route); passed
|
|
2373
|
+
* through to mesh-rendering verbatim.
|
|
2374
|
+
*/
|
|
2375
|
+
cameraTrajectory?: Array<Properties.CameraTrajectory>;
|
|
2351
2376
|
/**
|
|
2352
2377
|
* Number of channels of the audio
|
|
2353
2378
|
*/
|
|
@@ -2445,6 +2470,25 @@ export declare namespace ExampleListResponse {
|
|
|
2445
2470
|
wordCount?: number;
|
|
2446
2471
|
}
|
|
2447
2472
|
namespace Properties {
|
|
2473
|
+
/**
|
|
2474
|
+
* One explicit camera keyframe for the splat route. Several are interpolated over
|
|
2475
|
+
* the requested frames into an orbit/fly-through; a single keyframe renders a
|
|
2476
|
+
* static view. Overrides {@link SplatCameraMode} when provided.
|
|
2477
|
+
*/
|
|
2478
|
+
interface CameraTrajectory {
|
|
2479
|
+
/**
|
|
2480
|
+
* Camera eye position in the splat's world frame.
|
|
2481
|
+
*/
|
|
2482
|
+
position: Array<unknown>;
|
|
2483
|
+
/**
|
|
2484
|
+
* Look-at point in the splat's world frame.
|
|
2485
|
+
*/
|
|
2486
|
+
target: Array<unknown>;
|
|
2487
|
+
/**
|
|
2488
|
+
* Vertical field of view in degrees (defaults to 50 in the renderer).
|
|
2489
|
+
*/
|
|
2490
|
+
fov?: number;
|
|
2491
|
+
}
|
|
2448
2492
|
/**
|
|
2449
2493
|
* Transcription of the audio
|
|
2450
2494
|
*/
|
|
@@ -2503,10 +2547,8 @@ export declare namespace ExampleListResponse {
|
|
|
2503
2547
|
*
|
|
2504
2548
|
* Selecting the right type will condition the expected parameters.
|
|
2505
2549
|
*
|
|
2506
|
-
* Note:
|
|
2507
|
-
*
|
|
2508
|
-
* `modelId`: one of `["stable-diffusion-inpainting",
|
|
2509
|
-
* "stable-diffusion-xl-1.0-inpainting-0.1"] will be used.
|
|
2550
|
+
* Note: for inpainting with models that support multiple base models, Scenario
|
|
2551
|
+
* determines the best available `baseModel` for a given `modelId`.
|
|
2510
2552
|
*/
|
|
2511
2553
|
type: 'controlnet' | 'controlnet_img2img' | 'controlnet_inpaint' | 'controlnet_inpaint_ip_adapter' | 'controlnet_ip_adapter' | 'controlnet_reference' | 'controlnet_texture' | 'img2img' | 'img2img_ip_adapter' | 'img2img_texture' | 'inpaint' | 'inpaint_ip_adapter' | 'outpaint' | 'reference' | 'reference_texture' | 'txt2img' | 'txt2img_ip_adapter' | 'txt2img_texture';
|
|
2512
2554
|
/**
|
|
@@ -2588,16 +2630,12 @@ export declare namespace ExampleListResponse {
|
|
|
2588
2630
|
*
|
|
2589
2631
|
* - For Flux dev models, the default is 3.5 and allowed values are within [0, 10]
|
|
2590
2632
|
* - For Flux pro models, the default is 3 and allowed values are within [2, 5]
|
|
2591
|
-
* - For SDXL models, the default is 6 and allowed values are within [0, 20]
|
|
2592
|
-
* - For SD1.5 models, the default is 7.5 and allowed values are within [0, 20]
|
|
2593
2633
|
*/
|
|
2594
2634
|
guidance?: number;
|
|
2595
2635
|
/**
|
|
2596
2636
|
* The height of the generated images, must be a 8 multiple (within [64, 2048],
|
|
2597
|
-
* default: 512) If model.type is `
|
|
2598
|
-
*
|
|
2599
|
-
* within [64, 1024] If model.type is `flux.1.1-pro-ultra`, you can use the
|
|
2600
|
-
* aspectRatio parameter instead
|
|
2637
|
+
* default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
|
|
2638
|
+
* parameter instead
|
|
2601
2639
|
*/
|
|
2602
2640
|
height?: number;
|
|
2603
2641
|
/**
|
|
@@ -2658,18 +2696,6 @@ export declare namespace ExampleListResponse {
|
|
|
2658
2696
|
* The modality associated with the control image used for the generation: it can
|
|
2659
2697
|
* either be an object with a combination of maximum
|
|
2660
2698
|
*
|
|
2661
|
-
* For models of SD1.5 family:
|
|
2662
|
-
*
|
|
2663
|
-
* - up to 3 modalities from `canny`, `pose`, `depth`, `lines`, `seg`, `scribble`,
|
|
2664
|
-
* `lineart`, `normal-map`, `illusion`
|
|
2665
|
-
* - or one of the following presets: `character`, `landscape`, `city`, `interior`.
|
|
2666
|
-
*
|
|
2667
|
-
* For models of the SDXL family:
|
|
2668
|
-
*
|
|
2669
|
-
* - up to 3 modalities from `canny`, `pose`, `depth`, `seg`, `illusion`,
|
|
2670
|
-
* `scribble`
|
|
2671
|
-
* - or one of the following presets: `character`, `landscape`.
|
|
2672
|
-
*
|
|
2673
2699
|
* For models of the FLUX schnell or dev families:
|
|
2674
2700
|
*
|
|
2675
2701
|
* - one modality from: `canny`, `tile`, `depth`, `blur`, `pose`, `gray`,
|
|
@@ -2752,10 +2778,8 @@ export declare namespace ExampleListResponse {
|
|
|
2752
2778
|
styleFidelity?: number;
|
|
2753
2779
|
/**
|
|
2754
2780
|
* The width of the generated images, must be a 8 multiple (within [64, 2048],
|
|
2755
|
-
* default: 512) If model.type is `
|
|
2756
|
-
*
|
|
2757
|
-
* within [64, 1024] If model.type is `flux.1.1-pro-ultra`, you can use the
|
|
2758
|
-
* aspectRatio parameter instead
|
|
2781
|
+
* default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
|
|
2782
|
+
* parameter instead
|
|
2759
2783
|
*/
|
|
2760
2784
|
width?: number;
|
|
2761
2785
|
}
|
|
@@ -2792,7 +2816,7 @@ export declare namespace ExampleListResponse {
|
|
|
2792
2816
|
/**
|
|
2793
2817
|
* The type of job
|
|
2794
2818
|
*/
|
|
2795
|
-
jobType: 'assets-download' | 'canvas-export' | 'caption' | 'caption-llava' | 'custom' | 'describe-style' | 'detection' | 'embed' | 'flux' | 'flux-model-training' | 'generate-prompt' | 'image-generation' | 'image-prompt-editing' | 'inference' | 'mesh-preview-rendering' | 'model-download' | 'model-import' | 'model-training' | 'musubi-model-training' | 'openai-image-generation' | 'patch-image' | 'pixelate' | 'reframe' | 'remove-background' | 'repaint' | 'restyle' | 'segment' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'skybox-upscale-360' | 'texture' | 'translate' | 'upload' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'vectorize' | 'workflow';
|
|
2819
|
+
jobType: 'assets-download' | 'canvas-export' | 'caption' | 'caption-llava' | 'custom' | 'describe-style' | 'detection' | 'embed' | 'flux' | 'flux-model-training' | 'generate-prompt' | 'image-generation' | 'image-prompt-editing' | 'inference' | 'mesh-preview-rendering' | 'model-download' | 'model-import' | 'model-training' | 'musubi-model-training' | 'openai-image-generation' | 'patch-image' | 'pixelate' | 'reframe' | 'remove-background' | 'repaint' | 'restyle' | 'segment' | 'skybox-3d' | 'skybox-base-360' | 'skybox-hdri' | 'skybox-upscale-360' | 'splat' | 'texture' | 'translate' | 'upload' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'vectorize' | 'workflow';
|
|
2796
2820
|
/**
|
|
2797
2821
|
* Metadata of the job with some additional information
|
|
2798
2822
|
*/
|
|
@@ -3082,7 +3106,7 @@ export declare namespace ExampleListResponse {
|
|
|
3082
3106
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
3083
3107
|
* available for \`model_array\` input type.
|
|
3084
3108
|
*/
|
|
3085
|
-
modelTypes?: Array<'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' | '
|
|
3109
|
+
modelTypes?: Array<'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' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora'>;
|
|
3086
3110
|
/**
|
|
3087
3111
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
3088
3112
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -3240,7 +3264,7 @@ export declare namespace ExampleListResponse {
|
|
|
3240
3264
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
3241
3265
|
* available for \`model_array\` input type.
|
|
3242
3266
|
*/
|
|
3243
|
-
modelTypes?: Array<'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' | '
|
|
3267
|
+
modelTypes?: Array<'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' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora'>;
|
|
3244
3268
|
/**
|
|
3245
3269
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
3246
3270
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -3461,6 +3485,12 @@ export declare namespace ExampleListResponse {
|
|
|
3461
3485
|
interface Billing {
|
|
3462
3486
|
cuCost: number;
|
|
3463
3487
|
cuDiscount: number;
|
|
3488
|
+
/**
|
|
3489
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
3490
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
3491
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
3492
|
+
*/
|
|
3493
|
+
disableRefund?: boolean;
|
|
3464
3494
|
}
|
|
3465
3495
|
}
|
|
3466
3496
|
}
|