@civitai/orchestration-client 0.2.1 → 0.2.3
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/dist/generated/index.d.ts +36 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +15 -1
- package/dist/generated/sdk.gen.js +15 -1
- package/dist/generated/services.gen.d.ts +3414 -0
- package/dist/generated/services.gen.js +405 -0
- package/dist/generated/types.gen.d.ts +615 -81
- package/dist/generated/types.gen.js +5 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/services.d.ts +31 -0
- package/dist/utils/services.js +36 -0
- package/package.json +2 -2
|
@@ -1575,6 +1575,67 @@ export type ComfyErnieTurboImageGenInput = Omit<
|
|
|
1575
1575
|
ecosystem: 'ernie';
|
|
1576
1576
|
engine: 'comfy';
|
|
1577
1577
|
};
|
|
1578
|
+
export type ComfyFibo2DevCreateImageInput = Omit<
|
|
1579
|
+
ComfyFibo2DevImageGenInput,
|
|
1580
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
1581
|
+
> & {
|
|
1582
|
+
operation: 'createImage';
|
|
1583
|
+
model: 'dev';
|
|
1584
|
+
ecosystem: 'fibo2';
|
|
1585
|
+
engine: 'comfy';
|
|
1586
|
+
};
|
|
1587
|
+
export type ComfyFibo2DevImageGenInput = Omit<
|
|
1588
|
+
ComfyFibo2ImageGenInput,
|
|
1589
|
+
'engine' | 'ecosystem' | 'model'
|
|
1590
|
+
> & {
|
|
1591
|
+
operation: null | string;
|
|
1592
|
+
model: 'dev';
|
|
1593
|
+
ecosystem: 'fibo2';
|
|
1594
|
+
engine: 'comfy';
|
|
1595
|
+
};
|
|
1596
|
+
export type ComfyFibo2EditTurboEditImageInput = Omit<
|
|
1597
|
+
ComfyFibo2EditTurboImageGenInput,
|
|
1598
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
1599
|
+
> & {
|
|
1600
|
+
images: Array<string>;
|
|
1601
|
+
operation: 'editImage';
|
|
1602
|
+
model: 'editTurbo';
|
|
1603
|
+
ecosystem: 'fibo2';
|
|
1604
|
+
engine: 'comfy';
|
|
1605
|
+
};
|
|
1606
|
+
export type ComfyFibo2EditTurboImageGenInput = Omit<
|
|
1607
|
+
ComfyFibo2ImageGenInput,
|
|
1608
|
+
'engine' | 'ecosystem' | 'model'
|
|
1609
|
+
> & {
|
|
1610
|
+
operation: null | string;
|
|
1611
|
+
steps?: number;
|
|
1612
|
+
cfgScale?: number;
|
|
1613
|
+
model: 'editTurbo';
|
|
1614
|
+
ecosystem: 'fibo2';
|
|
1615
|
+
engine: 'comfy';
|
|
1616
|
+
};
|
|
1617
|
+
export type ComfyFibo2ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1618
|
+
model: null | string;
|
|
1619
|
+
prompt: string;
|
|
1620
|
+
negativePrompt?: null | string;
|
|
1621
|
+
width?: number;
|
|
1622
|
+
height?: number;
|
|
1623
|
+
seed?: null | number;
|
|
1624
|
+
quantity?: number;
|
|
1625
|
+
steps?: number;
|
|
1626
|
+
cfgScale?: number;
|
|
1627
|
+
sampler?: ComfySampler;
|
|
1628
|
+
scheduler?: ComfyScheduler;
|
|
1629
|
+
loras?: {
|
|
1630
|
+
[key: string]: number;
|
|
1631
|
+
};
|
|
1632
|
+
/**
|
|
1633
|
+
* Compatible Fibo 2.0 diffusion checkpoint AIR. Omit or set null to use the selected model's int8 checkpoint; the int8 text encoder and VAE remain unchanged.
|
|
1634
|
+
*/
|
|
1635
|
+
diffusionModel?: null | string;
|
|
1636
|
+
ecosystem: 'fibo2';
|
|
1637
|
+
engine: 'comfy';
|
|
1638
|
+
};
|
|
1578
1639
|
export type ComfyFlux1CreateImageGenInput = Omit<
|
|
1579
1640
|
ComfyFlux1ImageGenInput,
|
|
1580
1641
|
'engine' | 'ecosystem' | 'operation'
|
|
@@ -2630,6 +2691,44 @@ export type ComfyMiniMaxH3ControlVideoInput = Omit<
|
|
|
2630
2691
|
operation: 'controlVideo';
|
|
2631
2692
|
engine: 'minimax-h3-comfy';
|
|
2632
2693
|
};
|
|
2694
|
+
export type ComfyMiniMaxH3CreateImageInput = Omit<
|
|
2695
|
+
ComfyMiniMaxH3ImageGenInput,
|
|
2696
|
+
'engine' | 'ecosystem' | 'operation'
|
|
2697
|
+
> & {
|
|
2698
|
+
operation: 'createImage';
|
|
2699
|
+
ecosystem: 'h3-image';
|
|
2700
|
+
engine: 'comfy';
|
|
2701
|
+
};
|
|
2702
|
+
export type ComfyMiniMaxH3EditImageInput = Omit<
|
|
2703
|
+
ComfyMiniMaxH3ImageGenInput,
|
|
2704
|
+
'engine' | 'ecosystem' | 'operation'
|
|
2705
|
+
> & {
|
|
2706
|
+
images: Array<string>;
|
|
2707
|
+
operation: 'editImage';
|
|
2708
|
+
ecosystem: 'h3-image';
|
|
2709
|
+
engine: 'comfy';
|
|
2710
|
+
};
|
|
2711
|
+
export type ComfyMiniMaxH3ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
2712
|
+
operation: null | string;
|
|
2713
|
+
prompt: string;
|
|
2714
|
+
width?: number;
|
|
2715
|
+
height?: number;
|
|
2716
|
+
seed?: null | number;
|
|
2717
|
+
quantity?: number;
|
|
2718
|
+
loras?: {
|
|
2719
|
+
[key: string]: number;
|
|
2720
|
+
};
|
|
2721
|
+
/**
|
|
2722
|
+
* Compatible six-step MiniMax H3 Image checkpoint AIR. Omit or set null for pruned INT8; the NVFP4 text encoder and image VAE are unchanged.
|
|
2723
|
+
*/
|
|
2724
|
+
diffusionModel?: null | string;
|
|
2725
|
+
steps?: number;
|
|
2726
|
+
cfgScale?: number;
|
|
2727
|
+
sampler?: ComfySampler;
|
|
2728
|
+
scheduler?: ComfyScheduler;
|
|
2729
|
+
ecosystem: 'h3-image';
|
|
2730
|
+
engine: 'comfy';
|
|
2731
|
+
};
|
|
2633
2732
|
/**
|
|
2634
2733
|
* Text-to-video or first/last-frame video using the FL2VA weights.
|
|
2635
2734
|
*/
|
|
@@ -2683,6 +2782,10 @@ export type ComfyMiniMaxH3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
2683
2782
|
[key: string]: number;
|
|
2684
2783
|
};
|
|
2685
2784
|
turbo?: boolean;
|
|
2785
|
+
/**
|
|
2786
|
+
* Refine draft latents in three steps to a 2560-pixel long edge (2560x1440 for widescreen), preserving draft audio. Width and height describe the draft.
|
|
2787
|
+
*/
|
|
2788
|
+
upscale?: boolean;
|
|
2686
2789
|
engine: 'minimax-h3-comfy';
|
|
2687
2790
|
};
|
|
2688
2791
|
export type ComfyMossImageBaseCreateImageInput = Omit<
|
|
@@ -3807,6 +3910,15 @@ export type FalPolyGenInput = Omit<PolyGenInput, 'engine'> & {
|
|
|
3807
3910
|
model: string;
|
|
3808
3911
|
engine: 'fal';
|
|
3809
3912
|
};
|
|
3913
|
+
export type Fibo2AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
|
|
3914
|
+
readonly defaultSteps: number;
|
|
3915
|
+
ecosystem: 'fibo2';
|
|
3916
|
+
engine: 'ai-toolkit';
|
|
3917
|
+
/**
|
|
3918
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
3919
|
+
*/
|
|
3920
|
+
batchSize?: null | number;
|
|
3921
|
+
};
|
|
3810
3922
|
export declare const FileFormat: {
|
|
3811
3923
|
readonly UNKNOWN: 'unknown';
|
|
3812
3924
|
readonly SAFE_TENSOR: 'safeTensor';
|
|
@@ -4669,6 +4781,7 @@ export type GeminiImageGenInput = Omit<ImageGenInput, 'engine'> & {
|
|
|
4669
4781
|
};
|
|
4670
4782
|
export declare const GeminiOmniModel: {
|
|
4671
4783
|
readonly '1_1_FLASH': '1.1-flash';
|
|
4784
|
+
readonly '1_2_FLASH': '1.2-flash';
|
|
4672
4785
|
};
|
|
4673
4786
|
export type GeminiOmniModel = (typeof GeminiOmniModel)[keyof typeof GeminiOmniModel];
|
|
4674
4787
|
export declare const GeminiOmniResolution: {
|
|
@@ -4683,6 +4796,10 @@ export type GeminiOmniVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
4683
4796
|
aspectRatio?: '16:9' | '9:16';
|
|
4684
4797
|
resolution?: GeminiOmniResolution;
|
|
4685
4798
|
images?: Array<string>;
|
|
4799
|
+
/**
|
|
4800
|
+
* Output length in seconds for 1.2 Flash; defaults to 10. First/last-frame generation supports at most 10 seconds.
|
|
4801
|
+
*/
|
|
4802
|
+
duration?: null | number;
|
|
4686
4803
|
readonly maxBillableSeconds: number;
|
|
4687
4804
|
engine: 'gemini-omni';
|
|
4688
4805
|
};
|
|
@@ -5327,6 +5444,19 @@ export type Ideogram4AiToolkitTrainingInput = Omit<
|
|
|
5327
5444
|
*/
|
|
5328
5445
|
batchSize?: null | number;
|
|
5329
5446
|
};
|
|
5447
|
+
export type IdolComfyPolyGenInput = Omit<ComfyPolyGenInput, 'engine' | 'model'> & {
|
|
5448
|
+
imageUrl: string;
|
|
5449
|
+
diffusionModel?: null | string;
|
|
5450
|
+
seed?: null | number;
|
|
5451
|
+
steps?: number;
|
|
5452
|
+
cfgScale?: number;
|
|
5453
|
+
mode?: 'synthetic' | 'real';
|
|
5454
|
+
numGaussians?: number;
|
|
5455
|
+
minOpacity?: number;
|
|
5456
|
+
removeBackground?: boolean;
|
|
5457
|
+
model: 'idol';
|
|
5458
|
+
engine: 'comfy';
|
|
5459
|
+
};
|
|
5330
5460
|
export declare const ImageBackgroundRemovalFormat: {
|
|
5331
5461
|
readonly PNG: 'png';
|
|
5332
5462
|
readonly WEBP: 'webp';
|
|
@@ -5394,6 +5524,8 @@ export declare const ImageGenOutputFormat: {
|
|
|
5394
5524
|
readonly JPEG: 'jpeg';
|
|
5395
5525
|
readonly PNG: 'png';
|
|
5396
5526
|
readonly WEB_P: 'webP';
|
|
5527
|
+
readonly GIF: 'gif';
|
|
5528
|
+
readonly SVG: 'svg';
|
|
5397
5529
|
};
|
|
5398
5530
|
export type ImageGenOutputFormat = (typeof ImageGenOutputFormat)[keyof typeof ImageGenOutputFormat];
|
|
5399
5531
|
/**
|
|
@@ -5530,6 +5662,10 @@ export type ImageScanningInput = {
|
|
|
5530
5662
|
* Image to scan. URLs are imported into orchestrator blob storage before the job is queued.
|
|
5531
5663
|
*/
|
|
5532
5664
|
image: string;
|
|
5665
|
+
/**
|
|
5666
|
+
* Omit for SigLIP PG–XXX ratings. radio-alpha returns experimental S/V axes without changing the image's stored moderation verdict.
|
|
5667
|
+
*/
|
|
5668
|
+
'rater-model'?: 'siglip' | 'radio-alpha';
|
|
5533
5669
|
};
|
|
5534
5670
|
export type ImageScanningJointAgeClassification = {
|
|
5535
5671
|
status: string;
|
|
@@ -5569,6 +5705,9 @@ export type ImageScanningLabelScore = {
|
|
|
5569
5705
|
score: number;
|
|
5570
5706
|
};
|
|
5571
5707
|
export type ImageScanningOutput = {
|
|
5708
|
+
/**
|
|
5709
|
+
* Legacy PG–XXX rating. NA for RADIO; use RatingV2 instead.
|
|
5710
|
+
*/
|
|
5572
5711
|
nsfwLevel: NsfwLevel;
|
|
5573
5712
|
score: number;
|
|
5574
5713
|
topK: Array<ImageScanningLabelScore>;
|
|
@@ -5582,12 +5721,36 @@ export type ImageScanningOutput = {
|
|
|
5582
5721
|
* Why the image would be refused as input to other workflows; null when it passes.
|
|
5583
5722
|
*/
|
|
5584
5723
|
blockedReason?: null | string;
|
|
5724
|
+
/**
|
|
5725
|
+
* Experimental RADIO axes and routing decision; independent of the legacy NSFW scale.
|
|
5726
|
+
*/
|
|
5727
|
+
ratingV2?: ImageScanningRatingV2;
|
|
5585
5728
|
};
|
|
5586
5729
|
export type ImageScanningPersonMask = {
|
|
5587
5730
|
width: number;
|
|
5588
5731
|
height: number;
|
|
5589
5732
|
pngBase64: string;
|
|
5590
5733
|
};
|
|
5734
|
+
export type ImageScanningRatingAxis = {
|
|
5735
|
+
label: string;
|
|
5736
|
+
score: number;
|
|
5737
|
+
scores: {
|
|
5738
|
+
[key: string]: number;
|
|
5739
|
+
};
|
|
5740
|
+
topK?: null | Array<ImageScanningLabelScore>;
|
|
5741
|
+
logits?: null | Array<number>;
|
|
5742
|
+
};
|
|
5743
|
+
export type ImageScanningRatingV2 = {
|
|
5744
|
+
status: string;
|
|
5745
|
+
modelRef: string;
|
|
5746
|
+
checkpointSha256: string;
|
|
5747
|
+
sexual: ImageScanningRatingAxis;
|
|
5748
|
+
violence: ImageScanningRatingAxis;
|
|
5749
|
+
restricted: boolean;
|
|
5750
|
+
restrictedScore: number;
|
|
5751
|
+
restrictedThreshold: number;
|
|
5752
|
+
routingRule: string;
|
|
5753
|
+
};
|
|
5591
5754
|
export type ImageScanningRecognition = {
|
|
5592
5755
|
label: string;
|
|
5593
5756
|
score: number;
|
|
@@ -6001,81 +6164,139 @@ export type KlingVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
6001
6164
|
sourceImage?: null | string;
|
|
6002
6165
|
engine: 'kling';
|
|
6003
6166
|
};
|
|
6004
|
-
export type
|
|
6167
|
+
export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
|
|
6168
|
+
/**
|
|
6169
|
+
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
|
|
6170
|
+
*/
|
|
6171
|
+
model: string;
|
|
6005
6172
|
/**
|
|
6006
|
-
*
|
|
6173
|
+
* Number of saved checkpoints across the training run.
|
|
6007
6174
|
*/
|
|
6008
|
-
maxTrainEpochs
|
|
6175
|
+
maxTrainEpochs: number;
|
|
6009
6176
|
/**
|
|
6010
|
-
*
|
|
6177
|
+
* Number of times each training image is repeated per dataset epoch.
|
|
6011
6178
|
*/
|
|
6012
|
-
numRepeats
|
|
6179
|
+
numRepeats: number;
|
|
6013
6180
|
/**
|
|
6014
|
-
*
|
|
6181
|
+
* Images per optimizer step.
|
|
6015
6182
|
*/
|
|
6016
|
-
trainBatchSize
|
|
6183
|
+
trainBatchSize: number;
|
|
6017
6184
|
/**
|
|
6018
|
-
*
|
|
6185
|
+
* Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
|
|
6019
6186
|
*/
|
|
6020
6187
|
resolution?: null | number;
|
|
6021
6188
|
/**
|
|
6022
|
-
*
|
|
6189
|
+
* Group images into aspect-ratio buckets.
|
|
6023
6190
|
*/
|
|
6024
|
-
enableBucket
|
|
6191
|
+
enableBucket: boolean;
|
|
6025
6192
|
/**
|
|
6026
|
-
*
|
|
6193
|
+
* Shuffle comma-separated caption tokens during training.
|
|
6027
6194
|
*/
|
|
6028
|
-
shuffleCaption
|
|
6195
|
+
shuffleCaption: boolean;
|
|
6029
6196
|
/**
|
|
6030
|
-
*
|
|
6197
|
+
* Leading caption tokens kept in place while shuffling.
|
|
6031
6198
|
*/
|
|
6032
|
-
keepTokens
|
|
6199
|
+
keepTokens: number;
|
|
6033
6200
|
/**
|
|
6034
|
-
*
|
|
6201
|
+
* CLIP layer skip for SD1.5; other families use 1.
|
|
6035
6202
|
*/
|
|
6036
|
-
clipSkip
|
|
6203
|
+
clipSkip: number;
|
|
6037
6204
|
/**
|
|
6038
|
-
*
|
|
6205
|
+
* Random horizontal image flips.
|
|
6039
6206
|
*/
|
|
6040
|
-
flipAugmentation
|
|
6207
|
+
flipAugmentation: boolean;
|
|
6041
6208
|
/**
|
|
6042
|
-
*
|
|
6209
|
+
* Learning rate for the diffusion model LoRA.
|
|
6043
6210
|
*/
|
|
6044
|
-
unetLR
|
|
6211
|
+
unetLR: number;
|
|
6045
6212
|
/**
|
|
6046
|
-
*
|
|
6213
|
+
* Learning rate for text encoder LoRA modules.
|
|
6047
6214
|
*/
|
|
6048
|
-
textEncoderLR
|
|
6215
|
+
textEncoderLR: number;
|
|
6049
6216
|
/**
|
|
6050
|
-
*
|
|
6217
|
+
* Learning-rate schedule over the total optimizer-step budget.
|
|
6051
6218
|
*/
|
|
6052
|
-
lrScheduler
|
|
6219
|
+
lrScheduler:
|
|
6220
|
+
| 'constant'
|
|
6221
|
+
| 'constant_with_warmup'
|
|
6222
|
+
| 'cosine'
|
|
6223
|
+
| 'cosine_with_restarts'
|
|
6224
|
+
| 'linear'
|
|
6225
|
+
| 'polynomial';
|
|
6053
6226
|
/**
|
|
6054
|
-
*
|
|
6227
|
+
* Number of cycles used by cosine_with_restarts; ignored by other schedulers.
|
|
6055
6228
|
*/
|
|
6056
|
-
lrSchedulerNumCycles
|
|
6229
|
+
lrSchedulerNumCycles: number;
|
|
6057
6230
|
/**
|
|
6058
|
-
*
|
|
6231
|
+
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
6059
6232
|
*/
|
|
6060
6233
|
minSnrGamma?: null | number;
|
|
6061
6234
|
/**
|
|
6062
|
-
*
|
|
6235
|
+
* LoRA rank; must match ContinueFrom weights.
|
|
6063
6236
|
*/
|
|
6064
|
-
networkDim
|
|
6237
|
+
networkDim: number;
|
|
6065
6238
|
/**
|
|
6066
|
-
*
|
|
6067
|
-
* equal values leave it unchanged.
|
|
6239
|
+
* LoRA alpha; must match ContinueFrom weights.
|
|
6068
6240
|
*/
|
|
6069
|
-
networkAlpha
|
|
6241
|
+
networkAlpha: number;
|
|
6070
6242
|
/**
|
|
6071
|
-
*
|
|
6243
|
+
* Noise offset for SD training; flow models require 0.
|
|
6072
6244
|
*/
|
|
6073
|
-
noiseOffset
|
|
6245
|
+
noiseOffset: number;
|
|
6074
6246
|
/**
|
|
6075
|
-
* Optimizer
|
|
6247
|
+
* Optimizer used for the LoRA parameters; names are case-insensitive.
|
|
6076
6248
|
*/
|
|
6077
|
-
optimizerType
|
|
6078
|
-
|
|
6249
|
+
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
6250
|
+
/**
|
|
6251
|
+
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
6252
|
+
*/
|
|
6253
|
+
trainTextEncoder?: null | boolean;
|
|
6254
|
+
/**
|
|
6255
|
+
* Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
|
|
6256
|
+
*/
|
|
6257
|
+
steps?: null | number;
|
|
6258
|
+
/**
|
|
6259
|
+
* Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
|
|
6260
|
+
*/
|
|
6261
|
+
continueFrom?: null | string;
|
|
6262
|
+
/**
|
|
6263
|
+
* Optional FLUX CLIP-L resource override.
|
|
6264
|
+
*/
|
|
6265
|
+
clipLModel?: null | string;
|
|
6266
|
+
/**
|
|
6267
|
+
* Optional FLUX or Chroma T5 text encoder resource override.
|
|
6268
|
+
*/
|
|
6269
|
+
textEncoderModel?: null | string;
|
|
6270
|
+
/**
|
|
6271
|
+
* Optional VAE resource override.
|
|
6272
|
+
*/
|
|
6273
|
+
vaeModel?: null | string;
|
|
6274
|
+
/**
|
|
6275
|
+
* Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
|
|
6276
|
+
*/
|
|
6277
|
+
fp8Base?: null | boolean;
|
|
6278
|
+
/**
|
|
6279
|
+
* Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
|
|
6280
|
+
*/
|
|
6281
|
+
blocksToSwap?: null | number;
|
|
6282
|
+
/**
|
|
6283
|
+
* Random seed for training and generated samples.
|
|
6284
|
+
*/
|
|
6285
|
+
seed: number;
|
|
6286
|
+
/**
|
|
6287
|
+
* What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
|
|
6288
|
+
* while the job runs.
|
|
6289
|
+
*/
|
|
6290
|
+
trace: TrainingTraceMode;
|
|
6291
|
+
/**
|
|
6292
|
+
* Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
|
|
6293
|
+
*/
|
|
6294
|
+
vParameterization?: null | boolean;
|
|
6295
|
+
/**
|
|
6296
|
+
* Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
|
|
6297
|
+
*/
|
|
6298
|
+
zeroTerminalSnr?: null | boolean;
|
|
6299
|
+
readonly usesStepPricing: boolean;
|
|
6079
6300
|
engine: 'kohya';
|
|
6080
6301
|
};
|
|
6081
6302
|
export type Krea2AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
|
|
@@ -6449,6 +6670,23 @@ export type LoadingResourceAvailability = Omit<ResourceAvailability, 'status'> &
|
|
|
6449
6670
|
rateLimitBytesPerSecond?: null | number;
|
|
6450
6671
|
status: 'loading';
|
|
6451
6672
|
};
|
|
6673
|
+
export type LoraEvidence = {
|
|
6674
|
+
name: string;
|
|
6675
|
+
sha256: string;
|
|
6676
|
+
verdict: string;
|
|
6677
|
+
expectedStrength: number;
|
|
6678
|
+
fittedStrength?: null | number;
|
|
6679
|
+
verificationStrength?: null | number;
|
|
6680
|
+
partialCosine?: null | number;
|
|
6681
|
+
signalToRounding?: null | number;
|
|
6682
|
+
supportingLayers: number;
|
|
6683
|
+
resolvableLayers: number;
|
|
6684
|
+
matchedLayers: number;
|
|
6685
|
+
totalLayers: number;
|
|
6686
|
+
unmappedLayers: Array<string>;
|
|
6687
|
+
baseSha256?: null | string;
|
|
6688
|
+
adapterKinds?: null | Array<string>;
|
|
6689
|
+
};
|
|
6452
6690
|
export type Ltx23AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
|
|
6453
6691
|
readonly defaultSteps: number;
|
|
6454
6692
|
readonly storageBuzzPerEpoch: number;
|
|
@@ -6893,6 +7131,15 @@ export declare const MergeReducer: {
|
|
|
6893
7131
|
* How a merge field combines its values. Null values are skipped, except by `any` and `all`, which count them as false.
|
|
6894
7132
|
*/
|
|
6895
7133
|
export type MergeReducer = (typeof MergeReducer)[keyof typeof MergeReducer];
|
|
7134
|
+
export type MergeReport = {
|
|
7135
|
+
baseSha256: string;
|
|
7136
|
+
checkpointSha256: string;
|
|
7137
|
+
explainedFraction?: null | number;
|
|
7138
|
+
expectedExplainedFraction: number;
|
|
7139
|
+
verificationSamples: number;
|
|
7140
|
+
candidates: Array<LoraEvidence>;
|
|
7141
|
+
warnings: Array<string>;
|
|
7142
|
+
};
|
|
6896
7143
|
/**
|
|
6897
7144
|
* Merge
|
|
6898
7145
|
*/
|
|
@@ -7143,6 +7390,18 @@ export type MiniMaxH3AiToolkitTrainingInput = Omit<
|
|
|
7143
7390
|
*/
|
|
7144
7391
|
batchSize?: null | number;
|
|
7145
7392
|
};
|
|
7393
|
+
export type MiniMaxH3ImageAiToolkitTrainingInput = Omit<
|
|
7394
|
+
AiToolkitTrainingInput,
|
|
7395
|
+
'engine' | 'ecosystem'
|
|
7396
|
+
> & {
|
|
7397
|
+
readonly defaultSteps: number;
|
|
7398
|
+
ecosystem: 'minimaxh3image';
|
|
7399
|
+
engine: 'ai-toolkit';
|
|
7400
|
+
/**
|
|
7401
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
7402
|
+
*/
|
|
7403
|
+
batchSize?: null | number;
|
|
7404
|
+
};
|
|
7146
7405
|
export type MiniMaxH3MaxImageToVideoInput = Omit<
|
|
7147
7406
|
MiniMaxH3MaxVideoGenInput,
|
|
7148
7407
|
'engine' | 'operation'
|
|
@@ -7379,6 +7638,43 @@ export type Model3dPreviewStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
|
7379
7638
|
input: Model3dPreviewInput;
|
|
7380
7639
|
$type: 'model3DPreview';
|
|
7381
7640
|
};
|
|
7641
|
+
export type ModelAnalysisInput = {
|
|
7642
|
+
/**
|
|
7643
|
+
* The exact original checkpoint, pinned to a safetensors model version/file.
|
|
7644
|
+
*/
|
|
7645
|
+
baseModel: string;
|
|
7646
|
+
checkpoint: string;
|
|
7647
|
+
loras: Array<ModelAnalysisLora>;
|
|
7648
|
+
};
|
|
7649
|
+
export type ModelAnalysisLora = {
|
|
7650
|
+
model: string;
|
|
7651
|
+
/**
|
|
7652
|
+
* Optional expected merge strength. The actual strength is fitted independently.
|
|
7653
|
+
*/
|
|
7654
|
+
strength?: number;
|
|
7655
|
+
};
|
|
7656
|
+
export type ModelAnalysisOutput = {
|
|
7657
|
+
report: MergeReport;
|
|
7658
|
+
blob: Blob;
|
|
7659
|
+
};
|
|
7660
|
+
/**
|
|
7661
|
+
* Check a checkpoint for evidence of specified merged LoRAs.
|
|
7662
|
+
*/
|
|
7663
|
+
export type ModelAnalysisStep = Omit<WorkflowStep, '$type'> & {
|
|
7664
|
+
input: ModelAnalysisInput;
|
|
7665
|
+
output?: ModelAnalysisOutput;
|
|
7666
|
+
$type: 'modelAnalysis';
|
|
7667
|
+
};
|
|
7668
|
+
/**
|
|
7669
|
+
* Check a checkpoint for evidence of specified merged LoRAs.
|
|
7670
|
+
*/
|
|
7671
|
+
export type ModelAnalysisStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
7672
|
+
/**
|
|
7673
|
+
* Input for the ModelAnalysisStep step.
|
|
7674
|
+
*/
|
|
7675
|
+
input: ModelAnalysisInput;
|
|
7676
|
+
$type: 'modelAnalysis';
|
|
7677
|
+
};
|
|
7382
7678
|
export type ModelClamScanInput = {
|
|
7383
7679
|
model: string;
|
|
7384
7680
|
};
|
|
@@ -7401,6 +7697,8 @@ export declare const ModelClamScanStatus: {
|
|
|
7401
7697
|
readonly INFECTED: 'infected';
|
|
7402
7698
|
readonly TIMEOUT: 'timeout';
|
|
7403
7699
|
readonly ERROR: 'error';
|
|
7700
|
+
readonly ENCRYPTED: 'encrypted';
|
|
7701
|
+
readonly LIMITS_EXCEEDED: 'limitsExceeded';
|
|
7404
7702
|
};
|
|
7405
7703
|
export type ModelClamScanStatus = (typeof ModelClamScanStatus)[keyof typeof ModelClamScanStatus];
|
|
7406
7704
|
/**
|
|
@@ -7992,6 +8290,116 @@ export type OpenAiGpt25SunburstImageGenInput = Omit<OpenApiImageGenInput, 'engin
|
|
|
7992
8290
|
model: 'gpt-image-2.5-sunburst';
|
|
7993
8291
|
engine: 'openai';
|
|
7994
8292
|
};
|
|
8293
|
+
export type OpenAiGpt26FlareCreateImageInput = Omit<
|
|
8294
|
+
OpenAiGpt26FlareImageGenInput,
|
|
8295
|
+
'engine' | 'model' | 'operation'
|
|
8296
|
+
> & {
|
|
8297
|
+
operation: 'createImage';
|
|
8298
|
+
model: 'gpt-image-2.6-flare';
|
|
8299
|
+
engine: 'openai';
|
|
8300
|
+
};
|
|
8301
|
+
export type OpenAiGpt26FlareEditImageInput = Omit<
|
|
8302
|
+
OpenAiGpt26FlareImageGenInput,
|
|
8303
|
+
'engine' | 'model' | 'operation'
|
|
8304
|
+
> & {
|
|
8305
|
+
images: Array<string>;
|
|
8306
|
+
/**
|
|
8307
|
+
* White marks regions to edit; black marks regions to keep.
|
|
8308
|
+
*/
|
|
8309
|
+
mask?: null | string;
|
|
8310
|
+
/**
|
|
8311
|
+
* Transparent PNG annotations matching the first image. Cannot be combined with mask.
|
|
8312
|
+
*/
|
|
8313
|
+
markupImage?: null | string;
|
|
8314
|
+
/**
|
|
8315
|
+
* Set both dimensions or leave both null to infer the output size.
|
|
8316
|
+
*/
|
|
8317
|
+
width?: null | number;
|
|
8318
|
+
height?: null | number;
|
|
8319
|
+
operation: 'editImage';
|
|
8320
|
+
model: 'gpt-image-2.6-flare';
|
|
8321
|
+
engine: 'openai';
|
|
8322
|
+
};
|
|
8323
|
+
export type OpenAiGpt26FlareImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8324
|
+
operation: string;
|
|
8325
|
+
prompt: string;
|
|
8326
|
+
width?: null | number;
|
|
8327
|
+
height?: null | number;
|
|
8328
|
+
quantity?: number;
|
|
8329
|
+
quality?: 'auto' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8330
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
8331
|
+
background?: 'auto' | 'transparent' | 'opaque';
|
|
8332
|
+
outputCompression?: null | number;
|
|
8333
|
+
/**
|
|
8334
|
+
* GIF frames, from 2 to 16. Defaults to 9; all frames share the 8,294,400-pixel budget.
|
|
8335
|
+
*/
|
|
8336
|
+
frameCount?: null | number;
|
|
8337
|
+
/**
|
|
8338
|
+
* GIF frame duration in milliseconds, rounded to 10 ms. Defaults to 200.
|
|
8339
|
+
*/
|
|
8340
|
+
frameDurationMs?: null | number;
|
|
8341
|
+
/**
|
|
8342
|
+
* Vector conversion model for SVG generation. Defaults to gpt-6-astra.
|
|
8343
|
+
*/
|
|
8344
|
+
svgModel?: null | 'gpt-6-astra' | 'gpt-5.5' | 'gpt-5.4' | 'gpt-5.6-terra' | 'gpt-6-luna';
|
|
8345
|
+
model: 'gpt-image-2.6-flare';
|
|
8346
|
+
engine: 'openai';
|
|
8347
|
+
};
|
|
8348
|
+
export type OpenAiGpt26SunburstCreateImageInput = Omit<
|
|
8349
|
+
OpenAiGpt26SunburstImageGenInput,
|
|
8350
|
+
'engine' | 'model' | 'operation'
|
|
8351
|
+
> & {
|
|
8352
|
+
operation: 'createImage';
|
|
8353
|
+
model: 'gpt-image-2.6-sunburst';
|
|
8354
|
+
engine: 'openai';
|
|
8355
|
+
};
|
|
8356
|
+
export type OpenAiGpt26SunburstEditImageInput = Omit<
|
|
8357
|
+
OpenAiGpt26SunburstImageGenInput,
|
|
8358
|
+
'engine' | 'model' | 'operation'
|
|
8359
|
+
> & {
|
|
8360
|
+
images: Array<string>;
|
|
8361
|
+
/**
|
|
8362
|
+
* White marks regions to edit; black marks regions to keep.
|
|
8363
|
+
*/
|
|
8364
|
+
mask?: null | string;
|
|
8365
|
+
/**
|
|
8366
|
+
* Transparent PNG annotations matching the first image. Cannot be combined with mask.
|
|
8367
|
+
*/
|
|
8368
|
+
markupImage?: null | string;
|
|
8369
|
+
/**
|
|
8370
|
+
* Set both dimensions or leave both null to infer the output size.
|
|
8371
|
+
*/
|
|
8372
|
+
width?: null | number;
|
|
8373
|
+
height?: null | number;
|
|
8374
|
+
operation: 'editImage';
|
|
8375
|
+
model: 'gpt-image-2.6-sunburst';
|
|
8376
|
+
engine: 'openai';
|
|
8377
|
+
};
|
|
8378
|
+
export type OpenAiGpt26SunburstImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
|
|
8379
|
+
operation: string;
|
|
8380
|
+
prompt: string;
|
|
8381
|
+
width?: null | number;
|
|
8382
|
+
height?: null | number;
|
|
8383
|
+
quantity?: number;
|
|
8384
|
+
quality?: 'auto' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
8385
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
8386
|
+
background?: 'auto' | 'transparent' | 'opaque';
|
|
8387
|
+
outputCompression?: null | number;
|
|
8388
|
+
/**
|
|
8389
|
+
* GIF frames, from 2 to 16. Defaults to 9; all frames share the 8,294,400-pixel budget.
|
|
8390
|
+
*/
|
|
8391
|
+
frameCount?: null | number;
|
|
8392
|
+
/**
|
|
8393
|
+
* GIF frame duration in milliseconds, rounded to 10 ms. Defaults to 200.
|
|
8394
|
+
*/
|
|
8395
|
+
frameDurationMs?: null | number;
|
|
8396
|
+
/**
|
|
8397
|
+
* Vector conversion model for SVG generation. Defaults to gpt-6-astra.
|
|
8398
|
+
*/
|
|
8399
|
+
svgModel?: null | 'gpt-6-astra' | 'gpt-5.5' | 'gpt-5.4' | 'gpt-5.6-terra' | 'gpt-6-luna';
|
|
8400
|
+
model: 'gpt-image-2.6-sunburst';
|
|
8401
|
+
engine: 'openai';
|
|
8402
|
+
};
|
|
7995
8403
|
export type OpenAiGpt2CreateImageInput = Omit<
|
|
7996
8404
|
OpenAiGpt2ImageGenInput,
|
|
7997
8405
|
'engine' | 'model' | 'operation'
|
|
@@ -8063,7 +8471,7 @@ export type PolyGenInput = {
|
|
|
8063
8471
|
};
|
|
8064
8472
|
export type PolyGenOutput = {
|
|
8065
8473
|
/**
|
|
8066
|
-
* Generated
|
|
8474
|
+
* Generated model in GLB format, or a Gaussian splat in PLY format for Idol. Null for FBX-only output.
|
|
8067
8475
|
*/
|
|
8068
8476
|
model?: Model3dBlob;
|
|
8069
8477
|
/**
|
|
@@ -9703,7 +10111,7 @@ export type TrainingInputSamples = {
|
|
|
9703
10111
|
prompts?: Array<string>;
|
|
9704
10112
|
negativePrompt?: null | string;
|
|
9705
10113
|
/**
|
|
9706
|
-
*
|
|
10114
|
+
* One source image per edit-LoRA preview, in prompt order. Repeated when there are fewer images than prompts.
|
|
9707
10115
|
*/
|
|
9708
10116
|
sourceImages?: Array<string>;
|
|
9709
10117
|
/**
|
|
@@ -10414,12 +10822,13 @@ export type VideoMetadataStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
|
10414
10822
|
export type VideoUpscalerInput = {
|
|
10415
10823
|
video: string;
|
|
10416
10824
|
scaleFactor?: number;
|
|
10825
|
+
model?: 'flashvsr' | 'relayvsr';
|
|
10417
10826
|
};
|
|
10418
10827
|
export type VideoUpscalerOutput = {
|
|
10419
10828
|
video?: VideoBlob;
|
|
10420
10829
|
};
|
|
10421
10830
|
/**
|
|
10422
|
-
* Upscale videos using FlashVSR
|
|
10831
|
+
* Upscale videos using FlashVSR or RelayVSR.
|
|
10423
10832
|
*/
|
|
10424
10833
|
export type VideoUpscalerStep = Omit<WorkflowStep, '$type'> & {
|
|
10425
10834
|
input: VideoUpscalerInput;
|
|
@@ -10427,7 +10836,7 @@ export type VideoUpscalerStep = Omit<WorkflowStep, '$type'> & {
|
|
|
10427
10836
|
$type: 'videoUpscaler';
|
|
10428
10837
|
};
|
|
10429
10838
|
/**
|
|
10430
|
-
* Upscale videos using FlashVSR
|
|
10839
|
+
* Upscale videos using FlashVSR or RelayVSR.
|
|
10431
10840
|
*/
|
|
10432
10841
|
export type VideoUpscalerStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
10433
10842
|
/**
|
|
@@ -11825,7 +12234,7 @@ export type YuE2Input = {
|
|
|
11825
12234
|
*/
|
|
11826
12235
|
style: string;
|
|
11827
12236
|
/**
|
|
11828
|
-
* Lyrics with section markers
|
|
12237
|
+
* Lyrics with section markers. Empty lyrics select instrumental generation.
|
|
11829
12238
|
*/
|
|
11830
12239
|
lyrics: string;
|
|
11831
12240
|
seed: number;
|
|
@@ -11855,6 +12264,10 @@ export type YuE2Input = {
|
|
|
11855
12264
|
loras: {
|
|
11856
12265
|
[key: string]: number;
|
|
11857
12266
|
};
|
|
12267
|
+
/**
|
|
12268
|
+
* Generate an instrumental score without sung lyrics. Score planning is required.
|
|
12269
|
+
*/
|
|
12270
|
+
instrumental?: boolean;
|
|
11858
12271
|
};
|
|
11859
12272
|
export type YuE2Output = {
|
|
11860
12273
|
blob: AudioBlob;
|
|
@@ -12470,6 +12883,17 @@ export type ErnieAiToolkitTrainingInputWritable = Omit<
|
|
|
12470
12883
|
*/
|
|
12471
12884
|
batchSize?: null | number;
|
|
12472
12885
|
};
|
|
12886
|
+
export type Fibo2AiToolkitTrainingInputWritable = Omit<
|
|
12887
|
+
AiToolkitTrainingInputWritable,
|
|
12888
|
+
'engine' | 'ecosystem'
|
|
12889
|
+
> & {
|
|
12890
|
+
ecosystem: 'fibo2';
|
|
12891
|
+
engine: 'ai-toolkit';
|
|
12892
|
+
/**
|
|
12893
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
12894
|
+
*/
|
|
12895
|
+
batchSize?: null | number;
|
|
12896
|
+
};
|
|
12473
12897
|
export type Flux1AiToolkitTrainingInputWritable = Omit<
|
|
12474
12898
|
AiToolkitTrainingInputWritable,
|
|
12475
12899
|
'engine' | 'ecosystem'
|
|
@@ -12588,6 +13012,10 @@ export type GeminiOmniVideoGenInputWritable = Omit<VideoGenInputWritable, 'engin
|
|
|
12588
13012
|
aspectRatio?: '16:9' | '9:16';
|
|
12589
13013
|
resolution?: GeminiOmniResolution;
|
|
12590
13014
|
images?: Array<string>;
|
|
13015
|
+
/**
|
|
13016
|
+
* Output length in seconds for 1.2 Flash; defaults to 10. First/last-frame generation supports at most 10 seconds.
|
|
13017
|
+
*/
|
|
13018
|
+
duration?: null | number;
|
|
12591
13019
|
engine: 'gemini-omni';
|
|
12592
13020
|
};
|
|
12593
13021
|
export type HiDreamO1AiToolkitTrainingInputWritable = Omit<
|
|
@@ -12612,83 +13040,138 @@ export type Ideogram4AiToolkitTrainingInputWritable = Omit<
|
|
|
12612
13040
|
*/
|
|
12613
13041
|
batchSize?: null | number;
|
|
12614
13042
|
};
|
|
12615
|
-
export type
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
13043
|
+
export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
|
|
13044
|
+
/**
|
|
13045
|
+
* Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
|
|
13046
|
+
*/
|
|
13047
|
+
model: string;
|
|
12619
13048
|
/**
|
|
12620
|
-
*
|
|
13049
|
+
* Number of saved checkpoints across the training run.
|
|
12621
13050
|
*/
|
|
12622
|
-
maxTrainEpochs
|
|
13051
|
+
maxTrainEpochs: number;
|
|
12623
13052
|
/**
|
|
12624
|
-
*
|
|
13053
|
+
* Number of times each training image is repeated per dataset epoch.
|
|
12625
13054
|
*/
|
|
12626
|
-
numRepeats
|
|
13055
|
+
numRepeats: number;
|
|
12627
13056
|
/**
|
|
12628
|
-
*
|
|
13057
|
+
* Images per optimizer step.
|
|
12629
13058
|
*/
|
|
12630
|
-
trainBatchSize
|
|
13059
|
+
trainBatchSize: number;
|
|
12631
13060
|
/**
|
|
12632
|
-
*
|
|
13061
|
+
* Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
|
|
12633
13062
|
*/
|
|
12634
13063
|
resolution?: null | number;
|
|
12635
13064
|
/**
|
|
12636
|
-
*
|
|
13065
|
+
* Group images into aspect-ratio buckets.
|
|
12637
13066
|
*/
|
|
12638
|
-
enableBucket
|
|
13067
|
+
enableBucket: boolean;
|
|
12639
13068
|
/**
|
|
12640
|
-
*
|
|
13069
|
+
* Shuffle comma-separated caption tokens during training.
|
|
12641
13070
|
*/
|
|
12642
|
-
shuffleCaption
|
|
13071
|
+
shuffleCaption: boolean;
|
|
12643
13072
|
/**
|
|
12644
|
-
*
|
|
13073
|
+
* Leading caption tokens kept in place while shuffling.
|
|
12645
13074
|
*/
|
|
12646
|
-
keepTokens
|
|
13075
|
+
keepTokens: number;
|
|
12647
13076
|
/**
|
|
12648
|
-
*
|
|
13077
|
+
* CLIP layer skip for SD1.5; other families use 1.
|
|
12649
13078
|
*/
|
|
12650
|
-
clipSkip
|
|
13079
|
+
clipSkip: number;
|
|
12651
13080
|
/**
|
|
12652
|
-
*
|
|
13081
|
+
* Random horizontal image flips.
|
|
12653
13082
|
*/
|
|
12654
|
-
flipAugmentation
|
|
13083
|
+
flipAugmentation: boolean;
|
|
12655
13084
|
/**
|
|
12656
|
-
*
|
|
13085
|
+
* Learning rate for the diffusion model LoRA.
|
|
12657
13086
|
*/
|
|
12658
|
-
unetLR
|
|
13087
|
+
unetLR: number;
|
|
12659
13088
|
/**
|
|
12660
|
-
*
|
|
13089
|
+
* Learning rate for text encoder LoRA modules.
|
|
12661
13090
|
*/
|
|
12662
|
-
textEncoderLR
|
|
13091
|
+
textEncoderLR: number;
|
|
12663
13092
|
/**
|
|
12664
|
-
*
|
|
13093
|
+
* Learning-rate schedule over the total optimizer-step budget.
|
|
12665
13094
|
*/
|
|
12666
|
-
lrScheduler
|
|
13095
|
+
lrScheduler:
|
|
13096
|
+
| 'constant'
|
|
13097
|
+
| 'constant_with_warmup'
|
|
13098
|
+
| 'cosine'
|
|
13099
|
+
| 'cosine_with_restarts'
|
|
13100
|
+
| 'linear'
|
|
13101
|
+
| 'polynomial';
|
|
12667
13102
|
/**
|
|
12668
|
-
*
|
|
13103
|
+
* Number of cycles used by cosine_with_restarts; ignored by other schedulers.
|
|
12669
13104
|
*/
|
|
12670
|
-
lrSchedulerNumCycles
|
|
13105
|
+
lrSchedulerNumCycles: number;
|
|
12671
13106
|
/**
|
|
12672
|
-
*
|
|
13107
|
+
* Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
|
|
12673
13108
|
*/
|
|
12674
13109
|
minSnrGamma?: null | number;
|
|
12675
13110
|
/**
|
|
12676
|
-
*
|
|
13111
|
+
* LoRA rank; must match ContinueFrom weights.
|
|
12677
13112
|
*/
|
|
12678
|
-
networkDim
|
|
13113
|
+
networkDim: number;
|
|
12679
13114
|
/**
|
|
12680
|
-
*
|
|
12681
|
-
* equal values leave it unchanged.
|
|
13115
|
+
* LoRA alpha; must match ContinueFrom weights.
|
|
12682
13116
|
*/
|
|
12683
|
-
networkAlpha
|
|
13117
|
+
networkAlpha: number;
|
|
12684
13118
|
/**
|
|
12685
|
-
*
|
|
13119
|
+
* Noise offset for SD training; flow models require 0.
|
|
12686
13120
|
*/
|
|
12687
|
-
noiseOffset
|
|
13121
|
+
noiseOffset: number;
|
|
12688
13122
|
/**
|
|
12689
|
-
* Optimizer
|
|
13123
|
+
* Optimizer used for the LoRA parameters; names are case-insensitive.
|
|
12690
13124
|
*/
|
|
12691
|
-
optimizerType
|
|
13125
|
+
optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
|
|
13126
|
+
/**
|
|
13127
|
+
* Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
|
|
13128
|
+
*/
|
|
13129
|
+
trainTextEncoder?: null | boolean;
|
|
13130
|
+
/**
|
|
13131
|
+
* Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
|
|
13132
|
+
*/
|
|
13133
|
+
steps?: null | number;
|
|
13134
|
+
/**
|
|
13135
|
+
* Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
|
|
13136
|
+
*/
|
|
13137
|
+
continueFrom?: null | string;
|
|
13138
|
+
/**
|
|
13139
|
+
* Optional FLUX CLIP-L resource override.
|
|
13140
|
+
*/
|
|
13141
|
+
clipLModel?: null | string;
|
|
13142
|
+
/**
|
|
13143
|
+
* Optional FLUX or Chroma T5 text encoder resource override.
|
|
13144
|
+
*/
|
|
13145
|
+
textEncoderModel?: null | string;
|
|
13146
|
+
/**
|
|
13147
|
+
* Optional VAE resource override.
|
|
13148
|
+
*/
|
|
13149
|
+
vaeModel?: null | string;
|
|
13150
|
+
/**
|
|
13151
|
+
* Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
|
|
13152
|
+
*/
|
|
13153
|
+
fp8Base?: null | boolean;
|
|
13154
|
+
/**
|
|
13155
|
+
* Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
|
|
13156
|
+
*/
|
|
13157
|
+
blocksToSwap?: null | number;
|
|
13158
|
+
/**
|
|
13159
|
+
* Random seed for training and generated samples.
|
|
13160
|
+
*/
|
|
13161
|
+
seed: number;
|
|
13162
|
+
/**
|
|
13163
|
+
* What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
|
|
13164
|
+
* while the job runs.
|
|
13165
|
+
*/
|
|
13166
|
+
trace: TrainingTraceMode;
|
|
13167
|
+
/**
|
|
13168
|
+
* Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
|
|
13169
|
+
*/
|
|
13170
|
+
vParameterization?: null | boolean;
|
|
13171
|
+
/**
|
|
13172
|
+
* Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
|
|
13173
|
+
*/
|
|
13174
|
+
zeroTerminalSnr?: null | boolean;
|
|
12692
13175
|
engine: 'kohya';
|
|
12693
13176
|
};
|
|
12694
13177
|
export type Krea2AiToolkitTrainingInputWritable = Omit<
|
|
@@ -12768,6 +13251,17 @@ export type MiniMaxH3AiToolkitTrainingInputWritable = Omit<
|
|
|
12768
13251
|
*/
|
|
12769
13252
|
batchSize?: null | number;
|
|
12770
13253
|
};
|
|
13254
|
+
export type MiniMaxH3ImageAiToolkitTrainingInputWritable = Omit<
|
|
13255
|
+
AiToolkitTrainingInputWritable,
|
|
13256
|
+
'engine' | 'ecosystem'
|
|
13257
|
+
> & {
|
|
13258
|
+
ecosystem: 'minimaxh3image';
|
|
13259
|
+
engine: 'ai-toolkit';
|
|
13260
|
+
/**
|
|
13261
|
+
* Training batch size. Fixed at 1 for this ecosystem.
|
|
13262
|
+
*/
|
|
13263
|
+
batchSize?: null | number;
|
|
13264
|
+
};
|
|
12771
13265
|
export type MossImageAiToolkitTrainingInputWritable = Omit<
|
|
12772
13266
|
AiToolkitTrainingInputWritable,
|
|
12773
13267
|
'engine' | 'ecosystem'
|
|
@@ -15375,6 +15869,46 @@ export type InvokeModel3dPreviewStepTemplateResponses = {
|
|
|
15375
15869
|
};
|
|
15376
15870
|
export type InvokeModel3dPreviewStepTemplateResponse =
|
|
15377
15871
|
InvokeModel3dPreviewStepTemplateResponses[keyof InvokeModel3dPreviewStepTemplateResponses];
|
|
15872
|
+
export type InvokeModelAnalysisStepTemplateData = {
|
|
15873
|
+
body?: ModelAnalysisInput;
|
|
15874
|
+
path?: never;
|
|
15875
|
+
query?: {
|
|
15876
|
+
experimental?: boolean;
|
|
15877
|
+
allowMatureContent?: boolean;
|
|
15878
|
+
whatif?: boolean;
|
|
15879
|
+
ephemeral?: boolean;
|
|
15880
|
+
/**
|
|
15881
|
+
* How a workflow is paid for.
|
|
15882
|
+
*/
|
|
15883
|
+
tier?: WorkflowTier;
|
|
15884
|
+
tags?: Array<string>;
|
|
15885
|
+
};
|
|
15886
|
+
url: '/v2/consumer/recipes/modelAnalysis';
|
|
15887
|
+
};
|
|
15888
|
+
export type InvokeModelAnalysisStepTemplateErrors = {
|
|
15889
|
+
/**
|
|
15890
|
+
* Bad Request
|
|
15891
|
+
*/
|
|
15892
|
+
400: ProblemDetails;
|
|
15893
|
+
/**
|
|
15894
|
+
* Unauthorized
|
|
15895
|
+
*/
|
|
15896
|
+
401: ProblemDetails;
|
|
15897
|
+
/**
|
|
15898
|
+
* Forbidden
|
|
15899
|
+
*/
|
|
15900
|
+
403: ProblemDetails;
|
|
15901
|
+
};
|
|
15902
|
+
export type InvokeModelAnalysisStepTemplateError =
|
|
15903
|
+
InvokeModelAnalysisStepTemplateErrors[keyof InvokeModelAnalysisStepTemplateErrors];
|
|
15904
|
+
export type InvokeModelAnalysisStepTemplateResponses = {
|
|
15905
|
+
/**
|
|
15906
|
+
* OK
|
|
15907
|
+
*/
|
|
15908
|
+
200: ModelAnalysisOutput;
|
|
15909
|
+
};
|
|
15910
|
+
export type InvokeModelAnalysisStepTemplateResponse =
|
|
15911
|
+
InvokeModelAnalysisStepTemplateResponses[keyof InvokeModelAnalysisStepTemplateResponses];
|
|
15378
15912
|
export type InvokeModelClamScanStepTemplateData = {
|
|
15379
15913
|
body?: ModelClamScanInput;
|
|
15380
15914
|
path?: never;
|