@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
package/resources/generate.d.mts
CHANGED
|
@@ -28,13 +28,9 @@ export declare class Generate extends APIResource {
|
|
|
28
28
|
*/
|
|
29
29
|
prompt(params: GeneratePromptParams, options?: RequestOptions): APIPromise<GeneratePromptResponse>;
|
|
30
30
|
/**
|
|
31
|
-
* Generate with any model (Image, Video, Audio, 3d).
|
|
31
|
+
* Generate with any model (Image, Video, Audio, 3d, Text).
|
|
32
32
|
*
|
|
33
33
|
* You can retrieve the model inputs from the `GET /models/{modelId}` endpoint.
|
|
34
|
-
*
|
|
35
|
-
* **Note**: This endpoint is not available yet for SD1.5, SDXL and Flux.1 based
|
|
36
|
-
* models. For these models, use the `POST /generate/{inferenceType}` endpoint. Ex:
|
|
37
|
-
* `POST /generate/txt2img`
|
|
38
34
|
*/
|
|
39
35
|
runModel(modelID: string, params: GenerateRunModelParams, options?: RequestOptions): APIPromise<GenerateRunModelResponse>;
|
|
40
36
|
/**
|
|
@@ -49,11 +45,11 @@ export interface GenerateCaptionResponse {
|
|
|
49
45
|
captions: Array<string>;
|
|
50
46
|
job: GenerateCaptionResponse.Job;
|
|
51
47
|
/**
|
|
52
|
-
* The
|
|
48
|
+
* The Compute Units cost for the request billed
|
|
53
49
|
*/
|
|
54
50
|
creativeUnitsCost?: number;
|
|
55
51
|
/**
|
|
56
|
-
* The
|
|
52
|
+
* The Compute Units discount for the request billed
|
|
57
53
|
*/
|
|
58
54
|
creativeUnitsDiscount?: number;
|
|
59
55
|
/**
|
|
@@ -81,7 +77,7 @@ export declare namespace GenerateCaptionResponse {
|
|
|
81
77
|
/**
|
|
82
78
|
* The type of job
|
|
83
79
|
*/
|
|
84
|
-
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';
|
|
80
|
+
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';
|
|
85
81
|
/**
|
|
86
82
|
* Metadata of the job with some additional information
|
|
87
83
|
*/
|
|
@@ -371,7 +367,7 @@ export declare namespace GenerateCaptionResponse {
|
|
|
371
367
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
372
368
|
* available for \`model_array\` input type.
|
|
373
369
|
*/
|
|
374
|
-
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' | '
|
|
370
|
+
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'>;
|
|
375
371
|
/**
|
|
376
372
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
377
373
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -529,7 +525,7 @@ export declare namespace GenerateCaptionResponse {
|
|
|
529
525
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
530
526
|
* available for \`model_array\` input type.
|
|
531
527
|
*/
|
|
532
|
-
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' | '
|
|
528
|
+
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'>;
|
|
533
529
|
/**
|
|
534
530
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
535
531
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -750,6 +746,12 @@ export declare namespace GenerateCaptionResponse {
|
|
|
750
746
|
interface Billing {
|
|
751
747
|
cuCost: number;
|
|
752
748
|
cuDiscount: number;
|
|
749
|
+
/**
|
|
750
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
751
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
752
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
753
|
+
*/
|
|
754
|
+
disableRefund?: boolean;
|
|
753
755
|
}
|
|
754
756
|
}
|
|
755
757
|
/**
|
|
@@ -829,11 +831,11 @@ export interface GenerateDescribeStyleResponse {
|
|
|
829
831
|
*/
|
|
830
832
|
synthesis: string;
|
|
831
833
|
/**
|
|
832
|
-
* The
|
|
834
|
+
* The Compute Units cost for the request billed
|
|
833
835
|
*/
|
|
834
836
|
creativeUnitsCost?: number;
|
|
835
837
|
/**
|
|
836
|
-
* The
|
|
838
|
+
* The Compute Units discount for the request billed
|
|
837
839
|
*/
|
|
838
840
|
creativeUnitsDiscount?: number;
|
|
839
841
|
/**
|
|
@@ -854,7 +856,7 @@ export declare namespace GenerateDescribeStyleResponse {
|
|
|
854
856
|
/**
|
|
855
857
|
* The type of job
|
|
856
858
|
*/
|
|
857
|
-
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';
|
|
859
|
+
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';
|
|
858
860
|
/**
|
|
859
861
|
* Metadata of the job with some additional information
|
|
860
862
|
*/
|
|
@@ -1144,7 +1146,7 @@ export declare namespace GenerateDescribeStyleResponse {
|
|
|
1144
1146
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
1145
1147
|
* available for \`model_array\` input type.
|
|
1146
1148
|
*/
|
|
1147
|
-
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' | '
|
|
1149
|
+
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'>;
|
|
1148
1150
|
/**
|
|
1149
1151
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
1150
1152
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -1302,7 +1304,7 @@ export declare namespace GenerateDescribeStyleResponse {
|
|
|
1302
1304
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
1303
1305
|
* available for \`model_array\` input type.
|
|
1304
1306
|
*/
|
|
1305
|
-
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' | '
|
|
1307
|
+
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'>;
|
|
1306
1308
|
/**
|
|
1307
1309
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
1308
1310
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -1523,6 +1525,12 @@ export declare namespace GenerateDescribeStyleResponse {
|
|
|
1523
1525
|
interface Billing {
|
|
1524
1526
|
cuCost: number;
|
|
1525
1527
|
cuDiscount: number;
|
|
1528
|
+
/**
|
|
1529
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
1530
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
1531
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
1532
|
+
*/
|
|
1533
|
+
disableRefund?: boolean;
|
|
1526
1534
|
}
|
|
1527
1535
|
}
|
|
1528
1536
|
/**
|
|
@@ -1595,11 +1603,11 @@ export interface GenerateDetectResponse {
|
|
|
1595
1603
|
job: GenerateDetectResponse.Job;
|
|
1596
1604
|
asset?: GenerateDetectResponse.Asset;
|
|
1597
1605
|
/**
|
|
1598
|
-
* The
|
|
1606
|
+
* The Compute Units cost for the request billed
|
|
1599
1607
|
*/
|
|
1600
1608
|
creativeUnitsCost?: number;
|
|
1601
1609
|
/**
|
|
1602
|
-
* The
|
|
1610
|
+
* The Compute Units discount for the request billed
|
|
1603
1611
|
*/
|
|
1604
1612
|
creativeUnitsDiscount?: number;
|
|
1605
1613
|
/**
|
|
@@ -1620,7 +1628,7 @@ export declare namespace GenerateDetectResponse {
|
|
|
1620
1628
|
/**
|
|
1621
1629
|
* The type of job
|
|
1622
1630
|
*/
|
|
1623
|
-
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';
|
|
1631
|
+
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';
|
|
1624
1632
|
/**
|
|
1625
1633
|
* Metadata of the job with some additional information
|
|
1626
1634
|
*/
|
|
@@ -1910,7 +1918,7 @@ export declare namespace GenerateDetectResponse {
|
|
|
1910
1918
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
1911
1919
|
* available for \`model_array\` input type.
|
|
1912
1920
|
*/
|
|
1913
|
-
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' | '
|
|
1921
|
+
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'>;
|
|
1914
1922
|
/**
|
|
1915
1923
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
1916
1924
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -2068,7 +2076,7 @@ export declare namespace GenerateDetectResponse {
|
|
|
2068
2076
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
2069
2077
|
* available for \`model_array\` input type.
|
|
2070
2078
|
*/
|
|
2071
|
-
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' | '
|
|
2079
|
+
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'>;
|
|
2072
2080
|
/**
|
|
2073
2081
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
2074
2082
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -2289,6 +2297,12 @@ export declare namespace GenerateDetectResponse {
|
|
|
2289
2297
|
interface Billing {
|
|
2290
2298
|
cuCost: number;
|
|
2291
2299
|
cuDiscount: number;
|
|
2300
|
+
/**
|
|
2301
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
2302
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
2303
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
2304
|
+
*/
|
|
2305
|
+
disableRefund?: boolean;
|
|
2292
2306
|
}
|
|
2293
2307
|
}
|
|
2294
2308
|
interface Asset {
|
|
@@ -2340,7 +2354,7 @@ export declare namespace GenerateDetectResponse {
|
|
|
2340
2354
|
/**
|
|
2341
2355
|
* source of the asset
|
|
2342
2356
|
*/
|
|
2343
|
-
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';
|
|
2357
|
+
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';
|
|
2344
2358
|
/**
|
|
2345
2359
|
* The actual status
|
|
2346
2360
|
*/
|
|
@@ -2433,7 +2447,7 @@ export declare namespace GenerateDetectResponse {
|
|
|
2433
2447
|
* The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
|
|
2434
2448
|
* from a text to image model
|
|
2435
2449
|
*/
|
|
2436
|
-
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';
|
|
2450
|
+
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';
|
|
2437
2451
|
/**
|
|
2438
2452
|
* How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
|
|
2439
2453
|
*/
|
|
@@ -2627,7 +2641,7 @@ export declare namespace GenerateDetectResponse {
|
|
|
2627
2641
|
/**
|
|
2628
2642
|
* The type of the generator used
|
|
2629
2643
|
*/
|
|
2630
|
-
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' | '
|
|
2644
|
+
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';
|
|
2631
2645
|
name?: string;
|
|
2632
2646
|
nbMasks?: number;
|
|
2633
2647
|
/**
|
|
@@ -2871,6 +2885,16 @@ export declare namespace GenerateDetectResponse {
|
|
|
2871
2885
|
* Number of bones if skeleton exists
|
|
2872
2886
|
*/
|
|
2873
2887
|
boneCount?: number;
|
|
2888
|
+
/**
|
|
2889
|
+
* Recommended preview camera mode emitted by the generator (gsplat route); passed
|
|
2890
|
+
* through to mesh-rendering verbatim.
|
|
2891
|
+
*/
|
|
2892
|
+
cameraMode?: 'aerial' | 'interior' | 'turntable';
|
|
2893
|
+
/**
|
|
2894
|
+
* Recommended preview camera path emitted by the generator (gsplat route); passed
|
|
2895
|
+
* through to mesh-rendering verbatim.
|
|
2896
|
+
*/
|
|
2897
|
+
cameraTrajectory?: Array<Properties.CameraTrajectory>;
|
|
2874
2898
|
/**
|
|
2875
2899
|
* Number of channels of the audio
|
|
2876
2900
|
*/
|
|
@@ -2968,6 +2992,25 @@ export declare namespace GenerateDetectResponse {
|
|
|
2968
2992
|
wordCount?: number;
|
|
2969
2993
|
}
|
|
2970
2994
|
namespace Properties {
|
|
2995
|
+
/**
|
|
2996
|
+
* One explicit camera keyframe for the splat route. Several are interpolated over
|
|
2997
|
+
* the requested frames into an orbit/fly-through; a single keyframe renders a
|
|
2998
|
+
* static view. Overrides {@link SplatCameraMode} when provided.
|
|
2999
|
+
*/
|
|
3000
|
+
interface CameraTrajectory {
|
|
3001
|
+
/**
|
|
3002
|
+
* Camera eye position in the splat's world frame.
|
|
3003
|
+
*/
|
|
3004
|
+
position: Array<unknown>;
|
|
3005
|
+
/**
|
|
3006
|
+
* Look-at point in the splat's world frame.
|
|
3007
|
+
*/
|
|
3008
|
+
target: Array<unknown>;
|
|
3009
|
+
/**
|
|
3010
|
+
* Vertical field of view in degrees (defaults to 50 in the renderer).
|
|
3011
|
+
*/
|
|
3012
|
+
fov?: number;
|
|
3013
|
+
}
|
|
2971
3014
|
/**
|
|
2972
3015
|
* Transcription of the audio
|
|
2973
3016
|
*/
|
|
@@ -3087,11 +3130,11 @@ export interface GenerateEmbedResponse {
|
|
|
3087
3130
|
embedding: Array<number>;
|
|
3088
3131
|
job: GenerateEmbedResponse.Job;
|
|
3089
3132
|
/**
|
|
3090
|
-
* The
|
|
3133
|
+
* The Compute Units cost for the request billed
|
|
3091
3134
|
*/
|
|
3092
3135
|
creativeUnitsCost?: number;
|
|
3093
3136
|
/**
|
|
3094
|
-
* The
|
|
3137
|
+
* The Compute Units discount for the request billed
|
|
3095
3138
|
*/
|
|
3096
3139
|
creativeUnitsDiscount?: number;
|
|
3097
3140
|
/**
|
|
@@ -3112,7 +3155,7 @@ export declare namespace GenerateEmbedResponse {
|
|
|
3112
3155
|
/**
|
|
3113
3156
|
* The type of job
|
|
3114
3157
|
*/
|
|
3115
|
-
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';
|
|
3158
|
+
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';
|
|
3116
3159
|
/**
|
|
3117
3160
|
* Metadata of the job with some additional information
|
|
3118
3161
|
*/
|
|
@@ -3402,7 +3445,7 @@ export declare namespace GenerateEmbedResponse {
|
|
|
3402
3445
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
3403
3446
|
* available for \`model_array\` input type.
|
|
3404
3447
|
*/
|
|
3405
|
-
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' | '
|
|
3448
|
+
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'>;
|
|
3406
3449
|
/**
|
|
3407
3450
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
3408
3451
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -3560,7 +3603,7 @@ export declare namespace GenerateEmbedResponse {
|
|
|
3560
3603
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
3561
3604
|
* available for \`model_array\` input type.
|
|
3562
3605
|
*/
|
|
3563
|
-
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' | '
|
|
3606
|
+
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'>;
|
|
3564
3607
|
/**
|
|
3565
3608
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
3566
3609
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -3781,6 +3824,12 @@ export declare namespace GenerateEmbedResponse {
|
|
|
3781
3824
|
interface Billing {
|
|
3782
3825
|
cuCost: number;
|
|
3783
3826
|
cuDiscount: number;
|
|
3827
|
+
/**
|
|
3828
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
3829
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
3830
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
3831
|
+
*/
|
|
3832
|
+
disableRefund?: boolean;
|
|
3784
3833
|
}
|
|
3785
3834
|
}
|
|
3786
3835
|
/**
|
|
@@ -3853,11 +3902,11 @@ export interface GeneratePatchResponse {
|
|
|
3853
3902
|
job: GeneratePatchResponse.Job;
|
|
3854
3903
|
asset?: GeneratePatchResponse.Asset;
|
|
3855
3904
|
/**
|
|
3856
|
-
* The
|
|
3905
|
+
* The Compute Units cost for the request billed
|
|
3857
3906
|
*/
|
|
3858
3907
|
creativeUnitsCost?: number;
|
|
3859
3908
|
/**
|
|
3860
|
-
* The
|
|
3909
|
+
* The Compute Units discount for the request billed
|
|
3861
3910
|
*/
|
|
3862
3911
|
creativeUnitsDiscount?: number;
|
|
3863
3912
|
/**
|
|
@@ -3878,7 +3927,7 @@ export declare namespace GeneratePatchResponse {
|
|
|
3878
3927
|
/**
|
|
3879
3928
|
* The type of job
|
|
3880
3929
|
*/
|
|
3881
|
-
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';
|
|
3930
|
+
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';
|
|
3882
3931
|
/**
|
|
3883
3932
|
* Metadata of the job with some additional information
|
|
3884
3933
|
*/
|
|
@@ -4168,7 +4217,7 @@ export declare namespace GeneratePatchResponse {
|
|
|
4168
4217
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
4169
4218
|
* available for \`model_array\` input type.
|
|
4170
4219
|
*/
|
|
4171
|
-
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' | '
|
|
4220
|
+
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'>;
|
|
4172
4221
|
/**
|
|
4173
4222
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
4174
4223
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -4326,7 +4375,7 @@ export declare namespace GeneratePatchResponse {
|
|
|
4326
4375
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
4327
4376
|
* available for \`model_array\` input type.
|
|
4328
4377
|
*/
|
|
4329
|
-
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' | '
|
|
4378
|
+
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'>;
|
|
4330
4379
|
/**
|
|
4331
4380
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
4332
4381
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -4547,6 +4596,12 @@ export declare namespace GeneratePatchResponse {
|
|
|
4547
4596
|
interface Billing {
|
|
4548
4597
|
cuCost: number;
|
|
4549
4598
|
cuDiscount: number;
|
|
4599
|
+
/**
|
|
4600
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
4601
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
4602
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
4603
|
+
*/
|
|
4604
|
+
disableRefund?: boolean;
|
|
4550
4605
|
}
|
|
4551
4606
|
}
|
|
4552
4607
|
interface Asset {
|
|
@@ -4598,7 +4653,7 @@ export declare namespace GeneratePatchResponse {
|
|
|
4598
4653
|
/**
|
|
4599
4654
|
* source of the asset
|
|
4600
4655
|
*/
|
|
4601
|
-
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';
|
|
4656
|
+
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';
|
|
4602
4657
|
/**
|
|
4603
4658
|
* The actual status
|
|
4604
4659
|
*/
|
|
@@ -4691,7 +4746,7 @@ export declare namespace GeneratePatchResponse {
|
|
|
4691
4746
|
* The type of the asset. Ex: 'inference-txt2img' will represent an asset generated
|
|
4692
4747
|
* from a text to image model
|
|
4693
4748
|
*/
|
|
4694
|
-
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';
|
|
4749
|
+
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';
|
|
4695
4750
|
/**
|
|
4696
4751
|
* How angular is the surface? 0 is like a sphere, 1 is like a mechanical object
|
|
4697
4752
|
*/
|
|
@@ -4885,7 +4940,7 @@ export declare namespace GeneratePatchResponse {
|
|
|
4885
4940
|
/**
|
|
4886
4941
|
* The type of the generator used
|
|
4887
4942
|
*/
|
|
4888
|
-
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' | '
|
|
4943
|
+
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';
|
|
4889
4944
|
name?: string;
|
|
4890
4945
|
nbMasks?: number;
|
|
4891
4946
|
/**
|
|
@@ -5129,6 +5184,16 @@ export declare namespace GeneratePatchResponse {
|
|
|
5129
5184
|
* Number of bones if skeleton exists
|
|
5130
5185
|
*/
|
|
5131
5186
|
boneCount?: number;
|
|
5187
|
+
/**
|
|
5188
|
+
* Recommended preview camera mode emitted by the generator (gsplat route); passed
|
|
5189
|
+
* through to mesh-rendering verbatim.
|
|
5190
|
+
*/
|
|
5191
|
+
cameraMode?: 'aerial' | 'interior' | 'turntable';
|
|
5192
|
+
/**
|
|
5193
|
+
* Recommended preview camera path emitted by the generator (gsplat route); passed
|
|
5194
|
+
* through to mesh-rendering verbatim.
|
|
5195
|
+
*/
|
|
5196
|
+
cameraTrajectory?: Array<Properties.CameraTrajectory>;
|
|
5132
5197
|
/**
|
|
5133
5198
|
* Number of channels of the audio
|
|
5134
5199
|
*/
|
|
@@ -5226,6 +5291,25 @@ export declare namespace GeneratePatchResponse {
|
|
|
5226
5291
|
wordCount?: number;
|
|
5227
5292
|
}
|
|
5228
5293
|
namespace Properties {
|
|
5294
|
+
/**
|
|
5295
|
+
* One explicit camera keyframe for the splat route. Several are interpolated over
|
|
5296
|
+
* the requested frames into an orbit/fly-through; a single keyframe renders a
|
|
5297
|
+
* static view. Overrides {@link SplatCameraMode} when provided.
|
|
5298
|
+
*/
|
|
5299
|
+
interface CameraTrajectory {
|
|
5300
|
+
/**
|
|
5301
|
+
* Camera eye position in the splat's world frame.
|
|
5302
|
+
*/
|
|
5303
|
+
position: Array<unknown>;
|
|
5304
|
+
/**
|
|
5305
|
+
* Look-at point in the splat's world frame.
|
|
5306
|
+
*/
|
|
5307
|
+
target: Array<unknown>;
|
|
5308
|
+
/**
|
|
5309
|
+
* Vertical field of view in degrees (defaults to 50 in the renderer).
|
|
5310
|
+
*/
|
|
5311
|
+
fov?: number;
|
|
5312
|
+
}
|
|
5229
5313
|
/**
|
|
5230
5314
|
* Transcription of the audio
|
|
5231
5315
|
*/
|
|
@@ -5348,11 +5432,11 @@ export interface GeneratePromptResponse {
|
|
|
5348
5432
|
*/
|
|
5349
5433
|
calls?: Array<GeneratePromptResponse.Call>;
|
|
5350
5434
|
/**
|
|
5351
|
-
* The
|
|
5435
|
+
* The Compute Units cost for the request billed
|
|
5352
5436
|
*/
|
|
5353
5437
|
creativeUnitsCost?: number;
|
|
5354
5438
|
/**
|
|
5355
|
-
* The
|
|
5439
|
+
* The Compute Units discount for the request billed
|
|
5356
5440
|
*/
|
|
5357
5441
|
creativeUnitsDiscount?: number;
|
|
5358
5442
|
/**
|
|
@@ -5377,7 +5461,7 @@ export declare namespace GeneratePromptResponse {
|
|
|
5377
5461
|
/**
|
|
5378
5462
|
* The type of job
|
|
5379
5463
|
*/
|
|
5380
|
-
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';
|
|
5464
|
+
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';
|
|
5381
5465
|
/**
|
|
5382
5466
|
* Metadata of the job with some additional information
|
|
5383
5467
|
*/
|
|
@@ -5667,7 +5751,7 @@ export declare namespace GeneratePromptResponse {
|
|
|
5667
5751
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
5668
5752
|
* available for \`model_array\` input type.
|
|
5669
5753
|
*/
|
|
5670
|
-
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' | '
|
|
5754
|
+
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'>;
|
|
5671
5755
|
/**
|
|
5672
5756
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
5673
5757
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -5825,7 +5909,7 @@ export declare namespace GeneratePromptResponse {
|
|
|
5825
5909
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
5826
5910
|
* available for \`model_array\` input type.
|
|
5827
5911
|
*/
|
|
5828
|
-
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' | '
|
|
5912
|
+
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'>;
|
|
5829
5913
|
/**
|
|
5830
5914
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
5831
5915
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -6046,6 +6130,12 @@ export declare namespace GeneratePromptResponse {
|
|
|
6046
6130
|
interface Billing {
|
|
6047
6131
|
cuCost: number;
|
|
6048
6132
|
cuDiscount: number;
|
|
6133
|
+
/**
|
|
6134
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
6135
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
6136
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
6137
|
+
*/
|
|
6138
|
+
disableRefund?: boolean;
|
|
6049
6139
|
}
|
|
6050
6140
|
}
|
|
6051
6141
|
/**
|
|
@@ -6138,11 +6228,11 @@ export declare namespace GeneratePromptResponse {
|
|
|
6138
6228
|
export interface GenerateRunModelResponse {
|
|
6139
6229
|
job: GenerateRunModelResponse.Job;
|
|
6140
6230
|
/**
|
|
6141
|
-
* The
|
|
6231
|
+
* The Compute Units cost for the request billed
|
|
6142
6232
|
*/
|
|
6143
6233
|
creativeUnitsCost?: number;
|
|
6144
6234
|
/**
|
|
6145
|
-
* The
|
|
6235
|
+
* The Compute Units discount for the request billed
|
|
6146
6236
|
*/
|
|
6147
6237
|
creativeUnitsDiscount?: number;
|
|
6148
6238
|
/**
|
|
@@ -6163,7 +6253,7 @@ export declare namespace GenerateRunModelResponse {
|
|
|
6163
6253
|
/**
|
|
6164
6254
|
* The type of job
|
|
6165
6255
|
*/
|
|
6166
|
-
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';
|
|
6256
|
+
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';
|
|
6167
6257
|
/**
|
|
6168
6258
|
* Metadata of the job with some additional information
|
|
6169
6259
|
*/
|
|
@@ -6453,7 +6543,7 @@ export declare namespace GenerateRunModelResponse {
|
|
|
6453
6543
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
6454
6544
|
* available for \`model_array\` input type.
|
|
6455
6545
|
*/
|
|
6456
|
-
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' | '
|
|
6546
|
+
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'>;
|
|
6457
6547
|
/**
|
|
6458
6548
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
6459
6549
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -6611,7 +6701,7 @@ export declare namespace GenerateRunModelResponse {
|
|
|
6611
6701
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
6612
6702
|
* available for \`model_array\` input type.
|
|
6613
6703
|
*/
|
|
6614
|
-
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' | '
|
|
6704
|
+
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'>;
|
|
6615
6705
|
/**
|
|
6616
6706
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
6617
6707
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -6832,6 +6922,12 @@ export declare namespace GenerateRunModelResponse {
|
|
|
6832
6922
|
interface Billing {
|
|
6833
6923
|
cuCost: number;
|
|
6834
6924
|
cuDiscount: number;
|
|
6925
|
+
/**
|
|
6926
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
6927
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
6928
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
6929
|
+
*/
|
|
6930
|
+
disableRefund?: boolean;
|
|
6835
6931
|
}
|
|
6836
6932
|
}
|
|
6837
6933
|
/**
|
|
@@ -6911,11 +7007,11 @@ export interface GenerateTranslateResponse {
|
|
|
6911
7007
|
*/
|
|
6912
7008
|
translation: string;
|
|
6913
7009
|
/**
|
|
6914
|
-
* The
|
|
7010
|
+
* The Compute Units cost for the request billed
|
|
6915
7011
|
*/
|
|
6916
7012
|
creativeUnitsCost?: number;
|
|
6917
7013
|
/**
|
|
6918
|
-
* The
|
|
7014
|
+
* The Compute Units discount for the request billed
|
|
6919
7015
|
*/
|
|
6920
7016
|
creativeUnitsDiscount?: number;
|
|
6921
7017
|
/**
|
|
@@ -6936,7 +7032,7 @@ export declare namespace GenerateTranslateResponse {
|
|
|
6936
7032
|
/**
|
|
6937
7033
|
* The type of job
|
|
6938
7034
|
*/
|
|
6939
|
-
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';
|
|
7035
|
+
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';
|
|
6940
7036
|
/**
|
|
6941
7037
|
* Metadata of the job with some additional information
|
|
6942
7038
|
*/
|
|
@@ -7226,7 +7322,7 @@ export declare namespace GenerateTranslateResponse {
|
|
|
7226
7322
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
7227
7323
|
* available for \`model_array\` input type.
|
|
7228
7324
|
*/
|
|
7229
|
-
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' | '
|
|
7325
|
+
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'>;
|
|
7230
7326
|
/**
|
|
7231
7327
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
7232
7328
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -7384,7 +7480,7 @@ export declare namespace GenerateTranslateResponse {
|
|
|
7384
7480
|
* The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
|
|
7385
7481
|
* available for \`model_array\` input type.
|
|
7386
7482
|
*/
|
|
7387
|
-
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' | '
|
|
7483
|
+
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'>;
|
|
7388
7484
|
/**
|
|
7389
7485
|
* Whether this input represents a parent asset to assign to the produced assets.
|
|
7390
7486
|
* Only available for \`file\` and \`file_array\` input types.
|
|
@@ -7605,6 +7701,12 @@ export declare namespace GenerateTranslateResponse {
|
|
|
7605
7701
|
interface Billing {
|
|
7606
7702
|
cuCost: number;
|
|
7607
7703
|
cuDiscount: number;
|
|
7704
|
+
/**
|
|
7705
|
+
* When true, the credits charged for this job are not automatically refunded if
|
|
7706
|
+
* the generation fails, because the model used does not support refund-on-failure.
|
|
7707
|
+
* Absent or false means a failed generation is refunded as usual.
|
|
7708
|
+
*/
|
|
7709
|
+
disableRefund?: boolean;
|
|
7608
7710
|
}
|
|
7609
7711
|
}
|
|
7610
7712
|
/**
|
|
@@ -7998,11 +8100,17 @@ export interface GeneratePromptParams {
|
|
|
7998
8100
|
* \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=\")
|
|
7999
8101
|
* or the asset IDs (example: \"asset_GTrL3mq4SXWyMxkOHRxlpw\").
|
|
8000
8102
|
*
|
|
8103
|
+
* A referenced asset ID may point to an image or a video. A video is used for
|
|
8104
|
+
* visual conditioning via its first and last frames (a single frame when only one
|
|
8105
|
+
* is available) and stays a single reference.
|
|
8106
|
+
*
|
|
8001
8107
|
* Notes:
|
|
8002
8108
|
*
|
|
8003
8109
|
* - in `contextual` mode, images condition prompt generation by using their actual
|
|
8004
8110
|
* descriptions as context
|
|
8005
8111
|
* - in all other modes, it supersedes the `modelId` parameter when provided.
|
|
8112
|
+
* - `contextual-v2` (and modes aliased to it) accepts up to 15 references; the
|
|
8113
|
+
* other modes accept up to 5.
|
|
8006
8114
|
*/
|
|
8007
8115
|
images?: Array<string>;
|
|
8008
8116
|
/**
|