@civitai/orchestration-client 0.2.2 → 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.
@@ -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 KohyaImageResourceTrainingInput = Omit<ImageResourceTrainingInput, 'engine'> & {
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
- * An epoch is one set of learning. By default, we will save a maximum of 20 epochs (evenly distributed), and they are all available for download.
6173
+ * Number of saved checkpoints across the training run.
6007
6174
  */
6008
- maxTrainEpochs?: number;
6175
+ maxTrainEpochs: number;
6009
6176
  /**
6010
- * Num Repeats defines how many times each individual image gets put into VRAM. As opposed to batch size, which is how many images are placed into VRAM at once.
6177
+ * Number of times each training image is repeated per dataset epoch.
6011
6178
  */
6012
- numRepeats?: number;
6179
+ numRepeats: number;
6013
6180
  /**
6014
- * Batch size is the number of images that will be placed into VRAM at once. A batch size of 2 will train two images at a time, simultaneously.
6181
+ * Images per optimizer step.
6015
6182
  */
6016
- trainBatchSize?: null | number;
6183
+ trainBatchSize: number;
6017
6184
  /**
6018
- * Specify the maximum resolution of training images. If the training images exceed the resolution specified here, they will be scaled down to this resolution
6185
+ * Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
6019
6186
  */
6020
6187
  resolution?: null | number;
6021
6188
  /**
6022
- * Sorts images into buckets by size for the purposes of training. If your training images are all the same size, you can turn this option off, but leaving it on has no effect.
6189
+ * Group images into aspect-ratio buckets.
6023
6190
  */
6024
- enableBucket?: boolean;
6191
+ enableBucket: boolean;
6025
6192
  /**
6026
- * Randomly changes the order of your tags during training. The intent of shuffling is to improve learning. If you are using captions (sentences), this option has no meaning.
6193
+ * Shuffle comma-separated caption tokens during training.
6027
6194
  */
6028
- shuffleCaption?: boolean;
6195
+ shuffleCaption: boolean;
6029
6196
  /**
6030
- * Keeps this many leading tags in place when shuffling captions. Does nothing when Shuffle Tags is off.
6197
+ * Leading caption tokens kept in place while shuffling.
6031
6198
  */
6032
- keepTokens?: number;
6199
+ keepTokens: number;
6033
6200
  /**
6034
- * Determines which layer's vector output will be used. There are 12 layers, and setting the skip will select "xth from the end" of the total layers. For anime, we use 2. For everything else, 1.
6201
+ * CLIP layer skip for SD1.5; other families use 1.
6035
6202
  */
6036
- clipSkip?: number;
6203
+ clipSkip: number;
6037
6204
  /**
6038
- * If this option is turned on, the image will be horizontally flipped randomly. It can learn left and right angles, which is useful when you want to learn symmetrical people and objects.
6205
+ * Random horizontal image flips.
6039
6206
  */
6040
- flipAugmentation?: boolean;
6207
+ flipAugmentation: boolean;
6041
6208
  /**
6042
- * Sets the learning rate for U-Net. This is the learning rate when performing additional learning on each attention block (and other blocks depending on the setting) in U-Net
6209
+ * Learning rate for the diffusion model LoRA.
6043
6210
  */
6044
- unetLR?: number;
6211
+ unetLR: number;
6045
6212
  /**
6046
- * Sets the learning rate for the text encoder. The effect of additional training on text encoders affects the entire U-Net.
6213
+ * Learning rate for text encoder LoRA modules.
6047
6214
  */
6048
- textEncoderLR?: number;
6215
+ textEncoderLR: number;
6049
6216
  /**
6050
- * You can change the learning rate in the middle of learning. A scheduler is a setting for how to change the learning rate.
6217
+ * Learning-rate schedule over the total optimizer-step budget.
6051
6218
  */
6052
- lrScheduler?: 'constant' | 'cosine' | 'cosine_with_restarts' | 'linear';
6219
+ lrScheduler:
6220
+ | 'constant'
6221
+ | 'constant_with_warmup'
6222
+ | 'cosine'
6223
+ | 'cosine_with_restarts'
6224
+ | 'linear'
6225
+ | 'polynomial';
6053
6226
  /**
6054
- * This option specifies how many cycles the scheduler runs during training. It is only used when "cosine_with_restarts" or "polynomial" is used as the scheduler.
6227
+ * Number of cycles used by cosine_with_restarts; ignored by other schedulers.
6055
6228
  */
6056
- lrSchedulerNumCycles?: number;
6229
+ lrSchedulerNumCycles: number;
6057
6230
  /**
6058
- * Compensates for unstable learning across noise strengths by suppressing large deviations when training images carry little noise.
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
- * The larger the Dim setting, the more learning information can be stored, but the possibility of learning unnecessary information other than the learning target increases. A larger Dim also increases LoRA file size.
6235
+ * LoRA rank; must match ContinueFrom weights.
6063
6236
  */
6064
- networkDim?: null | number;
6237
+ networkDim: number;
6065
6238
  /**
6066
- * Scales the stored LoRA weights relative to Dim: alpha 16 with dim 32 applies the learning rate at half strength;
6067
- * equal values leave it unchanged.
6239
+ * LoRA alpha; must match ContinueFrom weights.
6068
6240
  */
6069
- networkAlpha?: null | number;
6241
+ networkAlpha: number;
6070
6242
  /**
6071
- * Adds noise to training images. 0 adds no noise at all. A value of 1 adds strong noise.
6243
+ * Noise offset for SD training; flow models require 0.
6072
6244
  */
6073
- noiseOffset?: null | number;
6245
+ noiseOffset: number;
6074
6246
  /**
6075
- * Optimizer that updates the weights during training; "AdamW8bit" is the common choice, "Adafactor" for SDXL.
6247
+ * Optimizer used for the LoRA parameters; names are case-insensitive.
6076
6248
  */
6077
- optimizerType?: null | string;
6078
- readonly targetSteps?: null | number;
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,28 +7638,67 @@ export type Model3dPreviewStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7379
7638
  input: Model3dPreviewInput;
7380
7639
  $type: 'model3DPreview';
7381
7640
  };
7382
- export type ModelClamScanInput = {
7383
- model: string;
7384
- };
7385
- export type ModelClamScanOutput = {
7386
- exitCode?: null | number;
7387
- output?: null | string;
7641
+ export type ModelAnalysisInput = {
7388
7642
  /**
7389
- * Classified scan result derived from the ClamAV exit code.
7643
+ * The exact original checkpoint, pinned to a safetensors model version/file.
7390
7644
  */
7391
- status?: ModelClamScanStatus;
7645
+ baseModel: string;
7646
+ checkpoint: string;
7647
+ loras: Array<ModelAnalysisLora>;
7648
+ };
7649
+ export type ModelAnalysisLora = {
7650
+ model: string;
7392
7651
  /**
7393
- * True when ClamAV reported one or more infected files (exit code 1).
7652
+ * Optional expected merge strength. The actual strength is fitted independently.
7394
7653
  */
7395
- infected?: null | boolean;
7396
- infectedFileCount?: null | number;
7397
- scannedFileCount?: null | number;
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
+ };
7678
+ export type ModelClamScanInput = {
7679
+ model: string;
7680
+ };
7681
+ export type ModelClamScanOutput = {
7682
+ exitCode?: null | number;
7683
+ output?: null | string;
7684
+ /**
7685
+ * Classified scan result derived from the ClamAV exit code.
7686
+ */
7687
+ status?: ModelClamScanStatus;
7688
+ /**
7689
+ * True when ClamAV reported one or more infected files (exit code 1).
7690
+ */
7691
+ infected?: null | boolean;
7692
+ infectedFileCount?: null | number;
7693
+ scannedFileCount?: null | number;
7398
7694
  };
7399
7695
  export declare const ModelClamScanStatus: {
7400
7696
  readonly CLEAN: 'clean';
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 3D model in GLB format. Null when the engine only produces FBX (Tripo with quad enabled).
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
- * Source images for edit-LoRA sample generation, passed as reference images when rendering samples.
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 such as [verse] and [chorus].
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;
@@ -11997,141 +12410,6 @@ export declare const ZoeDepthEnvironment: {
11997
12410
  readonly OUTDOOR: 'outdoor';
11998
12411
  };
11999
12412
  export type ZoeDepthEnvironment = (typeof ZoeDepthEnvironment)[keyof typeof ZoeDepthEnvironment];
12000
- export type KohyaTrainingInput = Omit<TrainingInput, 'engine'> & {
12001
- /**
12002
- * Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
12003
- */
12004
- model: string;
12005
- /**
12006
- * Number of saved checkpoints across the training run.
12007
- */
12008
- maxTrainEpochs: number;
12009
- /**
12010
- * Number of times each training image is repeated per dataset epoch.
12011
- */
12012
- numRepeats: number;
12013
- /**
12014
- * Images per optimizer step.
12015
- */
12016
- trainBatchSize: number;
12017
- /**
12018
- * Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
12019
- */
12020
- resolution?: null | number;
12021
- /**
12022
- * Group images into aspect-ratio buckets.
12023
- */
12024
- enableBucket: boolean;
12025
- /**
12026
- * Shuffle comma-separated caption tokens during training.
12027
- */
12028
- shuffleCaption: boolean;
12029
- /**
12030
- * Leading caption tokens kept in place while shuffling.
12031
- */
12032
- keepTokens: number;
12033
- /**
12034
- * CLIP layer skip for SD1.5; other families use 1.
12035
- */
12036
- clipSkip: number;
12037
- /**
12038
- * Random horizontal image flips.
12039
- */
12040
- flipAugmentation: boolean;
12041
- /**
12042
- * Learning rate for the diffusion model LoRA.
12043
- */
12044
- unetLR: number;
12045
- /**
12046
- * Learning rate for text encoder LoRA modules.
12047
- */
12048
- textEncoderLR: number;
12049
- /**
12050
- * Learning-rate schedule over the total optimizer-step budget.
12051
- */
12052
- lrScheduler:
12053
- | 'constant'
12054
- | 'constant_with_warmup'
12055
- | 'cosine'
12056
- | 'cosine_with_restarts'
12057
- | 'linear'
12058
- | 'polynomial';
12059
- /**
12060
- * Number of cycles used by cosine_with_restarts; ignored by other schedulers.
12061
- */
12062
- lrSchedulerNumCycles: number;
12063
- /**
12064
- * Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
12065
- */
12066
- minSnrGamma?: null | number;
12067
- /**
12068
- * LoRA rank; must match ContinueFrom weights.
12069
- */
12070
- networkDim: number;
12071
- /**
12072
- * LoRA alpha; must match ContinueFrom weights.
12073
- */
12074
- networkAlpha: number;
12075
- /**
12076
- * Noise offset for SD training; flow models require 0.
12077
- */
12078
- noiseOffset: number;
12079
- /**
12080
- * Optimizer used for the LoRA parameters; names are case-insensitive.
12081
- */
12082
- optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
12083
- /**
12084
- * Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
12085
- */
12086
- trainTextEncoder?: null | boolean;
12087
- /**
12088
- * Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
12089
- */
12090
- steps?: null | number;
12091
- /**
12092
- * Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
12093
- */
12094
- continueFrom?: null | string;
12095
- /**
12096
- * Optional FLUX CLIP-L resource override.
12097
- */
12098
- clipLModel?: null | string;
12099
- /**
12100
- * Optional FLUX or Chroma T5 text encoder resource override.
12101
- */
12102
- textEncoderModel?: null | string;
12103
- /**
12104
- * Optional VAE resource override.
12105
- */
12106
- vaeModel?: null | string;
12107
- /**
12108
- * Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
12109
- */
12110
- fp8Base?: null | boolean;
12111
- /**
12112
- * Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
12113
- */
12114
- blocksToSwap?: null | number;
12115
- /**
12116
- * Random seed for training and generated samples.
12117
- */
12118
- seed: number;
12119
- /**
12120
- * What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
12121
- * while the job runs.
12122
- */
12123
- trace: TrainingTraceMode;
12124
- /**
12125
- * Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
12126
- */
12127
- vParameterization?: null | boolean;
12128
- /**
12129
- * Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
12130
- */
12131
- zeroTerminalSnr?: null | boolean;
12132
- readonly usesStepPricing: boolean;
12133
- engine: 'kohya';
12134
- };
12135
12413
  export type AiToolkitTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
12136
12414
  ecosystem: string;
12137
12415
  /**
@@ -12605,6 +12883,17 @@ export type ErnieAiToolkitTrainingInputWritable = Omit<
12605
12883
  */
12606
12884
  batchSize?: null | number;
12607
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
+ };
12608
12897
  export type Flux1AiToolkitTrainingInputWritable = Omit<
12609
12898
  AiToolkitTrainingInputWritable,
12610
12899
  'engine' | 'ecosystem'
@@ -12723,6 +13012,10 @@ export type GeminiOmniVideoGenInputWritable = Omit<VideoGenInputWritable, 'engin
12723
13012
  aspectRatio?: '16:9' | '9:16';
12724
13013
  resolution?: GeminiOmniResolution;
12725
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;
12726
13019
  engine: 'gemini-omni';
12727
13020
  };
12728
13021
  export type HiDreamO1AiToolkitTrainingInputWritable = Omit<
@@ -12747,83 +13040,138 @@ export type Ideogram4AiToolkitTrainingInputWritable = Omit<
12747
13040
  */
12748
13041
  batchSize?: null | number;
12749
13042
  };
12750
- export type KohyaImageResourceTrainingInputWritable = Omit<
12751
- ImageResourceTrainingInputWritable,
12752
- 'engine'
12753
- > & {
13043
+ export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
12754
13044
  /**
12755
- * An epoch is one set of learning. By default, we will save a maximum of 20 epochs (evenly distributed), and they are all available for download.
13045
+ * Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
12756
13046
  */
12757
- maxTrainEpochs?: number;
13047
+ model: string;
12758
13048
  /**
12759
- * Num Repeats defines how many times each individual image gets put into VRAM. As opposed to batch size, which is how many images are placed into VRAM at once.
13049
+ * Number of saved checkpoints across the training run.
12760
13050
  */
12761
- numRepeats?: number;
13051
+ maxTrainEpochs: number;
12762
13052
  /**
12763
- * Batch size is the number of images that will be placed into VRAM at once. A batch size of 2 will train two images at a time, simultaneously.
13053
+ * Number of times each training image is repeated per dataset epoch.
12764
13054
  */
12765
- trainBatchSize?: null | number;
13055
+ numRepeats: number;
12766
13056
  /**
12767
- * Specify the maximum resolution of training images. If the training images exceed the resolution specified here, they will be scaled down to this resolution
13057
+ * Images per optimizer step.
13058
+ */
13059
+ trainBatchSize: number;
13060
+ /**
13061
+ * Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
12768
13062
  */
12769
13063
  resolution?: null | number;
12770
13064
  /**
12771
- * Sorts images into buckets by size for the purposes of training. If your training images are all the same size, you can turn this option off, but leaving it on has no effect.
13065
+ * Group images into aspect-ratio buckets.
12772
13066
  */
12773
- enableBucket?: boolean;
13067
+ enableBucket: boolean;
12774
13068
  /**
12775
- * Randomly changes the order of your tags during training. The intent of shuffling is to improve learning. If you are using captions (sentences), this option has no meaning.
13069
+ * Shuffle comma-separated caption tokens during training.
12776
13070
  */
12777
- shuffleCaption?: boolean;
13071
+ shuffleCaption: boolean;
12778
13072
  /**
12779
- * Keeps this many leading tags in place when shuffling captions. Does nothing when Shuffle Tags is off.
13073
+ * Leading caption tokens kept in place while shuffling.
12780
13074
  */
12781
- keepTokens?: number;
13075
+ keepTokens: number;
12782
13076
  /**
12783
- * Determines which layer's vector output will be used. There are 12 layers, and setting the skip will select "xth from the end" of the total layers. For anime, we use 2. For everything else, 1.
13077
+ * CLIP layer skip for SD1.5; other families use 1.
12784
13078
  */
12785
- clipSkip?: number;
13079
+ clipSkip: number;
12786
13080
  /**
12787
- * If this option is turned on, the image will be horizontally flipped randomly. It can learn left and right angles, which is useful when you want to learn symmetrical people and objects.
13081
+ * Random horizontal image flips.
12788
13082
  */
12789
- flipAugmentation?: boolean;
13083
+ flipAugmentation: boolean;
12790
13084
  /**
12791
- * Sets the learning rate for U-Net. This is the learning rate when performing additional learning on each attention block (and other blocks depending on the setting) in U-Net
13085
+ * Learning rate for the diffusion model LoRA.
12792
13086
  */
12793
- unetLR?: number;
13087
+ unetLR: number;
12794
13088
  /**
12795
- * Sets the learning rate for the text encoder. The effect of additional training on text encoders affects the entire U-Net.
13089
+ * Learning rate for text encoder LoRA modules.
12796
13090
  */
12797
- textEncoderLR?: number;
13091
+ textEncoderLR: number;
12798
13092
  /**
12799
- * You can change the learning rate in the middle of learning. A scheduler is a setting for how to change the learning rate.
13093
+ * Learning-rate schedule over the total optimizer-step budget.
12800
13094
  */
12801
- lrScheduler?: 'constant' | 'cosine' | 'cosine_with_restarts' | 'linear';
13095
+ lrScheduler:
13096
+ | 'constant'
13097
+ | 'constant_with_warmup'
13098
+ | 'cosine'
13099
+ | 'cosine_with_restarts'
13100
+ | 'linear'
13101
+ | 'polynomial';
12802
13102
  /**
12803
- * This option specifies how many cycles the scheduler runs during training. It is only used when "cosine_with_restarts" or "polynomial" is used as the scheduler.
13103
+ * Number of cycles used by cosine_with_restarts; ignored by other schedulers.
12804
13104
  */
12805
- lrSchedulerNumCycles?: number;
13105
+ lrSchedulerNumCycles: number;
12806
13106
  /**
12807
- * Compensates for unstable learning across noise strengths by suppressing large deviations when training images carry little noise.
13107
+ * Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
12808
13108
  */
12809
13109
  minSnrGamma?: null | number;
12810
13110
  /**
12811
- * The larger the Dim setting, the more learning information can be stored, but the possibility of learning unnecessary information other than the learning target increases. A larger Dim also increases LoRA file size.
13111
+ * LoRA rank; must match ContinueFrom weights.
12812
13112
  */
12813
- networkDim?: null | number;
13113
+ networkDim: number;
12814
13114
  /**
12815
- * Scales the stored LoRA weights relative to Dim: alpha 16 with dim 32 applies the learning rate at half strength;
12816
- * equal values leave it unchanged.
13115
+ * LoRA alpha; must match ContinueFrom weights.
12817
13116
  */
12818
- networkAlpha?: null | number;
13117
+ networkAlpha: number;
12819
13118
  /**
12820
- * Adds noise to training images. 0 adds no noise at all. A value of 1 adds strong noise.
13119
+ * Noise offset for SD training; flow models require 0.
12821
13120
  */
12822
- noiseOffset?: null | number;
13121
+ noiseOffset: number;
12823
13122
  /**
12824
- * Optimizer that updates the weights during training; "AdamW8bit" is the common choice, "Adafactor" for SDXL.
13123
+ * Optimizer used for the LoRA parameters; names are case-insensitive.
12825
13124
  */
12826
- optimizerType?: null | string;
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;
12827
13175
  engine: 'kohya';
12828
13176
  };
12829
13177
  export type Krea2AiToolkitTrainingInputWritable = Omit<
@@ -12903,6 +13251,17 @@ export type MiniMaxH3AiToolkitTrainingInputWritable = Omit<
12903
13251
  */
12904
13252
  batchSize?: null | number;
12905
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
+ };
12906
13265
  export type MossImageAiToolkitTrainingInputWritable = Omit<
12907
13266
  AiToolkitTrainingInputWritable,
12908
13267
  'engine' | 'ecosystem'
@@ -13627,140 +13986,6 @@ export type ZImageTurboAiToolkitTrainingInputWritable = Omit<
13627
13986
  */
13628
13987
  batchSize?: null | number;
13629
13988
  };
13630
- export type KohyaTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
13631
- /**
13632
- * Any compatible SD1.5, SDXL (including Pony, Illustrious and NoobAI), FLUX.1 or Chroma checkpoint AIR.
13633
- */
13634
- model: string;
13635
- /**
13636
- * Number of saved checkpoints across the training run.
13637
- */
13638
- maxTrainEpochs: number;
13639
- /**
13640
- * Number of times each training image is repeated per dataset epoch.
13641
- */
13642
- numRepeats: number;
13643
- /**
13644
- * Images per optimizer step.
13645
- */
13646
- trainBatchSize: number;
13647
- /**
13648
- * Training resolution; defaults to 512 for SD1.5 and 1024 for other families.
13649
- */
13650
- resolution?: null | number;
13651
- /**
13652
- * Group images into aspect-ratio buckets.
13653
- */
13654
- enableBucket: boolean;
13655
- /**
13656
- * Shuffle comma-separated caption tokens during training.
13657
- */
13658
- shuffleCaption: boolean;
13659
- /**
13660
- * Leading caption tokens kept in place while shuffling.
13661
- */
13662
- keepTokens: number;
13663
- /**
13664
- * CLIP layer skip for SD1.5; other families use 1.
13665
- */
13666
- clipSkip: number;
13667
- /**
13668
- * Random horizontal image flips.
13669
- */
13670
- flipAugmentation: boolean;
13671
- /**
13672
- * Learning rate for the diffusion model LoRA.
13673
- */
13674
- unetLR: number;
13675
- /**
13676
- * Learning rate for text encoder LoRA modules.
13677
- */
13678
- textEncoderLR: number;
13679
- /**
13680
- * Learning-rate schedule over the total optimizer-step budget.
13681
- */
13682
- lrScheduler:
13683
- | 'constant'
13684
- | 'constant_with_warmup'
13685
- | 'cosine'
13686
- | 'cosine_with_restarts'
13687
- | 'linear'
13688
- | 'polynomial';
13689
- /**
13690
- * Number of cycles used by cosine_with_restarts; ignored by other schedulers.
13691
- */
13692
- lrSchedulerNumCycles: number;
13693
- /**
13694
- * Min-SNR loss weighting; defaults to 5 for SD models and 0 for flow models.
13695
- */
13696
- minSnrGamma?: null | number;
13697
- /**
13698
- * LoRA rank; must match ContinueFrom weights.
13699
- */
13700
- networkDim: number;
13701
- /**
13702
- * LoRA alpha; must match ContinueFrom weights.
13703
- */
13704
- networkAlpha: number;
13705
- /**
13706
- * Noise offset for SD training; flow models require 0.
13707
- */
13708
- noiseOffset: number;
13709
- /**
13710
- * Optimizer used for the LoRA parameters; names are case-insensitive.
13711
- */
13712
- optimizerType: 'AdamW' | 'AdamW8bit' | 'Adafactor' | 'Prodigy' | 'Lion' | 'Lion8bit';
13713
- /**
13714
- * Train text encoder LoRAs; must match ContinueFrom coverage. FLUX supports CLIP-L; Chroma does not support this option.
13715
- */
13716
- trainTextEncoder?: null | boolean;
13717
- /**
13718
- * Total optimizer steps; otherwise derived from epochs, repeats, declared image count and batch size. Supply an accurate count or explicit steps.
13719
- */
13720
- steps?: null | number;
13721
- /**
13722
- * Starts a new schedule from these LoRA weights. Worker handoffs restore full state automatically.
13723
- */
13724
- continueFrom?: null | string;
13725
- /**
13726
- * Optional FLUX CLIP-L resource override.
13727
- */
13728
- clipLModel?: null | string;
13729
- /**
13730
- * Optional FLUX or Chroma T5 text encoder resource override.
13731
- */
13732
- textEncoderModel?: null | string;
13733
- /**
13734
- * Optional VAE resource override.
13735
- */
13736
- vaeModel?: null | string;
13737
- /**
13738
- * Use FP8 base weights for FLUX or Chroma; defaults to true for these families.
13739
- */
13740
- fp8Base?: null | boolean;
13741
- /**
13742
- * Transformer blocks swapped to CPU for FLUX or Chroma; defaults to 18.
13743
- */
13744
- blocksToSwap?: null | number;
13745
- /**
13746
- * Random seed for training and generated samples.
13747
- */
13748
- seed: number;
13749
- /**
13750
- * What an epoch job records to its live trace stream (`output.epochs[].traceUrl`), which the consumer can tail
13751
- * while the job runs.
13752
- */
13753
- trace: TrainingTraceMode;
13754
- /**
13755
- * Training objective override: true trains with v-prediction. Omit to detect checkpoint markers; unmarked checkpoints default to epsilon. Previews use their own checkpoint detection.
13756
- */
13757
- vParameterization?: null | boolean;
13758
- /**
13759
- * Training schedule override: true trains with zero terminal SNR. Omit to detect the checkpoint ztsnr marker. Previews use their own checkpoint detection.
13760
- */
13761
- zeroTerminalSnr?: null | boolean;
13762
- engine: 'kohya';
13763
- };
13764
13989
  export type TrainingInputWritable2 = {
13765
13990
  engine: string;
13766
13991
  trainingData: TrainingData;
@@ -15644,6 +15869,46 @@ export type InvokeModel3dPreviewStepTemplateResponses = {
15644
15869
  };
15645
15870
  export type InvokeModel3dPreviewStepTemplateResponse =
15646
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];
15647
15912
  export type InvokeModelClamScanStepTemplateData = {
15648
15913
  body?: ModelClamScanInput;
15649
15914
  path?: never;