@scenario-labs/sdk 0.1.3 → 0.3.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 +49 -0
- package/LICENSE +1 -1
- package/README.md +29 -27
- package/client.d.mts +33 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -16
- package/client.d.ts.map +1 -1
- package/client.js +88 -50
- package/client.js.map +1 -1
- package/client.mjs +86 -48
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +9 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +9 -3
- package/index.d.ts.map +1 -1
- package/index.js +18 -6
- package/index.js.map +1 -1
- package/index.mjs +8 -3
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/lib/generate.d.mts +19 -0
- package/lib/generate.d.mts.map +1 -0
- package/lib/generate.d.ts +19 -0
- package/lib/generate.d.ts.map +1 -0
- package/lib/generate.js +35 -0
- package/lib/generate.js.map +1 -0
- package/lib/generate.mjs +31 -0
- package/lib/generate.mjs.map +1 -0
- package/lib/job.d.mts +48 -0
- package/lib/job.d.mts.map +1 -0
- package/lib/job.d.ts +48 -0
- package/lib/job.d.ts.map +1 -0
- package/lib/job.js +50 -0
- package/lib/job.js.map +1 -0
- package/lib/job.mjs +45 -0
- package/lib/job.mjs.map +1 -0
- package/lib/models.d.mts +20 -0
- package/lib/models.d.mts.map +1 -0
- package/lib/models.d.ts +20 -0
- package/lib/models.d.ts.map +1 -0
- package/lib/models.js +28 -0
- package/lib/models.js.map +1 -0
- package/lib/models.mjs +23 -0
- package/lib/models.mjs.map +1 -0
- package/lib/scenario.d.mts +39 -0
- package/lib/scenario.d.mts.map +1 -0
- package/lib/scenario.d.ts +39 -0
- package/lib/scenario.d.ts.map +1 -0
- package/lib/scenario.js +46 -0
- package/lib/scenario.js.map +1 -0
- package/lib/scenario.mjs +42 -0
- package/lib/scenario.mjs.map +1 -0
- package/lib/workflow.d.mts +53 -0
- package/lib/workflow.d.mts.map +1 -0
- package/lib/workflow.d.ts +53 -0
- package/lib/workflow.d.ts.map +1 -0
- package/lib/workflow.js +67 -0
- package/lib/workflow.js.map +1 -0
- package/lib/workflow.mjs +62 -0
- package/lib/workflow.mjs.map +1 -0
- package/lib/workflow_validator.d.mts +22 -0
- package/lib/workflow_validator.d.mts.map +1 -0
- package/lib/workflow_validator.d.ts +22 -0
- package/lib/workflow_validator.d.ts.map +1 -0
- package/lib/workflow_validator.js +124 -0
- package/lib/workflow_validator.js.map +1 -0
- package/lib/workflow_validator.mjs +121 -0
- package/lib/workflow_validator.mjs.map +1 -0
- package/package.json +13 -3
- package/resources/assets/assets.d.mts +399 -88
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +399 -88
- 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/assets/public.d.mts +30 -27
- package/resources/assets/public.d.mts.map +1 -1
- package/resources/assets/public.d.ts +30 -27
- package/resources/assets/public.d.ts.map +1 -1
- package/resources/assets/public.js +2 -2
- package/resources/assets/public.js.map +1 -1
- package/resources/assets/public.mjs +2 -2
- package/resources/assets/public.mjs.map +1 -1
- package/resources/collections/collections.d.mts +1 -1
- package/resources/collections/collections.d.ts +1 -1
- package/resources/generate.d.mts +4188 -1370
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +4188 -1370
- package/resources/generate.d.ts.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 +943 -33
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +943 -33
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +3 -2
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +3 -2
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +8 -8
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +8 -8
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/examples.d.mts +640 -34
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +640 -34
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/models.d.mts +1323 -301
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +1323 -301
- 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 +718 -90
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +718 -90
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +9 -4
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +9 -4
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts +2 -2
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts +2 -2
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/search.d.mts +6 -31
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +6 -31
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +6 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +6 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts +1 -1
- package/resources/tags.d.ts +1 -1
- package/resources/usages.d.mts +401 -16
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +401 -16
- package/resources/usages.d.ts.map +1 -1
- package/resources/workflows.d.mts +2738 -101
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +2738 -101
- package/resources/workflows.d.ts.map +1 -1
- package/src/client.ts +102 -42
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +9 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/request-options.ts +2 -0
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/values.ts +6 -6
- package/src/lib/generate.ts +77 -0
- package/src/lib/job.ts +78 -0
- package/src/lib/models.ts +27 -0
- package/src/lib/scenario.ts +39 -0
- package/src/lib/workflow.ts +99 -0
- package/src/lib/workflow_validator.ts +167 -0
- package/src/resources/assets/assets.ts +788 -177
- package/src/resources/assets/public.ts +151 -29
- package/src/resources/collections/collections.ts +1 -1
- package/src/resources/generate.ts +6254 -2217
- package/src/resources/index.ts +2 -2
- package/src/resources/jobs.ts +1355 -26
- package/src/resources/models/description.ts +50 -8
- package/src/resources/models/examples.ts +906 -56
- package/src/resources/models/models.ts +1867 -330
- package/src/resources/models/train.ts +976 -98
- package/src/resources/models/training-images.ts +2 -2
- package/src/resources/search.ts +13 -39
- package/src/resources/tags.ts +1 -1
- package/src/resources/usages.ts +544 -11
- package/src/resources/workflows.ts +4586 -914
- 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
|
@@ -206,6 +206,7 @@ export namespace ModelCreateResponse {
|
|
|
206
206
|
| 'txt2img_texture'
|
|
207
207
|
| 'txt2txt'
|
|
208
208
|
| 'txt2video'
|
|
209
|
+
| 'video23d'
|
|
209
210
|
| 'video2img'
|
|
210
211
|
| 'video2video'
|
|
211
212
|
>;
|
|
@@ -261,6 +262,7 @@ export namespace ModelCreateResponse {
|
|
|
261
262
|
*/
|
|
262
263
|
type:
|
|
263
264
|
| 'custom'
|
|
265
|
+
| 'elevenlabs-voice'
|
|
264
266
|
| 'flux.1'
|
|
265
267
|
| 'flux.1-composition'
|
|
266
268
|
| 'flux.1-kontext-dev'
|
|
@@ -270,14 +272,32 @@ export namespace ModelCreateResponse {
|
|
|
270
272
|
| 'flux.1-lora'
|
|
271
273
|
| 'flux.1-pro'
|
|
272
274
|
| 'flux.1.1-pro-ultra'
|
|
275
|
+
| 'flux.2-dev-edit-lora'
|
|
276
|
+
| 'flux.2-dev-lora'
|
|
277
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
278
|
+
| 'flux.2-klein-4b-lora'
|
|
279
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
280
|
+
| 'flux.2-klein-9b-lora'
|
|
281
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
282
|
+
| 'flux.2-klein-base-4b-lora'
|
|
283
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
284
|
+
| 'flux.2-klein-base-9b-lora'
|
|
273
285
|
| 'flux1.1-pro'
|
|
274
286
|
| 'gpt-image-1'
|
|
287
|
+
| 'qwen-image-2512-lora'
|
|
288
|
+
| 'qwen-image-edit-2509-lora'
|
|
289
|
+
| 'qwen-image-edit-2511-lora'
|
|
290
|
+
| 'qwen-image-edit-lora'
|
|
291
|
+
| 'qwen-image-lora'
|
|
275
292
|
| 'sd-1_5'
|
|
276
293
|
| 'sd-1_5-composition'
|
|
277
294
|
| 'sd-1_5-lora'
|
|
278
295
|
| 'sd-xl'
|
|
279
296
|
| 'sd-xl-composition'
|
|
280
|
-
| 'sd-xl-lora'
|
|
297
|
+
| 'sd-xl-lora'
|
|
298
|
+
| 'zimage-de-turbo-lora'
|
|
299
|
+
| 'zimage-lora'
|
|
300
|
+
| 'zimage-turbo-lora';
|
|
281
301
|
|
|
282
302
|
/**
|
|
283
303
|
* The model last update date as an ISO string (example:
|
|
@@ -289,7 +309,7 @@ export namespace ModelCreateResponse {
|
|
|
289
309
|
* The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
|
|
290
310
|
* 75: Team plan 100: Enterprise plan
|
|
291
311
|
*/
|
|
292
|
-
accessRestrictions?:
|
|
312
|
+
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
293
313
|
|
|
294
314
|
/**
|
|
295
315
|
* The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
|
|
@@ -301,11 +321,6 @@ export namespace ModelCreateResponse {
|
|
|
301
321
|
*/
|
|
302
322
|
class?: Model.Class;
|
|
303
323
|
|
|
304
|
-
/**
|
|
305
|
-
* Compliance and regulatory metadata for the model
|
|
306
|
-
*/
|
|
307
|
-
complianceMetadata?: Model.ComplianceMetadata;
|
|
308
|
-
|
|
309
324
|
/**
|
|
310
325
|
* List of base model IDs compliant with the model (example: ["flux.1-dev",
|
|
311
326
|
* "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
|
|
@@ -365,6 +380,11 @@ export namespace ModelCreateResponse {
|
|
|
365
380
|
*/
|
|
366
381
|
parentModelId?: string;
|
|
367
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Aggregated performance stats
|
|
385
|
+
*/
|
|
386
|
+
performanceStats?: Model.PerformanceStats;
|
|
387
|
+
|
|
368
388
|
/**
|
|
369
389
|
* Fine-tune the model's inferences with prompt embedding
|
|
370
390
|
*/
|
|
@@ -465,36 +485,6 @@ export namespace ModelCreateResponse {
|
|
|
465
485
|
thumbnails: Array<string>;
|
|
466
486
|
}
|
|
467
487
|
|
|
468
|
-
/**
|
|
469
|
-
* Compliance and regulatory metadata for the model
|
|
470
|
-
*/
|
|
471
|
-
export interface ComplianceMetadata {
|
|
472
|
-
/**
|
|
473
|
-
* Data processing comment (e.g., zeroRetention, temporaryRetention, etc.)
|
|
474
|
-
*/
|
|
475
|
-
dataProcessingComment?: 'researchOnly' | 'serviceImprovement' | 'temporaryRetention' | 'zeroRetention';
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* URL to license terms
|
|
479
|
-
*/
|
|
480
|
-
licenseTerms?: string;
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* The maintainer of the model
|
|
484
|
-
*/
|
|
485
|
-
maintainer?: 'Fal' | 'Provider' | 'Replicate' | 'Scenario';
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* The provider of the model (examples: 'Google', 'AWS', 'BFL', 'Meshy', etc.)
|
|
489
|
-
*/
|
|
490
|
-
modelProvider?: string;
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* The sub-processor used for the model
|
|
494
|
-
*/
|
|
495
|
-
subProcessor?: 'AWS' | 'Fal' | 'Modal' | 'Provider' | 'Replicate';
|
|
496
|
-
}
|
|
497
|
-
|
|
498
488
|
export interface Concept {
|
|
499
489
|
/**
|
|
500
490
|
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
@@ -591,6 +581,11 @@ export namespace ModelCreateResponse {
|
|
|
591
581
|
*/
|
|
592
582
|
costImpact?: boolean;
|
|
593
583
|
|
|
584
|
+
/**
|
|
585
|
+
* The default value for the input
|
|
586
|
+
*/
|
|
587
|
+
default?: unknown;
|
|
588
|
+
|
|
594
589
|
/**
|
|
595
590
|
* Help text displayed in the UI to provide additional information about the input
|
|
596
591
|
*/
|
|
@@ -612,11 +607,13 @@ export namespace ModelCreateResponse {
|
|
|
612
607
|
* the same as the current object. This is only available for type inputs_array
|
|
613
608
|
* inputs.
|
|
614
609
|
*/
|
|
615
|
-
inputs?: Array<unknown>;
|
|
610
|
+
inputs?: Array<{ [key: string]: unknown }>;
|
|
616
611
|
|
|
617
612
|
/**
|
|
618
613
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
619
|
-
* \`file_array\` input types.
|
|
614
|
+
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
615
|
+
* not able to create the asset on the flight on API side with dataurl without
|
|
616
|
+
* data:kind, prefix
|
|
620
617
|
*/
|
|
621
618
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
622
619
|
|
|
@@ -642,6 +639,13 @@ export namespace ModelCreateResponse {
|
|
|
642
639
|
*/
|
|
643
640
|
maxLength?: number;
|
|
644
641
|
|
|
642
|
+
/**
|
|
643
|
+
* The maximum allowed file size in bytes. Only applies to \`file\` and
|
|
644
|
+
* \`file_array\` input types. Validated against \`asset.properties.size\` at job
|
|
645
|
+
* creation time.
|
|
646
|
+
*/
|
|
647
|
+
maxSize?: number;
|
|
648
|
+
|
|
645
649
|
/**
|
|
646
650
|
* The minimum allowed value. Only available for \`number\` and array input types.
|
|
647
651
|
*/
|
|
@@ -659,6 +663,7 @@ export namespace ModelCreateResponse {
|
|
|
659
663
|
*/
|
|
660
664
|
modelTypes?: Array<
|
|
661
665
|
| 'custom'
|
|
666
|
+
| 'elevenlabs-voice'
|
|
662
667
|
| 'flux.1'
|
|
663
668
|
| 'flux.1-composition'
|
|
664
669
|
| 'flux.1-kontext-dev'
|
|
@@ -668,14 +673,32 @@ export namespace ModelCreateResponse {
|
|
|
668
673
|
| 'flux.1-lora'
|
|
669
674
|
| 'flux.1-pro'
|
|
670
675
|
| 'flux.1.1-pro-ultra'
|
|
676
|
+
| 'flux.2-dev-edit-lora'
|
|
677
|
+
| 'flux.2-dev-lora'
|
|
678
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
679
|
+
| 'flux.2-klein-4b-lora'
|
|
680
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
681
|
+
| 'flux.2-klein-9b-lora'
|
|
682
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
683
|
+
| 'flux.2-klein-base-4b-lora'
|
|
684
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
685
|
+
| 'flux.2-klein-base-9b-lora'
|
|
671
686
|
| 'flux1.1-pro'
|
|
672
687
|
| 'gpt-image-1'
|
|
688
|
+
| 'qwen-image-2512-lora'
|
|
689
|
+
| 'qwen-image-edit-2509-lora'
|
|
690
|
+
| 'qwen-image-edit-2511-lora'
|
|
691
|
+
| 'qwen-image-edit-lora'
|
|
692
|
+
| 'qwen-image-lora'
|
|
673
693
|
| 'sd-1_5'
|
|
674
694
|
| 'sd-1_5-composition'
|
|
675
695
|
| 'sd-1_5-lora'
|
|
676
696
|
| 'sd-xl'
|
|
677
697
|
| 'sd-xl-composition'
|
|
678
698
|
| 'sd-xl-lora'
|
|
699
|
+
| 'zimage-de-turbo-lora'
|
|
700
|
+
| 'zimage-lora'
|
|
701
|
+
| 'zimage-turbo-lora'
|
|
679
702
|
>;
|
|
680
703
|
|
|
681
704
|
/**
|
|
@@ -772,6 +795,13 @@ export namespace ModelCreateResponse {
|
|
|
772
795
|
* The parameters of the model
|
|
773
796
|
*/
|
|
774
797
|
export interface Parameters {
|
|
798
|
+
/**
|
|
799
|
+
* Age group of the voice (for professional cloning)
|
|
800
|
+
*
|
|
801
|
+
* Only available for ElevenLabs voice training
|
|
802
|
+
*/
|
|
803
|
+
age?: string;
|
|
804
|
+
|
|
775
805
|
/**
|
|
776
806
|
* The batch size Less steps, and will increase the learning rate
|
|
777
807
|
*
|
|
@@ -786,6 +816,14 @@ export namespace ModelCreateResponse {
|
|
|
786
816
|
*/
|
|
787
817
|
classPrompt?: string;
|
|
788
818
|
|
|
819
|
+
/**
|
|
820
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
821
|
+
* requires captcha)
|
|
822
|
+
*
|
|
823
|
+
* Only available for ElevenLabs voice training
|
|
824
|
+
*/
|
|
825
|
+
cloneType?: string;
|
|
826
|
+
|
|
789
827
|
/**
|
|
790
828
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
791
829
|
* (example: "a daiton dog")
|
|
@@ -798,6 +836,20 @@ export namespace ModelCreateResponse {
|
|
|
798
836
|
*/
|
|
799
837
|
conceptPrompt?: string;
|
|
800
838
|
|
|
839
|
+
/**
|
|
840
|
+
* Gender of the voice (for professional cloning)
|
|
841
|
+
*
|
|
842
|
+
* Only available for ElevenLabs voice training
|
|
843
|
+
*/
|
|
844
|
+
gender?: string;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
848
|
+
*
|
|
849
|
+
* Only available for ElevenLabs voice training
|
|
850
|
+
*/
|
|
851
|
+
language?: string;
|
|
852
|
+
|
|
801
853
|
/**
|
|
802
854
|
* Initial learning rate (after the potential warmup period)
|
|
803
855
|
*
|
|
@@ -932,15 +984,27 @@ export namespace ModelCreateResponse {
|
|
|
932
984
|
/**
|
|
933
985
|
* The dimension of the LoRA update matrices
|
|
934
986
|
*
|
|
935
|
-
* Only available for SDXL
|
|
987
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
936
988
|
*
|
|
937
989
|
* Default value varies depending on the model type:
|
|
938
990
|
*
|
|
939
|
-
* - For SDXL: 64
|
|
991
|
+
* - For SDXL (deprecated): 64
|
|
940
992
|
* - For Flux: 16
|
|
993
|
+
* - For Musubi: 64
|
|
994
|
+
*
|
|
995
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
996
|
+
* 128])
|
|
941
997
|
*/
|
|
942
998
|
rank?: number;
|
|
943
999
|
|
|
1000
|
+
/**
|
|
1001
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
1002
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
1003
|
+
*
|
|
1004
|
+
* Only available for ElevenLabs voice training
|
|
1005
|
+
*/
|
|
1006
|
+
removeBackgroundNoise?: boolean;
|
|
1007
|
+
|
|
944
1008
|
/**
|
|
945
1009
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
946
1010
|
*/
|
|
@@ -994,12 +1058,148 @@ export namespace ModelCreateResponse {
|
|
|
994
1058
|
*/
|
|
995
1059
|
validationPrompt?: string;
|
|
996
1060
|
|
|
1061
|
+
/**
|
|
1062
|
+
* Description of the voice characteristics
|
|
1063
|
+
*
|
|
1064
|
+
* Only available for ElevenLabs voice training
|
|
1065
|
+
*/
|
|
1066
|
+
voiceDescription?: string;
|
|
1067
|
+
|
|
997
1068
|
/**
|
|
998
1069
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
999
1070
|
*/
|
|
1000
1071
|
wandbKey?: string;
|
|
1001
1072
|
}
|
|
1002
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* Aggregated performance stats
|
|
1076
|
+
*/
|
|
1077
|
+
export interface PerformanceStats {
|
|
1078
|
+
/**
|
|
1079
|
+
* Performance metrics per variant
|
|
1080
|
+
*/
|
|
1081
|
+
variants: Array<PerformanceStats.Variant>;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Default variant key for quick model comparison
|
|
1085
|
+
*/
|
|
1086
|
+
default?: string;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export namespace PerformanceStats {
|
|
1090
|
+
/**
|
|
1091
|
+
* Performance stats for a model variant
|
|
1092
|
+
*/
|
|
1093
|
+
export interface Variant {
|
|
1094
|
+
/**
|
|
1095
|
+
* The generation capability (example: "txt2img", "img2video", "txt2audio")
|
|
1096
|
+
*/
|
|
1097
|
+
capability: string;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* When these stats were last computed (ISO date)
|
|
1101
|
+
*/
|
|
1102
|
+
computedAt: string;
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
1106
|
+
*/
|
|
1107
|
+
variantKey: string;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* External quality score from arena.ai leaderboard
|
|
1111
|
+
*/
|
|
1112
|
+
arenaScore?: Variant.ArenaScore;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Maximum cost per output asset (CU)
|
|
1116
|
+
*/
|
|
1117
|
+
costPerAssetMaxCU?: number;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Minimum cost per output asset (CU)
|
|
1121
|
+
*/
|
|
1122
|
+
costPerAssetMinCU?: number;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Median cost per output asset (CU)
|
|
1126
|
+
*/
|
|
1127
|
+
costPerAssetP50CU?: number;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* Inference latency P50 per output asset (seconds)
|
|
1131
|
+
*/
|
|
1132
|
+
inferenceLatencyP50Sec?: number;
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* Inference latency P75 per output asset (seconds)
|
|
1136
|
+
*/
|
|
1137
|
+
inferenceLatencyP75Sec?: number;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
1141
|
+
*/
|
|
1142
|
+
resolution?: string;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
1146
|
+
*/
|
|
1147
|
+
totalLatencyP50Sec?: number;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
1151
|
+
*/
|
|
1152
|
+
totalLatencyP75Sec?: number;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
export namespace Variant {
|
|
1156
|
+
/**
|
|
1157
|
+
* External quality score from arena.ai leaderboard
|
|
1158
|
+
*/
|
|
1159
|
+
export interface ArenaScore {
|
|
1160
|
+
/**
|
|
1161
|
+
* Arena category (example: "text_to_image", "image_to_video")
|
|
1162
|
+
*/
|
|
1163
|
+
arenaCategory: string;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Model name on arena.ai
|
|
1167
|
+
*/
|
|
1168
|
+
arenaModelName: string;
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* When this score was last fetched (ISO date)
|
|
1172
|
+
*/
|
|
1173
|
+
fetchedAt: string;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Rank in the arena category
|
|
1177
|
+
*/
|
|
1178
|
+
rank: number;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* ELO rating
|
|
1182
|
+
*/
|
|
1183
|
+
rating: number;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* ELO rating confidence interval lower bound
|
|
1187
|
+
*/
|
|
1188
|
+
ratingLower: number;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* ELO rating confidence interval upper bound
|
|
1192
|
+
*/
|
|
1193
|
+
ratingUpper: number;
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Number of human votes
|
|
1197
|
+
*/
|
|
1198
|
+
votes: number;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1003
1203
|
/**
|
|
1004
1204
|
* A thumbnail for your model
|
|
1005
1205
|
*/
|
|
@@ -1073,7 +1273,7 @@ export namespace ModelCreateResponse {
|
|
|
1073
1273
|
/**
|
|
1074
1274
|
* The stage of the request
|
|
1075
1275
|
*/
|
|
1076
|
-
stage: 'pending' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
1276
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
1077
1277
|
|
|
1078
1278
|
/**
|
|
1079
1279
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
@@ -1302,6 +1502,7 @@ export namespace ModelRetrieveResponse {
|
|
|
1302
1502
|
| 'txt2img_texture'
|
|
1303
1503
|
| 'txt2txt'
|
|
1304
1504
|
| 'txt2video'
|
|
1505
|
+
| 'video23d'
|
|
1305
1506
|
| 'video2img'
|
|
1306
1507
|
| 'video2video'
|
|
1307
1508
|
>;
|
|
@@ -1357,6 +1558,7 @@ export namespace ModelRetrieveResponse {
|
|
|
1357
1558
|
*/
|
|
1358
1559
|
type:
|
|
1359
1560
|
| 'custom'
|
|
1561
|
+
| 'elevenlabs-voice'
|
|
1360
1562
|
| 'flux.1'
|
|
1361
1563
|
| 'flux.1-composition'
|
|
1362
1564
|
| 'flux.1-kontext-dev'
|
|
@@ -1366,14 +1568,32 @@ export namespace ModelRetrieveResponse {
|
|
|
1366
1568
|
| 'flux.1-lora'
|
|
1367
1569
|
| 'flux.1-pro'
|
|
1368
1570
|
| 'flux.1.1-pro-ultra'
|
|
1571
|
+
| 'flux.2-dev-edit-lora'
|
|
1572
|
+
| 'flux.2-dev-lora'
|
|
1573
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
1574
|
+
| 'flux.2-klein-4b-lora'
|
|
1575
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
1576
|
+
| 'flux.2-klein-9b-lora'
|
|
1577
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
1578
|
+
| 'flux.2-klein-base-4b-lora'
|
|
1579
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
1580
|
+
| 'flux.2-klein-base-9b-lora'
|
|
1369
1581
|
| 'flux1.1-pro'
|
|
1370
1582
|
| 'gpt-image-1'
|
|
1583
|
+
| 'qwen-image-2512-lora'
|
|
1584
|
+
| 'qwen-image-edit-2509-lora'
|
|
1585
|
+
| 'qwen-image-edit-2511-lora'
|
|
1586
|
+
| 'qwen-image-edit-lora'
|
|
1587
|
+
| 'qwen-image-lora'
|
|
1371
1588
|
| 'sd-1_5'
|
|
1372
1589
|
| 'sd-1_5-composition'
|
|
1373
1590
|
| 'sd-1_5-lora'
|
|
1374
1591
|
| 'sd-xl'
|
|
1375
1592
|
| 'sd-xl-composition'
|
|
1376
|
-
| 'sd-xl-lora'
|
|
1593
|
+
| 'sd-xl-lora'
|
|
1594
|
+
| 'zimage-de-turbo-lora'
|
|
1595
|
+
| 'zimage-lora'
|
|
1596
|
+
| 'zimage-turbo-lora';
|
|
1377
1597
|
|
|
1378
1598
|
/**
|
|
1379
1599
|
* The model last update date as an ISO string (example:
|
|
@@ -1385,7 +1605,7 @@ export namespace ModelRetrieveResponse {
|
|
|
1385
1605
|
* The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
|
|
1386
1606
|
* 75: Team plan 100: Enterprise plan
|
|
1387
1607
|
*/
|
|
1388
|
-
accessRestrictions?:
|
|
1608
|
+
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
1389
1609
|
|
|
1390
1610
|
/**
|
|
1391
1611
|
* The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
|
|
@@ -1397,11 +1617,6 @@ export namespace ModelRetrieveResponse {
|
|
|
1397
1617
|
*/
|
|
1398
1618
|
class?: Model.Class;
|
|
1399
1619
|
|
|
1400
|
-
/**
|
|
1401
|
-
* Compliance and regulatory metadata for the model
|
|
1402
|
-
*/
|
|
1403
|
-
complianceMetadata?: Model.ComplianceMetadata;
|
|
1404
|
-
|
|
1405
1620
|
/**
|
|
1406
1621
|
* List of base model IDs compliant with the model (example: ["flux.1-dev",
|
|
1407
1622
|
* "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
|
|
@@ -1461,6 +1676,11 @@ export namespace ModelRetrieveResponse {
|
|
|
1461
1676
|
*/
|
|
1462
1677
|
parentModelId?: string;
|
|
1463
1678
|
|
|
1679
|
+
/**
|
|
1680
|
+
* Aggregated performance stats
|
|
1681
|
+
*/
|
|
1682
|
+
performanceStats?: Model.PerformanceStats;
|
|
1683
|
+
|
|
1464
1684
|
/**
|
|
1465
1685
|
* Fine-tune the model's inferences with prompt embedding
|
|
1466
1686
|
*/
|
|
@@ -1561,36 +1781,6 @@ export namespace ModelRetrieveResponse {
|
|
|
1561
1781
|
thumbnails: Array<string>;
|
|
1562
1782
|
}
|
|
1563
1783
|
|
|
1564
|
-
/**
|
|
1565
|
-
* Compliance and regulatory metadata for the model
|
|
1566
|
-
*/
|
|
1567
|
-
export interface ComplianceMetadata {
|
|
1568
|
-
/**
|
|
1569
|
-
* Data processing comment (e.g., zeroRetention, temporaryRetention, etc.)
|
|
1570
|
-
*/
|
|
1571
|
-
dataProcessingComment?: 'researchOnly' | 'serviceImprovement' | 'temporaryRetention' | 'zeroRetention';
|
|
1572
|
-
|
|
1573
|
-
/**
|
|
1574
|
-
* URL to license terms
|
|
1575
|
-
*/
|
|
1576
|
-
licenseTerms?: string;
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
* The maintainer of the model
|
|
1580
|
-
*/
|
|
1581
|
-
maintainer?: 'Fal' | 'Provider' | 'Replicate' | 'Scenario';
|
|
1582
|
-
|
|
1583
|
-
/**
|
|
1584
|
-
* The provider of the model (examples: 'Google', 'AWS', 'BFL', 'Meshy', etc.)
|
|
1585
|
-
*/
|
|
1586
|
-
modelProvider?: string;
|
|
1587
|
-
|
|
1588
|
-
/**
|
|
1589
|
-
* The sub-processor used for the model
|
|
1590
|
-
*/
|
|
1591
|
-
subProcessor?: 'AWS' | 'Fal' | 'Modal' | 'Provider' | 'Replicate';
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
1784
|
export interface Concept {
|
|
1595
1785
|
/**
|
|
1596
1786
|
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
@@ -1687,6 +1877,11 @@ export namespace ModelRetrieveResponse {
|
|
|
1687
1877
|
*/
|
|
1688
1878
|
costImpact?: boolean;
|
|
1689
1879
|
|
|
1880
|
+
/**
|
|
1881
|
+
* The default value for the input
|
|
1882
|
+
*/
|
|
1883
|
+
default?: unknown;
|
|
1884
|
+
|
|
1690
1885
|
/**
|
|
1691
1886
|
* Help text displayed in the UI to provide additional information about the input
|
|
1692
1887
|
*/
|
|
@@ -1708,11 +1903,13 @@ export namespace ModelRetrieveResponse {
|
|
|
1708
1903
|
* the same as the current object. This is only available for type inputs_array
|
|
1709
1904
|
* inputs.
|
|
1710
1905
|
*/
|
|
1711
|
-
inputs?: Array<unknown>;
|
|
1906
|
+
inputs?: Array<{ [key: string]: unknown }>;
|
|
1712
1907
|
|
|
1713
1908
|
/**
|
|
1714
1909
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1715
|
-
* \`file_array\` input types.
|
|
1910
|
+
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1911
|
+
* not able to create the asset on the flight on API side with dataurl without
|
|
1912
|
+
* data:kind, prefix
|
|
1716
1913
|
*/
|
|
1717
1914
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
1718
1915
|
|
|
@@ -1738,6 +1935,13 @@ export namespace ModelRetrieveResponse {
|
|
|
1738
1935
|
*/
|
|
1739
1936
|
maxLength?: number;
|
|
1740
1937
|
|
|
1938
|
+
/**
|
|
1939
|
+
* The maximum allowed file size in bytes. Only applies to \`file\` and
|
|
1940
|
+
* \`file_array\` input types. Validated against \`asset.properties.size\` at job
|
|
1941
|
+
* creation time.
|
|
1942
|
+
*/
|
|
1943
|
+
maxSize?: number;
|
|
1944
|
+
|
|
1741
1945
|
/**
|
|
1742
1946
|
* The minimum allowed value. Only available for \`number\` and array input types.
|
|
1743
1947
|
*/
|
|
@@ -1755,6 +1959,7 @@ export namespace ModelRetrieveResponse {
|
|
|
1755
1959
|
*/
|
|
1756
1960
|
modelTypes?: Array<
|
|
1757
1961
|
| 'custom'
|
|
1962
|
+
| 'elevenlabs-voice'
|
|
1758
1963
|
| 'flux.1'
|
|
1759
1964
|
| 'flux.1-composition'
|
|
1760
1965
|
| 'flux.1-kontext-dev'
|
|
@@ -1764,14 +1969,32 @@ export namespace ModelRetrieveResponse {
|
|
|
1764
1969
|
| 'flux.1-lora'
|
|
1765
1970
|
| 'flux.1-pro'
|
|
1766
1971
|
| 'flux.1.1-pro-ultra'
|
|
1972
|
+
| 'flux.2-dev-edit-lora'
|
|
1973
|
+
| 'flux.2-dev-lora'
|
|
1974
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
1975
|
+
| 'flux.2-klein-4b-lora'
|
|
1976
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
1977
|
+
| 'flux.2-klein-9b-lora'
|
|
1978
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
1979
|
+
| 'flux.2-klein-base-4b-lora'
|
|
1980
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
1981
|
+
| 'flux.2-klein-base-9b-lora'
|
|
1767
1982
|
| 'flux1.1-pro'
|
|
1768
1983
|
| 'gpt-image-1'
|
|
1984
|
+
| 'qwen-image-2512-lora'
|
|
1985
|
+
| 'qwen-image-edit-2509-lora'
|
|
1986
|
+
| 'qwen-image-edit-2511-lora'
|
|
1987
|
+
| 'qwen-image-edit-lora'
|
|
1988
|
+
| 'qwen-image-lora'
|
|
1769
1989
|
| 'sd-1_5'
|
|
1770
1990
|
| 'sd-1_5-composition'
|
|
1771
1991
|
| 'sd-1_5-lora'
|
|
1772
1992
|
| 'sd-xl'
|
|
1773
1993
|
| 'sd-xl-composition'
|
|
1774
1994
|
| 'sd-xl-lora'
|
|
1995
|
+
| 'zimage-de-turbo-lora'
|
|
1996
|
+
| 'zimage-lora'
|
|
1997
|
+
| 'zimage-turbo-lora'
|
|
1775
1998
|
>;
|
|
1776
1999
|
|
|
1777
2000
|
/**
|
|
@@ -1868,6 +2091,13 @@ export namespace ModelRetrieveResponse {
|
|
|
1868
2091
|
* The parameters of the model
|
|
1869
2092
|
*/
|
|
1870
2093
|
export interface Parameters {
|
|
2094
|
+
/**
|
|
2095
|
+
* Age group of the voice (for professional cloning)
|
|
2096
|
+
*
|
|
2097
|
+
* Only available for ElevenLabs voice training
|
|
2098
|
+
*/
|
|
2099
|
+
age?: string;
|
|
2100
|
+
|
|
1871
2101
|
/**
|
|
1872
2102
|
* The batch size Less steps, and will increase the learning rate
|
|
1873
2103
|
*
|
|
@@ -1882,6 +2112,14 @@ export namespace ModelRetrieveResponse {
|
|
|
1882
2112
|
*/
|
|
1883
2113
|
classPrompt?: string;
|
|
1884
2114
|
|
|
2115
|
+
/**
|
|
2116
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
2117
|
+
* requires captcha)
|
|
2118
|
+
*
|
|
2119
|
+
* Only available for ElevenLabs voice training
|
|
2120
|
+
*/
|
|
2121
|
+
cloneType?: string;
|
|
2122
|
+
|
|
1885
2123
|
/**
|
|
1886
2124
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
1887
2125
|
* (example: "a daiton dog")
|
|
@@ -1894,6 +2132,20 @@ export namespace ModelRetrieveResponse {
|
|
|
1894
2132
|
*/
|
|
1895
2133
|
conceptPrompt?: string;
|
|
1896
2134
|
|
|
2135
|
+
/**
|
|
2136
|
+
* Gender of the voice (for professional cloning)
|
|
2137
|
+
*
|
|
2138
|
+
* Only available for ElevenLabs voice training
|
|
2139
|
+
*/
|
|
2140
|
+
gender?: string;
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
2144
|
+
*
|
|
2145
|
+
* Only available for ElevenLabs voice training
|
|
2146
|
+
*/
|
|
2147
|
+
language?: string;
|
|
2148
|
+
|
|
1897
2149
|
/**
|
|
1898
2150
|
* Initial learning rate (after the potential warmup period)
|
|
1899
2151
|
*
|
|
@@ -2028,15 +2280,27 @@ export namespace ModelRetrieveResponse {
|
|
|
2028
2280
|
/**
|
|
2029
2281
|
* The dimension of the LoRA update matrices
|
|
2030
2282
|
*
|
|
2031
|
-
* Only available for SDXL
|
|
2283
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
2032
2284
|
*
|
|
2033
2285
|
* Default value varies depending on the model type:
|
|
2034
2286
|
*
|
|
2035
|
-
* - For SDXL: 64
|
|
2287
|
+
* - For SDXL (deprecated): 64
|
|
2036
2288
|
* - For Flux: 16
|
|
2289
|
+
* - For Musubi: 64
|
|
2290
|
+
*
|
|
2291
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
2292
|
+
* 128])
|
|
2037
2293
|
*/
|
|
2038
2294
|
rank?: number;
|
|
2039
2295
|
|
|
2296
|
+
/**
|
|
2297
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
2298
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
2299
|
+
*
|
|
2300
|
+
* Only available for ElevenLabs voice training
|
|
2301
|
+
*/
|
|
2302
|
+
removeBackgroundNoise?: boolean;
|
|
2303
|
+
|
|
2040
2304
|
/**
|
|
2041
2305
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
2042
2306
|
*/
|
|
@@ -2090,12 +2354,148 @@ export namespace ModelRetrieveResponse {
|
|
|
2090
2354
|
*/
|
|
2091
2355
|
validationPrompt?: string;
|
|
2092
2356
|
|
|
2357
|
+
/**
|
|
2358
|
+
* Description of the voice characteristics
|
|
2359
|
+
*
|
|
2360
|
+
* Only available for ElevenLabs voice training
|
|
2361
|
+
*/
|
|
2362
|
+
voiceDescription?: string;
|
|
2363
|
+
|
|
2093
2364
|
/**
|
|
2094
2365
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
2095
2366
|
*/
|
|
2096
2367
|
wandbKey?: string;
|
|
2097
2368
|
}
|
|
2098
2369
|
|
|
2370
|
+
/**
|
|
2371
|
+
* Aggregated performance stats
|
|
2372
|
+
*/
|
|
2373
|
+
export interface PerformanceStats {
|
|
2374
|
+
/**
|
|
2375
|
+
* Performance metrics per variant
|
|
2376
|
+
*/
|
|
2377
|
+
variants: Array<PerformanceStats.Variant>;
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* Default variant key for quick model comparison
|
|
2381
|
+
*/
|
|
2382
|
+
default?: string;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
export namespace PerformanceStats {
|
|
2386
|
+
/**
|
|
2387
|
+
* Performance stats for a model variant
|
|
2388
|
+
*/
|
|
2389
|
+
export interface Variant {
|
|
2390
|
+
/**
|
|
2391
|
+
* The generation capability (example: "txt2img", "img2video", "txt2audio")
|
|
2392
|
+
*/
|
|
2393
|
+
capability: string;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* When these stats were last computed (ISO date)
|
|
2397
|
+
*/
|
|
2398
|
+
computedAt: string;
|
|
2399
|
+
|
|
2400
|
+
/**
|
|
2401
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
2402
|
+
*/
|
|
2403
|
+
variantKey: string;
|
|
2404
|
+
|
|
2405
|
+
/**
|
|
2406
|
+
* External quality score from arena.ai leaderboard
|
|
2407
|
+
*/
|
|
2408
|
+
arenaScore?: Variant.ArenaScore;
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* Maximum cost per output asset (CU)
|
|
2412
|
+
*/
|
|
2413
|
+
costPerAssetMaxCU?: number;
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* Minimum cost per output asset (CU)
|
|
2417
|
+
*/
|
|
2418
|
+
costPerAssetMinCU?: number;
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Median cost per output asset (CU)
|
|
2422
|
+
*/
|
|
2423
|
+
costPerAssetP50CU?: number;
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Inference latency P50 per output asset (seconds)
|
|
2427
|
+
*/
|
|
2428
|
+
inferenceLatencyP50Sec?: number;
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* Inference latency P75 per output asset (seconds)
|
|
2432
|
+
*/
|
|
2433
|
+
inferenceLatencyP75Sec?: number;
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
2437
|
+
*/
|
|
2438
|
+
resolution?: string;
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
2442
|
+
*/
|
|
2443
|
+
totalLatencyP50Sec?: number;
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
2447
|
+
*/
|
|
2448
|
+
totalLatencyP75Sec?: number;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
export namespace Variant {
|
|
2452
|
+
/**
|
|
2453
|
+
* External quality score from arena.ai leaderboard
|
|
2454
|
+
*/
|
|
2455
|
+
export interface ArenaScore {
|
|
2456
|
+
/**
|
|
2457
|
+
* Arena category (example: "text_to_image", "image_to_video")
|
|
2458
|
+
*/
|
|
2459
|
+
arenaCategory: string;
|
|
2460
|
+
|
|
2461
|
+
/**
|
|
2462
|
+
* Model name on arena.ai
|
|
2463
|
+
*/
|
|
2464
|
+
arenaModelName: string;
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* When this score was last fetched (ISO date)
|
|
2468
|
+
*/
|
|
2469
|
+
fetchedAt: string;
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* Rank in the arena category
|
|
2473
|
+
*/
|
|
2474
|
+
rank: number;
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* ELO rating
|
|
2478
|
+
*/
|
|
2479
|
+
rating: number;
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* ELO rating confidence interval lower bound
|
|
2483
|
+
*/
|
|
2484
|
+
ratingLower: number;
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* ELO rating confidence interval upper bound
|
|
2488
|
+
*/
|
|
2489
|
+
ratingUpper: number;
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* Number of human votes
|
|
2493
|
+
*/
|
|
2494
|
+
votes: number;
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2099
2499
|
/**
|
|
2100
2500
|
* A thumbnail for your model
|
|
2101
2501
|
*/
|
|
@@ -2169,7 +2569,7 @@ export namespace ModelRetrieveResponse {
|
|
|
2169
2569
|
/**
|
|
2170
2570
|
* The stage of the request
|
|
2171
2571
|
*/
|
|
2172
|
-
stage: 'pending' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
2572
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
2173
2573
|
|
|
2174
2574
|
/**
|
|
2175
2575
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
@@ -2398,6 +2798,7 @@ export namespace ModelUpdateResponse {
|
|
|
2398
2798
|
| 'txt2img_texture'
|
|
2399
2799
|
| 'txt2txt'
|
|
2400
2800
|
| 'txt2video'
|
|
2801
|
+
| 'video23d'
|
|
2401
2802
|
| 'video2img'
|
|
2402
2803
|
| 'video2video'
|
|
2403
2804
|
>;
|
|
@@ -2453,6 +2854,7 @@ export namespace ModelUpdateResponse {
|
|
|
2453
2854
|
*/
|
|
2454
2855
|
type:
|
|
2455
2856
|
| 'custom'
|
|
2857
|
+
| 'elevenlabs-voice'
|
|
2456
2858
|
| 'flux.1'
|
|
2457
2859
|
| 'flux.1-composition'
|
|
2458
2860
|
| 'flux.1-kontext-dev'
|
|
@@ -2462,14 +2864,32 @@ export namespace ModelUpdateResponse {
|
|
|
2462
2864
|
| 'flux.1-lora'
|
|
2463
2865
|
| 'flux.1-pro'
|
|
2464
2866
|
| 'flux.1.1-pro-ultra'
|
|
2867
|
+
| 'flux.2-dev-edit-lora'
|
|
2868
|
+
| 'flux.2-dev-lora'
|
|
2869
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
2870
|
+
| 'flux.2-klein-4b-lora'
|
|
2871
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
2872
|
+
| 'flux.2-klein-9b-lora'
|
|
2873
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
2874
|
+
| 'flux.2-klein-base-4b-lora'
|
|
2875
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
2876
|
+
| 'flux.2-klein-base-9b-lora'
|
|
2465
2877
|
| 'flux1.1-pro'
|
|
2466
2878
|
| 'gpt-image-1'
|
|
2879
|
+
| 'qwen-image-2512-lora'
|
|
2880
|
+
| 'qwen-image-edit-2509-lora'
|
|
2881
|
+
| 'qwen-image-edit-2511-lora'
|
|
2882
|
+
| 'qwen-image-edit-lora'
|
|
2883
|
+
| 'qwen-image-lora'
|
|
2467
2884
|
| 'sd-1_5'
|
|
2468
2885
|
| 'sd-1_5-composition'
|
|
2469
2886
|
| 'sd-1_5-lora'
|
|
2470
2887
|
| 'sd-xl'
|
|
2471
2888
|
| 'sd-xl-composition'
|
|
2472
|
-
| 'sd-xl-lora'
|
|
2889
|
+
| 'sd-xl-lora'
|
|
2890
|
+
| 'zimage-de-turbo-lora'
|
|
2891
|
+
| 'zimage-lora'
|
|
2892
|
+
| 'zimage-turbo-lora';
|
|
2473
2893
|
|
|
2474
2894
|
/**
|
|
2475
2895
|
* The model last update date as an ISO string (example:
|
|
@@ -2481,7 +2901,7 @@ export namespace ModelUpdateResponse {
|
|
|
2481
2901
|
* The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
|
|
2482
2902
|
* 75: Team plan 100: Enterprise plan
|
|
2483
2903
|
*/
|
|
2484
|
-
accessRestrictions?:
|
|
2904
|
+
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
2485
2905
|
|
|
2486
2906
|
/**
|
|
2487
2907
|
* The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
|
|
@@ -2493,11 +2913,6 @@ export namespace ModelUpdateResponse {
|
|
|
2493
2913
|
*/
|
|
2494
2914
|
class?: Model.Class;
|
|
2495
2915
|
|
|
2496
|
-
/**
|
|
2497
|
-
* Compliance and regulatory metadata for the model
|
|
2498
|
-
*/
|
|
2499
|
-
complianceMetadata?: Model.ComplianceMetadata;
|
|
2500
|
-
|
|
2501
2916
|
/**
|
|
2502
2917
|
* List of base model IDs compliant with the model (example: ["flux.1-dev",
|
|
2503
2918
|
* "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
|
|
@@ -2557,6 +2972,11 @@ export namespace ModelUpdateResponse {
|
|
|
2557
2972
|
*/
|
|
2558
2973
|
parentModelId?: string;
|
|
2559
2974
|
|
|
2975
|
+
/**
|
|
2976
|
+
* Aggregated performance stats
|
|
2977
|
+
*/
|
|
2978
|
+
performanceStats?: Model.PerformanceStats;
|
|
2979
|
+
|
|
2560
2980
|
/**
|
|
2561
2981
|
* Fine-tune the model's inferences with prompt embedding
|
|
2562
2982
|
*/
|
|
@@ -2657,36 +3077,6 @@ export namespace ModelUpdateResponse {
|
|
|
2657
3077
|
thumbnails: Array<string>;
|
|
2658
3078
|
}
|
|
2659
3079
|
|
|
2660
|
-
/**
|
|
2661
|
-
* Compliance and regulatory metadata for the model
|
|
2662
|
-
*/
|
|
2663
|
-
export interface ComplianceMetadata {
|
|
2664
|
-
/**
|
|
2665
|
-
* Data processing comment (e.g., zeroRetention, temporaryRetention, etc.)
|
|
2666
|
-
*/
|
|
2667
|
-
dataProcessingComment?: 'researchOnly' | 'serviceImprovement' | 'temporaryRetention' | 'zeroRetention';
|
|
2668
|
-
|
|
2669
|
-
/**
|
|
2670
|
-
* URL to license terms
|
|
2671
|
-
*/
|
|
2672
|
-
licenseTerms?: string;
|
|
2673
|
-
|
|
2674
|
-
/**
|
|
2675
|
-
* The maintainer of the model
|
|
2676
|
-
*/
|
|
2677
|
-
maintainer?: 'Fal' | 'Provider' | 'Replicate' | 'Scenario';
|
|
2678
|
-
|
|
2679
|
-
/**
|
|
2680
|
-
* The provider of the model (examples: 'Google', 'AWS', 'BFL', 'Meshy', etc.)
|
|
2681
|
-
*/
|
|
2682
|
-
modelProvider?: string;
|
|
2683
|
-
|
|
2684
|
-
/**
|
|
2685
|
-
* The sub-processor used for the model
|
|
2686
|
-
*/
|
|
2687
|
-
subProcessor?: 'AWS' | 'Fal' | 'Modal' | 'Provider' | 'Replicate';
|
|
2688
|
-
}
|
|
2689
|
-
|
|
2690
3080
|
export interface Concept {
|
|
2691
3081
|
/**
|
|
2692
3082
|
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
@@ -2783,6 +3173,11 @@ export namespace ModelUpdateResponse {
|
|
|
2783
3173
|
*/
|
|
2784
3174
|
costImpact?: boolean;
|
|
2785
3175
|
|
|
3176
|
+
/**
|
|
3177
|
+
* The default value for the input
|
|
3178
|
+
*/
|
|
3179
|
+
default?: unknown;
|
|
3180
|
+
|
|
2786
3181
|
/**
|
|
2787
3182
|
* Help text displayed in the UI to provide additional information about the input
|
|
2788
3183
|
*/
|
|
@@ -2804,11 +3199,13 @@ export namespace ModelUpdateResponse {
|
|
|
2804
3199
|
* the same as the current object. This is only available for type inputs_array
|
|
2805
3200
|
* inputs.
|
|
2806
3201
|
*/
|
|
2807
|
-
inputs?: Array<unknown>;
|
|
3202
|
+
inputs?: Array<{ [key: string]: unknown }>;
|
|
2808
3203
|
|
|
2809
3204
|
/**
|
|
2810
3205
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2811
|
-
* \`file_array\` input types.
|
|
3206
|
+
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3207
|
+
* not able to create the asset on the flight on API side with dataurl without
|
|
3208
|
+
* data:kind, prefix
|
|
2812
3209
|
*/
|
|
2813
3210
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
2814
3211
|
|
|
@@ -2834,6 +3231,13 @@ export namespace ModelUpdateResponse {
|
|
|
2834
3231
|
*/
|
|
2835
3232
|
maxLength?: number;
|
|
2836
3233
|
|
|
3234
|
+
/**
|
|
3235
|
+
* The maximum allowed file size in bytes. Only applies to \`file\` and
|
|
3236
|
+
* \`file_array\` input types. Validated against \`asset.properties.size\` at job
|
|
3237
|
+
* creation time.
|
|
3238
|
+
*/
|
|
3239
|
+
maxSize?: number;
|
|
3240
|
+
|
|
2837
3241
|
/**
|
|
2838
3242
|
* The minimum allowed value. Only available for \`number\` and array input types.
|
|
2839
3243
|
*/
|
|
@@ -2851,6 +3255,7 @@ export namespace ModelUpdateResponse {
|
|
|
2851
3255
|
*/
|
|
2852
3256
|
modelTypes?: Array<
|
|
2853
3257
|
| 'custom'
|
|
3258
|
+
| 'elevenlabs-voice'
|
|
2854
3259
|
| 'flux.1'
|
|
2855
3260
|
| 'flux.1-composition'
|
|
2856
3261
|
| 'flux.1-kontext-dev'
|
|
@@ -2860,14 +3265,32 @@ export namespace ModelUpdateResponse {
|
|
|
2860
3265
|
| 'flux.1-lora'
|
|
2861
3266
|
| 'flux.1-pro'
|
|
2862
3267
|
| 'flux.1.1-pro-ultra'
|
|
3268
|
+
| 'flux.2-dev-edit-lora'
|
|
3269
|
+
| 'flux.2-dev-lora'
|
|
3270
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
3271
|
+
| 'flux.2-klein-4b-lora'
|
|
3272
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
3273
|
+
| 'flux.2-klein-9b-lora'
|
|
3274
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
3275
|
+
| 'flux.2-klein-base-4b-lora'
|
|
3276
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
3277
|
+
| 'flux.2-klein-base-9b-lora'
|
|
2863
3278
|
| 'flux1.1-pro'
|
|
2864
3279
|
| 'gpt-image-1'
|
|
3280
|
+
| 'qwen-image-2512-lora'
|
|
3281
|
+
| 'qwen-image-edit-2509-lora'
|
|
3282
|
+
| 'qwen-image-edit-2511-lora'
|
|
3283
|
+
| 'qwen-image-edit-lora'
|
|
3284
|
+
| 'qwen-image-lora'
|
|
2865
3285
|
| 'sd-1_5'
|
|
2866
3286
|
| 'sd-1_5-composition'
|
|
2867
3287
|
| 'sd-1_5-lora'
|
|
2868
3288
|
| 'sd-xl'
|
|
2869
3289
|
| 'sd-xl-composition'
|
|
2870
3290
|
| 'sd-xl-lora'
|
|
3291
|
+
| 'zimage-de-turbo-lora'
|
|
3292
|
+
| 'zimage-lora'
|
|
3293
|
+
| 'zimage-turbo-lora'
|
|
2871
3294
|
>;
|
|
2872
3295
|
|
|
2873
3296
|
/**
|
|
@@ -2964,6 +3387,13 @@ export namespace ModelUpdateResponse {
|
|
|
2964
3387
|
* The parameters of the model
|
|
2965
3388
|
*/
|
|
2966
3389
|
export interface Parameters {
|
|
3390
|
+
/**
|
|
3391
|
+
* Age group of the voice (for professional cloning)
|
|
3392
|
+
*
|
|
3393
|
+
* Only available for ElevenLabs voice training
|
|
3394
|
+
*/
|
|
3395
|
+
age?: string;
|
|
3396
|
+
|
|
2967
3397
|
/**
|
|
2968
3398
|
* The batch size Less steps, and will increase the learning rate
|
|
2969
3399
|
*
|
|
@@ -2978,6 +3408,14 @@ export namespace ModelUpdateResponse {
|
|
|
2978
3408
|
*/
|
|
2979
3409
|
classPrompt?: string;
|
|
2980
3410
|
|
|
3411
|
+
/**
|
|
3412
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
3413
|
+
* requires captcha)
|
|
3414
|
+
*
|
|
3415
|
+
* Only available for ElevenLabs voice training
|
|
3416
|
+
*/
|
|
3417
|
+
cloneType?: string;
|
|
3418
|
+
|
|
2981
3419
|
/**
|
|
2982
3420
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
2983
3421
|
* (example: "a daiton dog")
|
|
@@ -2990,6 +3428,20 @@ export namespace ModelUpdateResponse {
|
|
|
2990
3428
|
*/
|
|
2991
3429
|
conceptPrompt?: string;
|
|
2992
3430
|
|
|
3431
|
+
/**
|
|
3432
|
+
* Gender of the voice (for professional cloning)
|
|
3433
|
+
*
|
|
3434
|
+
* Only available for ElevenLabs voice training
|
|
3435
|
+
*/
|
|
3436
|
+
gender?: string;
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
3440
|
+
*
|
|
3441
|
+
* Only available for ElevenLabs voice training
|
|
3442
|
+
*/
|
|
3443
|
+
language?: string;
|
|
3444
|
+
|
|
2993
3445
|
/**
|
|
2994
3446
|
* Initial learning rate (after the potential warmup period)
|
|
2995
3447
|
*
|
|
@@ -3124,15 +3576,27 @@ export namespace ModelUpdateResponse {
|
|
|
3124
3576
|
/**
|
|
3125
3577
|
* The dimension of the LoRA update matrices
|
|
3126
3578
|
*
|
|
3127
|
-
* Only available for SDXL
|
|
3579
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
3128
3580
|
*
|
|
3129
3581
|
* Default value varies depending on the model type:
|
|
3130
3582
|
*
|
|
3131
|
-
* - For SDXL: 64
|
|
3583
|
+
* - For SDXL (deprecated): 64
|
|
3132
3584
|
* - For Flux: 16
|
|
3585
|
+
* - For Musubi: 64
|
|
3586
|
+
*
|
|
3587
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
3588
|
+
* 128])
|
|
3133
3589
|
*/
|
|
3134
3590
|
rank?: number;
|
|
3135
3591
|
|
|
3592
|
+
/**
|
|
3593
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
3594
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
3595
|
+
*
|
|
3596
|
+
* Only available for ElevenLabs voice training
|
|
3597
|
+
*/
|
|
3598
|
+
removeBackgroundNoise?: boolean;
|
|
3599
|
+
|
|
3136
3600
|
/**
|
|
3137
3601
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
3138
3602
|
*/
|
|
@@ -3186,12 +3650,148 @@ export namespace ModelUpdateResponse {
|
|
|
3186
3650
|
*/
|
|
3187
3651
|
validationPrompt?: string;
|
|
3188
3652
|
|
|
3653
|
+
/**
|
|
3654
|
+
* Description of the voice characteristics
|
|
3655
|
+
*
|
|
3656
|
+
* Only available for ElevenLabs voice training
|
|
3657
|
+
*/
|
|
3658
|
+
voiceDescription?: string;
|
|
3659
|
+
|
|
3189
3660
|
/**
|
|
3190
3661
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
3191
3662
|
*/
|
|
3192
3663
|
wandbKey?: string;
|
|
3193
3664
|
}
|
|
3194
3665
|
|
|
3666
|
+
/**
|
|
3667
|
+
* Aggregated performance stats
|
|
3668
|
+
*/
|
|
3669
|
+
export interface PerformanceStats {
|
|
3670
|
+
/**
|
|
3671
|
+
* Performance metrics per variant
|
|
3672
|
+
*/
|
|
3673
|
+
variants: Array<PerformanceStats.Variant>;
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* Default variant key for quick model comparison
|
|
3677
|
+
*/
|
|
3678
|
+
default?: string;
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
export namespace PerformanceStats {
|
|
3682
|
+
/**
|
|
3683
|
+
* Performance stats for a model variant
|
|
3684
|
+
*/
|
|
3685
|
+
export interface Variant {
|
|
3686
|
+
/**
|
|
3687
|
+
* The generation capability (example: "txt2img", "img2video", "txt2audio")
|
|
3688
|
+
*/
|
|
3689
|
+
capability: string;
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* When these stats were last computed (ISO date)
|
|
3693
|
+
*/
|
|
3694
|
+
computedAt: string;
|
|
3695
|
+
|
|
3696
|
+
/**
|
|
3697
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
3698
|
+
*/
|
|
3699
|
+
variantKey: string;
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* External quality score from arena.ai leaderboard
|
|
3703
|
+
*/
|
|
3704
|
+
arenaScore?: Variant.ArenaScore;
|
|
3705
|
+
|
|
3706
|
+
/**
|
|
3707
|
+
* Maximum cost per output asset (CU)
|
|
3708
|
+
*/
|
|
3709
|
+
costPerAssetMaxCU?: number;
|
|
3710
|
+
|
|
3711
|
+
/**
|
|
3712
|
+
* Minimum cost per output asset (CU)
|
|
3713
|
+
*/
|
|
3714
|
+
costPerAssetMinCU?: number;
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* Median cost per output asset (CU)
|
|
3718
|
+
*/
|
|
3719
|
+
costPerAssetP50CU?: number;
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* Inference latency P50 per output asset (seconds)
|
|
3723
|
+
*/
|
|
3724
|
+
inferenceLatencyP50Sec?: number;
|
|
3725
|
+
|
|
3726
|
+
/**
|
|
3727
|
+
* Inference latency P75 per output asset (seconds)
|
|
3728
|
+
*/
|
|
3729
|
+
inferenceLatencyP75Sec?: number;
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
3733
|
+
*/
|
|
3734
|
+
resolution?: string;
|
|
3735
|
+
|
|
3736
|
+
/**
|
|
3737
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
3738
|
+
*/
|
|
3739
|
+
totalLatencyP50Sec?: number;
|
|
3740
|
+
|
|
3741
|
+
/**
|
|
3742
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
3743
|
+
*/
|
|
3744
|
+
totalLatencyP75Sec?: number;
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3747
|
+
export namespace Variant {
|
|
3748
|
+
/**
|
|
3749
|
+
* External quality score from arena.ai leaderboard
|
|
3750
|
+
*/
|
|
3751
|
+
export interface ArenaScore {
|
|
3752
|
+
/**
|
|
3753
|
+
* Arena category (example: "text_to_image", "image_to_video")
|
|
3754
|
+
*/
|
|
3755
|
+
arenaCategory: string;
|
|
3756
|
+
|
|
3757
|
+
/**
|
|
3758
|
+
* Model name on arena.ai
|
|
3759
|
+
*/
|
|
3760
|
+
arenaModelName: string;
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* When this score was last fetched (ISO date)
|
|
3764
|
+
*/
|
|
3765
|
+
fetchedAt: string;
|
|
3766
|
+
|
|
3767
|
+
/**
|
|
3768
|
+
* Rank in the arena category
|
|
3769
|
+
*/
|
|
3770
|
+
rank: number;
|
|
3771
|
+
|
|
3772
|
+
/**
|
|
3773
|
+
* ELO rating
|
|
3774
|
+
*/
|
|
3775
|
+
rating: number;
|
|
3776
|
+
|
|
3777
|
+
/**
|
|
3778
|
+
* ELO rating confidence interval lower bound
|
|
3779
|
+
*/
|
|
3780
|
+
ratingLower: number;
|
|
3781
|
+
|
|
3782
|
+
/**
|
|
3783
|
+
* ELO rating confidence interval upper bound
|
|
3784
|
+
*/
|
|
3785
|
+
ratingUpper: number;
|
|
3786
|
+
|
|
3787
|
+
/**
|
|
3788
|
+
* Number of human votes
|
|
3789
|
+
*/
|
|
3790
|
+
votes: number;
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3195
3795
|
/**
|
|
3196
3796
|
* A thumbnail for your model
|
|
3197
3797
|
*/
|
|
@@ -3265,7 +3865,7 @@ export namespace ModelUpdateResponse {
|
|
|
3265
3865
|
/**
|
|
3266
3866
|
* The stage of the request
|
|
3267
3867
|
*/
|
|
3268
|
-
stage: 'pending' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
3868
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
3269
3869
|
|
|
3270
3870
|
/**
|
|
3271
3871
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
@@ -3499,6 +4099,7 @@ export namespace ModelListResponse {
|
|
|
3499
4099
|
| 'txt2img_texture'
|
|
3500
4100
|
| 'txt2txt'
|
|
3501
4101
|
| 'txt2video'
|
|
4102
|
+
| 'video23d'
|
|
3502
4103
|
| 'video2img'
|
|
3503
4104
|
| 'video2video'
|
|
3504
4105
|
>;
|
|
@@ -3554,6 +4155,7 @@ export namespace ModelListResponse {
|
|
|
3554
4155
|
*/
|
|
3555
4156
|
type:
|
|
3556
4157
|
| 'custom'
|
|
4158
|
+
| 'elevenlabs-voice'
|
|
3557
4159
|
| 'flux.1'
|
|
3558
4160
|
| 'flux.1-composition'
|
|
3559
4161
|
| 'flux.1-kontext-dev'
|
|
@@ -3563,14 +4165,32 @@ export namespace ModelListResponse {
|
|
|
3563
4165
|
| 'flux.1-lora'
|
|
3564
4166
|
| 'flux.1-pro'
|
|
3565
4167
|
| 'flux.1.1-pro-ultra'
|
|
4168
|
+
| 'flux.2-dev-edit-lora'
|
|
4169
|
+
| 'flux.2-dev-lora'
|
|
4170
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
4171
|
+
| 'flux.2-klein-4b-lora'
|
|
4172
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
4173
|
+
| 'flux.2-klein-9b-lora'
|
|
4174
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
4175
|
+
| 'flux.2-klein-base-4b-lora'
|
|
4176
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
4177
|
+
| 'flux.2-klein-base-9b-lora'
|
|
3566
4178
|
| 'flux1.1-pro'
|
|
3567
4179
|
| 'gpt-image-1'
|
|
4180
|
+
| 'qwen-image-2512-lora'
|
|
4181
|
+
| 'qwen-image-edit-2509-lora'
|
|
4182
|
+
| 'qwen-image-edit-2511-lora'
|
|
4183
|
+
| 'qwen-image-edit-lora'
|
|
4184
|
+
| 'qwen-image-lora'
|
|
3568
4185
|
| 'sd-1_5'
|
|
3569
4186
|
| 'sd-1_5-composition'
|
|
3570
4187
|
| 'sd-1_5-lora'
|
|
3571
4188
|
| 'sd-xl'
|
|
3572
4189
|
| 'sd-xl-composition'
|
|
3573
|
-
| 'sd-xl-lora'
|
|
4190
|
+
| 'sd-xl-lora'
|
|
4191
|
+
| 'zimage-de-turbo-lora'
|
|
4192
|
+
| 'zimage-lora'
|
|
4193
|
+
| 'zimage-turbo-lora';
|
|
3574
4194
|
|
|
3575
4195
|
/**
|
|
3576
4196
|
* The model last update date as an ISO string (example:
|
|
@@ -3582,7 +4202,7 @@ export namespace ModelListResponse {
|
|
|
3582
4202
|
* The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
|
|
3583
4203
|
* 75: Team plan 100: Enterprise plan
|
|
3584
4204
|
*/
|
|
3585
|
-
accessRestrictions?:
|
|
4205
|
+
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
3586
4206
|
|
|
3587
4207
|
/**
|
|
3588
4208
|
* The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
|
|
@@ -3594,11 +4214,6 @@ export namespace ModelListResponse {
|
|
|
3594
4214
|
*/
|
|
3595
4215
|
class?: Model.Class;
|
|
3596
4216
|
|
|
3597
|
-
/**
|
|
3598
|
-
* Compliance and regulatory metadata for the model
|
|
3599
|
-
*/
|
|
3600
|
-
complianceMetadata?: Model.ComplianceMetadata;
|
|
3601
|
-
|
|
3602
4217
|
/**
|
|
3603
4218
|
* List of base model IDs compliant with the model (example: ["flux.1-dev",
|
|
3604
4219
|
* "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
|
|
@@ -3658,6 +4273,11 @@ export namespace ModelListResponse {
|
|
|
3658
4273
|
*/
|
|
3659
4274
|
parentModelId?: string;
|
|
3660
4275
|
|
|
4276
|
+
/**
|
|
4277
|
+
* Aggregated performance stats
|
|
4278
|
+
*/
|
|
4279
|
+
performanceStats?: Model.PerformanceStats;
|
|
4280
|
+
|
|
3661
4281
|
/**
|
|
3662
4282
|
* Fine-tune the model's inferences with prompt embedding
|
|
3663
4283
|
*/
|
|
@@ -3758,36 +4378,6 @@ export namespace ModelListResponse {
|
|
|
3758
4378
|
thumbnails: Array<string>;
|
|
3759
4379
|
}
|
|
3760
4380
|
|
|
3761
|
-
/**
|
|
3762
|
-
* Compliance and regulatory metadata for the model
|
|
3763
|
-
*/
|
|
3764
|
-
export interface ComplianceMetadata {
|
|
3765
|
-
/**
|
|
3766
|
-
* Data processing comment (e.g., zeroRetention, temporaryRetention, etc.)
|
|
3767
|
-
*/
|
|
3768
|
-
dataProcessingComment?: 'researchOnly' | 'serviceImprovement' | 'temporaryRetention' | 'zeroRetention';
|
|
3769
|
-
|
|
3770
|
-
/**
|
|
3771
|
-
* URL to license terms
|
|
3772
|
-
*/
|
|
3773
|
-
licenseTerms?: string;
|
|
3774
|
-
|
|
3775
|
-
/**
|
|
3776
|
-
* The maintainer of the model
|
|
3777
|
-
*/
|
|
3778
|
-
maintainer?: 'Fal' | 'Provider' | 'Replicate' | 'Scenario';
|
|
3779
|
-
|
|
3780
|
-
/**
|
|
3781
|
-
* The provider of the model (examples: 'Google', 'AWS', 'BFL', 'Meshy', etc.)
|
|
3782
|
-
*/
|
|
3783
|
-
modelProvider?: string;
|
|
3784
|
-
|
|
3785
|
-
/**
|
|
3786
|
-
* The sub-processor used for the model
|
|
3787
|
-
*/
|
|
3788
|
-
subProcessor?: 'AWS' | 'Fal' | 'Modal' | 'Provider' | 'Replicate';
|
|
3789
|
-
}
|
|
3790
|
-
|
|
3791
4381
|
export interface Concept {
|
|
3792
4382
|
/**
|
|
3793
4383
|
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
@@ -3884,6 +4474,11 @@ export namespace ModelListResponse {
|
|
|
3884
4474
|
*/
|
|
3885
4475
|
costImpact?: boolean;
|
|
3886
4476
|
|
|
4477
|
+
/**
|
|
4478
|
+
* The default value for the input
|
|
4479
|
+
*/
|
|
4480
|
+
default?: unknown;
|
|
4481
|
+
|
|
3887
4482
|
/**
|
|
3888
4483
|
* Help text displayed in the UI to provide additional information about the input
|
|
3889
4484
|
*/
|
|
@@ -3905,11 +4500,13 @@ export namespace ModelListResponse {
|
|
|
3905
4500
|
* the same as the current object. This is only available for type inputs_array
|
|
3906
4501
|
* inputs.
|
|
3907
4502
|
*/
|
|
3908
|
-
inputs?: Array<unknown>;
|
|
4503
|
+
inputs?: Array<{ [key: string]: unknown }>;
|
|
3909
4504
|
|
|
3910
4505
|
/**
|
|
3911
4506
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3912
|
-
* \`file_array\` input types.
|
|
4507
|
+
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4508
|
+
* not able to create the asset on the flight on API side with dataurl without
|
|
4509
|
+
* data:kind, prefix
|
|
3913
4510
|
*/
|
|
3914
4511
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
3915
4512
|
|
|
@@ -3935,6 +4532,13 @@ export namespace ModelListResponse {
|
|
|
3935
4532
|
*/
|
|
3936
4533
|
maxLength?: number;
|
|
3937
4534
|
|
|
4535
|
+
/**
|
|
4536
|
+
* The maximum allowed file size in bytes. Only applies to \`file\` and
|
|
4537
|
+
* \`file_array\` input types. Validated against \`asset.properties.size\` at job
|
|
4538
|
+
* creation time.
|
|
4539
|
+
*/
|
|
4540
|
+
maxSize?: number;
|
|
4541
|
+
|
|
3938
4542
|
/**
|
|
3939
4543
|
* The minimum allowed value. Only available for \`number\` and array input types.
|
|
3940
4544
|
*/
|
|
@@ -3952,6 +4556,7 @@ export namespace ModelListResponse {
|
|
|
3952
4556
|
*/
|
|
3953
4557
|
modelTypes?: Array<
|
|
3954
4558
|
| 'custom'
|
|
4559
|
+
| 'elevenlabs-voice'
|
|
3955
4560
|
| 'flux.1'
|
|
3956
4561
|
| 'flux.1-composition'
|
|
3957
4562
|
| 'flux.1-kontext-dev'
|
|
@@ -3961,14 +4566,32 @@ export namespace ModelListResponse {
|
|
|
3961
4566
|
| 'flux.1-lora'
|
|
3962
4567
|
| 'flux.1-pro'
|
|
3963
4568
|
| 'flux.1.1-pro-ultra'
|
|
4569
|
+
| 'flux.2-dev-edit-lora'
|
|
4570
|
+
| 'flux.2-dev-lora'
|
|
4571
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
4572
|
+
| 'flux.2-klein-4b-lora'
|
|
4573
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
4574
|
+
| 'flux.2-klein-9b-lora'
|
|
4575
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
4576
|
+
| 'flux.2-klein-base-4b-lora'
|
|
4577
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
4578
|
+
| 'flux.2-klein-base-9b-lora'
|
|
3964
4579
|
| 'flux1.1-pro'
|
|
3965
4580
|
| 'gpt-image-1'
|
|
4581
|
+
| 'qwen-image-2512-lora'
|
|
4582
|
+
| 'qwen-image-edit-2509-lora'
|
|
4583
|
+
| 'qwen-image-edit-2511-lora'
|
|
4584
|
+
| 'qwen-image-edit-lora'
|
|
4585
|
+
| 'qwen-image-lora'
|
|
3966
4586
|
| 'sd-1_5'
|
|
3967
4587
|
| 'sd-1_5-composition'
|
|
3968
4588
|
| 'sd-1_5-lora'
|
|
3969
4589
|
| 'sd-xl'
|
|
3970
4590
|
| 'sd-xl-composition'
|
|
3971
4591
|
| 'sd-xl-lora'
|
|
4592
|
+
| 'zimage-de-turbo-lora'
|
|
4593
|
+
| 'zimage-lora'
|
|
4594
|
+
| 'zimage-turbo-lora'
|
|
3972
4595
|
>;
|
|
3973
4596
|
|
|
3974
4597
|
/**
|
|
@@ -4065,6 +4688,13 @@ export namespace ModelListResponse {
|
|
|
4065
4688
|
* The parameters of the model
|
|
4066
4689
|
*/
|
|
4067
4690
|
export interface Parameters {
|
|
4691
|
+
/**
|
|
4692
|
+
* Age group of the voice (for professional cloning)
|
|
4693
|
+
*
|
|
4694
|
+
* Only available for ElevenLabs voice training
|
|
4695
|
+
*/
|
|
4696
|
+
age?: string;
|
|
4697
|
+
|
|
4068
4698
|
/**
|
|
4069
4699
|
* The batch size Less steps, and will increase the learning rate
|
|
4070
4700
|
*
|
|
@@ -4079,6 +4709,14 @@ export namespace ModelListResponse {
|
|
|
4079
4709
|
*/
|
|
4080
4710
|
classPrompt?: string;
|
|
4081
4711
|
|
|
4712
|
+
/**
|
|
4713
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
4714
|
+
* requires captcha)
|
|
4715
|
+
*
|
|
4716
|
+
* Only available for ElevenLabs voice training
|
|
4717
|
+
*/
|
|
4718
|
+
cloneType?: string;
|
|
4719
|
+
|
|
4082
4720
|
/**
|
|
4083
4721
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
4084
4722
|
* (example: "a daiton dog")
|
|
@@ -4091,6 +4729,20 @@ export namespace ModelListResponse {
|
|
|
4091
4729
|
*/
|
|
4092
4730
|
conceptPrompt?: string;
|
|
4093
4731
|
|
|
4732
|
+
/**
|
|
4733
|
+
* Gender of the voice (for professional cloning)
|
|
4734
|
+
*
|
|
4735
|
+
* Only available for ElevenLabs voice training
|
|
4736
|
+
*/
|
|
4737
|
+
gender?: string;
|
|
4738
|
+
|
|
4739
|
+
/**
|
|
4740
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
4741
|
+
*
|
|
4742
|
+
* Only available for ElevenLabs voice training
|
|
4743
|
+
*/
|
|
4744
|
+
language?: string;
|
|
4745
|
+
|
|
4094
4746
|
/**
|
|
4095
4747
|
* Initial learning rate (after the potential warmup period)
|
|
4096
4748
|
*
|
|
@@ -4225,15 +4877,27 @@ export namespace ModelListResponse {
|
|
|
4225
4877
|
/**
|
|
4226
4878
|
* The dimension of the LoRA update matrices
|
|
4227
4879
|
*
|
|
4228
|
-
* Only available for SDXL
|
|
4880
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
4229
4881
|
*
|
|
4230
4882
|
* Default value varies depending on the model type:
|
|
4231
4883
|
*
|
|
4232
|
-
* - For SDXL: 64
|
|
4884
|
+
* - For SDXL (deprecated): 64
|
|
4233
4885
|
* - For Flux: 16
|
|
4886
|
+
* - For Musubi: 64
|
|
4887
|
+
*
|
|
4888
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
4889
|
+
* 128])
|
|
4234
4890
|
*/
|
|
4235
4891
|
rank?: number;
|
|
4236
4892
|
|
|
4893
|
+
/**
|
|
4894
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
4895
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
4896
|
+
*
|
|
4897
|
+
* Only available for ElevenLabs voice training
|
|
4898
|
+
*/
|
|
4899
|
+
removeBackgroundNoise?: boolean;
|
|
4900
|
+
|
|
4237
4901
|
/**
|
|
4238
4902
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
4239
4903
|
*/
|
|
@@ -4287,12 +4951,148 @@ export namespace ModelListResponse {
|
|
|
4287
4951
|
*/
|
|
4288
4952
|
validationPrompt?: string;
|
|
4289
4953
|
|
|
4954
|
+
/**
|
|
4955
|
+
* Description of the voice characteristics
|
|
4956
|
+
*
|
|
4957
|
+
* Only available for ElevenLabs voice training
|
|
4958
|
+
*/
|
|
4959
|
+
voiceDescription?: string;
|
|
4960
|
+
|
|
4290
4961
|
/**
|
|
4291
4962
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
4292
4963
|
*/
|
|
4293
4964
|
wandbKey?: string;
|
|
4294
4965
|
}
|
|
4295
4966
|
|
|
4967
|
+
/**
|
|
4968
|
+
* Aggregated performance stats
|
|
4969
|
+
*/
|
|
4970
|
+
export interface PerformanceStats {
|
|
4971
|
+
/**
|
|
4972
|
+
* Performance metrics per variant
|
|
4973
|
+
*/
|
|
4974
|
+
variants: Array<PerformanceStats.Variant>;
|
|
4975
|
+
|
|
4976
|
+
/**
|
|
4977
|
+
* Default variant key for quick model comparison
|
|
4978
|
+
*/
|
|
4979
|
+
default?: string;
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
export namespace PerformanceStats {
|
|
4983
|
+
/**
|
|
4984
|
+
* Performance stats for a model variant
|
|
4985
|
+
*/
|
|
4986
|
+
export interface Variant {
|
|
4987
|
+
/**
|
|
4988
|
+
* The generation capability (example: "txt2img", "img2video", "txt2audio")
|
|
4989
|
+
*/
|
|
4990
|
+
capability: string;
|
|
4991
|
+
|
|
4992
|
+
/**
|
|
4993
|
+
* When these stats were last computed (ISO date)
|
|
4994
|
+
*/
|
|
4995
|
+
computedAt: string;
|
|
4996
|
+
|
|
4997
|
+
/**
|
|
4998
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
4999
|
+
*/
|
|
5000
|
+
variantKey: string;
|
|
5001
|
+
|
|
5002
|
+
/**
|
|
5003
|
+
* External quality score from arena.ai leaderboard
|
|
5004
|
+
*/
|
|
5005
|
+
arenaScore?: Variant.ArenaScore;
|
|
5006
|
+
|
|
5007
|
+
/**
|
|
5008
|
+
* Maximum cost per output asset (CU)
|
|
5009
|
+
*/
|
|
5010
|
+
costPerAssetMaxCU?: number;
|
|
5011
|
+
|
|
5012
|
+
/**
|
|
5013
|
+
* Minimum cost per output asset (CU)
|
|
5014
|
+
*/
|
|
5015
|
+
costPerAssetMinCU?: number;
|
|
5016
|
+
|
|
5017
|
+
/**
|
|
5018
|
+
* Median cost per output asset (CU)
|
|
5019
|
+
*/
|
|
5020
|
+
costPerAssetP50CU?: number;
|
|
5021
|
+
|
|
5022
|
+
/**
|
|
5023
|
+
* Inference latency P50 per output asset (seconds)
|
|
5024
|
+
*/
|
|
5025
|
+
inferenceLatencyP50Sec?: number;
|
|
5026
|
+
|
|
5027
|
+
/**
|
|
5028
|
+
* Inference latency P75 per output asset (seconds)
|
|
5029
|
+
*/
|
|
5030
|
+
inferenceLatencyP75Sec?: number;
|
|
5031
|
+
|
|
5032
|
+
/**
|
|
5033
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
5034
|
+
*/
|
|
5035
|
+
resolution?: string;
|
|
5036
|
+
|
|
5037
|
+
/**
|
|
5038
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
5039
|
+
*/
|
|
5040
|
+
totalLatencyP50Sec?: number;
|
|
5041
|
+
|
|
5042
|
+
/**
|
|
5043
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
5044
|
+
*/
|
|
5045
|
+
totalLatencyP75Sec?: number;
|
|
5046
|
+
}
|
|
5047
|
+
|
|
5048
|
+
export namespace Variant {
|
|
5049
|
+
/**
|
|
5050
|
+
* External quality score from arena.ai leaderboard
|
|
5051
|
+
*/
|
|
5052
|
+
export interface ArenaScore {
|
|
5053
|
+
/**
|
|
5054
|
+
* Arena category (example: "text_to_image", "image_to_video")
|
|
5055
|
+
*/
|
|
5056
|
+
arenaCategory: string;
|
|
5057
|
+
|
|
5058
|
+
/**
|
|
5059
|
+
* Model name on arena.ai
|
|
5060
|
+
*/
|
|
5061
|
+
arenaModelName: string;
|
|
5062
|
+
|
|
5063
|
+
/**
|
|
5064
|
+
* When this score was last fetched (ISO date)
|
|
5065
|
+
*/
|
|
5066
|
+
fetchedAt: string;
|
|
5067
|
+
|
|
5068
|
+
/**
|
|
5069
|
+
* Rank in the arena category
|
|
5070
|
+
*/
|
|
5071
|
+
rank: number;
|
|
5072
|
+
|
|
5073
|
+
/**
|
|
5074
|
+
* ELO rating
|
|
5075
|
+
*/
|
|
5076
|
+
rating: number;
|
|
5077
|
+
|
|
5078
|
+
/**
|
|
5079
|
+
* ELO rating confidence interval lower bound
|
|
5080
|
+
*/
|
|
5081
|
+
ratingLower: number;
|
|
5082
|
+
|
|
5083
|
+
/**
|
|
5084
|
+
* ELO rating confidence interval upper bound
|
|
5085
|
+
*/
|
|
5086
|
+
ratingUpper: number;
|
|
5087
|
+
|
|
5088
|
+
/**
|
|
5089
|
+
* Number of human votes
|
|
5090
|
+
*/
|
|
5091
|
+
votes: number;
|
|
5092
|
+
}
|
|
5093
|
+
}
|
|
5094
|
+
}
|
|
5095
|
+
|
|
4296
5096
|
/**
|
|
4297
5097
|
* A thumbnail for your model
|
|
4298
5098
|
*/
|
|
@@ -4366,7 +5166,7 @@ export namespace ModelListResponse {
|
|
|
4366
5166
|
/**
|
|
4367
5167
|
* The stage of the request
|
|
4368
5168
|
*/
|
|
4369
|
-
stage: 'pending' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
5169
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
4370
5170
|
|
|
4371
5171
|
/**
|
|
4372
5172
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
@@ -4597,6 +5397,7 @@ export namespace ModelCopyResponse {
|
|
|
4597
5397
|
| 'txt2img_texture'
|
|
4598
5398
|
| 'txt2txt'
|
|
4599
5399
|
| 'txt2video'
|
|
5400
|
+
| 'video23d'
|
|
4600
5401
|
| 'video2img'
|
|
4601
5402
|
| 'video2video'
|
|
4602
5403
|
>;
|
|
@@ -4652,6 +5453,7 @@ export namespace ModelCopyResponse {
|
|
|
4652
5453
|
*/
|
|
4653
5454
|
type:
|
|
4654
5455
|
| 'custom'
|
|
5456
|
+
| 'elevenlabs-voice'
|
|
4655
5457
|
| 'flux.1'
|
|
4656
5458
|
| 'flux.1-composition'
|
|
4657
5459
|
| 'flux.1-kontext-dev'
|
|
@@ -4661,14 +5463,32 @@ export namespace ModelCopyResponse {
|
|
|
4661
5463
|
| 'flux.1-lora'
|
|
4662
5464
|
| 'flux.1-pro'
|
|
4663
5465
|
| 'flux.1.1-pro-ultra'
|
|
5466
|
+
| 'flux.2-dev-edit-lora'
|
|
5467
|
+
| 'flux.2-dev-lora'
|
|
5468
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
5469
|
+
| 'flux.2-klein-4b-lora'
|
|
5470
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
5471
|
+
| 'flux.2-klein-9b-lora'
|
|
5472
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
5473
|
+
| 'flux.2-klein-base-4b-lora'
|
|
5474
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
5475
|
+
| 'flux.2-klein-base-9b-lora'
|
|
4664
5476
|
| 'flux1.1-pro'
|
|
4665
5477
|
| 'gpt-image-1'
|
|
5478
|
+
| 'qwen-image-2512-lora'
|
|
5479
|
+
| 'qwen-image-edit-2509-lora'
|
|
5480
|
+
| 'qwen-image-edit-2511-lora'
|
|
5481
|
+
| 'qwen-image-edit-lora'
|
|
5482
|
+
| 'qwen-image-lora'
|
|
4666
5483
|
| 'sd-1_5'
|
|
4667
5484
|
| 'sd-1_5-composition'
|
|
4668
5485
|
| 'sd-1_5-lora'
|
|
4669
5486
|
| 'sd-xl'
|
|
4670
5487
|
| 'sd-xl-composition'
|
|
4671
|
-
| 'sd-xl-lora'
|
|
5488
|
+
| 'sd-xl-lora'
|
|
5489
|
+
| 'zimage-de-turbo-lora'
|
|
5490
|
+
| 'zimage-lora'
|
|
5491
|
+
| 'zimage-turbo-lora';
|
|
4672
5492
|
|
|
4673
5493
|
/**
|
|
4674
5494
|
* The model last update date as an ISO string (example:
|
|
@@ -4680,7 +5500,7 @@ export namespace ModelCopyResponse {
|
|
|
4680
5500
|
* The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
|
|
4681
5501
|
* 75: Team plan 100: Enterprise plan
|
|
4682
5502
|
*/
|
|
4683
|
-
accessRestrictions?:
|
|
5503
|
+
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
4684
5504
|
|
|
4685
5505
|
/**
|
|
4686
5506
|
* The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
|
|
@@ -4692,11 +5512,6 @@ export namespace ModelCopyResponse {
|
|
|
4692
5512
|
*/
|
|
4693
5513
|
class?: Model.Class;
|
|
4694
5514
|
|
|
4695
|
-
/**
|
|
4696
|
-
* Compliance and regulatory metadata for the model
|
|
4697
|
-
*/
|
|
4698
|
-
complianceMetadata?: Model.ComplianceMetadata;
|
|
4699
|
-
|
|
4700
5515
|
/**
|
|
4701
5516
|
* List of base model IDs compliant with the model (example: ["flux.1-dev",
|
|
4702
5517
|
* "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
|
|
@@ -4756,6 +5571,11 @@ export namespace ModelCopyResponse {
|
|
|
4756
5571
|
*/
|
|
4757
5572
|
parentModelId?: string;
|
|
4758
5573
|
|
|
5574
|
+
/**
|
|
5575
|
+
* Aggregated performance stats
|
|
5576
|
+
*/
|
|
5577
|
+
performanceStats?: Model.PerformanceStats;
|
|
5578
|
+
|
|
4759
5579
|
/**
|
|
4760
5580
|
* Fine-tune the model's inferences with prompt embedding
|
|
4761
5581
|
*/
|
|
@@ -4856,36 +5676,6 @@ export namespace ModelCopyResponse {
|
|
|
4856
5676
|
thumbnails: Array<string>;
|
|
4857
5677
|
}
|
|
4858
5678
|
|
|
4859
|
-
/**
|
|
4860
|
-
* Compliance and regulatory metadata for the model
|
|
4861
|
-
*/
|
|
4862
|
-
export interface ComplianceMetadata {
|
|
4863
|
-
/**
|
|
4864
|
-
* Data processing comment (e.g., zeroRetention, temporaryRetention, etc.)
|
|
4865
|
-
*/
|
|
4866
|
-
dataProcessingComment?: 'researchOnly' | 'serviceImprovement' | 'temporaryRetention' | 'zeroRetention';
|
|
4867
|
-
|
|
4868
|
-
/**
|
|
4869
|
-
* URL to license terms
|
|
4870
|
-
*/
|
|
4871
|
-
licenseTerms?: string;
|
|
4872
|
-
|
|
4873
|
-
/**
|
|
4874
|
-
* The maintainer of the model
|
|
4875
|
-
*/
|
|
4876
|
-
maintainer?: 'Fal' | 'Provider' | 'Replicate' | 'Scenario';
|
|
4877
|
-
|
|
4878
|
-
/**
|
|
4879
|
-
* The provider of the model (examples: 'Google', 'AWS', 'BFL', 'Meshy', etc.)
|
|
4880
|
-
*/
|
|
4881
|
-
modelProvider?: string;
|
|
4882
|
-
|
|
4883
|
-
/**
|
|
4884
|
-
* The sub-processor used for the model
|
|
4885
|
-
*/
|
|
4886
|
-
subProcessor?: 'AWS' | 'Fal' | 'Modal' | 'Provider' | 'Replicate';
|
|
4887
|
-
}
|
|
4888
|
-
|
|
4889
5679
|
export interface Concept {
|
|
4890
5680
|
/**
|
|
4891
5681
|
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
@@ -4982,6 +5772,11 @@ export namespace ModelCopyResponse {
|
|
|
4982
5772
|
*/
|
|
4983
5773
|
costImpact?: boolean;
|
|
4984
5774
|
|
|
5775
|
+
/**
|
|
5776
|
+
* The default value for the input
|
|
5777
|
+
*/
|
|
5778
|
+
default?: unknown;
|
|
5779
|
+
|
|
4985
5780
|
/**
|
|
4986
5781
|
* Help text displayed in the UI to provide additional information about the input
|
|
4987
5782
|
*/
|
|
@@ -5003,11 +5798,13 @@ export namespace ModelCopyResponse {
|
|
|
5003
5798
|
* the same as the current object. This is only available for type inputs_array
|
|
5004
5799
|
* inputs.
|
|
5005
5800
|
*/
|
|
5006
|
-
inputs?: Array<unknown>;
|
|
5801
|
+
inputs?: Array<{ [key: string]: unknown }>;
|
|
5007
5802
|
|
|
5008
5803
|
/**
|
|
5009
5804
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5010
|
-
* \`file_array\` input types.
|
|
5805
|
+
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5806
|
+
* not able to create the asset on the flight on API side with dataurl without
|
|
5807
|
+
* data:kind, prefix
|
|
5011
5808
|
*/
|
|
5012
5809
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
5013
5810
|
|
|
@@ -5033,6 +5830,13 @@ export namespace ModelCopyResponse {
|
|
|
5033
5830
|
*/
|
|
5034
5831
|
maxLength?: number;
|
|
5035
5832
|
|
|
5833
|
+
/**
|
|
5834
|
+
* The maximum allowed file size in bytes. Only applies to \`file\` and
|
|
5835
|
+
* \`file_array\` input types. Validated against \`asset.properties.size\` at job
|
|
5836
|
+
* creation time.
|
|
5837
|
+
*/
|
|
5838
|
+
maxSize?: number;
|
|
5839
|
+
|
|
5036
5840
|
/**
|
|
5037
5841
|
* The minimum allowed value. Only available for \`number\` and array input types.
|
|
5038
5842
|
*/
|
|
@@ -5050,6 +5854,7 @@ export namespace ModelCopyResponse {
|
|
|
5050
5854
|
*/
|
|
5051
5855
|
modelTypes?: Array<
|
|
5052
5856
|
| 'custom'
|
|
5857
|
+
| 'elevenlabs-voice'
|
|
5053
5858
|
| 'flux.1'
|
|
5054
5859
|
| 'flux.1-composition'
|
|
5055
5860
|
| 'flux.1-kontext-dev'
|
|
@@ -5059,14 +5864,32 @@ export namespace ModelCopyResponse {
|
|
|
5059
5864
|
| 'flux.1-lora'
|
|
5060
5865
|
| 'flux.1-pro'
|
|
5061
5866
|
| 'flux.1.1-pro-ultra'
|
|
5867
|
+
| 'flux.2-dev-edit-lora'
|
|
5868
|
+
| 'flux.2-dev-lora'
|
|
5869
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
5870
|
+
| 'flux.2-klein-4b-lora'
|
|
5871
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
5872
|
+
| 'flux.2-klein-9b-lora'
|
|
5873
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
5874
|
+
| 'flux.2-klein-base-4b-lora'
|
|
5875
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
5876
|
+
| 'flux.2-klein-base-9b-lora'
|
|
5062
5877
|
| 'flux1.1-pro'
|
|
5063
5878
|
| 'gpt-image-1'
|
|
5879
|
+
| 'qwen-image-2512-lora'
|
|
5880
|
+
| 'qwen-image-edit-2509-lora'
|
|
5881
|
+
| 'qwen-image-edit-2511-lora'
|
|
5882
|
+
| 'qwen-image-edit-lora'
|
|
5883
|
+
| 'qwen-image-lora'
|
|
5064
5884
|
| 'sd-1_5'
|
|
5065
5885
|
| 'sd-1_5-composition'
|
|
5066
5886
|
| 'sd-1_5-lora'
|
|
5067
5887
|
| 'sd-xl'
|
|
5068
5888
|
| 'sd-xl-composition'
|
|
5069
5889
|
| 'sd-xl-lora'
|
|
5890
|
+
| 'zimage-de-turbo-lora'
|
|
5891
|
+
| 'zimage-lora'
|
|
5892
|
+
| 'zimage-turbo-lora'
|
|
5070
5893
|
>;
|
|
5071
5894
|
|
|
5072
5895
|
/**
|
|
@@ -5163,6 +5986,13 @@ export namespace ModelCopyResponse {
|
|
|
5163
5986
|
* The parameters of the model
|
|
5164
5987
|
*/
|
|
5165
5988
|
export interface Parameters {
|
|
5989
|
+
/**
|
|
5990
|
+
* Age group of the voice (for professional cloning)
|
|
5991
|
+
*
|
|
5992
|
+
* Only available for ElevenLabs voice training
|
|
5993
|
+
*/
|
|
5994
|
+
age?: string;
|
|
5995
|
+
|
|
5166
5996
|
/**
|
|
5167
5997
|
* The batch size Less steps, and will increase the learning rate
|
|
5168
5998
|
*
|
|
@@ -5177,6 +6007,14 @@ export namespace ModelCopyResponse {
|
|
|
5177
6007
|
*/
|
|
5178
6008
|
classPrompt?: string;
|
|
5179
6009
|
|
|
6010
|
+
/**
|
|
6011
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
6012
|
+
* requires captcha)
|
|
6013
|
+
*
|
|
6014
|
+
* Only available for ElevenLabs voice training
|
|
6015
|
+
*/
|
|
6016
|
+
cloneType?: string;
|
|
6017
|
+
|
|
5180
6018
|
/**
|
|
5181
6019
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
5182
6020
|
* (example: "a daiton dog")
|
|
@@ -5189,6 +6027,20 @@ export namespace ModelCopyResponse {
|
|
|
5189
6027
|
*/
|
|
5190
6028
|
conceptPrompt?: string;
|
|
5191
6029
|
|
|
6030
|
+
/**
|
|
6031
|
+
* Gender of the voice (for professional cloning)
|
|
6032
|
+
*
|
|
6033
|
+
* Only available for ElevenLabs voice training
|
|
6034
|
+
*/
|
|
6035
|
+
gender?: string;
|
|
6036
|
+
|
|
6037
|
+
/**
|
|
6038
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
6039
|
+
*
|
|
6040
|
+
* Only available for ElevenLabs voice training
|
|
6041
|
+
*/
|
|
6042
|
+
language?: string;
|
|
6043
|
+
|
|
5192
6044
|
/**
|
|
5193
6045
|
* Initial learning rate (after the potential warmup period)
|
|
5194
6046
|
*
|
|
@@ -5323,15 +6175,27 @@ export namespace ModelCopyResponse {
|
|
|
5323
6175
|
/**
|
|
5324
6176
|
* The dimension of the LoRA update matrices
|
|
5325
6177
|
*
|
|
5326
|
-
* Only available for SDXL
|
|
6178
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
5327
6179
|
*
|
|
5328
6180
|
* Default value varies depending on the model type:
|
|
5329
6181
|
*
|
|
5330
|
-
* - For SDXL: 64
|
|
6182
|
+
* - For SDXL (deprecated): 64
|
|
5331
6183
|
* - For Flux: 16
|
|
6184
|
+
* - For Musubi: 64
|
|
6185
|
+
*
|
|
6186
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
6187
|
+
* 128])
|
|
5332
6188
|
*/
|
|
5333
6189
|
rank?: number;
|
|
5334
6190
|
|
|
6191
|
+
/**
|
|
6192
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
6193
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
6194
|
+
*
|
|
6195
|
+
* Only available for ElevenLabs voice training
|
|
6196
|
+
*/
|
|
6197
|
+
removeBackgroundNoise?: boolean;
|
|
6198
|
+
|
|
5335
6199
|
/**
|
|
5336
6200
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
5337
6201
|
*/
|
|
@@ -5385,12 +6249,148 @@ export namespace ModelCopyResponse {
|
|
|
5385
6249
|
*/
|
|
5386
6250
|
validationPrompt?: string;
|
|
5387
6251
|
|
|
6252
|
+
/**
|
|
6253
|
+
* Description of the voice characteristics
|
|
6254
|
+
*
|
|
6255
|
+
* Only available for ElevenLabs voice training
|
|
6256
|
+
*/
|
|
6257
|
+
voiceDescription?: string;
|
|
6258
|
+
|
|
5388
6259
|
/**
|
|
5389
6260
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
5390
6261
|
*/
|
|
5391
6262
|
wandbKey?: string;
|
|
5392
6263
|
}
|
|
5393
6264
|
|
|
6265
|
+
/**
|
|
6266
|
+
* Aggregated performance stats
|
|
6267
|
+
*/
|
|
6268
|
+
export interface PerformanceStats {
|
|
6269
|
+
/**
|
|
6270
|
+
* Performance metrics per variant
|
|
6271
|
+
*/
|
|
6272
|
+
variants: Array<PerformanceStats.Variant>;
|
|
6273
|
+
|
|
6274
|
+
/**
|
|
6275
|
+
* Default variant key for quick model comparison
|
|
6276
|
+
*/
|
|
6277
|
+
default?: string;
|
|
6278
|
+
}
|
|
6279
|
+
|
|
6280
|
+
export namespace PerformanceStats {
|
|
6281
|
+
/**
|
|
6282
|
+
* Performance stats for a model variant
|
|
6283
|
+
*/
|
|
6284
|
+
export interface Variant {
|
|
6285
|
+
/**
|
|
6286
|
+
* The generation capability (example: "txt2img", "img2video", "txt2audio")
|
|
6287
|
+
*/
|
|
6288
|
+
capability: string;
|
|
6289
|
+
|
|
6290
|
+
/**
|
|
6291
|
+
* When these stats were last computed (ISO date)
|
|
6292
|
+
*/
|
|
6293
|
+
computedAt: string;
|
|
6294
|
+
|
|
6295
|
+
/**
|
|
6296
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
6297
|
+
*/
|
|
6298
|
+
variantKey: string;
|
|
6299
|
+
|
|
6300
|
+
/**
|
|
6301
|
+
* External quality score from arena.ai leaderboard
|
|
6302
|
+
*/
|
|
6303
|
+
arenaScore?: Variant.ArenaScore;
|
|
6304
|
+
|
|
6305
|
+
/**
|
|
6306
|
+
* Maximum cost per output asset (CU)
|
|
6307
|
+
*/
|
|
6308
|
+
costPerAssetMaxCU?: number;
|
|
6309
|
+
|
|
6310
|
+
/**
|
|
6311
|
+
* Minimum cost per output asset (CU)
|
|
6312
|
+
*/
|
|
6313
|
+
costPerAssetMinCU?: number;
|
|
6314
|
+
|
|
6315
|
+
/**
|
|
6316
|
+
* Median cost per output asset (CU)
|
|
6317
|
+
*/
|
|
6318
|
+
costPerAssetP50CU?: number;
|
|
6319
|
+
|
|
6320
|
+
/**
|
|
6321
|
+
* Inference latency P50 per output asset (seconds)
|
|
6322
|
+
*/
|
|
6323
|
+
inferenceLatencyP50Sec?: number;
|
|
6324
|
+
|
|
6325
|
+
/**
|
|
6326
|
+
* Inference latency P75 per output asset (seconds)
|
|
6327
|
+
*/
|
|
6328
|
+
inferenceLatencyP75Sec?: number;
|
|
6329
|
+
|
|
6330
|
+
/**
|
|
6331
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
6332
|
+
*/
|
|
6333
|
+
resolution?: string;
|
|
6334
|
+
|
|
6335
|
+
/**
|
|
6336
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
6337
|
+
*/
|
|
6338
|
+
totalLatencyP50Sec?: number;
|
|
6339
|
+
|
|
6340
|
+
/**
|
|
6341
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
6342
|
+
*/
|
|
6343
|
+
totalLatencyP75Sec?: number;
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
export namespace Variant {
|
|
6347
|
+
/**
|
|
6348
|
+
* External quality score from arena.ai leaderboard
|
|
6349
|
+
*/
|
|
6350
|
+
export interface ArenaScore {
|
|
6351
|
+
/**
|
|
6352
|
+
* Arena category (example: "text_to_image", "image_to_video")
|
|
6353
|
+
*/
|
|
6354
|
+
arenaCategory: string;
|
|
6355
|
+
|
|
6356
|
+
/**
|
|
6357
|
+
* Model name on arena.ai
|
|
6358
|
+
*/
|
|
6359
|
+
arenaModelName: string;
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* When this score was last fetched (ISO date)
|
|
6363
|
+
*/
|
|
6364
|
+
fetchedAt: string;
|
|
6365
|
+
|
|
6366
|
+
/**
|
|
6367
|
+
* Rank in the arena category
|
|
6368
|
+
*/
|
|
6369
|
+
rank: number;
|
|
6370
|
+
|
|
6371
|
+
/**
|
|
6372
|
+
* ELO rating
|
|
6373
|
+
*/
|
|
6374
|
+
rating: number;
|
|
6375
|
+
|
|
6376
|
+
/**
|
|
6377
|
+
* ELO rating confidence interval lower bound
|
|
6378
|
+
*/
|
|
6379
|
+
ratingLower: number;
|
|
6380
|
+
|
|
6381
|
+
/**
|
|
6382
|
+
* ELO rating confidence interval upper bound
|
|
6383
|
+
*/
|
|
6384
|
+
ratingUpper: number;
|
|
6385
|
+
|
|
6386
|
+
/**
|
|
6387
|
+
* Number of human votes
|
|
6388
|
+
*/
|
|
6389
|
+
votes: number;
|
|
6390
|
+
}
|
|
6391
|
+
}
|
|
6392
|
+
}
|
|
6393
|
+
|
|
5394
6394
|
/**
|
|
5395
6395
|
* A thumbnail for your model
|
|
5396
6396
|
*/
|
|
@@ -5464,7 +6464,7 @@ export namespace ModelCopyResponse {
|
|
|
5464
6464
|
/**
|
|
5465
6465
|
* The stage of the request
|
|
5466
6466
|
*/
|
|
5467
|
-
stage: 'pending' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
6467
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
5468
6468
|
|
|
5469
6469
|
/**
|
|
5470
6470
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
@@ -5680,6 +6680,7 @@ export namespace ModelGetBulkResponse {
|
|
|
5680
6680
|
*/
|
|
5681
6681
|
type:
|
|
5682
6682
|
| 'custom'
|
|
6683
|
+
| 'elevenlabs-voice'
|
|
5683
6684
|
| 'flux.1'
|
|
5684
6685
|
| 'flux.1-composition'
|
|
5685
6686
|
| 'flux.1-kontext-dev'
|
|
@@ -5689,20 +6690,38 @@ export namespace ModelGetBulkResponse {
|
|
|
5689
6690
|
| 'flux.1-lora'
|
|
5690
6691
|
| 'flux.1-pro'
|
|
5691
6692
|
| 'flux.1.1-pro-ultra'
|
|
6693
|
+
| 'flux.2-dev-edit-lora'
|
|
6694
|
+
| 'flux.2-dev-lora'
|
|
6695
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
6696
|
+
| 'flux.2-klein-4b-lora'
|
|
6697
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
6698
|
+
| 'flux.2-klein-9b-lora'
|
|
6699
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
6700
|
+
| 'flux.2-klein-base-4b-lora'
|
|
6701
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
6702
|
+
| 'flux.2-klein-base-9b-lora'
|
|
5692
6703
|
| 'flux1.1-pro'
|
|
5693
6704
|
| 'gpt-image-1'
|
|
6705
|
+
| 'qwen-image-2512-lora'
|
|
6706
|
+
| 'qwen-image-edit-2509-lora'
|
|
6707
|
+
| 'qwen-image-edit-2511-lora'
|
|
6708
|
+
| 'qwen-image-edit-lora'
|
|
6709
|
+
| 'qwen-image-lora'
|
|
5694
6710
|
| 'sd-1_5'
|
|
5695
6711
|
| 'sd-1_5-composition'
|
|
5696
6712
|
| 'sd-1_5-lora'
|
|
5697
6713
|
| 'sd-xl'
|
|
5698
6714
|
| 'sd-xl-composition'
|
|
5699
|
-
| 'sd-xl-lora'
|
|
6715
|
+
| 'sd-xl-lora'
|
|
6716
|
+
| 'zimage-de-turbo-lora'
|
|
6717
|
+
| 'zimage-lora'
|
|
6718
|
+
| 'zimage-turbo-lora';
|
|
5700
6719
|
|
|
5701
6720
|
/**
|
|
5702
6721
|
* The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
|
|
5703
6722
|
* 75: Team plan 100: Enterprise plan
|
|
5704
6723
|
*/
|
|
5705
|
-
accessRestrictions?:
|
|
6724
|
+
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
5706
6725
|
|
|
5707
6726
|
/**
|
|
5708
6727
|
* The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
|
|
@@ -5741,6 +6760,7 @@ export namespace ModelGetBulkResponse {
|
|
|
5741
6760
|
| 'txt2img_texture'
|
|
5742
6761
|
| 'txt2txt'
|
|
5743
6762
|
| 'txt2video'
|
|
6763
|
+
| 'video23d'
|
|
5744
6764
|
| 'video2img'
|
|
5745
6765
|
| 'video2video'
|
|
5746
6766
|
>;
|
|
@@ -5755,11 +6775,6 @@ export namespace ModelGetBulkResponse {
|
|
|
5755
6775
|
*/
|
|
5756
6776
|
collectionIds?: Array<string>;
|
|
5757
6777
|
|
|
5758
|
-
/**
|
|
5759
|
-
* Compliance and regulatory metadata for the model
|
|
5760
|
-
*/
|
|
5761
|
-
complianceMetadata?: Model.ComplianceMetadata;
|
|
5762
|
-
|
|
5763
6778
|
/**
|
|
5764
6779
|
* List of base model IDs compliant with the model (example: ["flux.1-dev",
|
|
5765
6780
|
* "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
|
|
@@ -5835,6 +6850,11 @@ export namespace ModelGetBulkResponse {
|
|
|
5835
6850
|
*/
|
|
5836
6851
|
parentModelId?: string;
|
|
5837
6852
|
|
|
6853
|
+
/**
|
|
6854
|
+
* Aggregated performance stats
|
|
6855
|
+
*/
|
|
6856
|
+
performanceStats?: Model.PerformanceStats;
|
|
6857
|
+
|
|
5838
6858
|
/**
|
|
5839
6859
|
* Fine-tune the model's inferences with prompt embedding
|
|
5840
6860
|
*/
|
|
@@ -5930,65 +6950,35 @@ export namespace ModelGetBulkResponse {
|
|
|
5930
6950
|
conceptPrompt: string;
|
|
5931
6951
|
|
|
5932
6952
|
/**
|
|
5933
|
-
* The model ID of the class (example: "stable-diffusion-v1-5")
|
|
5934
|
-
*/
|
|
5935
|
-
modelId: string;
|
|
5936
|
-
|
|
5937
|
-
/**
|
|
5938
|
-
* The class name (example: "Character Design")
|
|
5939
|
-
*/
|
|
5940
|
-
name: string;
|
|
5941
|
-
|
|
5942
|
-
/**
|
|
5943
|
-
* The class prompt (example: "a character design")
|
|
5944
|
-
*/
|
|
5945
|
-
prompt: string;
|
|
5946
|
-
|
|
5947
|
-
/**
|
|
5948
|
-
* The class slug (example: "art-style-character-design")
|
|
5949
|
-
*/
|
|
5950
|
-
slug: string;
|
|
5951
|
-
|
|
5952
|
-
/**
|
|
5953
|
-
* The class status (only published classes are listed, but unpublished classes can
|
|
5954
|
-
* still appear in existing models)
|
|
5955
|
-
*/
|
|
5956
|
-
status: 'published' | 'unpublished';
|
|
5957
|
-
|
|
5958
|
-
/**
|
|
5959
|
-
* Some example images URLs to showcase the class
|
|
6953
|
+
* The model ID of the class (example: "stable-diffusion-v1-5")
|
|
5960
6954
|
*/
|
|
5961
|
-
|
|
5962
|
-
}
|
|
6955
|
+
modelId: string;
|
|
5963
6956
|
|
|
5964
|
-
/**
|
|
5965
|
-
* Compliance and regulatory metadata for the model
|
|
5966
|
-
*/
|
|
5967
|
-
export interface ComplianceMetadata {
|
|
5968
6957
|
/**
|
|
5969
|
-
*
|
|
6958
|
+
* The class name (example: "Character Design")
|
|
5970
6959
|
*/
|
|
5971
|
-
|
|
6960
|
+
name: string;
|
|
5972
6961
|
|
|
5973
6962
|
/**
|
|
5974
|
-
*
|
|
6963
|
+
* The class prompt (example: "a character design")
|
|
5975
6964
|
*/
|
|
5976
|
-
|
|
6965
|
+
prompt: string;
|
|
5977
6966
|
|
|
5978
6967
|
/**
|
|
5979
|
-
* The
|
|
6968
|
+
* The class slug (example: "art-style-character-design")
|
|
5980
6969
|
*/
|
|
5981
|
-
|
|
6970
|
+
slug: string;
|
|
5982
6971
|
|
|
5983
6972
|
/**
|
|
5984
|
-
* The
|
|
6973
|
+
* The class status (only published classes are listed, but unpublished classes can
|
|
6974
|
+
* still appear in existing models)
|
|
5985
6975
|
*/
|
|
5986
|
-
|
|
6976
|
+
status: 'published' | 'unpublished';
|
|
5987
6977
|
|
|
5988
6978
|
/**
|
|
5989
|
-
*
|
|
6979
|
+
* Some example images URLs to showcase the class
|
|
5990
6980
|
*/
|
|
5991
|
-
|
|
6981
|
+
thumbnails: Array<string>;
|
|
5992
6982
|
}
|
|
5993
6983
|
|
|
5994
6984
|
export interface Concept {
|
|
@@ -6087,6 +7077,11 @@ export namespace ModelGetBulkResponse {
|
|
|
6087
7077
|
*/
|
|
6088
7078
|
costImpact?: boolean;
|
|
6089
7079
|
|
|
7080
|
+
/**
|
|
7081
|
+
* The default value for the input
|
|
7082
|
+
*/
|
|
7083
|
+
default?: unknown;
|
|
7084
|
+
|
|
6090
7085
|
/**
|
|
6091
7086
|
* Help text displayed in the UI to provide additional information about the input
|
|
6092
7087
|
*/
|
|
@@ -6108,11 +7103,13 @@ export namespace ModelGetBulkResponse {
|
|
|
6108
7103
|
* the same as the current object. This is only available for type inputs_array
|
|
6109
7104
|
* inputs.
|
|
6110
7105
|
*/
|
|
6111
|
-
inputs?: Array<unknown>;
|
|
7106
|
+
inputs?: Array<{ [key: string]: unknown }>;
|
|
6112
7107
|
|
|
6113
7108
|
/**
|
|
6114
7109
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
6115
|
-
* \`file_array\` input types.
|
|
7110
|
+
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
7111
|
+
* not able to create the asset on the flight on API side with dataurl without
|
|
7112
|
+
* data:kind, prefix
|
|
6116
7113
|
*/
|
|
6117
7114
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
6118
7115
|
|
|
@@ -6138,6 +7135,13 @@ export namespace ModelGetBulkResponse {
|
|
|
6138
7135
|
*/
|
|
6139
7136
|
maxLength?: number;
|
|
6140
7137
|
|
|
7138
|
+
/**
|
|
7139
|
+
* The maximum allowed file size in bytes. Only applies to \`file\` and
|
|
7140
|
+
* \`file_array\` input types. Validated against \`asset.properties.size\` at job
|
|
7141
|
+
* creation time.
|
|
7142
|
+
*/
|
|
7143
|
+
maxSize?: number;
|
|
7144
|
+
|
|
6141
7145
|
/**
|
|
6142
7146
|
* The minimum allowed value. Only available for \`number\` and array input types.
|
|
6143
7147
|
*/
|
|
@@ -6155,6 +7159,7 @@ export namespace ModelGetBulkResponse {
|
|
|
6155
7159
|
*/
|
|
6156
7160
|
modelTypes?: Array<
|
|
6157
7161
|
| 'custom'
|
|
7162
|
+
| 'elevenlabs-voice'
|
|
6158
7163
|
| 'flux.1'
|
|
6159
7164
|
| 'flux.1-composition'
|
|
6160
7165
|
| 'flux.1-kontext-dev'
|
|
@@ -6164,14 +7169,32 @@ export namespace ModelGetBulkResponse {
|
|
|
6164
7169
|
| 'flux.1-lora'
|
|
6165
7170
|
| 'flux.1-pro'
|
|
6166
7171
|
| 'flux.1.1-pro-ultra'
|
|
7172
|
+
| 'flux.2-dev-edit-lora'
|
|
7173
|
+
| 'flux.2-dev-lora'
|
|
7174
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
7175
|
+
| 'flux.2-klein-4b-lora'
|
|
7176
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
7177
|
+
| 'flux.2-klein-9b-lora'
|
|
7178
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
7179
|
+
| 'flux.2-klein-base-4b-lora'
|
|
7180
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
7181
|
+
| 'flux.2-klein-base-9b-lora'
|
|
6167
7182
|
| 'flux1.1-pro'
|
|
6168
7183
|
| 'gpt-image-1'
|
|
7184
|
+
| 'qwen-image-2512-lora'
|
|
7185
|
+
| 'qwen-image-edit-2509-lora'
|
|
7186
|
+
| 'qwen-image-edit-2511-lora'
|
|
7187
|
+
| 'qwen-image-edit-lora'
|
|
7188
|
+
| 'qwen-image-lora'
|
|
6169
7189
|
| 'sd-1_5'
|
|
6170
7190
|
| 'sd-1_5-composition'
|
|
6171
7191
|
| 'sd-1_5-lora'
|
|
6172
7192
|
| 'sd-xl'
|
|
6173
7193
|
| 'sd-xl-composition'
|
|
6174
7194
|
| 'sd-xl-lora'
|
|
7195
|
+
| 'zimage-de-turbo-lora'
|
|
7196
|
+
| 'zimage-lora'
|
|
7197
|
+
| 'zimage-turbo-lora'
|
|
6175
7198
|
>;
|
|
6176
7199
|
|
|
6177
7200
|
/**
|
|
@@ -6268,6 +7291,13 @@ export namespace ModelGetBulkResponse {
|
|
|
6268
7291
|
* The parameters of the model
|
|
6269
7292
|
*/
|
|
6270
7293
|
export interface Parameters {
|
|
7294
|
+
/**
|
|
7295
|
+
* Age group of the voice (for professional cloning)
|
|
7296
|
+
*
|
|
7297
|
+
* Only available for ElevenLabs voice training
|
|
7298
|
+
*/
|
|
7299
|
+
age?: string;
|
|
7300
|
+
|
|
6271
7301
|
/**
|
|
6272
7302
|
* The batch size Less steps, and will increase the learning rate
|
|
6273
7303
|
*
|
|
@@ -6282,6 +7312,14 @@ export namespace ModelGetBulkResponse {
|
|
|
6282
7312
|
*/
|
|
6283
7313
|
classPrompt?: string;
|
|
6284
7314
|
|
|
7315
|
+
/**
|
|
7316
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
7317
|
+
* requires captcha)
|
|
7318
|
+
*
|
|
7319
|
+
* Only available for ElevenLabs voice training
|
|
7320
|
+
*/
|
|
7321
|
+
cloneType?: string;
|
|
7322
|
+
|
|
6285
7323
|
/**
|
|
6286
7324
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
6287
7325
|
* (example: "a daiton dog")
|
|
@@ -6294,6 +7332,20 @@ export namespace ModelGetBulkResponse {
|
|
|
6294
7332
|
*/
|
|
6295
7333
|
conceptPrompt?: string;
|
|
6296
7334
|
|
|
7335
|
+
/**
|
|
7336
|
+
* Gender of the voice (for professional cloning)
|
|
7337
|
+
*
|
|
7338
|
+
* Only available for ElevenLabs voice training
|
|
7339
|
+
*/
|
|
7340
|
+
gender?: string;
|
|
7341
|
+
|
|
7342
|
+
/**
|
|
7343
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
7344
|
+
*
|
|
7345
|
+
* Only available for ElevenLabs voice training
|
|
7346
|
+
*/
|
|
7347
|
+
language?: string;
|
|
7348
|
+
|
|
6297
7349
|
/**
|
|
6298
7350
|
* Initial learning rate (after the potential warmup period)
|
|
6299
7351
|
*
|
|
@@ -6428,15 +7480,27 @@ export namespace ModelGetBulkResponse {
|
|
|
6428
7480
|
/**
|
|
6429
7481
|
* The dimension of the LoRA update matrices
|
|
6430
7482
|
*
|
|
6431
|
-
* Only available for SDXL
|
|
7483
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
6432
7484
|
*
|
|
6433
7485
|
* Default value varies depending on the model type:
|
|
6434
7486
|
*
|
|
6435
|
-
* - For SDXL: 64
|
|
7487
|
+
* - For SDXL (deprecated): 64
|
|
6436
7488
|
* - For Flux: 16
|
|
7489
|
+
* - For Musubi: 64
|
|
7490
|
+
*
|
|
7491
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
7492
|
+
* 128])
|
|
6437
7493
|
*/
|
|
6438
7494
|
rank?: number;
|
|
6439
7495
|
|
|
7496
|
+
/**
|
|
7497
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
7498
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
7499
|
+
*
|
|
7500
|
+
* Only available for ElevenLabs voice training
|
|
7501
|
+
*/
|
|
7502
|
+
removeBackgroundNoise?: boolean;
|
|
7503
|
+
|
|
6440
7504
|
/**
|
|
6441
7505
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
6442
7506
|
*/
|
|
@@ -6490,12 +7554,148 @@ export namespace ModelGetBulkResponse {
|
|
|
6490
7554
|
*/
|
|
6491
7555
|
validationPrompt?: string;
|
|
6492
7556
|
|
|
7557
|
+
/**
|
|
7558
|
+
* Description of the voice characteristics
|
|
7559
|
+
*
|
|
7560
|
+
* Only available for ElevenLabs voice training
|
|
7561
|
+
*/
|
|
7562
|
+
voiceDescription?: string;
|
|
7563
|
+
|
|
6493
7564
|
/**
|
|
6494
7565
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
6495
7566
|
*/
|
|
6496
7567
|
wandbKey?: string;
|
|
6497
7568
|
}
|
|
6498
7569
|
|
|
7570
|
+
/**
|
|
7571
|
+
* Aggregated performance stats
|
|
7572
|
+
*/
|
|
7573
|
+
export interface PerformanceStats {
|
|
7574
|
+
/**
|
|
7575
|
+
* Performance metrics per variant
|
|
7576
|
+
*/
|
|
7577
|
+
variants: Array<PerformanceStats.Variant>;
|
|
7578
|
+
|
|
7579
|
+
/**
|
|
7580
|
+
* Default variant key for quick model comparison
|
|
7581
|
+
*/
|
|
7582
|
+
default?: string;
|
|
7583
|
+
}
|
|
7584
|
+
|
|
7585
|
+
export namespace PerformanceStats {
|
|
7586
|
+
/**
|
|
7587
|
+
* Performance stats for a model variant
|
|
7588
|
+
*/
|
|
7589
|
+
export interface Variant {
|
|
7590
|
+
/**
|
|
7591
|
+
* The generation capability (example: "txt2img", "img2video", "txt2audio")
|
|
7592
|
+
*/
|
|
7593
|
+
capability: string;
|
|
7594
|
+
|
|
7595
|
+
/**
|
|
7596
|
+
* When these stats were last computed (ISO date)
|
|
7597
|
+
*/
|
|
7598
|
+
computedAt: string;
|
|
7599
|
+
|
|
7600
|
+
/**
|
|
7601
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
7602
|
+
*/
|
|
7603
|
+
variantKey: string;
|
|
7604
|
+
|
|
7605
|
+
/**
|
|
7606
|
+
* External quality score from arena.ai leaderboard
|
|
7607
|
+
*/
|
|
7608
|
+
arenaScore?: Variant.ArenaScore;
|
|
7609
|
+
|
|
7610
|
+
/**
|
|
7611
|
+
* Maximum cost per output asset (CU)
|
|
7612
|
+
*/
|
|
7613
|
+
costPerAssetMaxCU?: number;
|
|
7614
|
+
|
|
7615
|
+
/**
|
|
7616
|
+
* Minimum cost per output asset (CU)
|
|
7617
|
+
*/
|
|
7618
|
+
costPerAssetMinCU?: number;
|
|
7619
|
+
|
|
7620
|
+
/**
|
|
7621
|
+
* Median cost per output asset (CU)
|
|
7622
|
+
*/
|
|
7623
|
+
costPerAssetP50CU?: number;
|
|
7624
|
+
|
|
7625
|
+
/**
|
|
7626
|
+
* Inference latency P50 per output asset (seconds)
|
|
7627
|
+
*/
|
|
7628
|
+
inferenceLatencyP50Sec?: number;
|
|
7629
|
+
|
|
7630
|
+
/**
|
|
7631
|
+
* Inference latency P75 per output asset (seconds)
|
|
7632
|
+
*/
|
|
7633
|
+
inferenceLatencyP75Sec?: number;
|
|
7634
|
+
|
|
7635
|
+
/**
|
|
7636
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
7637
|
+
*/
|
|
7638
|
+
resolution?: string;
|
|
7639
|
+
|
|
7640
|
+
/**
|
|
7641
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
7642
|
+
*/
|
|
7643
|
+
totalLatencyP50Sec?: number;
|
|
7644
|
+
|
|
7645
|
+
/**
|
|
7646
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
7647
|
+
*/
|
|
7648
|
+
totalLatencyP75Sec?: number;
|
|
7649
|
+
}
|
|
7650
|
+
|
|
7651
|
+
export namespace Variant {
|
|
7652
|
+
/**
|
|
7653
|
+
* External quality score from arena.ai leaderboard
|
|
7654
|
+
*/
|
|
7655
|
+
export interface ArenaScore {
|
|
7656
|
+
/**
|
|
7657
|
+
* Arena category (example: "text_to_image", "image_to_video")
|
|
7658
|
+
*/
|
|
7659
|
+
arenaCategory: string;
|
|
7660
|
+
|
|
7661
|
+
/**
|
|
7662
|
+
* Model name on arena.ai
|
|
7663
|
+
*/
|
|
7664
|
+
arenaModelName: string;
|
|
7665
|
+
|
|
7666
|
+
/**
|
|
7667
|
+
* When this score was last fetched (ISO date)
|
|
7668
|
+
*/
|
|
7669
|
+
fetchedAt: string;
|
|
7670
|
+
|
|
7671
|
+
/**
|
|
7672
|
+
* Rank in the arena category
|
|
7673
|
+
*/
|
|
7674
|
+
rank: number;
|
|
7675
|
+
|
|
7676
|
+
/**
|
|
7677
|
+
* ELO rating
|
|
7678
|
+
*/
|
|
7679
|
+
rating: number;
|
|
7680
|
+
|
|
7681
|
+
/**
|
|
7682
|
+
* ELO rating confidence interval lower bound
|
|
7683
|
+
*/
|
|
7684
|
+
ratingLower: number;
|
|
7685
|
+
|
|
7686
|
+
/**
|
|
7687
|
+
* ELO rating confidence interval upper bound
|
|
7688
|
+
*/
|
|
7689
|
+
ratingUpper: number;
|
|
7690
|
+
|
|
7691
|
+
/**
|
|
7692
|
+
* Number of human votes
|
|
7693
|
+
*/
|
|
7694
|
+
votes: number;
|
|
7695
|
+
}
|
|
7696
|
+
}
|
|
7697
|
+
}
|
|
7698
|
+
|
|
6499
7699
|
/**
|
|
6500
7700
|
* A thumbnail for your model
|
|
6501
7701
|
*/
|
|
@@ -6569,7 +7769,7 @@ export namespace ModelGetBulkResponse {
|
|
|
6569
7769
|
/**
|
|
6570
7770
|
* The stage of the request
|
|
6571
7771
|
*/
|
|
6572
|
-
stage: 'pending' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
7772
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
6573
7773
|
|
|
6574
7774
|
/**
|
|
6575
7775
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
@@ -6798,6 +7998,7 @@ export namespace ModelTransferResponse {
|
|
|
6798
7998
|
| 'txt2img_texture'
|
|
6799
7999
|
| 'txt2txt'
|
|
6800
8000
|
| 'txt2video'
|
|
8001
|
+
| 'video23d'
|
|
6801
8002
|
| 'video2img'
|
|
6802
8003
|
| 'video2video'
|
|
6803
8004
|
>;
|
|
@@ -6853,6 +8054,7 @@ export namespace ModelTransferResponse {
|
|
|
6853
8054
|
*/
|
|
6854
8055
|
type:
|
|
6855
8056
|
| 'custom'
|
|
8057
|
+
| 'elevenlabs-voice'
|
|
6856
8058
|
| 'flux.1'
|
|
6857
8059
|
| 'flux.1-composition'
|
|
6858
8060
|
| 'flux.1-kontext-dev'
|
|
@@ -6862,14 +8064,32 @@ export namespace ModelTransferResponse {
|
|
|
6862
8064
|
| 'flux.1-lora'
|
|
6863
8065
|
| 'flux.1-pro'
|
|
6864
8066
|
| 'flux.1.1-pro-ultra'
|
|
8067
|
+
| 'flux.2-dev-edit-lora'
|
|
8068
|
+
| 'flux.2-dev-lora'
|
|
8069
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
8070
|
+
| 'flux.2-klein-4b-lora'
|
|
8071
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
8072
|
+
| 'flux.2-klein-9b-lora'
|
|
8073
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
8074
|
+
| 'flux.2-klein-base-4b-lora'
|
|
8075
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
8076
|
+
| 'flux.2-klein-base-9b-lora'
|
|
6865
8077
|
| 'flux1.1-pro'
|
|
6866
8078
|
| 'gpt-image-1'
|
|
8079
|
+
| 'qwen-image-2512-lora'
|
|
8080
|
+
| 'qwen-image-edit-2509-lora'
|
|
8081
|
+
| 'qwen-image-edit-2511-lora'
|
|
8082
|
+
| 'qwen-image-edit-lora'
|
|
8083
|
+
| 'qwen-image-lora'
|
|
6867
8084
|
| 'sd-1_5'
|
|
6868
8085
|
| 'sd-1_5-composition'
|
|
6869
8086
|
| 'sd-1_5-lora'
|
|
6870
8087
|
| 'sd-xl'
|
|
6871
8088
|
| 'sd-xl-composition'
|
|
6872
|
-
| 'sd-xl-lora'
|
|
8089
|
+
| 'sd-xl-lora'
|
|
8090
|
+
| 'zimage-de-turbo-lora'
|
|
8091
|
+
| 'zimage-lora'
|
|
8092
|
+
| 'zimage-turbo-lora';
|
|
6873
8093
|
|
|
6874
8094
|
/**
|
|
6875
8095
|
* The model last update date as an ISO string (example:
|
|
@@ -6881,7 +8101,7 @@ export namespace ModelTransferResponse {
|
|
|
6881
8101
|
* The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
|
|
6882
8102
|
* 75: Team plan 100: Enterprise plan
|
|
6883
8103
|
*/
|
|
6884
|
-
accessRestrictions?:
|
|
8104
|
+
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
6885
8105
|
|
|
6886
8106
|
/**
|
|
6887
8107
|
* The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
|
|
@@ -6893,11 +8113,6 @@ export namespace ModelTransferResponse {
|
|
|
6893
8113
|
*/
|
|
6894
8114
|
class?: Model.Class;
|
|
6895
8115
|
|
|
6896
|
-
/**
|
|
6897
|
-
* Compliance and regulatory metadata for the model
|
|
6898
|
-
*/
|
|
6899
|
-
complianceMetadata?: Model.ComplianceMetadata;
|
|
6900
|
-
|
|
6901
8116
|
/**
|
|
6902
8117
|
* List of base model IDs compliant with the model (example: ["flux.1-dev",
|
|
6903
8118
|
* "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
|
|
@@ -6957,6 +8172,11 @@ export namespace ModelTransferResponse {
|
|
|
6957
8172
|
*/
|
|
6958
8173
|
parentModelId?: string;
|
|
6959
8174
|
|
|
8175
|
+
/**
|
|
8176
|
+
* Aggregated performance stats
|
|
8177
|
+
*/
|
|
8178
|
+
performanceStats?: Model.PerformanceStats;
|
|
8179
|
+
|
|
6960
8180
|
/**
|
|
6961
8181
|
* Fine-tune the model's inferences with prompt embedding
|
|
6962
8182
|
*/
|
|
@@ -7057,36 +8277,6 @@ export namespace ModelTransferResponse {
|
|
|
7057
8277
|
thumbnails: Array<string>;
|
|
7058
8278
|
}
|
|
7059
8279
|
|
|
7060
|
-
/**
|
|
7061
|
-
* Compliance and regulatory metadata for the model
|
|
7062
|
-
*/
|
|
7063
|
-
export interface ComplianceMetadata {
|
|
7064
|
-
/**
|
|
7065
|
-
* Data processing comment (e.g., zeroRetention, temporaryRetention, etc.)
|
|
7066
|
-
*/
|
|
7067
|
-
dataProcessingComment?: 'researchOnly' | 'serviceImprovement' | 'temporaryRetention' | 'zeroRetention';
|
|
7068
|
-
|
|
7069
|
-
/**
|
|
7070
|
-
* URL to license terms
|
|
7071
|
-
*/
|
|
7072
|
-
licenseTerms?: string;
|
|
7073
|
-
|
|
7074
|
-
/**
|
|
7075
|
-
* The maintainer of the model
|
|
7076
|
-
*/
|
|
7077
|
-
maintainer?: 'Fal' | 'Provider' | 'Replicate' | 'Scenario';
|
|
7078
|
-
|
|
7079
|
-
/**
|
|
7080
|
-
* The provider of the model (examples: 'Google', 'AWS', 'BFL', 'Meshy', etc.)
|
|
7081
|
-
*/
|
|
7082
|
-
modelProvider?: string;
|
|
7083
|
-
|
|
7084
|
-
/**
|
|
7085
|
-
* The sub-processor used for the model
|
|
7086
|
-
*/
|
|
7087
|
-
subProcessor?: 'AWS' | 'Fal' | 'Modal' | 'Provider' | 'Replicate';
|
|
7088
|
-
}
|
|
7089
|
-
|
|
7090
8280
|
export interface Concept {
|
|
7091
8281
|
/**
|
|
7092
8282
|
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
@@ -7183,6 +8373,11 @@ export namespace ModelTransferResponse {
|
|
|
7183
8373
|
*/
|
|
7184
8374
|
costImpact?: boolean;
|
|
7185
8375
|
|
|
8376
|
+
/**
|
|
8377
|
+
* The default value for the input
|
|
8378
|
+
*/
|
|
8379
|
+
default?: unknown;
|
|
8380
|
+
|
|
7186
8381
|
/**
|
|
7187
8382
|
* Help text displayed in the UI to provide additional information about the input
|
|
7188
8383
|
*/
|
|
@@ -7204,11 +8399,13 @@ export namespace ModelTransferResponse {
|
|
|
7204
8399
|
* the same as the current object. This is only available for type inputs_array
|
|
7205
8400
|
* inputs.
|
|
7206
8401
|
*/
|
|
7207
|
-
inputs?: Array<unknown>;
|
|
8402
|
+
inputs?: Array<{ [key: string]: unknown }>;
|
|
7208
8403
|
|
|
7209
8404
|
/**
|
|
7210
8405
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
7211
|
-
* \`file_array\` input types.
|
|
8406
|
+
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
8407
|
+
* not able to create the asset on the flight on API side with dataurl without
|
|
8408
|
+
* data:kind, prefix
|
|
7212
8409
|
*/
|
|
7213
8410
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'video';
|
|
7214
8411
|
|
|
@@ -7234,6 +8431,13 @@ export namespace ModelTransferResponse {
|
|
|
7234
8431
|
*/
|
|
7235
8432
|
maxLength?: number;
|
|
7236
8433
|
|
|
8434
|
+
/**
|
|
8435
|
+
* The maximum allowed file size in bytes. Only applies to \`file\` and
|
|
8436
|
+
* \`file_array\` input types. Validated against \`asset.properties.size\` at job
|
|
8437
|
+
* creation time.
|
|
8438
|
+
*/
|
|
8439
|
+
maxSize?: number;
|
|
8440
|
+
|
|
7237
8441
|
/**
|
|
7238
8442
|
* The minimum allowed value. Only available for \`number\` and array input types.
|
|
7239
8443
|
*/
|
|
@@ -7251,6 +8455,7 @@ export namespace ModelTransferResponse {
|
|
|
7251
8455
|
*/
|
|
7252
8456
|
modelTypes?: Array<
|
|
7253
8457
|
| 'custom'
|
|
8458
|
+
| 'elevenlabs-voice'
|
|
7254
8459
|
| 'flux.1'
|
|
7255
8460
|
| 'flux.1-composition'
|
|
7256
8461
|
| 'flux.1-kontext-dev'
|
|
@@ -7260,14 +8465,32 @@ export namespace ModelTransferResponse {
|
|
|
7260
8465
|
| 'flux.1-lora'
|
|
7261
8466
|
| 'flux.1-pro'
|
|
7262
8467
|
| 'flux.1.1-pro-ultra'
|
|
8468
|
+
| 'flux.2-dev-edit-lora'
|
|
8469
|
+
| 'flux.2-dev-lora'
|
|
8470
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
8471
|
+
| 'flux.2-klein-4b-lora'
|
|
8472
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
8473
|
+
| 'flux.2-klein-9b-lora'
|
|
8474
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
8475
|
+
| 'flux.2-klein-base-4b-lora'
|
|
8476
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
8477
|
+
| 'flux.2-klein-base-9b-lora'
|
|
7263
8478
|
| 'flux1.1-pro'
|
|
7264
8479
|
| 'gpt-image-1'
|
|
8480
|
+
| 'qwen-image-2512-lora'
|
|
8481
|
+
| 'qwen-image-edit-2509-lora'
|
|
8482
|
+
| 'qwen-image-edit-2511-lora'
|
|
8483
|
+
| 'qwen-image-edit-lora'
|
|
8484
|
+
| 'qwen-image-lora'
|
|
7265
8485
|
| 'sd-1_5'
|
|
7266
8486
|
| 'sd-1_5-composition'
|
|
7267
8487
|
| 'sd-1_5-lora'
|
|
7268
8488
|
| 'sd-xl'
|
|
7269
8489
|
| 'sd-xl-composition'
|
|
7270
8490
|
| 'sd-xl-lora'
|
|
8491
|
+
| 'zimage-de-turbo-lora'
|
|
8492
|
+
| 'zimage-lora'
|
|
8493
|
+
| 'zimage-turbo-lora'
|
|
7271
8494
|
>;
|
|
7272
8495
|
|
|
7273
8496
|
/**
|
|
@@ -7364,6 +8587,13 @@ export namespace ModelTransferResponse {
|
|
|
7364
8587
|
* The parameters of the model
|
|
7365
8588
|
*/
|
|
7366
8589
|
export interface Parameters {
|
|
8590
|
+
/**
|
|
8591
|
+
* Age group of the voice (for professional cloning)
|
|
8592
|
+
*
|
|
8593
|
+
* Only available for ElevenLabs voice training
|
|
8594
|
+
*/
|
|
8595
|
+
age?: string;
|
|
8596
|
+
|
|
7367
8597
|
/**
|
|
7368
8598
|
* The batch size Less steps, and will increase the learning rate
|
|
7369
8599
|
*
|
|
@@ -7378,6 +8608,14 @@ export namespace ModelTransferResponse {
|
|
|
7378
8608
|
*/
|
|
7379
8609
|
classPrompt?: string;
|
|
7380
8610
|
|
|
8611
|
+
/**
|
|
8612
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
8613
|
+
* requires captcha)
|
|
8614
|
+
*
|
|
8615
|
+
* Only available for ElevenLabs voice training
|
|
8616
|
+
*/
|
|
8617
|
+
cloneType?: string;
|
|
8618
|
+
|
|
7381
8619
|
/**
|
|
7382
8620
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
7383
8621
|
* (example: "a daiton dog")
|
|
@@ -7390,6 +8628,20 @@ export namespace ModelTransferResponse {
|
|
|
7390
8628
|
*/
|
|
7391
8629
|
conceptPrompt?: string;
|
|
7392
8630
|
|
|
8631
|
+
/**
|
|
8632
|
+
* Gender of the voice (for professional cloning)
|
|
8633
|
+
*
|
|
8634
|
+
* Only available for ElevenLabs voice training
|
|
8635
|
+
*/
|
|
8636
|
+
gender?: string;
|
|
8637
|
+
|
|
8638
|
+
/**
|
|
8639
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
8640
|
+
*
|
|
8641
|
+
* Only available for ElevenLabs voice training
|
|
8642
|
+
*/
|
|
8643
|
+
language?: string;
|
|
8644
|
+
|
|
7393
8645
|
/**
|
|
7394
8646
|
* Initial learning rate (after the potential warmup period)
|
|
7395
8647
|
*
|
|
@@ -7524,15 +8776,27 @@ export namespace ModelTransferResponse {
|
|
|
7524
8776
|
/**
|
|
7525
8777
|
* The dimension of the LoRA update matrices
|
|
7526
8778
|
*
|
|
7527
|
-
* Only available for SDXL
|
|
8779
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
7528
8780
|
*
|
|
7529
8781
|
* Default value varies depending on the model type:
|
|
7530
8782
|
*
|
|
7531
|
-
* - For SDXL: 64
|
|
8783
|
+
* - For SDXL (deprecated): 64
|
|
7532
8784
|
* - For Flux: 16
|
|
8785
|
+
* - For Musubi: 64
|
|
8786
|
+
*
|
|
8787
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
8788
|
+
* 128])
|
|
7533
8789
|
*/
|
|
7534
8790
|
rank?: number;
|
|
7535
8791
|
|
|
8792
|
+
/**
|
|
8793
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
8794
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
8795
|
+
*
|
|
8796
|
+
* Only available for ElevenLabs voice training
|
|
8797
|
+
*/
|
|
8798
|
+
removeBackgroundNoise?: boolean;
|
|
8799
|
+
|
|
7536
8800
|
/**
|
|
7537
8801
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
7538
8802
|
*/
|
|
@@ -7586,12 +8850,148 @@ export namespace ModelTransferResponse {
|
|
|
7586
8850
|
*/
|
|
7587
8851
|
validationPrompt?: string;
|
|
7588
8852
|
|
|
8853
|
+
/**
|
|
8854
|
+
* Description of the voice characteristics
|
|
8855
|
+
*
|
|
8856
|
+
* Only available for ElevenLabs voice training
|
|
8857
|
+
*/
|
|
8858
|
+
voiceDescription?: string;
|
|
8859
|
+
|
|
7589
8860
|
/**
|
|
7590
8861
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
7591
8862
|
*/
|
|
7592
8863
|
wandbKey?: string;
|
|
7593
8864
|
}
|
|
7594
8865
|
|
|
8866
|
+
/**
|
|
8867
|
+
* Aggregated performance stats
|
|
8868
|
+
*/
|
|
8869
|
+
export interface PerformanceStats {
|
|
8870
|
+
/**
|
|
8871
|
+
* Performance metrics per variant
|
|
8872
|
+
*/
|
|
8873
|
+
variants: Array<PerformanceStats.Variant>;
|
|
8874
|
+
|
|
8875
|
+
/**
|
|
8876
|
+
* Default variant key for quick model comparison
|
|
8877
|
+
*/
|
|
8878
|
+
default?: string;
|
|
8879
|
+
}
|
|
8880
|
+
|
|
8881
|
+
export namespace PerformanceStats {
|
|
8882
|
+
/**
|
|
8883
|
+
* Performance stats for a model variant
|
|
8884
|
+
*/
|
|
8885
|
+
export interface Variant {
|
|
8886
|
+
/**
|
|
8887
|
+
* The generation capability (example: "txt2img", "img2video", "txt2audio")
|
|
8888
|
+
*/
|
|
8889
|
+
capability: string;
|
|
8890
|
+
|
|
8891
|
+
/**
|
|
8892
|
+
* When these stats were last computed (ISO date)
|
|
8893
|
+
*/
|
|
8894
|
+
computedAt: string;
|
|
8895
|
+
|
|
8896
|
+
/**
|
|
8897
|
+
* Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
|
|
8898
|
+
*/
|
|
8899
|
+
variantKey: string;
|
|
8900
|
+
|
|
8901
|
+
/**
|
|
8902
|
+
* External quality score from arena.ai leaderboard
|
|
8903
|
+
*/
|
|
8904
|
+
arenaScore?: Variant.ArenaScore;
|
|
8905
|
+
|
|
8906
|
+
/**
|
|
8907
|
+
* Maximum cost per output asset (CU)
|
|
8908
|
+
*/
|
|
8909
|
+
costPerAssetMaxCU?: number;
|
|
8910
|
+
|
|
8911
|
+
/**
|
|
8912
|
+
* Minimum cost per output asset (CU)
|
|
8913
|
+
*/
|
|
8914
|
+
costPerAssetMinCU?: number;
|
|
8915
|
+
|
|
8916
|
+
/**
|
|
8917
|
+
* Median cost per output asset (CU)
|
|
8918
|
+
*/
|
|
8919
|
+
costPerAssetP50CU?: number;
|
|
8920
|
+
|
|
8921
|
+
/**
|
|
8922
|
+
* Inference latency P50 per output asset (seconds)
|
|
8923
|
+
*/
|
|
8924
|
+
inferenceLatencyP50Sec?: number;
|
|
8925
|
+
|
|
8926
|
+
/**
|
|
8927
|
+
* Inference latency P75 per output asset (seconds)
|
|
8928
|
+
*/
|
|
8929
|
+
inferenceLatencyP75Sec?: number;
|
|
8930
|
+
|
|
8931
|
+
/**
|
|
8932
|
+
* The resolution bucket (example: "0.5K", "1K", "2K", "4K")
|
|
8933
|
+
*/
|
|
8934
|
+
resolution?: string;
|
|
8935
|
+
|
|
8936
|
+
/**
|
|
8937
|
+
* Total latency P50 per output asset, including queue time (seconds)
|
|
8938
|
+
*/
|
|
8939
|
+
totalLatencyP50Sec?: number;
|
|
8940
|
+
|
|
8941
|
+
/**
|
|
8942
|
+
* Total latency P75 per output asset, including queue time (seconds)
|
|
8943
|
+
*/
|
|
8944
|
+
totalLatencyP75Sec?: number;
|
|
8945
|
+
}
|
|
8946
|
+
|
|
8947
|
+
export namespace Variant {
|
|
8948
|
+
/**
|
|
8949
|
+
* External quality score from arena.ai leaderboard
|
|
8950
|
+
*/
|
|
8951
|
+
export interface ArenaScore {
|
|
8952
|
+
/**
|
|
8953
|
+
* Arena category (example: "text_to_image", "image_to_video")
|
|
8954
|
+
*/
|
|
8955
|
+
arenaCategory: string;
|
|
8956
|
+
|
|
8957
|
+
/**
|
|
8958
|
+
* Model name on arena.ai
|
|
8959
|
+
*/
|
|
8960
|
+
arenaModelName: string;
|
|
8961
|
+
|
|
8962
|
+
/**
|
|
8963
|
+
* When this score was last fetched (ISO date)
|
|
8964
|
+
*/
|
|
8965
|
+
fetchedAt: string;
|
|
8966
|
+
|
|
8967
|
+
/**
|
|
8968
|
+
* Rank in the arena category
|
|
8969
|
+
*/
|
|
8970
|
+
rank: number;
|
|
8971
|
+
|
|
8972
|
+
/**
|
|
8973
|
+
* ELO rating
|
|
8974
|
+
*/
|
|
8975
|
+
rating: number;
|
|
8976
|
+
|
|
8977
|
+
/**
|
|
8978
|
+
* ELO rating confidence interval lower bound
|
|
8979
|
+
*/
|
|
8980
|
+
ratingLower: number;
|
|
8981
|
+
|
|
8982
|
+
/**
|
|
8983
|
+
* ELO rating confidence interval upper bound
|
|
8984
|
+
*/
|
|
8985
|
+
ratingUpper: number;
|
|
8986
|
+
|
|
8987
|
+
/**
|
|
8988
|
+
* Number of human votes
|
|
8989
|
+
*/
|
|
8990
|
+
votes: number;
|
|
8991
|
+
}
|
|
8992
|
+
}
|
|
8993
|
+
}
|
|
8994
|
+
|
|
7595
8995
|
/**
|
|
7596
8996
|
* A thumbnail for your model
|
|
7597
8997
|
*/
|
|
@@ -7665,7 +9065,7 @@ export namespace ModelTransferResponse {
|
|
|
7665
9065
|
/**
|
|
7666
9066
|
* The stage of the request
|
|
7667
9067
|
*/
|
|
7668
|
-
stage: 'pending' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
9068
|
+
stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'running-train' | 'starting-train';
|
|
7669
9069
|
|
|
7670
9070
|
/**
|
|
7671
9071
|
* Timestamp in milliseconds of the last time the training progress was updated
|
|
@@ -7867,7 +9267,7 @@ export interface ModelCreateParams {
|
|
|
7867
9267
|
/**
|
|
7868
9268
|
* Query param: If set to true, returns the original asset without transformation
|
|
7869
9269
|
*/
|
|
7870
|
-
originalAssets?:
|
|
9270
|
+
originalAssets?: boolean;
|
|
7871
9271
|
|
|
7872
9272
|
/**
|
|
7873
9273
|
* Body param: The ID of the base model to use as a starting point for the training
|
|
@@ -7921,6 +9321,7 @@ export interface ModelCreateParams {
|
|
|
7921
9321
|
*/
|
|
7922
9322
|
type?:
|
|
7923
9323
|
| 'custom'
|
|
9324
|
+
| 'elevenlabs-voice'
|
|
7924
9325
|
| 'flux.1'
|
|
7925
9326
|
| 'flux.1-composition'
|
|
7926
9327
|
| 'flux.1-kontext-dev'
|
|
@@ -7930,14 +9331,32 @@ export interface ModelCreateParams {
|
|
|
7930
9331
|
| 'flux.1-lora'
|
|
7931
9332
|
| 'flux.1-pro'
|
|
7932
9333
|
| 'flux.1.1-pro-ultra'
|
|
9334
|
+
| 'flux.2-dev-edit-lora'
|
|
9335
|
+
| 'flux.2-dev-lora'
|
|
9336
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
9337
|
+
| 'flux.2-klein-4b-lora'
|
|
9338
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
9339
|
+
| 'flux.2-klein-9b-lora'
|
|
9340
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
9341
|
+
| 'flux.2-klein-base-4b-lora'
|
|
9342
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
9343
|
+
| 'flux.2-klein-base-9b-lora'
|
|
7933
9344
|
| 'flux1.1-pro'
|
|
7934
9345
|
| 'gpt-image-1'
|
|
9346
|
+
| 'qwen-image-2512-lora'
|
|
9347
|
+
| 'qwen-image-edit-2509-lora'
|
|
9348
|
+
| 'qwen-image-edit-2511-lora'
|
|
9349
|
+
| 'qwen-image-edit-lora'
|
|
9350
|
+
| 'qwen-image-lora'
|
|
7935
9351
|
| 'sd-1_5'
|
|
7936
9352
|
| 'sd-1_5-composition'
|
|
7937
9353
|
| 'sd-1_5-lora'
|
|
7938
9354
|
| 'sd-xl'
|
|
7939
9355
|
| 'sd-xl-composition'
|
|
7940
|
-
| 'sd-xl-lora'
|
|
9356
|
+
| 'sd-xl-lora'
|
|
9357
|
+
| 'zimage-de-turbo-lora'
|
|
9358
|
+
| 'zimage-lora'
|
|
9359
|
+
| 'zimage-turbo-lora';
|
|
7941
9360
|
}
|
|
7942
9361
|
|
|
7943
9362
|
export namespace ModelCreateParams {
|
|
@@ -7965,14 +9384,14 @@ export interface ModelRetrieveParams {
|
|
|
7965
9384
|
/**
|
|
7966
9385
|
* If set to true, returns the original asset without transformation
|
|
7967
9386
|
*/
|
|
7968
|
-
originalAssets?:
|
|
9387
|
+
originalAssets?: boolean;
|
|
7969
9388
|
}
|
|
7970
9389
|
|
|
7971
9390
|
export interface ModelUpdateParams {
|
|
7972
9391
|
/**
|
|
7973
9392
|
* Query param: If set to true, returns the original asset without transformation
|
|
7974
9393
|
*/
|
|
7975
|
-
originalAssets?:
|
|
9394
|
+
originalAssets?: boolean;
|
|
7976
9395
|
|
|
7977
9396
|
/**
|
|
7978
9397
|
* Body param: The slug of the class you want to use (ex:
|
|
@@ -8046,6 +9465,7 @@ export interface ModelUpdateParams {
|
|
|
8046
9465
|
*/
|
|
8047
9466
|
type?:
|
|
8048
9467
|
| 'custom'
|
|
9468
|
+
| 'elevenlabs-voice'
|
|
8049
9469
|
| 'flux.1'
|
|
8050
9470
|
| 'flux.1-composition'
|
|
8051
9471
|
| 'flux.1-kontext-dev'
|
|
@@ -8055,14 +9475,32 @@ export interface ModelUpdateParams {
|
|
|
8055
9475
|
| 'flux.1-lora'
|
|
8056
9476
|
| 'flux.1-pro'
|
|
8057
9477
|
| 'flux.1.1-pro-ultra'
|
|
9478
|
+
| 'flux.2-dev-edit-lora'
|
|
9479
|
+
| 'flux.2-dev-lora'
|
|
9480
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
9481
|
+
| 'flux.2-klein-4b-lora'
|
|
9482
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
9483
|
+
| 'flux.2-klein-9b-lora'
|
|
9484
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
9485
|
+
| 'flux.2-klein-base-4b-lora'
|
|
9486
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
9487
|
+
| 'flux.2-klein-base-9b-lora'
|
|
8058
9488
|
| 'flux1.1-pro'
|
|
8059
9489
|
| 'gpt-image-1'
|
|
9490
|
+
| 'qwen-image-2512-lora'
|
|
9491
|
+
| 'qwen-image-edit-2509-lora'
|
|
9492
|
+
| 'qwen-image-edit-2511-lora'
|
|
9493
|
+
| 'qwen-image-edit-lora'
|
|
9494
|
+
| 'qwen-image-lora'
|
|
8060
9495
|
| 'sd-1_5'
|
|
8061
9496
|
| 'sd-1_5-composition'
|
|
8062
9497
|
| 'sd-1_5-lora'
|
|
8063
9498
|
| 'sd-xl'
|
|
8064
9499
|
| 'sd-xl-composition'
|
|
8065
|
-
| 'sd-xl-lora'
|
|
9500
|
+
| 'sd-xl-lora'
|
|
9501
|
+
| 'zimage-de-turbo-lora'
|
|
9502
|
+
| 'zimage-lora'
|
|
9503
|
+
| 'zimage-turbo-lora';
|
|
8066
9504
|
}
|
|
8067
9505
|
|
|
8068
9506
|
export namespace ModelUpdateParams {
|
|
@@ -8089,6 +9527,13 @@ export namespace ModelUpdateParams {
|
|
|
8089
9527
|
* The parameters to use for the model's training
|
|
8090
9528
|
*/
|
|
8091
9529
|
export interface Parameters {
|
|
9530
|
+
/**
|
|
9531
|
+
* Age group of the voice (for professional cloning)
|
|
9532
|
+
*
|
|
9533
|
+
* Only available for ElevenLabs voice training
|
|
9534
|
+
*/
|
|
9535
|
+
age?: string;
|
|
9536
|
+
|
|
8092
9537
|
/**
|
|
8093
9538
|
* The batch size Less steps, and will increase the learning rate
|
|
8094
9539
|
*
|
|
@@ -8103,6 +9548,14 @@ export namespace ModelUpdateParams {
|
|
|
8103
9548
|
*/
|
|
8104
9549
|
classPrompt?: string;
|
|
8105
9550
|
|
|
9551
|
+
/**
|
|
9552
|
+
* Type of voice cloning: "instant" (fast) or "professional" (higher quality,
|
|
9553
|
+
* requires captcha)
|
|
9554
|
+
*
|
|
9555
|
+
* Only available for ElevenLabs voice training
|
|
9556
|
+
*/
|
|
9557
|
+
cloneType?: string;
|
|
9558
|
+
|
|
8106
9559
|
/**
|
|
8107
9560
|
* The prompt with identifier specifying the instance (or subject) of the class
|
|
8108
9561
|
* (example: "a daiton dog")
|
|
@@ -8115,6 +9568,20 @@ export namespace ModelUpdateParams {
|
|
|
8115
9568
|
*/
|
|
8116
9569
|
conceptPrompt?: string;
|
|
8117
9570
|
|
|
9571
|
+
/**
|
|
9572
|
+
* Gender of the voice (for professional cloning)
|
|
9573
|
+
*
|
|
9574
|
+
* Only available for ElevenLabs voice training
|
|
9575
|
+
*/
|
|
9576
|
+
gender?: string;
|
|
9577
|
+
|
|
9578
|
+
/**
|
|
9579
|
+
* Language of the audio samples (ISO 639-1 code)
|
|
9580
|
+
*
|
|
9581
|
+
* Only available for ElevenLabs voice training
|
|
9582
|
+
*/
|
|
9583
|
+
language?: string;
|
|
9584
|
+
|
|
8118
9585
|
/**
|
|
8119
9586
|
* Initial learning rate (after the potential warmup period)
|
|
8120
9587
|
*
|
|
@@ -8249,15 +9716,27 @@ export namespace ModelUpdateParams {
|
|
|
8249
9716
|
/**
|
|
8250
9717
|
* The dimension of the LoRA update matrices
|
|
8251
9718
|
*
|
|
8252
|
-
* Only available for SDXL
|
|
9719
|
+
* Only available for SDXL (deprecated), Flux LoRA and Musubi training
|
|
8253
9720
|
*
|
|
8254
9721
|
* Default value varies depending on the model type:
|
|
8255
9722
|
*
|
|
8256
|
-
* - For SDXL: 64
|
|
9723
|
+
* - For SDXL (deprecated): 64
|
|
8257
9724
|
* - For Flux: 16
|
|
9725
|
+
* - For Musubi: 64
|
|
9726
|
+
*
|
|
9727
|
+
* Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
|
|
9728
|
+
* 128])
|
|
8258
9729
|
*/
|
|
8259
9730
|
rank?: number;
|
|
8260
9731
|
|
|
9732
|
+
/**
|
|
9733
|
+
* Whether to remove background noise from audio samples before cloning. When
|
|
9734
|
+
* enabled, each sample must be at least 5 seconds long.
|
|
9735
|
+
*
|
|
9736
|
+
* Only available for ElevenLabs voice training
|
|
9737
|
+
*/
|
|
9738
|
+
removeBackgroundNoise?: boolean;
|
|
9739
|
+
|
|
8261
9740
|
/**
|
|
8262
9741
|
* The prompts to use for each epoch Only available for Flux LoRA training
|
|
8263
9742
|
*/
|
|
@@ -8311,6 +9790,13 @@ export namespace ModelUpdateParams {
|
|
|
8311
9790
|
*/
|
|
8312
9791
|
validationPrompt?: string;
|
|
8313
9792
|
|
|
9793
|
+
/**
|
|
9794
|
+
* Description of the voice characteristics
|
|
9795
|
+
*
|
|
9796
|
+
* Only available for ElevenLabs voice training
|
|
9797
|
+
*/
|
|
9798
|
+
voiceDescription?: string;
|
|
9799
|
+
|
|
8314
9800
|
/**
|
|
8315
9801
|
* The Weights And Bias key to use for logging. The maximum length is 40 characters
|
|
8316
9802
|
*/
|
|
@@ -8320,10 +9806,10 @@ export namespace ModelUpdateParams {
|
|
|
8320
9806
|
|
|
8321
9807
|
export interface ModelListParams {
|
|
8322
9808
|
/**
|
|
8323
|
-
* If set to true, returns the list of models blacklisted
|
|
8324
|
-
* available for team admins)
|
|
9809
|
+
* If set to true, returns the full list of models (including blacklisted models)
|
|
9810
|
+
* (only available for team admins)
|
|
8325
9811
|
*/
|
|
8326
|
-
blacklisted?:
|
|
9812
|
+
blacklisted?: boolean;
|
|
8327
9813
|
|
|
8328
9814
|
/**
|
|
8329
9815
|
* When provided, only the models in the Collection will be returned. Only
|
|
@@ -8354,18 +9840,18 @@ export interface ModelListParams {
|
|
|
8354
9840
|
/**
|
|
8355
9841
|
* If set to true, returns the list of models currently loaded on GPU
|
|
8356
9842
|
*/
|
|
8357
|
-
loadedOnly?:
|
|
9843
|
+
loadedOnly?: boolean;
|
|
8358
9844
|
|
|
8359
9845
|
/**
|
|
8360
9846
|
* If set to true, returns the original asset without transformation
|
|
8361
9847
|
*/
|
|
8362
|
-
originalAssets?:
|
|
9848
|
+
originalAssets?: boolean;
|
|
8363
9849
|
|
|
8364
9850
|
/**
|
|
8365
9851
|
* The number of items to return in the response. The default value is 100, maximum
|
|
8366
9852
|
* value is 500, minimum value is 1
|
|
8367
9853
|
*/
|
|
8368
|
-
pageSize?:
|
|
9854
|
+
pageSize?: number;
|
|
8369
9855
|
|
|
8370
9856
|
/**
|
|
8371
9857
|
* A token you received in a previous request to query the next page of items
|
|
@@ -8376,7 +9862,7 @@ export interface ModelListParams {
|
|
|
8376
9862
|
* The privacy of the models to return. The default value is `private`, possible
|
|
8377
9863
|
* values are `private` and `public`
|
|
8378
9864
|
*/
|
|
8379
|
-
privacy?:
|
|
9865
|
+
privacy?: 'private' | 'public';
|
|
8380
9866
|
|
|
8381
9867
|
/**
|
|
8382
9868
|
* Sort results by createdAt, updatedAt, or score. When privacy=public, defaults to
|
|
@@ -8384,7 +9870,7 @@ export interface ModelListParams {
|
|
|
8384
9870
|
* score (default: createdAt). When sortBy=score for privacy=private/unlisted, both
|
|
8385
9871
|
* privacy and status query parameters are required.
|
|
8386
9872
|
*/
|
|
8387
|
-
sortBy?:
|
|
9873
|
+
sortBy?: 'createdAt' | 'updatedAt' | 'score';
|
|
8388
9874
|
|
|
8389
9875
|
/**
|
|
8390
9876
|
* Sort results in ascending (asc) or descending (desc) order. Only used when
|
|
@@ -8392,12 +9878,12 @@ export interface ModelListParams {
|
|
|
8392
9878
|
* privacy=private/unlisted. For public models, this parameter is ignored when
|
|
8393
9879
|
* sortBy is not specified or set to score.
|
|
8394
9880
|
*/
|
|
8395
|
-
sortDirection?:
|
|
9881
|
+
sortDirection?: 'asc' | 'desc';
|
|
8396
9882
|
|
|
8397
9883
|
/**
|
|
8398
9884
|
* The status of the models to return. Only available when privacy=private/unlisted
|
|
8399
9885
|
*/
|
|
8400
|
-
status?:
|
|
9886
|
+
status?: 'new' | 'training' | 'trained' | 'failed' | 'deleted';
|
|
8401
9887
|
|
|
8402
9888
|
/**
|
|
8403
9889
|
* List of tags, comma separated. Only available when privacy=public
|
|
@@ -8409,16 +9895,67 @@ export interface ModelListParams {
|
|
|
8409
9895
|
* sd-1_5, sd-1_5-lora, sd-1_5-composition, sd-xl, sd-xl-lora, sd-xl-composition,
|
|
8410
9896
|
* flux.1, flux.1-lora, flux.1-kontext-dev, flux.1-krea-dev, flux.1-kontext-lora,
|
|
8411
9897
|
* flux.1-krea-lora, flux.1-composition, flux.1-pro, flux1.1-pro,
|
|
8412
|
-
* flux.1.1-pro-ultra,
|
|
9898
|
+
* flux.1.1-pro-ultra, flux.2-dev-lora, flux.2-dev-edit-lora, flux.2-klein-4b-lora,
|
|
9899
|
+
* flux.2-klein-9b-lora, flux.2-klein-base-4b-lora, flux.2-klein-base-9b-lora,
|
|
9900
|
+
* flux.2-klein-4b-edit-lora, flux.2-klein-9b-edit-lora,
|
|
9901
|
+
* flux.2-klein-base-4b-edit-lora, flux.2-klein-base-9b-edit-lora, gpt-image-1,
|
|
9902
|
+
* qwen-image-lora, qwen-image-2512-lora, qwen-image-edit-lora,
|
|
9903
|
+
* qwen-image-edit-2509-lora, qwen-image-edit-2511-lora, zimage-lora,
|
|
9904
|
+
* zimage-turbo-lora, zimage-de-turbo-lora, custom, elevenlabs-voice. Only
|
|
9905
|
+
* available when privacy=public
|
|
8413
9906
|
*/
|
|
8414
|
-
type?:
|
|
9907
|
+
type?:
|
|
9908
|
+
| 'sd-1_5'
|
|
9909
|
+
| 'sd-1_5-lora'
|
|
9910
|
+
| 'sd-1_5-composition'
|
|
9911
|
+
| 'sd-xl'
|
|
9912
|
+
| 'sd-xl-lora'
|
|
9913
|
+
| 'sd-xl-composition'
|
|
9914
|
+
| 'flux.1'
|
|
9915
|
+
| 'flux.1-lora'
|
|
9916
|
+
| 'flux.1-kontext-dev'
|
|
9917
|
+
| 'flux.1-krea-dev'
|
|
9918
|
+
| 'flux.1-kontext-lora'
|
|
9919
|
+
| 'flux.1-krea-lora'
|
|
9920
|
+
| 'flux.1-composition'
|
|
9921
|
+
| 'flux.1-pro'
|
|
9922
|
+
| 'flux1.1-pro'
|
|
9923
|
+
| 'flux.1.1-pro-ultra'
|
|
9924
|
+
| 'flux.2-dev-lora'
|
|
9925
|
+
| 'flux.2-dev-edit-lora'
|
|
9926
|
+
| 'flux.2-klein-4b-lora'
|
|
9927
|
+
| 'flux.2-klein-9b-lora'
|
|
9928
|
+
| 'flux.2-klein-base-4b-lora'
|
|
9929
|
+
| 'flux.2-klein-base-9b-lora'
|
|
9930
|
+
| 'flux.2-klein-4b-edit-lora'
|
|
9931
|
+
| 'flux.2-klein-9b-edit-lora'
|
|
9932
|
+
| 'flux.2-klein-base-4b-edit-lora'
|
|
9933
|
+
| 'flux.2-klein-base-9b-edit-lora'
|
|
9934
|
+
| 'gpt-image-1'
|
|
9935
|
+
| 'qwen-image-lora'
|
|
9936
|
+
| 'qwen-image-2512-lora'
|
|
9937
|
+
| 'qwen-image-edit-lora'
|
|
9938
|
+
| 'qwen-image-edit-2509-lora'
|
|
9939
|
+
| 'qwen-image-edit-2511-lora'
|
|
9940
|
+
| 'zimage-lora'
|
|
9941
|
+
| 'zimage-turbo-lora'
|
|
9942
|
+
| 'zimage-de-turbo-lora'
|
|
9943
|
+
| 'custom'
|
|
9944
|
+
| 'elevenlabs-voice';
|
|
8415
9945
|
|
|
8416
9946
|
/**
|
|
8417
9947
|
* List of types, comma separated. Can be any of the following values: sd-1_5,
|
|
8418
9948
|
* sd-1_5-lora, sd-1_5-composition, sd-xl, sd-xl-lora, sd-xl-composition, flux.1,
|
|
8419
9949
|
* flux.1-lora, flux.1-kontext-dev, flux.1-krea-dev, flux.1-kontext-lora,
|
|
8420
9950
|
* flux.1-krea-lora, flux.1-composition, flux.1-pro, flux1.1-pro,
|
|
8421
|
-
* flux.1.1-pro-ultra,
|
|
9951
|
+
* flux.1.1-pro-ultra, flux.2-dev-lora, flux.2-dev-edit-lora, flux.2-klein-4b-lora,
|
|
9952
|
+
* flux.2-klein-9b-lora, flux.2-klein-base-4b-lora, flux.2-klein-base-9b-lora,
|
|
9953
|
+
* flux.2-klein-4b-edit-lora, flux.2-klein-9b-edit-lora,
|
|
9954
|
+
* flux.2-klein-base-4b-edit-lora, flux.2-klein-base-9b-edit-lora, gpt-image-1,
|
|
9955
|
+
* qwen-image-lora, qwen-image-2512-lora, qwen-image-edit-lora,
|
|
9956
|
+
* qwen-image-edit-2509-lora, qwen-image-edit-2511-lora, zimage-lora,
|
|
9957
|
+
* zimage-turbo-lora, zimage-de-turbo-lora, custom, elevenlabs-voice. Only
|
|
9958
|
+
* available when privacy=public
|
|
8422
9959
|
*/
|
|
8423
9960
|
types?: string;
|
|
8424
9961
|
|
|
@@ -8441,7 +9978,7 @@ export interface ModelCopyParams {
|
|
|
8441
9978
|
/**
|
|
8442
9979
|
* Query param: If set to true, returns the original asset without transformation
|
|
8443
9980
|
*/
|
|
8444
|
-
originalAssets?:
|
|
9981
|
+
originalAssets?: boolean;
|
|
8445
9982
|
|
|
8446
9983
|
/**
|
|
8447
9984
|
* Body param: If set to true, the training data will be copied
|
|
@@ -8458,7 +9995,7 @@ export interface ModelDeleteImagesParams {
|
|
|
8458
9995
|
/**
|
|
8459
9996
|
* The asset ids of the images to delete
|
|
8460
9997
|
*/
|
|
8461
|
-
ids: string
|
|
9998
|
+
ids: Array<string>;
|
|
8462
9999
|
}
|
|
8463
10000
|
|
|
8464
10001
|
export interface ModelDownloadParams {
|
|
@@ -8474,7 +10011,7 @@ export interface ModelGetBulkParams {
|
|
|
8474
10011
|
/**
|
|
8475
10012
|
* Query param: If set to true, returns the original asset without transformation
|
|
8476
10013
|
*/
|
|
8477
|
-
originalAssets?:
|
|
10014
|
+
originalAssets?: boolean;
|
|
8478
10015
|
|
|
8479
10016
|
/**
|
|
8480
10017
|
* Body param: If true will return all training images; otherwise returns only the
|