@civitai/orchestration-client 0.2.0-beta.123 → 0.2.0-beta.125

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.
@@ -97,6 +97,10 @@ export type AiToolkitTrainingInput = Omit<TrainingInput, 'engine'> & {
97
97
  * epoch resumes from this model instead of the base model, and the new epochs build on top of it.
98
98
  */
99
99
  continueFrom?: null | string;
100
+ /**
101
+ * What each epoch job records to its trace stream (`output.epochs[].traceUrl`): `none` (default), `logs` (plain-text console output)
102
+ * or `events` (NDJSON of console lines, step progress, phases and epoch checkpoints).
103
+ */
100
104
  trace: TrainingTraceMode;
101
105
  /**
102
106
  * Per-epoch surcharge (buzz) for the delivered checkpoint and its preview samples, billed on top of the per-step cost. Override where per-epoch samples are expensive (e.g. video).
@@ -272,6 +276,10 @@ export type AceStepAudioInput = {
272
276
  * Optional diffusion model (unet) override. Defaults to ACE-Step 1.5 turbo 2B.
273
277
  */
274
278
  diffusionModel?: null | string;
279
+ /**
280
+ * Optional cover image. When provided, the output is a WebM video
281
+ * with this image as the visual; otherwise, output is audio-only (MP3).
282
+ */
275
283
  cover?: AceStepAudioCover;
276
284
  /**
277
285
  * Optional text encoder (CLIP) override. Defaults to qwen_4b_ace15.
@@ -304,6 +312,9 @@ export type AceStepAudioInput = {
304
312
  };
305
313
  };
306
314
  export type AceStepAudioOutput = {
315
+ /**
316
+ * The generated output blob — VideoBlob (with background image) or AudioBlob (audio only).
317
+ */
307
318
  blob: Blob;
308
319
  };
309
320
  /**
@@ -318,6 +329,9 @@ export type AceStepAudioStep = Omit<WorkflowStep, '$type'> & {
318
329
  * Generates full songs from text descriptions and structured lyrics with ACE Step 1.5.
319
330
  */
320
331
  export type AceStepAudioStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
332
+ /**
333
+ * Input for the AceStepAudioStep step.
334
+ */
321
335
  input: AceStepAudioInput;
322
336
  $type: 'aceStepAudio';
323
337
  };
@@ -401,6 +415,9 @@ export type AgeClassificationStep = Omit<WorkflowStep, '$type'> & {
401
415
  * Age classification
402
416
  */
403
417
  export type AgeClassificationStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
418
+ /**
419
+ * Input for the AgeClassificationStep step.
420
+ */
404
421
  input: AgeClassificationInput;
405
422
  $type: 'ageClassification';
406
423
  };
@@ -594,11 +611,14 @@ export type AudioCaptioningInput = {
594
611
  * Maximum number of tokens to generate for each ACE-Step request.
595
612
  */
596
613
  maxNewTokens: number;
614
+ includeCaption: boolean;
615
+ prepareForModeration: boolean;
597
616
  };
598
617
  export type AudioCaptioningOutput = {
599
618
  results: {
600
619
  [key: string]: AudioCaptioningOutputItem;
601
620
  };
621
+ hasAudio?: null | boolean;
602
622
  };
603
623
  export type AudioCaptioningOutputItem = {
604
624
  text: string;
@@ -609,6 +629,7 @@ export type AudioCaptioningOutputItem = {
609
629
  timeSignature?: null | string;
610
630
  duration?: null | string;
611
631
  language?: null | string;
632
+ finishReason?: null | string;
612
633
  };
613
634
  /**
614
635
  * Audio Captioning
@@ -622,9 +643,31 @@ export type AudioCaptioningStep = Omit<WorkflowStep, '$type'> & {
622
643
  * Audio Captioning
623
644
  */
624
645
  export type AudioCaptioningStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
646
+ /**
647
+ * Input for the AudioCaptioningStep step.
648
+ */
625
649
  input: AudioCaptioningInput;
626
650
  $type: 'audioCaptioning';
627
651
  };
652
+ export type AudioClassificationInput = {
653
+ mediaUrl: string;
654
+ };
655
+ export type AudioClassificationOutput = {
656
+ hasAudio: boolean;
657
+ model: string;
658
+ segments: Array<AudioClassificationSegment>;
659
+ classificationMilliseconds: number;
660
+ };
661
+ export type AudioClassificationSegment = {
662
+ blobKey: string;
663
+ name: string;
664
+ kind: string;
665
+ durationSeconds: number;
666
+ speechScore: number;
667
+ musicScore: number;
668
+ singingScore: number;
669
+ speechFraction: number;
670
+ };
628
671
  /**
629
672
  * An audio mixdown produced when the composition has no video.
630
673
  */
@@ -632,6 +675,57 @@ export type AudioComposeMediaOutput = Omit<ComposeMediaOutput, 'type'> & {
632
675
  audioBlob: AudioBlob;
633
676
  type: 'audio';
634
677
  };
678
+ export type AudioModerationInput = {
679
+ mediaUrl: string;
680
+ /**
681
+ * auto classifies each segment on CPU and sends speech to ASR when the language is supported, everything else to ACE-Step.
682
+ */
683
+ transcriber: 'auto' | 'aceStep' | 'asr';
684
+ language?: null | string;
685
+ };
686
+ export type AudioModerationOutput = {
687
+ lyrics: string;
688
+ sexualizedMinors: boolean;
689
+ score: null | number;
690
+ model: null | string;
691
+ policyHash: null | string;
692
+ hasAudio?: null | boolean;
693
+ skippedReason?: null | string;
694
+ readonly blocked: boolean;
695
+ };
696
+ /**
697
+ * Transcribe every audio track and classify the lyrics for sexualized minors.
698
+ */
699
+ export type AudioModerationStep = Omit<WorkflowStep, '$type'> & {
700
+ input: AudioModerationInput;
701
+ output?: AudioModerationOutput;
702
+ $type: 'audioModeration';
703
+ };
704
+ /**
705
+ * Transcribe every audio track and classify the lyrics for sexualized minors.
706
+ */
707
+ export type AudioModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
708
+ /**
709
+ * Input for the AudioModerationStep step.
710
+ */
711
+ input: AudioModerationInput;
712
+ $type: 'audioModeration';
713
+ };
714
+ export type AudioTextModerationInput = {
715
+ lyrics?: null | string;
716
+ audioCaptioning?: AudioCaptioningOutput;
717
+ transcription?: TranscriptionOutput;
718
+ };
719
+ export type AudioTextModerationOutput = {
720
+ lyrics: string;
721
+ sexualizedMinors: boolean;
722
+ score: null | number;
723
+ model: null | string;
724
+ policyHash: null | string;
725
+ hasAudio?: null | boolean;
726
+ skippedReason?: null | string;
727
+ readonly blocked: boolean;
728
+ };
635
729
  export type AvailableResourceAvailability = Omit<ResourceAvailability, 'status'> & {
636
730
  workers: number;
637
731
  status: 'available';
@@ -652,6 +746,10 @@ export type AvifOutputFormat = Omit<ImageOutputFormat, 'format'> & {
652
746
  * are kept. Video only; needs an alpha-capable container (webp) and a transparent canvas background to carry the transparency.
653
747
  */
654
748
  export type BackgroundRemovalTransformer = Omit<MediaTransformer, 'type'> & {
749
+ /**
750
+ * Shadow handling. Sources with painted soft drop shadows need Civitai.Orchestration.Grains.Workflows.Steps.ComposeMedia.ShadowRemoval.Gentle
751
+ * (the default) or Civitai.Orchestration.Grains.Workflows.Steps.ComposeMedia.ShadowRemoval.Aggressive.
752
+ */
655
753
  shadowRemoval?: ShadowRemoval;
656
754
  /**
657
755
  * Also seed the fill from the frame centre, for artwork with an enclosed background-coloured
@@ -746,6 +844,9 @@ export type BlobArchiveStep = Omit<WorkflowStep, '$type'> & {
746
844
  * Runs in-process in the orchestrator; no worker job is dispatched.
747
845
  */
748
846
  export type BlobArchiveStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
847
+ /**
848
+ * Input for the BlobArchiveStep step.
849
+ */
749
850
  input: BlobArchiveInput;
750
851
  $type: 'blobArchive';
751
852
  };
@@ -860,6 +961,9 @@ export type BucketResponse = {
860
961
  successRate?: null | number;
861
962
  canceledRate: number;
862
963
  userErrorRate: number;
964
+ /**
965
+ * Per-request spend over succeeded steps — see Civitai.Orchestration.Api.Controllers.v2.Consumers.Services.MetricsResponse.CostBuzz.
966
+ */
863
967
  costBuzz?: PercentilesResponse;
864
968
  latencySeconds?: PercentilesResponse;
865
969
  };
@@ -872,9 +976,12 @@ export declare const BuzzClientAccount: {
872
976
  export type BuzzClientAccount = (typeof BuzzClientAccount)[keyof typeof BuzzClientAccount];
873
977
  export type ChatCompletionChoice = {
874
978
  index: number;
979
+ /**
980
+ * An assistant message representing a prior response.
981
+ */
875
982
  message: AssistantMessage;
876
983
  finishReason?: null | string;
877
- logprobs?: null;
984
+ logprobs?: unknown;
878
985
  };
879
986
  /**
880
987
  * Accepts both camelCase (`imageUrl`) and snake_case (`image_url`) type discriminators.
@@ -887,7 +994,7 @@ export type ChatCompletionContentPart = {
887
994
  export type ChatCompletionFunction = {
888
995
  name: string;
889
996
  description?: null | string;
890
- parameters?: null;
997
+ parameters?: unknown;
891
998
  strict?: null | boolean;
892
999
  };
893
1000
  export type ChatCompletionFunctionCall = {
@@ -900,6 +1007,9 @@ export type ChatCompletionFunctionCall = {
900
1007
  */
901
1008
  export type ChatCompletionGeneratedImage = {
902
1009
  type?: string;
1010
+ /**
1011
+ * Currently always a base64 data URI.
1012
+ */
903
1013
  image_url: ChatCompletionGeneratedImageUrl;
904
1014
  };
905
1015
  /**
@@ -998,13 +1108,20 @@ export type ChatCompletionInput = {
998
1108
  * Controls which (if any) tool is called by the model.
999
1109
  * Can be "auto", "none", "required", or an object specifying a particular function.
1000
1110
  */
1001
- tool_choice?: null;
1111
+ tool_choice?: unknown;
1002
1112
  /**
1003
1113
  * Output modalities, "text" and/or "image"; defaults to text-only. Including "image" routes the request to the
1004
1114
  * image generation pipeline and returns generated images on the assistant message.
1005
1115
  */
1006
1116
  modalities?: null | Array<string>;
1117
+ /**
1118
+ * Image-generation parameters. Only consulted when Civitai.Orchestration.Grains.Workflows.Steps.ChatCompletion.ChatCompletionInput.Modalities contains "image".
1119
+ */
1007
1120
  image_config?: ChatCompletionImageConfig;
1121
+ /**
1122
+ * OpenAI-compatible response_format (`json_object` or `json_schema`). When set, the parsed content is exposed on
1123
+ * Civitai.Orchestration.Grains.Workflows.Steps.ChatCompletion.ChatCompletionOutput.Parsed so later steps can reference fields via `$ref` paths such as `output.parsed.lyrics`.
1124
+ */
1008
1125
  responseFormat?: ChatCompletionResponseFormat;
1009
1126
  };
1010
1127
  export type ChatCompletionJsonSchema = {
@@ -1034,7 +1151,7 @@ export type ChatCompletionOutput = {
1034
1151
  * Parsed JSON of `Choices[0].Message.Content`, populated when the request used a JSON `response_format`
1035
1152
  * and the content parsed. Reachable from later steps via `$ref` paths like `output.parsed.<field>`.
1036
1153
  */
1037
- parsed?: null;
1154
+ parsed?: unknown;
1038
1155
  };
1039
1156
  /**
1040
1157
  * OpenAI-compatible response_format. For `json_object` or `json_schema` the content is parsed server-side and
@@ -1045,12 +1162,18 @@ export type ChatCompletionResponseFormat = {
1045
1162
  * OpenAI-compatible value: `text`, `json_object`, or `json_schema`.
1046
1163
  */
1047
1164
  type: string;
1165
+ /**
1166
+ * Required when Civitai.Orchestration.Grains.Workflows.Steps.ChatCompletion.ChatCompletionResponseFormat.Type is `json_schema`. Ignored otherwise.
1167
+ */
1048
1168
  jsonSchema?: ChatCompletionJsonSchema;
1049
1169
  };
1050
1170
  /**
1051
1171
  * ChatCompletion
1052
1172
  */
1053
1173
  export type ChatCompletionStep = Omit<WorkflowStep, '$type'> & {
1174
+ /**
1175
+ * Input for a chat completion step, compatible with OpenAI Chat Completions API.
1176
+ */
1054
1177
  input: ChatCompletionInput;
1055
1178
  output?: ChatCompletionOutput;
1056
1179
  $type: 'chatCompletion';
@@ -1059,6 +1182,9 @@ export type ChatCompletionStep = Omit<WorkflowStep, '$type'> & {
1059
1182
  * ChatCompletion
1060
1183
  */
1061
1184
  export type ChatCompletionStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
1185
+ /**
1186
+ * Input for the ChatCompletionStep step.
1187
+ */
1062
1188
  input: ChatCompletionInput;
1063
1189
  $type: 'chatCompletion';
1064
1190
  };
@@ -1074,7 +1200,7 @@ export type ChatCompletionTool = {
1074
1200
  /**
1075
1201
  * Server-tool parameters for providers such as OpenRouter.
1076
1202
  */
1077
- parameters?: null;
1203
+ parameters?: unknown;
1078
1204
  };
1079
1205
  export type ChatCompletionToolCall = {
1080
1206
  id: string;
@@ -1085,6 +1211,9 @@ export type ChatCompletionUsage = {
1085
1211
  promptTokens: number;
1086
1212
  completionTokens: number;
1087
1213
  totalTokens: number;
1214
+ /**
1215
+ * Breakdown of Civitai.Orchestration.Grains.Workflows.Steps.ChatCompletion.ChatCompletionUsage.CompletionTokens, present when the provider reports one.
1216
+ */
1088
1217
  completionTokensDetails?: ChatCompletionTokensDetails;
1089
1218
  };
1090
1219
  export type ChromaAiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
@@ -1631,7 +1760,13 @@ export type ComfyHiDreamI1ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'e
1631
1760
  prompt: string;
1632
1761
  negativePrompt?: null | string;
1633
1762
  variant?: HiDreamI1Variant;
1763
+ /**
1764
+ * Defaults to fp8, except for the full variant which is only available in fp16.
1765
+ */
1634
1766
  precision?: HiDreamI1Precision;
1767
+ /**
1768
+ * Defaults to lcm for fast and dev, uni_pc for full.
1769
+ */
1635
1770
  sampler?: ComfySampler;
1636
1771
  /**
1637
1772
  * Defaults to 16 for fast, 28 for dev and 50 for full.
@@ -2384,6 +2519,9 @@ export type ComfyMingDesignImageGenInput = Omit<
2384
2519
  operation: null | string;
2385
2520
  prompt: string;
2386
2521
  negativePrompt?: null | string;
2522
+ /**
2523
+ * Defaults to Euler for generation, LCM for editing.
2524
+ */
2387
2525
  sampler?: ComfySampler;
2388
2526
  scheduler?: ComfyScheduler;
2389
2527
  steps?: number;
@@ -2472,6 +2610,64 @@ export type ComfyMiniMaxH3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
2472
2610
  turbo?: boolean;
2473
2611
  engine: 'minimax-h3-comfy';
2474
2612
  };
2613
+ export type ComfyMossImageBaseCreateImageInput = Omit<
2614
+ ComfyMossImageBaseImageGenInput,
2615
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2616
+ > & {
2617
+ operation: 'createImage';
2618
+ model: 'base';
2619
+ ecosystem: 'mossImage';
2620
+ engine: 'comfy';
2621
+ };
2622
+ export type ComfyMossImageBaseImageGenInput = Omit<
2623
+ ComfyMossImageGenInput,
2624
+ 'engine' | 'ecosystem' | 'model'
2625
+ > & {
2626
+ operation: null | string;
2627
+ model: 'base';
2628
+ ecosystem: 'mossImage';
2629
+ engine: 'comfy';
2630
+ };
2631
+ export type ComfyMossImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
2632
+ model: null | string;
2633
+ prompt: string;
2634
+ negativePrompt?: null | string;
2635
+ width?: number;
2636
+ height?: number;
2637
+ seed?: null | number;
2638
+ quantity?: number;
2639
+ steps?: number;
2640
+ cfgScale?: number;
2641
+ sampler?: ComfySampler;
2642
+ scheduler?: ComfyScheduler;
2643
+ loras?: {
2644
+ [key: string]: number;
2645
+ };
2646
+ /**
2647
+ * Compatible MOSS-Image diffusion checkpoint AIR. Omit or set null to use the selected model's int8 checkpoint; the int8 text encoder and VAE remain unchanged.
2648
+ */
2649
+ diffusionModel?: null | string;
2650
+ ecosystem: 'mossImage';
2651
+ engine: 'comfy';
2652
+ };
2653
+ export type ComfyMossImageSftCreateImageInput = Omit<
2654
+ ComfyMossImageSftImageGenInput,
2655
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2656
+ > & {
2657
+ operation: 'createImage';
2658
+ model: 'sft';
2659
+ ecosystem: 'mossImage';
2660
+ engine: 'comfy';
2661
+ };
2662
+ export type ComfyMossImageSftImageGenInput = Omit<
2663
+ ComfyMossImageGenInput,
2664
+ 'engine' | 'ecosystem' | 'model'
2665
+ > & {
2666
+ operation: null | string;
2667
+ model: 'sft';
2668
+ ecosystem: 'mossImage';
2669
+ engine: 'comfy';
2670
+ };
2475
2671
  export type ComfyNode = {
2476
2672
  classType: string;
2477
2673
  meta?: null | {
@@ -2524,16 +2720,36 @@ export type ComfyNodepackSnapshotResult = {
2524
2720
  * Declare this, not the bare pack URN, on a customComfy step's `resources`.
2525
2721
  */
2526
2722
  layerAir: string;
2723
+ /**
2724
+ * Tar of the pack's site-packages + custom_nodes install delta; mounted by spine workers to skip pip.
2725
+ */
2527
2726
  layer: Blob;
2727
+ /**
2728
+ * The full ComfyUI /object_info with the pack installed; ComfyCloud diffs it against its baseline for the editor.
2729
+ */
2528
2730
  objectInfo: Blob;
2731
+ /**
2732
+ * Tar of the pack's WEB_DIRECTORY (extension JS) for the editor.
2733
+ */
2529
2734
  web: Blob;
2530
2735
  };
2531
2736
  export type ComfyNodepackSnapshotStep = Omit<WorkflowStep, '$type'> & {
2737
+ /**
2738
+ * Installs ComfyUI custom nodepacks on a comfy image and captures the resolved install and editor metadata as
2739
+ * reusable blobs. Runs on a real worker so compiled deps match the fleet the consumer will run on.
2740
+ */
2532
2741
  input: ComfyNodepackSnapshotInput;
2742
+ /**
2743
+ * One result per installed pack, each carrying the captured install layer, full /object_info and web assets as
2744
+ * blobs that consumers read directly from orchestrator blob storage.
2745
+ */
2533
2746
  output?: ComfyNodepackSnapshotOutput;
2534
2747
  $type: 'comfyNodepackSnapshot';
2535
2748
  };
2536
2749
  export type ComfyNodepackSnapshotStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
2750
+ /**
2751
+ * Input for the ComfyNodepackSnapshotStep step.
2752
+ */
2537
2753
  input: ComfyNodepackSnapshotInput;
2538
2754
  $type: 'comfyNodepackSnapshot';
2539
2755
  };
@@ -2883,6 +3099,9 @@ export type ComfyStep = Omit<WorkflowStep, '$type'> & {
2883
3099
  * Comfy workflows
2884
3100
  */
2885
3101
  export type ComfyStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
3102
+ /**
3103
+ * Input for the ComfyStep step.
3104
+ */
2886
3105
  input: ComfyInput;
2887
3106
  $type: 'comfy';
2888
3107
  };
@@ -2967,6 +3186,10 @@ export type ComfyTrainingInput = Omit<TrainingInput, 'engine'> & {
2967
3186
  * epoch resumes from this model instead of the base model, and the new epochs build on top of it.
2968
3187
  */
2969
3188
  continueFrom?: null | string;
3189
+ /**
3190
+ * What each epoch job records to its trace stream (`output.epochs[].traceUrl`): `none` (default), `logs` (plain-text console output)
3191
+ * or `events` (NDJSON of console lines, step progress, phases and epoch checkpoints).
3192
+ */
2970
3193
  trace: TrainingTraceMode;
2971
3194
  /**
2972
3195
  * Per-epoch surcharge (buzz) for the delivered checkpoint and its preview samples, billed on top of the per-step cost. Override where per-epoch samples are expensive (e.g. video).
@@ -3108,6 +3331,10 @@ export type ComposeMediaElementInput = {
3108
3331
  * Ignored when Civitai.Orchestration.Grains.Workflows.Steps.ComposeMedia.ComposeMediaElementInput.At is set.
3109
3332
  */
3110
3333
  offset?: number;
3334
+ /**
3335
+ * Spatial placement of this element on the output canvas. Ignored for audio elements and for
3336
+ * all-audio compositions.
3337
+ */
3111
3338
  layout?: MediaLayout;
3112
3339
  /**
3113
3340
  * Ordered per-element transformers (fades, volume, ...) applied in array order.
@@ -3120,7 +3347,15 @@ export type ComposeMediaInput = {
3120
3347
  * `zOrder` then array order. To stitch videos end-to-end, list them with no `at`/`offset`.
3121
3348
  */
3122
3349
  elements: Array<ComposeMediaElementInput>;
3350
+ /**
3351
+ * Output geometry for video output; when omitted, derived from the elements (largest video, fastest frame rate).
3352
+ * Supplying a canvas does not by itself force video output — see Civitai.Orchestration.Grains.Workflows.Steps.ComposeMedia.ComposeMediaInput.Output.
3353
+ */
3123
3354
  canvas?: MediaCanvas;
3355
+ /**
3356
+ * Desired output kind and container. When omitted, the kind is derived from the elements and
3357
+ * the container defaults to MP4 (video) or Ogg (audio).
3358
+ */
3124
3359
  output?: ComposeMediaOutputSpec;
3125
3360
  /**
3126
3361
  * Divide the audio mix by the number of overlapping elements to avoid clipping. Defaults to false.
@@ -3140,7 +3375,14 @@ export type ComposeMediaOutput = {
3140
3375
  * Civitai.Orchestration.Grains.Workflows.Steps.ComposeMedia.ComposeMediaOutputSpec.Type unset to derive the kind from the elements.
3141
3376
  */
3142
3377
  export type ComposeMediaOutputSpec = {
3378
+ /**
3379
+ * Forces the output kind. When null, it is derived from the elements: video if any element is
3380
+ * video or a canvas is supplied, otherwise audio.
3381
+ */
3143
3382
  type?: MediaOutputType;
3383
+ /**
3384
+ * Output container. Civitai.Orchestration.Grains.Workflows.Steps.ComposeMedia.MediaContainer.Auto selects MP4 for video and Ogg for audio.
3385
+ */
3144
3386
  container?: MediaContainer;
3145
3387
  };
3146
3388
  /**
@@ -3165,6 +3407,9 @@ export type ComposeMediaStep = Omit<WorkflowStep, '$type'> & {
3165
3407
  * Compose Media
3166
3408
  */
3167
3409
  export type ComposeMediaStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
3410
+ /**
3411
+ * Input for the ComposeMediaStep step.
3412
+ */
3168
3413
  input: ComposeMediaInput;
3169
3414
  $type: 'composeMedia';
3170
3415
  };
@@ -3208,6 +3453,9 @@ export type ConvertImageStep = Omit<WorkflowStep, '$type'> & {
3208
3453
  * A workflow step that converts images to different formats and applies optional transforms.
3209
3454
  */
3210
3455
  export type ConvertImageStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
3456
+ /**
3457
+ * Input for the ConvertImageStep step.
3458
+ */
3211
3459
  input: ConvertImageInput;
3212
3460
  $type: 'convertImage';
3213
3461
  };
@@ -3230,6 +3478,10 @@ export type CustomComfyInput = {
3230
3478
  * the orchestrator does not inspect or validate node contents.
3231
3479
  */
3232
3480
  workflow: unknown;
3481
+ /**
3482
+ * How much of the ComfyUI `/ws` activity the worker records to a streaming blob the consumer can tail
3483
+ * live (URL on `output.traceUrl`). Civitai.Orchestration.Grains.Workflows.Steps.CustomComfy.TraceMode.None (default) records nothing.
3484
+ */
3233
3485
  trace: TraceMode;
3234
3486
  /**
3235
3487
  * When set, the scheduler prefers a worker that already holds this session's ComfyUI container.
@@ -3277,6 +3529,9 @@ export type CustomComfyStep = Omit<WorkflowStep, '$type'> & {
3277
3529
  * CustomComfy
3278
3530
  */
3279
3531
  export type CustomComfyStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
3532
+ /**
3533
+ * Input for the CustomComfyStep step.
3534
+ */
3280
3535
  input: CustomComfyInput;
3281
3536
  $type: 'customComfy';
3282
3537
  };
@@ -3386,6 +3641,9 @@ export type EchoStep = Omit<WorkflowStep, '$type'> & {
3386
3641
  * Echo
3387
3642
  */
3388
3643
  export type EchoStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
3644
+ /**
3645
+ * Input for the EchoStep step.
3646
+ */
3389
3647
  input: EchoInput;
3390
3648
  $type: 'echo';
3391
3649
  };
@@ -3992,6 +4250,53 @@ export type Flux3KleinAiToolkitTrainingInput = Omit<
3992
4250
  */
3993
4251
  batchSize?: null | number;
3994
4252
  };
4253
+ export type Flux3MaxImageToVideoInput = Omit<
4254
+ Flux3MaxVideoGenInput,
4255
+ 'engine' | 'version' | 'operation'
4256
+ > & {
4257
+ /**
4258
+ * Either A URL, A DataURL or a Base64 string
4259
+ */
4260
+ image: string;
4261
+ /**
4262
+ * Either A URL, A DataURL or a Base64 string
4263
+ */
4264
+ endImage?: null | string;
4265
+ operation: 'imageToVideo';
4266
+ version: 'v3.0-max';
4267
+ engine: 'flux';
4268
+ };
4269
+ export type Flux3MaxKeyframesToVideoInput = Omit<
4270
+ Flux3MaxVideoGenInput,
4271
+ 'engine' | 'version' | 'operation'
4272
+ > & {
4273
+ keyframes: Array<Flux3Keyframe>;
4274
+ operation: 'keyframesToVideo';
4275
+ version: 'v3.0-max';
4276
+ engine: 'flux';
4277
+ };
4278
+ export type Flux3MaxTextToVideoInput = Omit<
4279
+ Flux3MaxVideoGenInput,
4280
+ 'engine' | 'version' | 'operation'
4281
+ > & {
4282
+ operation: 'textToVideo';
4283
+ version: 'v3.0-max';
4284
+ engine: 'flux';
4285
+ };
4286
+ export type Flux3MaxVideoGenInput = Omit<Flux3VideoGenInput, 'engine' | 'version'> & {
4287
+ operation: string;
4288
+ duration?: number;
4289
+ resolution?: '720p' | '1080p';
4290
+ aspectRatio?: 'auto' | '21:9' | '2:1' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
4291
+ generateAudio?: boolean;
4292
+ /**
4293
+ * Higher reasoning effort increases generation time.
4294
+ */
4295
+ reasoningLevel?: 'low' | 'high';
4296
+ seed?: null | number;
4297
+ version: 'v3.0-max';
4298
+ engine: 'flux';
4299
+ };
3995
4300
  /**
3996
4301
  * Re-render a previously generated draft at full-quality 1080p with audio.
3997
4302
  */
@@ -4539,6 +4844,9 @@ export type HaiperVideoGenCameraMovement =
4539
4844
  (typeof HaiperVideoGenCameraMovement)[keyof typeof HaiperVideoGenCameraMovement];
4540
4845
  export type HaiperVideoGenInput = Omit<VideoGenInput, 'engine'> & {
4541
4846
  negativePrompt?: null | string;
4847
+ /**
4848
+ * Get or set camera movement. This is only available when targeting the v1.5 Model
4849
+ */
4542
4850
  cameraMovement?: HaiperVideoGenCameraMovement;
4543
4851
  seed?: number;
4544
4852
  duration?: 2 | 4 | 8;
@@ -4939,6 +5247,9 @@ export type ImageBackgroundRemovalInput = {
4939
5247
  * Either A URL, A DataURL or a Base64 string
4940
5248
  */
4941
5249
  image: string;
5250
+ /**
5251
+ * The output image format. Defaults to PNG, which preserves transparency.
5252
+ */
4942
5253
  format?: ImageBackgroundRemovalFormat;
4943
5254
  };
4944
5255
  export type ImageBackgroundRemovalOutput = {
@@ -4956,6 +5267,9 @@ export type ImageBackgroundRemovalStep = Omit<WorkflowStep, '$type'> & {
4956
5267
  * Removes the background from an image using BiRefNet.
4957
5268
  */
4958
5269
  export type ImageBackgroundRemovalStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
5270
+ /**
5271
+ * Input for the ImageBackgroundRemovalStep step.
5272
+ */
4959
5273
  input: ImageBackgroundRemovalInput;
4960
5274
  $type: 'imageBackgroundRemoval';
4961
5275
  };
@@ -5003,6 +5317,9 @@ export type ImageGenStep = Omit<WorkflowStep, '$type'> & {
5003
5317
  * Image Generation
5004
5318
  */
5005
5319
  export type ImageGenStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
5320
+ /**
5321
+ * Input for the ImageGenStep step.
5322
+ */
5006
5323
  input: ImageGenInput;
5007
5324
  $type: 'imageGen';
5008
5325
  };
@@ -5066,6 +5383,9 @@ export type ImageResourceTrainingInput = {
5066
5383
  negativePrompt?: null | string;
5067
5384
  };
5068
5385
  export type ImageResourceTrainingOutput = {
5386
+ /**
5387
+ * The status of age classification
5388
+ */
5069
5389
  moderationStatus: ImageResouceTrainingModerationStatus;
5070
5390
  epochs: Array<EpochResult>;
5071
5391
  sampleImagesPrompts: Array<string>;
@@ -5091,6 +5411,9 @@ export type ImageResourceTrainingStep = Omit<WorkflowStep, '$type'> & {
5091
5411
  * LORA Training
5092
5412
  */
5093
5413
  export type ImageResourceTrainingStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
5414
+ /**
5415
+ * Input for the ImageResourceTrainingStep step.
5416
+ */
5094
5417
  input: ImageResourceTrainingInput;
5095
5418
  $type: 'imageResourceTraining';
5096
5419
  };
@@ -5194,6 +5517,9 @@ export type ImageScanningStep = Omit<WorkflowStep, '$type'> & {
5194
5517
  * Image scanning
5195
5518
  */
5196
5519
  export type ImageScanningStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
5520
+ /**
5521
+ * Input for the ImageScanningStep step.
5522
+ */
5197
5523
  input: ImageScanningInput;
5198
5524
  $type: 'imageScanning';
5199
5525
  };
@@ -5233,6 +5559,9 @@ export type ImageToSvgStep = Omit<WorkflowStep, '$type'> & {
5233
5559
  * Converts a raster image to an SVG using a local StarVector or OmniSVG model.
5234
5560
  */
5235
5561
  export type ImageToSvgStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
5562
+ /**
5563
+ * Input for the ImageToSvgStep step.
5564
+ */
5236
5565
  input: ImageToSvgInput;
5237
5566
  $type: 'imageToSvg';
5238
5567
  };
@@ -5319,6 +5648,9 @@ export type ImageUpscalerStep = Omit<WorkflowStep, '$type'> & {
5319
5648
  $type: 'imageUpscaler';
5320
5649
  };
5321
5650
  export type ImageUpscalerStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
5651
+ /**
5652
+ * Input for the ImageUpscalerStep step.
5653
+ */
5322
5654
  input: ImageUpscalerInput;
5323
5655
  $type: 'imageUpscaler';
5324
5656
  };
@@ -5637,7 +5969,7 @@ export type Krea2StyleReference = {
5637
5969
  */
5638
5970
  export type Krea3ImageGenInput = Omit<ImageGenInput, 'engine'> & {
5639
5971
  prompt: string;
5640
- thinkingMode?: 'instant' | 'medium';
5972
+ thinkingMode?: 'instant' | 'medium' | 'ultra';
5641
5973
  /**
5642
5974
  * Omit for text-to-image, or provide up to six images to edit.
5643
5975
  */
@@ -5735,6 +6067,32 @@ export type LightricksVideoGenInput = Omit<VideoGenInput, 'engine'> & {
5735
6067
  enhancePrompt?: boolean;
5736
6068
  engine: 'lightricks';
5737
6069
  };
6070
+ /**
6071
+ * Qwen3 Base: speaks in a voice cloned from Civitai.Orchestration.Grains.Workflows.Steps.LiveTextToSpeech.LiveQwen3BaseTTSInput.RefAudioUrl, like `textToSpeech`'s `base` operation.
6072
+ */
6073
+ export type LiveQwen3BaseTtsInput = Omit<
6074
+ LiveQwen3TextToSpeechInput,
6075
+ 'engine' | 'ecosystem' | 'operation'
6076
+ > & {
6077
+ /**
6078
+ * Reference audio AIR URN or external URL for voice cloning.
6079
+ * Accepts AIR URNs (existing resources) or HTTP(S) URLs.
6080
+ */
6081
+ refAudioUrl: string;
6082
+ /**
6083
+ * Transcript of the reference audio.
6084
+ * Required unless XVectorOnlyMode is true.
6085
+ */
6086
+ refText?: null | string;
6087
+ /**
6088
+ * If true, clones from the speaker embedding alone and ignores refText.
6089
+ * Defaults to true on live: in-context mode has been seen generating to the token cap on short sentences.
6090
+ */
6091
+ xVectorOnlyMode?: boolean;
6092
+ operation: 'base';
6093
+ ecosystem: 'qwen3';
6094
+ engine: 'vllm-omni';
6095
+ };
5738
6096
  export type LiveQwen3CustomVoiceTtsInput = Omit<
5739
6097
  LiveQwen3TextToSpeechInput,
5740
6098
  'engine' | 'ecosystem' | 'operation'
@@ -5823,6 +6181,9 @@ export type LiveTextToSpeechOutput = {
5823
6181
  * Live text to speech
5824
6182
  */
5825
6183
  export type LiveTextToSpeechStep = Omit<WorkflowStep, '$type'> & {
6184
+ /**
6185
+ * Mirrors `textToSpeech` inputs, but only for voices proven to stream with low first-audio latency.
6186
+ */
5826
6187
  input: LiveTextToSpeechInput;
5827
6188
  output?: LiveTextToSpeechOutput;
5828
6189
  $type: 'liveTextToSpeech';
@@ -5831,6 +6192,9 @@ export type LiveTextToSpeechStep = Omit<WorkflowStep, '$type'> & {
5831
6192
  * Live text to speech
5832
6193
  */
5833
6194
  export type LiveTextToSpeechStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6195
+ /**
6196
+ * Input for the LiveTextToSpeechStep step.
6197
+ */
5834
6198
  input: LiveTextToSpeechInput;
5835
6199
  $type: 'liveTextToSpeech';
5836
6200
  };
@@ -5895,6 +6259,9 @@ export type LiveTranscriptionStep = Omit<WorkflowStep, '$type'> & {
5895
6259
  * Live transcription
5896
6260
  */
5897
6261
  export type LiveTranscriptionStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6262
+ /**
6263
+ * Input for the LiveTranscriptionStep step.
6264
+ */
5898
6265
  input: LiveTranscriptionInput;
5899
6266
  $type: 'liveTranscription';
5900
6267
  };
@@ -6060,6 +6427,9 @@ export type MediaCaptioningStep = Omit<WorkflowStep, '$type'> & {
6060
6427
  * Media Captioning
6061
6428
  */
6062
6429
  export type MediaCaptioningStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6430
+ /**
6431
+ * Input for the MediaCaptioningStep step.
6432
+ */
6063
6433
  input: MediaCaptioningInput;
6064
6434
  $type: 'mediaCaptioning';
6065
6435
  };
@@ -6111,6 +6481,9 @@ export type MediaHashStep = Omit<WorkflowStep, '$type'> & {
6111
6481
  * MediaHash
6112
6482
  */
6113
6483
  export type MediaHashStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6484
+ /**
6485
+ * Input for the MediaHashStep step.
6486
+ */
6114
6487
  input: MediaHashInput;
6115
6488
  $type: 'mediaHash';
6116
6489
  };
@@ -6141,6 +6514,9 @@ export type MediaLayout = {
6141
6514
  * Uniform scale applied to the element before placement. `1.0` keeps the fitted size.
6142
6515
  */
6143
6516
  scale?: number;
6517
+ /**
6518
+ * How a video element is fitted into the output canvas when its aspect ratio differs.
6519
+ */
6144
6520
  fit?: MediaFit;
6145
6521
  };
6146
6522
  /**
@@ -6205,16 +6581,34 @@ export type MediaRatingOutput = {
6205
6581
  labels?: null | Array<string>;
6206
6582
  ageClassification?: AgeClassificationResult;
6207
6583
  faceRecognition?: FaceRecognitionResult;
6584
+ /**
6585
+ * Represents AI vs real image recognition results.
6586
+ */
6208
6587
  aiRecognition?: AiRecognitionResult;
6588
+ /**
6589
+ * Represents anime vs real image recognition results.
6590
+ */
6209
6591
  animeRecognition?: AnimeRecognitionResult;
6210
6592
  /**
6211
6593
  * Potential CSAM signal from conditional age classification on R-or-higher content.
6212
6594
  * Null means the image was below R or age classification failed.
6213
6595
  */
6214
6596
  csam?: null | boolean;
6597
+ /**
6598
+ * Represents human vs non-human image recognition results.
6599
+ */
6215
6600
  humanRecognition?: HumanRecognitionResult;
6601
+ /**
6602
+ * Body-only apparent-age and child-risk results (if requested).
6603
+ */
6216
6604
  bodyAgeClassification?: BodyAgeClassificationResult;
6605
+ /**
6606
+ * Anime apparent-age and child-risk results (if requested).
6607
+ */
6217
6608
  animeBodyAgeClassification?: AnimeBodyAgeClassificationResult;
6609
+ /**
6610
+ * Joint face-and-body apparent-age results for photo and anime content (if requested).
6611
+ */
6218
6612
  jointAgeClassification?: JointAgeClassificationResult;
6219
6613
  };
6220
6614
  /**
@@ -6229,6 +6623,9 @@ export type MediaRatingStep = Omit<WorkflowStep, '$type'> & {
6229
6623
  * MediaRating
6230
6624
  */
6231
6625
  export type MediaRatingStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6626
+ /**
6627
+ * Input for the MediaRatingStep step.
6628
+ */
6232
6629
  input: MediaRatingInput;
6233
6630
  $type: 'mediaRating';
6234
6631
  };
@@ -6251,6 +6648,9 @@ export type MergeField = {
6251
6648
  * from every item of a list; nested `[*]` flatten into one list.
6252
6649
  */
6253
6650
  path: string;
6651
+ /**
6652
+ * How a merge field combines its values. Null values are skipped, except by `any` and `all`, which count them as false.
6653
+ */
6254
6654
  reduce: MergeReducer;
6255
6655
  /**
6256
6656
  * For `group`: the property of each item to group by.
@@ -6269,6 +6669,9 @@ export type MergeField = {
6269
6669
  includeIndex: boolean;
6270
6670
  };
6271
6671
  export type MergeInput = {
6672
+ /**
6673
+ * What to do when a source item selected by a `[*]` has no output, e.g. a repeat iteration that failed.
6674
+ */
6272
6675
  onMissing: MergeMissingBehavior;
6273
6676
  /**
6274
6677
  * The fields of the merged result, keyed by the name each appears under in the output.
@@ -6293,7 +6696,7 @@ export type MergeOutput = {
6293
6696
  * The merged values, keyed by the field names of the input. Their shape follows the requested reducers.
6294
6697
  */
6295
6698
  fields: {
6296
- [key: string]: null;
6699
+ [key: string]: unknown;
6297
6700
  };
6298
6701
  /**
6299
6702
  * The number of source items selected by the first `[*]` of the fields' paths.
@@ -6342,6 +6745,9 @@ export type MergeStep = Omit<WorkflowStep, '$type'> & {
6342
6745
  * Merge
6343
6746
  */
6344
6747
  export type MergeStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6748
+ /**
6749
+ * Input for the MergeStep step.
6750
+ */
6345
6751
  input: MergeInput;
6346
6752
  $type: 'merge';
6347
6753
  };
@@ -6485,7 +6891,14 @@ export type MetricsResponse = {
6485
6891
  * rejection. Kept out of the success rate so refusing disallowed requests does not mark a service unhealthy.
6486
6892
  */
6487
6893
  userErrorRate: number;
6894
+ /**
6895
+ * What callers actually paid per request, over succeeded requests only. Not a unit price and not comparable
6896
+ * between services; use Civitai.Orchestration.Api.Controllers.v2.Consumers.Services.ServiceResponse.Estimate for an exact quote.
6897
+ */
6488
6898
  costBuzz?: PercentilesResponse;
6899
+ /**
6900
+ * Null for services that never create a job to time, such as imageUpload.
6901
+ */
6489
6902
  latencySeconds?: PercentilesResponse;
6490
6903
  };
6491
6904
  export type MingAiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
@@ -6667,6 +7080,9 @@ export type MiniMaxMusic3Step = Omit<WorkflowStep, '$type'> & {
6667
7080
  * Generate a complete song from a structured caption and lyrics with MiniMax Music 3.
6668
7081
  */
6669
7082
  export type MiniMaxMusic3StepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7083
+ /**
7084
+ * Input for the MiniMaxMusic3Step step.
7085
+ */
6670
7086
  input: MiniMaxMusic3Input;
6671
7087
  $type: 'miniMaxMusic3';
6672
7088
  };
@@ -6730,6 +7146,9 @@ export type Model3dPreviewStep = Omit<WorkflowStep, '$type'> & {
6730
7146
  * 3D model preview
6731
7147
  */
6732
7148
  export type Model3dPreviewStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7149
+ /**
7150
+ * Input for the Model3DPreviewStep step.
7151
+ */
6733
7152
  input: Model3dPreviewInput;
6734
7153
  $type: 'model3DPreview';
6735
7154
  };
@@ -6739,6 +7158,9 @@ export type ModelClamScanInput = {
6739
7158
  export type ModelClamScanOutput = {
6740
7159
  exitCode?: null | number;
6741
7160
  output?: null | string;
7161
+ /**
7162
+ * Classified scan result derived from the ClamAV exit code.
7163
+ */
6742
7164
  status?: ModelClamScanStatus;
6743
7165
  /**
6744
7166
  * True when ClamAV reported one or more infected files (exit code 1).
@@ -6766,6 +7188,9 @@ export type ModelClamScanStep = Omit<WorkflowStep, '$type'> & {
6766
7188
  * ModelClamScan
6767
7189
  */
6768
7190
  export type ModelClamScanStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7191
+ /**
7192
+ * Input for the ModelClamScanStep step.
7193
+ */
6769
7194
  input: ModelClamScanInput;
6770
7195
  $type: 'modelClamScan';
6771
7196
  };
@@ -6810,6 +7235,9 @@ export type ModelHashStep = Omit<WorkflowStep, '$type'> & {
6810
7235
  * ModelHash
6811
7236
  */
6812
7237
  export type ModelHashStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7238
+ /**
7239
+ * Input for the ModelHashStep step.
7240
+ */
6813
7241
  input: ModelHashInput;
6814
7242
  $type: 'modelHash';
6815
7243
  };
@@ -6835,6 +7263,9 @@ export type ModelParseMetadataStep = Omit<WorkflowStep, '$type'> & {
6835
7263
  * ModelParseMetadata
6836
7264
  */
6837
7265
  export type ModelParseMetadataStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7266
+ /**
7267
+ * Input for the ModelParseMetadataStep step.
7268
+ */
6838
7269
  input: ModelParseMetadataInput;
6839
7270
  $type: 'modelParseMetadata';
6840
7271
  };
@@ -6883,9 +7314,45 @@ export type ModelPickleScanStep = Omit<WorkflowStep, '$type'> & {
6883
7314
  * ModelPickleScan
6884
7315
  */
6885
7316
  export type ModelPickleScanStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7317
+ /**
7318
+ * Input for the ModelPickleScanStep step.
7319
+ */
6886
7320
  input: ModelPickleScanInput;
6887
7321
  $type: 'modelPickleScan';
6888
7322
  };
7323
+ export type MossImageAiToolkitTrainingInput = Omit<
7324
+ AiToolkitTrainingInput,
7325
+ 'engine' | 'ecosystem'
7326
+ > & {
7327
+ modelVariant: null | string;
7328
+ readonly defaultSteps: number;
7329
+ ecosystem: 'mossImage';
7330
+ engine: 'ai-toolkit';
7331
+ };
7332
+ export type MossImageBaseAiToolkitTrainingInput = Omit<
7333
+ MossImageAiToolkitTrainingInput,
7334
+ 'engine' | 'ecosystem' | 'modelVariant'
7335
+ > & {
7336
+ modelVariant: 'base';
7337
+ ecosystem: 'mossImage';
7338
+ engine: 'ai-toolkit';
7339
+ /**
7340
+ * Training batch size. Fixed at 1 for this ecosystem.
7341
+ */
7342
+ batchSize?: null | number;
7343
+ };
7344
+ export type MossImageSftAiToolkitTrainingInput = Omit<
7345
+ MossImageAiToolkitTrainingInput,
7346
+ 'engine' | 'ecosystem' | 'modelVariant'
7347
+ > & {
7348
+ modelVariant: 'sft';
7349
+ ecosystem: 'mossImage';
7350
+ engine: 'ai-toolkit';
7351
+ /**
7352
+ * Training batch size. Fixed at 1 for this ecosystem.
7353
+ */
7354
+ batchSize?: null | number;
7355
+ };
6889
7356
  export type MuseImageCreateFalImageGenInput = Omit<
6890
7357
  MuseImageFalImageGenInput,
6891
7358
  'engine' | 'model' | 'operation'
@@ -7315,13 +7782,37 @@ export type PolyGenInput = {
7315
7782
  engine: string;
7316
7783
  };
7317
7784
  export type PolyGenOutput = {
7318
- model: Model3dBlob;
7785
+ /**
7786
+ * Generated 3D model in GLB format. Null when the engine only produces FBX (Tripo with quad enabled).
7787
+ */
7788
+ model?: Model3dBlob;
7789
+ /**
7790
+ * Generated 3D model in FBX format, when the engine produces one.
7791
+ */
7319
7792
  fbxModel?: Model3dBlob;
7793
+ /**
7794
+ * Preview thumbnail image of the generated model, when the engine produces one.
7795
+ */
7320
7796
  thumbnail?: ImageBlob;
7797
+ /**
7798
+ * Rigged character in GLB format, when rigging is enabled.
7799
+ */
7321
7800
  riggedModel?: Model3dBlob;
7801
+ /**
7802
+ * Rigged character in FBX format, when rigging is enabled.
7803
+ */
7322
7804
  riggedFbxModel?: Model3dBlob;
7805
+ /**
7806
+ * Animated 3D model in GLB format, when animation is enabled.
7807
+ */
7323
7808
  animatedModel?: Model3dBlob;
7809
+ /**
7810
+ * Animated 3D model in FBX format, when animation is enabled.
7811
+ */
7324
7812
  animatedFbxModel?: Model3dBlob;
7813
+ /**
7814
+ * Basic walking and running animations, when rigging is enabled.
7815
+ */
7325
7816
  basicAnimations?: BasicAnimationsBlobs;
7326
7817
  };
7327
7818
  /**
@@ -7336,6 +7827,9 @@ export type PolyGenStep = Omit<WorkflowStep, '$type'> & {
7336
7827
  * 3D model generation
7337
7828
  */
7338
7829
  export type PolyGenStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
7830
+ /**
7831
+ * Input for the PolyGenStep step.
7832
+ */
7339
7833
  input: PolyGenInput;
7340
7834
  $type: 'polyGen';
7341
7835
  };
@@ -7520,6 +8014,9 @@ export type PreprocessImageStep = Omit<WorkflowStep, '$type'> & {
7520
8014
  $type: 'preprocessImage';
7521
8015
  };
7522
8016
  export type PreprocessImageStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
8017
+ /**
8018
+ * Input for the PreprocessImageStep step.
8019
+ */
7523
8020
  input: PreprocessImageInput;
7524
8021
  $type: 'preprocessImage';
7525
8022
  };
@@ -7607,6 +8104,9 @@ export type PreprocessVideoStep = Omit<WorkflowStep, '$type'> & {
7607
8104
  $type: 'preprocessVideo';
7608
8105
  };
7609
8106
  export type PreprocessVideoStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
8107
+ /**
8108
+ * Input for the PreprocessVideoStep step.
8109
+ */
7610
8110
  input: PreprocessVideoInput;
7611
8111
  $type: 'preprocessVideo';
7612
8112
  };
@@ -7664,6 +8164,9 @@ export type PromptEnhancementStep = Omit<WorkflowStep, '$type'> & {
7664
8164
  * PromptEnhancement
7665
8165
  */
7666
8166
  export type PromptEnhancementStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
8167
+ /**
8168
+ * Input for the PromptEnhancementStep step.
8169
+ */
7667
8170
  input: PromptEnhancementInput;
7668
8171
  $type: 'promptEnhancement';
7669
8172
  };
@@ -7712,6 +8215,9 @@ export type PromptModerationStep = Omit<WorkflowStep, '$type'> & {
7712
8215
  * PromptModeration
7713
8216
  */
7714
8217
  export type PromptModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
8218
+ /**
8219
+ * Input for the PromptModerationStep step.
8220
+ */
7715
8221
  input: PromptModerationInput;
7716
8222
  $type: 'promptModeration';
7717
8223
  };
@@ -8032,6 +8538,9 @@ export type QwenImageBenchStep = Omit<WorkflowStep, '$type'> & {
8032
8538
  * Qwen Image Bench
8033
8539
  */
8034
8540
  export type QwenImageBenchStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
8541
+ /**
8542
+ * Input for the QwenImageBenchStep step.
8543
+ */
8035
8544
  input: QwenImageBenchInput;
8036
8545
  $type: 'qwenImageBench';
8037
8546
  };
@@ -8055,7 +8564,13 @@ export type RepeatForClause = {
8055
8564
  as: string;
8056
8565
  };
8057
8566
  export type RepeatInput = {
8567
+ /**
8568
+ * The "for" clause that specifies what array to iterate over and how to reference items.
8569
+ */
8058
8570
  for: RepeatForClause;
8571
+ /**
8572
+ * The template of the workflow step to execute for each item in the iteration.
8573
+ */
8059
8574
  template: WorkflowStepTemplate;
8060
8575
  };
8061
8576
  export type RepeatOutput = {
@@ -8123,6 +8638,9 @@ export type ResourceInfo = {
8123
8638
  * NSFW covers X and XXX, whereas mature content also includes R.
8124
8639
  */
8125
8640
  hasNSFWContentRestriction: boolean;
8641
+ /**
8642
+ * License fee charged per use.
8643
+ */
8126
8644
  fee?: ResourceFee;
8127
8645
  /**
8128
8646
  * False makes the resource ineligible for compensation.
@@ -8137,6 +8655,9 @@ export type ResourceInfo = {
8137
8655
  * attribution follows ownership transfers instead of being resolved retroactively.
8138
8656
  */
8139
8657
  userId?: null | number;
8658
+ /**
8659
+ * Whether this resource can be generated with right now, across the whole fleet.
8660
+ */
8140
8661
  availability?: ResourceAvailability;
8141
8662
  /**
8142
8663
  * Promoted resources download in the High lane for free, whatever lane the job asked for.
@@ -8521,9 +9042,24 @@ export type ServiceResponse = {
8521
9042
  strengths?: null | string;
8522
9043
  weaknesses?: null | string;
8523
9044
  releasedAt?: null | string;
9045
+ /**
9046
+ * What this consumes and produces. Independent of Civitai.Orchestration.Api.Controllers.v2.Consumers.Services.ServiceResponse.Category, and null for
9047
+ * services with no meaningful modality.
9048
+ */
8524
9049
  modalities?: ModalitiesResponse;
9050
+ /**
9051
+ * Health over the requested window. Always present: a service with no traffic reports
9052
+ * "unknown" rather than nothing, so callers never have to distinguish absent from healthy.
9053
+ */
8525
9054
  status: ServiceStatus;
9055
+ /**
9056
+ * Null when nothing ran in the window.
9057
+ */
8526
9058
  metrics?: MetricsResponse;
9059
+ /**
9060
+ * The metric time series over the window. Only present when a single service is requested —
9061
+ * the list omits it to stay cheap.
9062
+ */
8527
9063
  history?: ServiceHistory;
8528
9064
  };
8529
9065
  export declare const ServiceStatus: {
@@ -8579,6 +9115,9 @@ export type ShieldstralModerationStep = Omit<WorkflowStep, '$type'> & {
8579
9115
  * ShieldstralModeration
8580
9116
  */
8581
9117
  export type ShieldstralModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9118
+ /**
9119
+ * Input for the ShieldstralModerationStep step.
9120
+ */
8582
9121
  input: ShieldstralModerationInput;
8583
9122
  $type: 'shieldstralModeration';
8584
9123
  };
@@ -8633,6 +9172,9 @@ export type SoniloAudioGenOutput = {
8633
9172
  * Generate music or a standalone sound effect from a text prompt with Sonilo.
8634
9173
  */
8635
9174
  export type SoniloAudioGenStep = Omit<WorkflowStep, '$type'> & {
9175
+ /**
9176
+ * Text-to-audio via Sonilo; `operation` picks music or a standalone sound effect.
9177
+ */
8636
9178
  input: SoniloAudioGenInput;
8637
9179
  output?: SoniloAudioGenOutput;
8638
9180
  $type: 'soniloAudioGen';
@@ -8641,6 +9183,9 @@ export type SoniloAudioGenStep = Omit<WorkflowStep, '$type'> & {
8641
9183
  * Generate music or a standalone sound effect from a text prompt with Sonilo.
8642
9184
  */
8643
9185
  export type SoniloAudioGenStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9186
+ /**
9187
+ * Input for the SoniloAudioGenStep step.
9188
+ */
8644
9189
  input: SoniloAudioGenInput;
8645
9190
  $type: 'soniloAudioGen';
8646
9191
  };
@@ -8746,6 +9291,9 @@ export type TextToImageInput = {
8746
9291
  */
8747
9292
  imageMetadata?: null | string;
8748
9293
  engine?: null | string;
9294
+ /**
9295
+ * The format in which to output images, Png and WebP may charge an additional cost
9296
+ */
8749
9297
  outputFormat?: OutputFormat;
8750
9298
  /**
8751
9299
  * An optional source image to trigger img-to-img
@@ -8771,6 +9319,9 @@ export type TextToImageStep = Omit<WorkflowStep, '$type'> & {
8771
9319
  * TextToImage
8772
9320
  */
8773
9321
  export type TextToImageStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9322
+ /**
9323
+ * Input for the TextToImageStep step.
9324
+ */
8774
9325
  input: TextToImageInput;
8775
9326
  $type: 'textToImage';
8776
9327
  };
@@ -8805,6 +9356,9 @@ export type TextToSpeechStep = Omit<WorkflowStep, '$type'> & {
8805
9356
  * Text-to-Speech
8806
9357
  */
8807
9358
  export type TextToSpeechStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9359
+ /**
9360
+ * Input for the TextToSpeechStep step.
9361
+ */
8808
9362
  input: TextToSpeechInput;
8809
9363
  $type: 'textToSpeech';
8810
9364
  };
@@ -8836,12 +9390,14 @@ export type TrainingData = {
8836
9390
  export type TrainingInput = {
8837
9391
  engine: string;
8838
9392
  trainingData: TrainingData;
9393
+ /**
9394
+ * Sample generation configuration for preview outputs during training
9395
+ */
8839
9396
  samples?: TrainingInputSamples;
8840
9397
  /**
8841
9398
  * Whether this run uses step-based pricing rather than the legacy flat per-epoch price.
8842
9399
  */
8843
9400
  readonly usesStepPricing: boolean;
8844
- readonly requiresAgeClassification: boolean;
8845
9401
  };
8846
9402
  export type TrainingInputSamples = {
8847
9403
  /**
@@ -8883,6 +9439,10 @@ export type TrainingOutputEpochResult = {
8883
9439
  * The epoch number (1-based)
8884
9440
  */
8885
9441
  epochNumber: number;
9442
+ /**
9443
+ * The trained model blob for this epoch. `available` is false (and there is no URL) while the
9444
+ * epoch is still pending or training.
9445
+ */
8886
9446
  model: Blob;
8887
9447
  /**
8888
9448
  * Sample outputs (images/videos/audio) generated with this epoch's model
@@ -8906,6 +9466,9 @@ export type TrainingStep = Omit<WorkflowStep, '$type'> & {
8906
9466
  * Training
8907
9467
  */
8908
9468
  export type TrainingStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9469
+ /**
9470
+ * Input for the TrainingStep step.
9471
+ */
8909
9472
  input: TrainingInput;
8910
9473
  $type: 'training';
8911
9474
  };
@@ -8955,6 +9518,14 @@ export type TranscodeInput = {
8955
9518
  * Removes the source's container tags and chapters; the video and audio streams are untouched.
8956
9519
  */
8957
9520
  hideMetadata?: null | boolean;
9521
+ /**
9522
+ * Cuts the output after this many seconds.
9523
+ */
9524
+ maxDuration?: null | number;
9525
+ /**
9526
+ * An image repeated across the whole output, burned into every frame.
9527
+ */
9528
+ watermark?: Watermark;
8958
9529
  };
8959
9530
  export type TranscodeOutput = {
8960
9531
  /**
@@ -8988,6 +9559,9 @@ export type TranscodeStep = Omit<WorkflowStep, '$type'> & {
8988
9559
  * Transcoding
8989
9560
  */
8990
9561
  export type TranscodeStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9562
+ /**
9563
+ * Input for the TranscodeStep step.
9564
+ */
8991
9565
  input: TranscodeInput;
8992
9566
  $type: 'transcode';
8993
9567
  };
@@ -9014,6 +9588,10 @@ export type TranscriptionOutput = {
9014
9588
  */
9015
9589
  timeStamps: Array<TranscriptionTimeStamp>;
9016
9590
  elapsedSeconds: number;
9591
+ /**
9592
+ * False when the media has no audio track; null when the worker did not check.
9593
+ */
9594
+ hasAudio?: null | boolean;
9017
9595
  };
9018
9596
  /**
9019
9597
  * Transcription
@@ -9027,6 +9605,9 @@ export type TranscriptionStep = Omit<WorkflowStep, '$type'> & {
9027
9605
  * Transcription
9028
9606
  */
9029
9607
  export type TranscriptionStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9608
+ /**
9609
+ * Input for the TranscriptionStep step.
9610
+ */
9030
9611
  input: TranscriptionInput;
9031
9612
  $type: 'transcription';
9032
9613
  };
@@ -9148,6 +9729,11 @@ export type UpdateWorkflowRequest = {
9148
9729
  * Set to true to remove the mature content restriction on the workflow.
9149
9730
  */
9150
9731
  allowMatureContent?: null | boolean;
9732
+ /**
9733
+ * Raise the download priority for resources this workflow needs but the fleet does not hold.
9734
+ * Only Civitai.Orchestration.Grains.Workflows.Priority.High may be requested, and it carries a Buzz charge for each cold
9735
+ * resource above the free size threshold.
9736
+ */
9151
9737
  downloadPriority?: Priority;
9152
9738
  };
9153
9739
  export declare const UpdateWorkflowStatus: {
@@ -9234,6 +9820,9 @@ export type Veo3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
9234
9820
  seed?: null | number;
9235
9821
  fastMode?: boolean;
9236
9822
  images?: Array<string>;
9823
+ /**
9824
+ * Google retired the Veo 3.0 endpoints on 2026-08-28; requests with `3.0` are rejected with 400. Use `3.1`.
9825
+ */
9237
9826
  version?: Veo3Version;
9238
9827
  mode?: Veo3GenerationMode;
9239
9828
  };
@@ -9263,6 +9852,9 @@ export type VideoBackgroundRemovalStep = Omit<WorkflowStep, '$type'> & {
9263
9852
  * Tracks a prompted foreground object across a video and returns a lossless animated WebP with transparency.
9264
9853
  */
9265
9854
  export type VideoBackgroundRemovalStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9855
+ /**
9856
+ * Input for the VideoBackgroundRemovalStep step.
9857
+ */
9266
9858
  input: VideoBackgroundRemovalInput;
9267
9859
  $type: 'videoBackgroundRemoval';
9268
9860
  };
@@ -9310,6 +9902,9 @@ export type VideoEnhancementStep = Omit<WorkflowStep, '$type'> & {
9310
9902
  * Upscale videos and/or interpolate frames
9311
9903
  */
9312
9904
  export type VideoEnhancementStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9905
+ /**
9906
+ * Input for the VideoEnhancementStep step.
9907
+ */
9313
9908
  input: VideoEnhancementInput;
9314
9909
  $type: 'videoEnhancement';
9315
9910
  };
@@ -9353,6 +9948,9 @@ export type VideoFrameExtractionStep = Omit<WorkflowStep, '$type'> & {
9353
9948
  * Video Frame Extraction
9354
9949
  */
9355
9950
  export type VideoFrameExtractionStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9951
+ /**
9952
+ * Input for the VideoFrameExtractionStep step.
9953
+ */
9356
9954
  input: VideoFrameExtractionInput;
9357
9955
  $type: 'videoFrameExtraction';
9358
9956
  };
@@ -9371,6 +9969,10 @@ export type VideoGenOutput = {
9371
9969
  * Civitai.Orchestration.Grains.Workflows.Steps.VideoGen.VideoGenOutput.Video is always the primary slot. Null/empty for single-output engines.
9372
9970
  */
9373
9971
  additionalVideos?: null | Array<VideoBlob>;
9972
+ /**
9973
+ * Encrypted draft cache produced by a FLUX-3 draft generation. Pass its url as the draftCache
9974
+ * input of a later draftEnhance step to re-render the draft at full quality.
9975
+ */
9374
9976
  draftCache?: Blob;
9375
9977
  };
9376
9978
  /**
@@ -9385,6 +9987,9 @@ export type VideoGenStep = Omit<WorkflowStep, '$type'> & {
9385
9987
  * Video generation
9386
9988
  */
9387
9989
  export type VideoGenStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
9990
+ /**
9991
+ * Input for the VideoGenStep step.
9992
+ */
9388
9993
  input: VideoGenInput;
9389
9994
  $type: 'videoGen';
9390
9995
  };
@@ -9408,6 +10013,9 @@ export type VideoInterpolationStep = Omit<WorkflowStep, '$type'> & {
9408
10013
  * Interpolate videos using VFI Mamba
9409
10014
  */
9410
10015
  export type VideoInterpolationStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
10016
+ /**
10017
+ * Input for the VideoInterpolationStep step.
10018
+ */
9411
10019
  input: VideoInterpolationInput;
9412
10020
  $type: 'videoInterpolation';
9413
10021
  };
@@ -9432,6 +10040,9 @@ export type VideoMetadataStep = Omit<WorkflowStep, '$type'> & {
9432
10040
  * Extract metadata from videos including width, height, FPS, and duration
9433
10041
  */
9434
10042
  export type VideoMetadataStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
10043
+ /**
10044
+ * Input for the VideoMetadataStep step.
10045
+ */
9435
10046
  input: VideoMetadataInput;
9436
10047
  $type: 'videoMetadata';
9437
10048
  };
@@ -9454,6 +10065,9 @@ export type VideoUpscalerStep = Omit<WorkflowStep, '$type'> & {
9454
10065
  * Upscale videos using FlashVSR
9455
10066
  */
9456
10067
  export type VideoUpscalerStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
10068
+ /**
10069
+ * Input for the VideoUpscalerStep step.
10070
+ */
9457
10071
  input: VideoUpscalerInput;
9458
10072
  $type: 'videoUpscaler';
9459
10073
  };
@@ -9586,6 +10200,9 @@ export type WdTaggingStep = Omit<WorkflowStep, '$type'> & {
9586
10200
  * WDTagging
9587
10201
  */
9588
10202
  export type WdTaggingStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
10203
+ /**
10204
+ * Input for the WDTaggingStep step.
10205
+ */
9589
10206
  input: WdTaggingInput;
9590
10207
  $type: 'wdTagging';
9591
10208
  };
@@ -10086,6 +10703,31 @@ export type WanVideoGenInput = Omit<VideoGenInput, 'engine'> & {
10086
10703
  steps?: number;
10087
10704
  loras?: Array<VideoGenInputLora>;
10088
10705
  };
10706
+ /**
10707
+ * An image repeated across the whole output, burned into every frame.
10708
+ */
10709
+ export type Watermark = {
10710
+ /**
10711
+ * The tile, typically a PNG with transparency. It is imported and moderated like any other input image.
10712
+ */
10713
+ image: string;
10714
+ opacity?: number;
10715
+ /**
10716
+ * Width of one tile as a fraction of the output width.
10717
+ */
10718
+ scale?: number;
10719
+ /**
10720
+ * Counter-clockwise rotation of the tiled pattern, in degrees.
10721
+ */
10722
+ angle?: number;
10723
+ };
10724
+ export type WatermarkTransform = Omit<ImageTransform, 'type'> & {
10725
+ /**
10726
+ * An image repeated across the whole output, burned into every frame.
10727
+ */
10728
+ watermark: Watermark;
10729
+ type: 'watermark';
10730
+ };
10089
10731
  export type WebScrapeInput = {
10090
10732
  url: string;
10091
10733
  /**
@@ -10122,6 +10764,9 @@ export type WebScrapeStep = Omit<WorkflowStep, '$type'> & {
10122
10764
  * WebScrape
10123
10765
  */
10124
10766
  export type WebScrapeStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
10767
+ /**
10768
+ * Input for the WebScrapeStep step.
10769
+ */
10125
10770
  input: WebScrapeInput;
10126
10771
  $type: 'webScrape';
10127
10772
  };
@@ -10168,6 +10813,9 @@ export type WebSearchStep = Omit<WorkflowStep, '$type'> & {
10168
10813
  * WebSearch
10169
10814
  */
10170
10815
  export type WebSearchStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
10816
+ /**
10817
+ * Input for the WebSearchStep step.
10818
+ */
10171
10819
  input: WebSearchInput;
10172
10820
  $type: 'webSearch';
10173
10821
  };
@@ -10203,14 +10851,27 @@ export type Workflow = {
10203
10851
  };
10204
10852
  readonly steps: Array<WorkflowStep>;
10205
10853
  callbacks: Array<WorkflowCallback>;
10854
+ /**
10855
+ * Optional tips for either civitai or the creators involved in this workflow.
10856
+ */
10206
10857
  tips: WorkflowTips;
10858
+ /**
10859
+ * Get a summary of the actual cost consumed by this workflow.
10860
+ * On dry-run requests, this will contain the estimated cost.
10861
+ */
10207
10862
  cost: WorkflowCost;
10863
+ /**
10864
+ * An optional limit in what content is safe to return
10865
+ */
10208
10866
  nsfwLevel?: NsfwLevel;
10209
10867
  /**
10210
10868
  * Opts the workflow in to new features or behaviours that are not yet stable.
10211
10869
  */
10212
10870
  experimental?: null | boolean;
10213
10871
  allowMatureContent?: null | boolean;
10872
+ /**
10873
+ * Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
10874
+ */
10214
10875
  upgradeMode: WorkflowUpgradeMode;
10215
10876
  currencies: Array<BuzzClientAccount>;
10216
10877
  /**
@@ -10236,7 +10897,14 @@ export type Workflow = {
10236
10897
  * Soft delete: the telemetry document is kept until its TTL for operators, but consumer reads treat the workflow as gone.
10237
10898
  */
10238
10899
  deletedAt?: null | string;
10900
+ /**
10901
+ * Download lane for resources this workflow needs but the fleet does not hold. Resolved from
10902
+ * membership at submission unless the consumer paid to pin it to Civitai.Orchestration.Grains.Workflows.Priority.High.
10903
+ */
10239
10904
  downloadPriority?: Priority;
10905
+ /**
10906
+ * How a workflow is paid for.
10907
+ */
10240
10908
  tier: WorkflowTier;
10241
10909
  fund?: null | string;
10242
10910
  };
@@ -10316,6 +10984,9 @@ export type WorkflowEvent = {
10316
10984
  status: WorkflowStatus;
10317
10985
  timestamp: string;
10318
10986
  readonly $type: string;
10987
+ /**
10988
+ * Only present when the callback requests detailed events.
10989
+ */
10319
10990
  details?: WorkflowEventDetails;
10320
10991
  };
10321
10992
  /**
@@ -10323,10 +10994,10 @@ export type WorkflowEvent = {
10323
10994
  */
10324
10995
  export type WorkflowEventDetails = {
10325
10996
  metadata?: null | {
10326
- [key: string]: null;
10997
+ [key: string]: unknown;
10327
10998
  };
10328
10999
  arguments?: null | {
10329
- [key: string]: null;
11000
+ [key: string]: unknown;
10330
11001
  };
10331
11002
  createdAt: string;
10332
11003
  completedAt?: null | string;
@@ -10339,10 +11010,10 @@ export type WorkflowEventStepDetails = {
10339
11010
  startedAt?: null | string;
10340
11011
  completedAt?: null | string;
10341
11012
  metadata?: null | {
10342
- [key: string]: null;
11013
+ [key: string]: unknown;
10343
11014
  };
10344
- input?: null;
10345
- output?: null;
11015
+ input?: unknown;
11016
+ output?: unknown;
10346
11017
  cost?: null | number;
10347
11018
  };
10348
11019
  export declare const WorkflowStatus: {
@@ -10380,6 +11051,10 @@ export type WorkflowStep = {
10380
11051
  * the step is preparing.
10381
11052
  */
10382
11053
  preparation?: null | Array<WorkflowStepPreparationResource>;
11054
+ /**
11055
+ * The step's queue position, aggregated across its jobs (worst support, fewest preceding jobs,
11056
+ * earliest estimated start, latest estimated completion). Null once the step starts processing.
11057
+ */
10383
11058
  queuePosition?: WorkflowStepQueuePosition;
10384
11059
  /**
10385
11060
  * Non-fatal warnings about this step, such as a requested model that is scheduled for retirement.
@@ -10392,6 +11067,9 @@ export type WorkflowStepEvent = {
10392
11067
  name: string;
10393
11068
  status: WorkflowStatus;
10394
11069
  readonly $type: string;
11070
+ /**
11071
+ * Only present when the callback requests detailed events.
11072
+ */
10395
11073
  details?: WorkflowStepEventDetails;
10396
11074
  /**
10397
11075
  * Every resource download this step is waiting on, gating resource first. Only set while preparing.
@@ -10410,10 +11088,10 @@ export type WorkflowStepEventDetails = {
10410
11088
  estimatedProgressRate?: null | number;
10411
11089
  retries: number;
10412
11090
  metadata?: null | {
10413
- [key: string]: null;
11091
+ [key: string]: unknown;
10414
11092
  };
10415
- input?: null;
10416
- output?: null;
11093
+ input?: unknown;
11094
+ output?: unknown;
10417
11095
  /**
10418
11096
  * Every resource download this step is waiting on, gating resource first. Only set while preparing.
10419
11097
  */
@@ -10502,12 +11180,26 @@ export type WorkflowTemplate = {
10502
11180
  tags?: null | Array<string>;
10503
11181
  steps: Array<WorkflowStepTemplate>;
10504
11182
  callbacks?: null | Array<WorkflowCallback>;
11183
+ /**
11184
+ * Optional tips for either civitai or the creators involved in this workflow.
11185
+ */
10505
11186
  tips?: WorkflowTips;
10506
11187
  arguments?: null | {
10507
11188
  [key: string]: unknown;
10508
11189
  };
11190
+ /**
11191
+ * An optional limit in what content is safe to return
11192
+ */
10509
11193
  nsfwLevel?: NsfwLevel;
11194
+ /**
11195
+ * Download urgency for resources the fleet does not hold; omit to derive it from membership.
11196
+ * Only Civitai.Orchestration.Grains.Workflows.Priority.High may be requested, and it carries a Buzz charge per cold resource above the free size threshold.
11197
+ */
10510
11198
  downloadPriority?: Priority;
11199
+ /**
11200
+ * Run this workflow on the free tier. Only steps using a model offered on the free tier are
11201
+ * accepted; they cost no Buzz, count against a per-user quota and run behind all paid work.
11202
+ */
10511
11203
  tier?: WorkflowTier;
10512
11204
  /**
10513
11205
  * Opts the workflow in to new features or behaviours that are not yet stable.
@@ -10517,6 +11209,9 @@ export type WorkflowTemplate = {
10517
11209
  * When false, no content marked as mature is returned; additional payment options are available for such workflows.
10518
11210
  */
10519
11211
  allowMatureContent?: null | boolean;
11212
+ /**
11213
+ * Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
11214
+ */
10520
11215
  upgradeMode?: WorkflowUpgradeMode;
10521
11216
  /**
10522
11217
  * Limit the currencies that can be used to pay for this workflow.
@@ -10664,6 +11359,9 @@ export type XGuardModerationStep = Omit<WorkflowStep, '$type'> & {
10664
11359
  * XGuardModeration
10665
11360
  */
10666
11361
  export type XGuardModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
11362
+ /**
11363
+ * Input for the XGuardModerationStep step.
11364
+ */
10667
11365
  input: XGuardModerationInput;
10668
11366
  $type: 'xGuardModeration';
10669
11367
  };
@@ -10674,6 +11372,10 @@ export type XGuardPromptModerationInput = Omit<XGuardModerationInput, 'mode'> &
10674
11372
  * Additional instructions are unsupported by the fixed Civitai Scan contract.
10675
11373
  */
10676
11374
  instructions?: null | string;
11375
+ /**
11376
+ * Only Combined is supported: both prompts are sent as JSON, negative terms act as exclusions (excluding adulthood is an age-down cue).
11377
+ * For positive-only input use Combined with an empty negative prompt.
11378
+ */
10677
11379
  scope: XGuardPromptScope;
10678
11380
  mode: 'prompt';
10679
11381
  };
@@ -10790,6 +11492,9 @@ export type YuE2SampleOverride = {
10790
11492
  * Generate a song from style and lyrics with YuE2.
10791
11493
  */
10792
11494
  export type YuE2Step = Omit<WorkflowStep, '$type'> & {
11495
+ /**
11496
+ * YuE2 text-to-music generation with optional ABC score planning.
11497
+ */
10793
11498
  input: YuE2Input;
10794
11499
  output?: YuE2Output;
10795
11500
  $type: 'yuE2';
@@ -10798,6 +11503,9 @@ export type YuE2Step = Omit<WorkflowStep, '$type'> & {
10798
11503
  * Generate a song from style and lyrics with YuE2.
10799
11504
  */
10800
11505
  export type YuE2StepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
11506
+ /**
11507
+ * Input for the YuE2Step step.
11508
+ */
10801
11509
  input: YuE2Input;
10802
11510
  $type: 'yuE2';
10803
11511
  };
@@ -10990,6 +11698,10 @@ export type AiToolkitTrainingInputWritable = Omit<TrainingInputWritable2, 'engin
10990
11698
  * epoch resumes from this model instead of the base model, and the new epochs build on top of it.
10991
11699
  */
10992
11700
  continueFrom?: null | string;
11701
+ /**
11702
+ * What each epoch job records to its trace stream (`output.epochs[].traceUrl`): `none` (default), `logs` (plain-text console output)
11703
+ * or `events` (NDJSON of console lines, step progress, phases and epoch checkpoints).
11704
+ */
10993
11705
  trace: TrainingTraceMode;
10994
11706
  engine: 'ai-toolkit';
10995
11707
  };
@@ -11079,6 +11791,32 @@ export type AssistantMessageWritable = Omit<ChatCompletionMessageWritable, 'role
11079
11791
  reasoning?: null | string;
11080
11792
  role: 'assistant';
11081
11793
  };
11794
+ export type AudioModerationOutputWritable = {
11795
+ lyrics: string;
11796
+ sexualizedMinors: boolean;
11797
+ score: null | number;
11798
+ model: null | string;
11799
+ policyHash: null | string;
11800
+ hasAudio?: null | boolean;
11801
+ skippedReason?: null | string;
11802
+ };
11803
+ /**
11804
+ * Transcribe every audio track and classify the lyrics for sexualized minors.
11805
+ */
11806
+ export type AudioModerationStepWritable = Omit<WorkflowStepWritable, '$type'> & {
11807
+ input: AudioModerationInput;
11808
+ output?: AudioModerationOutputWritable;
11809
+ $type: 'audioModeration';
11810
+ };
11811
+ export type AudioTextModerationOutputWritable = {
11812
+ lyrics: string;
11813
+ sexualizedMinors: boolean;
11814
+ score: null | number;
11815
+ model: null | string;
11816
+ policyHash: null | string;
11817
+ hasAudio?: null | boolean;
11818
+ skippedReason?: null | string;
11819
+ };
11082
11820
  export type BooguAiToolkitTrainingInputWritable = Omit<
11083
11821
  AiToolkitTrainingInputWritable,
11084
11822
  'engine' | 'ecosystem'
@@ -11092,9 +11830,12 @@ export type BooguAiToolkitTrainingInputWritable = Omit<
11092
11830
  };
11093
11831
  export type ChatCompletionChoiceWritable = {
11094
11832
  index: number;
11833
+ /**
11834
+ * An assistant message representing a prior response.
11835
+ */
11095
11836
  message: AssistantMessageWritable;
11096
11837
  finishReason?: null | string;
11097
- logprobs?: null;
11838
+ logprobs?: unknown;
11098
11839
  };
11099
11840
  /**
11100
11841
  * Accepts both camelCase (`imageUrl`) and snake_case (`image_url`) type discriminators.
@@ -11118,12 +11859,15 @@ export type ChatCompletionOutputWritable = {
11118
11859
  * Parsed JSON of `Choices[0].Message.Content`, populated when the request used a JSON `response_format`
11119
11860
  * and the content parsed. Reachable from later steps via `$ref` paths like `output.parsed.<field>`.
11120
11861
  */
11121
- parsed?: null;
11862
+ parsed?: unknown;
11122
11863
  };
11123
11864
  /**
11124
11865
  * ChatCompletion
11125
11866
  */
11126
11867
  export type ChatCompletionStepWritable = Omit<WorkflowStepWritable, '$type'> & {
11868
+ /**
11869
+ * Input for a chat completion step, compatible with OpenAI Chat Completions API.
11870
+ */
11127
11871
  input: ChatCompletionInput;
11128
11872
  output?: ChatCompletionOutputWritable;
11129
11873
  $type: 'chatCompletion';
@@ -11288,6 +12032,10 @@ export type ComfyTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'>
11288
12032
  * epoch resumes from this model instead of the base model, and the new epochs build on top of it.
11289
12033
  */
11290
12034
  continueFrom?: null | string;
12035
+ /**
12036
+ * What each epoch job records to its trace stream (`output.epochs[].traceUrl`): `none` (default), `logs` (plain-text console output)
12037
+ * or `events` (NDJSON of console lines, step progress, phases and epoch checkpoints).
12038
+ */
11291
12039
  trace: TrainingTraceMode;
11292
12040
  resolution?: number;
11293
12041
  noHalfVae?: boolean;
@@ -11639,6 +12387,38 @@ export type MiniMaxH3AiToolkitTrainingInputWritable = Omit<
11639
12387
  */
11640
12388
  batchSize?: null | number;
11641
12389
  };
12390
+ export type MossImageAiToolkitTrainingInputWritable = Omit<
12391
+ AiToolkitTrainingInputWritable,
12392
+ 'engine' | 'ecosystem'
12393
+ > & {
12394
+ modelVariant: null | string;
12395
+ ecosystem: 'mossImage';
12396
+ engine: 'ai-toolkit';
12397
+ };
12398
+ export type MossImageBaseAiToolkitTrainingInputWritable = Omit<
12399
+ MossImageAiToolkitTrainingInputWritable,
12400
+ 'engine' | 'ecosystem' | 'modelVariant'
12401
+ > & {
12402
+ modelVariant: 'base';
12403
+ ecosystem: 'mossImage';
12404
+ engine: 'ai-toolkit';
12405
+ /**
12406
+ * Training batch size. Fixed at 1 for this ecosystem.
12407
+ */
12408
+ batchSize?: null | number;
12409
+ };
12410
+ export type MossImageSftAiToolkitTrainingInputWritable = Omit<
12411
+ MossImageAiToolkitTrainingInputWritable,
12412
+ 'engine' | 'ecosystem' | 'modelVariant'
12413
+ > & {
12414
+ modelVariant: 'sft';
12415
+ ecosystem: 'mossImage';
12416
+ engine: 'ai-toolkit';
12417
+ /**
12418
+ * Training batch size. Fixed at 1 for this ecosystem.
12419
+ */
12420
+ batchSize?: null | number;
12421
+ };
11642
12422
  export type MusubiImageResourceTrainingInputWritable = Omit<
11643
12423
  ImageResourceTrainingInputWritable,
11644
12424
  'engine'
@@ -11897,6 +12677,9 @@ export type PreprocessImageStepWritable = Omit<WorkflowStepWritable, '$type'> &
11897
12677
  $type: 'preprocessImage';
11898
12678
  };
11899
12679
  export type PreprocessImageStepTemplateWritable = Omit<WorkflowStepTemplateWritable, '$type'> & {
12680
+ /**
12681
+ * Input for the PreprocessImageStep step.
12682
+ */
11900
12683
  input: PreprocessImageInputWritable;
11901
12684
  $type: 'preprocessImage';
11902
12685
  };
@@ -11986,6 +12769,9 @@ export type PreprocessVideoStepWritable = Omit<WorkflowStepWritable, '$type'> &
11986
12769
  $type: 'preprocessVideo';
11987
12770
  };
11988
12771
  export type PreprocessVideoStepTemplateWritable = Omit<WorkflowStepTemplateWritable, '$type'> & {
12772
+ /**
12773
+ * Input for the PreprocessVideoStep step.
12774
+ */
11989
12775
  input: PreprocessVideoInputWritable;
11990
12776
  $type: 'preprocessVideo';
11991
12777
  };
@@ -12073,6 +12859,9 @@ export type SdxlAiToolkitTrainingInputWritable = Omit<
12073
12859
  export type TrainingInputWritable = {
12074
12860
  engine: string;
12075
12861
  trainingData: TrainingData;
12862
+ /**
12863
+ * Sample generation configuration for preview outputs during training
12864
+ */
12076
12865
  samples?: TrainingInputSamples;
12077
12866
  };
12078
12867
  /**
@@ -12087,6 +12876,9 @@ export type TrainingStepWritable = Omit<WorkflowStepWritable, '$type'> & {
12087
12876
  * Training
12088
12877
  */
12089
12878
  export type TrainingStepTemplateWritable = Omit<WorkflowStepTemplateWritable, '$type'> & {
12879
+ /**
12880
+ * Input for the TrainingStep step.
12881
+ */
12090
12882
  input: TrainingInputWritable;
12091
12883
  $type: 'training';
12092
12884
  };
@@ -12119,14 +12911,27 @@ export type WorkflowWritable = {
12119
12911
  [key: string]: unknown;
12120
12912
  };
12121
12913
  callbacks: Array<WorkflowCallback>;
12914
+ /**
12915
+ * Optional tips for either civitai or the creators involved in this workflow.
12916
+ */
12122
12917
  tips: WorkflowTips;
12918
+ /**
12919
+ * Get a summary of the actual cost consumed by this workflow.
12920
+ * On dry-run requests, this will contain the estimated cost.
12921
+ */
12123
12922
  cost: WorkflowCostWritable;
12923
+ /**
12924
+ * An optional limit in what content is safe to return
12925
+ */
12124
12926
  nsfwLevel?: NsfwLevel;
12125
12927
  /**
12126
12928
  * Opts the workflow in to new features or behaviours that are not yet stable.
12127
12929
  */
12128
12930
  experimental?: null | boolean;
12129
12931
  allowMatureContent?: null | boolean;
12932
+ /**
12933
+ * Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
12934
+ */
12130
12935
  upgradeMode: WorkflowUpgradeMode;
12131
12936
  currencies: Array<BuzzClientAccount>;
12132
12937
  /**
@@ -12152,7 +12957,14 @@ export type WorkflowWritable = {
12152
12957
  * Soft delete: the telemetry document is kept until its TTL for operators, but consumer reads treat the workflow as gone.
12153
12958
  */
12154
12959
  deletedAt?: null | string;
12960
+ /**
12961
+ * Download lane for resources this workflow needs but the fleet does not hold. Resolved from
12962
+ * membership at submission unless the consumer paid to pin it to Civitai.Orchestration.Grains.Workflows.Priority.High.
12963
+ */
12155
12964
  downloadPriority?: Priority;
12965
+ /**
12966
+ * How a workflow is paid for.
12967
+ */
12156
12968
  tier: WorkflowTier;
12157
12969
  fund?: null | string;
12158
12970
  };
@@ -12187,12 +12999,18 @@ export type WorkflowEventWritable = {
12187
12999
  workflowId: string;
12188
13000
  status: WorkflowStatus;
12189
13001
  timestamp: string;
13002
+ /**
13003
+ * Only present when the callback requests detailed events.
13004
+ */
12190
13005
  details?: WorkflowEventDetails;
12191
13006
  };
12192
13007
  export type WorkflowStepEventWritable = {
12193
13008
  workflowId: string;
12194
13009
  name: string;
12195
13010
  status: WorkflowStatus;
13011
+ /**
13012
+ * Only present when the callback requests detailed events.
13013
+ */
12196
13014
  details?: WorkflowStepEventDetails;
12197
13015
  /**
12198
13016
  * Every resource download this step is waiting on, gating resource first. Only set while preparing.
@@ -12296,12 +13114,14 @@ export type ZImageTurboAiToolkitTrainingInputWritable = Omit<
12296
13114
  export type TrainingInputWritable2 = {
12297
13115
  engine: string;
12298
13116
  trainingData: TrainingData;
13117
+ /**
13118
+ * Sample generation configuration for preview outputs during training
13119
+ */
12299
13120
  samples?: TrainingInputSamples;
12300
13121
  /**
12301
13122
  * Whether this run uses step-based pricing rather than the legacy flat per-epoch price.
12302
13123
  */
12303
13124
  readonly usesStepPricing: boolean;
12304
- readonly requiresAgeClassification: boolean;
12305
13125
  };
12306
13126
  export type ChatCompletionMessageWritable = {
12307
13127
  role: string;
@@ -12330,6 +13150,10 @@ export type WorkflowStepWritable = {
12330
13150
  * the step is preparing.
12331
13151
  */
12332
13152
  preparation?: null | Array<WorkflowStepPreparationResource>;
13153
+ /**
13154
+ * The step's queue position, aggregated across its jobs (worst support, fewest preceding jobs,
13155
+ * earliest estimated start, latest estimated completion). Null once the step starts processing.
13156
+ */
12333
13157
  queuePosition?: WorkflowStepQueuePosition;
12334
13158
  /**
12335
13159
  * Non-fatal warnings about this step, such as a requested model that is scheduled for retirement.
@@ -13011,6 +13835,123 @@ export type InvokeAudioCaptioningStepTemplateResponses = {
13011
13835
  };
13012
13836
  export type InvokeAudioCaptioningStepTemplateResponse =
13013
13837
  InvokeAudioCaptioningStepTemplateResponses[keyof InvokeAudioCaptioningStepTemplateResponses];
13838
+ export type InvokeAudioClassificationStepTemplateData = {
13839
+ body?: AudioClassificationInput;
13840
+ path?: never;
13841
+ query?: {
13842
+ experimental?: boolean;
13843
+ allowMatureContent?: boolean;
13844
+ whatif?: boolean;
13845
+ ephemeral?: boolean;
13846
+ /**
13847
+ * How a workflow is paid for.
13848
+ */
13849
+ tier?: WorkflowTier;
13850
+ };
13851
+ url: '/v2/consumer/recipes/audioClassification';
13852
+ };
13853
+ export type InvokeAudioClassificationStepTemplateErrors = {
13854
+ /**
13855
+ * Bad Request
13856
+ */
13857
+ 400: ProblemDetails;
13858
+ /**
13859
+ * Unauthorized
13860
+ */
13861
+ 401: ProblemDetails;
13862
+ /**
13863
+ * Forbidden
13864
+ */
13865
+ 403: ProblemDetails;
13866
+ };
13867
+ export type InvokeAudioClassificationStepTemplateError =
13868
+ InvokeAudioClassificationStepTemplateErrors[keyof InvokeAudioClassificationStepTemplateErrors];
13869
+ export type InvokeAudioClassificationStepTemplateResponses = {
13870
+ /**
13871
+ * OK
13872
+ */
13873
+ 200: AudioClassificationOutput;
13874
+ };
13875
+ export type InvokeAudioClassificationStepTemplateResponse =
13876
+ InvokeAudioClassificationStepTemplateResponses[keyof InvokeAudioClassificationStepTemplateResponses];
13877
+ export type InvokeAudioModerationStepTemplateData = {
13878
+ body?: AudioModerationInput;
13879
+ path?: never;
13880
+ query?: {
13881
+ experimental?: boolean;
13882
+ allowMatureContent?: boolean;
13883
+ whatif?: boolean;
13884
+ ephemeral?: boolean;
13885
+ /**
13886
+ * How a workflow is paid for.
13887
+ */
13888
+ tier?: WorkflowTier;
13889
+ };
13890
+ url: '/v2/consumer/recipes/audioModeration';
13891
+ };
13892
+ export type InvokeAudioModerationStepTemplateErrors = {
13893
+ /**
13894
+ * Bad Request
13895
+ */
13896
+ 400: ProblemDetails;
13897
+ /**
13898
+ * Unauthorized
13899
+ */
13900
+ 401: ProblemDetails;
13901
+ /**
13902
+ * Forbidden
13903
+ */
13904
+ 403: ProblemDetails;
13905
+ };
13906
+ export type InvokeAudioModerationStepTemplateError =
13907
+ InvokeAudioModerationStepTemplateErrors[keyof InvokeAudioModerationStepTemplateErrors];
13908
+ export type InvokeAudioModerationStepTemplateResponses = {
13909
+ /**
13910
+ * OK
13911
+ */
13912
+ 200: AudioModerationOutput;
13913
+ };
13914
+ export type InvokeAudioModerationStepTemplateResponse =
13915
+ InvokeAudioModerationStepTemplateResponses[keyof InvokeAudioModerationStepTemplateResponses];
13916
+ export type InvokeAudioTextModerationStepTemplateData = {
13917
+ body?: AudioTextModerationInput;
13918
+ path?: never;
13919
+ query?: {
13920
+ experimental?: boolean;
13921
+ allowMatureContent?: boolean;
13922
+ whatif?: boolean;
13923
+ ephemeral?: boolean;
13924
+ /**
13925
+ * How a workflow is paid for.
13926
+ */
13927
+ tier?: WorkflowTier;
13928
+ };
13929
+ url: '/v2/consumer/recipes/audioTextModeration';
13930
+ };
13931
+ export type InvokeAudioTextModerationStepTemplateErrors = {
13932
+ /**
13933
+ * Bad Request
13934
+ */
13935
+ 400: ProblemDetails;
13936
+ /**
13937
+ * Unauthorized
13938
+ */
13939
+ 401: ProblemDetails;
13940
+ /**
13941
+ * Forbidden
13942
+ */
13943
+ 403: ProblemDetails;
13944
+ };
13945
+ export type InvokeAudioTextModerationStepTemplateError =
13946
+ InvokeAudioTextModerationStepTemplateErrors[keyof InvokeAudioTextModerationStepTemplateErrors];
13947
+ export type InvokeAudioTextModerationStepTemplateResponses = {
13948
+ /**
13949
+ * OK
13950
+ */
13951
+ 200: AudioTextModerationOutput;
13952
+ };
13953
+ export type InvokeAudioTextModerationStepTemplateResponse =
13954
+ InvokeAudioTextModerationStepTemplateResponses[keyof InvokeAudioTextModerationStepTemplateResponses];
13014
13955
  export type InvokeBatchOcrSafetyClassificationStepTemplateData = {
13015
13956
  body?: BatchOcrSafetyClassificationInput;
13016
13957
  path?: never;
@@ -13090,6 +14031,9 @@ export type InvokeBlobArchiveStepTemplateResponses = {
13090
14031
  export type InvokeBlobArchiveStepTemplateResponse =
13091
14032
  InvokeBlobArchiveStepTemplateResponses[keyof InvokeBlobArchiveStepTemplateResponses];
13092
14033
  export type InvokeChatCompletionStepTemplateData = {
14034
+ /**
14035
+ * Input for a chat completion step, compatible with OpenAI Chat Completions API.
14036
+ */
13093
14037
  body?: ChatCompletionInput;
13094
14038
  path?: never;
13095
14039
  query?: {
@@ -13168,6 +14112,10 @@ export type InvokeComfyStepTemplateResponses = {
13168
14112
  export type InvokeComfyStepTemplateResponse =
13169
14113
  InvokeComfyStepTemplateResponses[keyof InvokeComfyStepTemplateResponses];
13170
14114
  export type InvokeComfyNodepackSnapshotStepTemplateData = {
14115
+ /**
14116
+ * Installs ComfyUI custom nodepacks on a comfy image and captures the resolved install and editor metadata as
14117
+ * reusable blobs. Runs on a real worker so compiled deps match the fleet the consumer will run on.
14118
+ */
13171
14119
  body?: ComfyNodepackSnapshotInput;
13172
14120
  path?: never;
13173
14121
  query?: {
@@ -13200,7 +14148,8 @@ export type InvokeComfyNodepackSnapshotStepTemplateError =
13200
14148
  InvokeComfyNodepackSnapshotStepTemplateErrors[keyof InvokeComfyNodepackSnapshotStepTemplateErrors];
13201
14149
  export type InvokeComfyNodepackSnapshotStepTemplateResponses = {
13202
14150
  /**
13203
- * OK
14151
+ * One result per installed pack, each carrying the captured install layer, full /object_info and web assets as
14152
+ * blobs that consumers read directly from orchestrator blob storage.
13204
14153
  */
13205
14154
  200: ComfyNodepackSnapshotOutput;
13206
14155
  };
@@ -13675,6 +14624,9 @@ export type InvokeImageUpscalerStepTemplateResponses = {
13675
14624
  export type InvokeImageUpscalerStepTemplateResponse =
13676
14625
  InvokeImageUpscalerStepTemplateResponses[keyof InvokeImageUpscalerStepTemplateResponses];
13677
14626
  export type InvokeLiveTextToSpeechStepTemplateData = {
14627
+ /**
14628
+ * Mirrors `textToSpeech` inputs, but only for voices proven to stream with low first-audio latency.
14629
+ */
13678
14630
  body?: LiveTextToSpeechInput;
13679
14631
  path?: never;
13680
14632
  query?: {
@@ -14494,6 +15446,9 @@ export type InvokeShieldstralModerationStepTemplateResponses = {
14494
15446
  export type InvokeShieldstralModerationStepTemplateResponse =
14495
15447
  InvokeShieldstralModerationStepTemplateResponses[keyof InvokeShieldstralModerationStepTemplateResponses];
14496
15448
  export type InvokeSoniloAudioGenStepTemplateData = {
15449
+ /**
15450
+ * Text-to-audio via Sonilo; `operation` picks music or a standalone sound effect.
15451
+ */
14497
15452
  body?: SoniloAudioGenInput;
14498
15453
  path?: never;
14499
15454
  query?: {
@@ -15196,6 +16151,9 @@ export type InvokeXGuardModerationStepTemplateResponses = {
15196
16151
  export type InvokeXGuardModerationStepTemplateResponse =
15197
16152
  InvokeXGuardModerationStepTemplateResponses[keyof InvokeXGuardModerationStepTemplateResponses];
15198
16153
  export type InvokeYuE2StepTemplateData = {
16154
+ /**
16155
+ * YuE2 text-to-music generation with optional ABC score planning.
16156
+ */
15199
16157
  body?: YuE2Input;
15200
16158
  path?: never;
15201
16159
  query?: {
@@ -15405,7 +16363,7 @@ export type GetServiceErrors = {
15405
16363
  export type GetServiceError = GetServiceErrors[keyof GetServiceErrors];
15406
16364
  export type GetServiceResponses = {
15407
16365
  /**
15408
- * OK
16366
+ * A service we offer.
15409
16367
  */
15410
16368
  200: ServiceResponse;
15411
16369
  };
@@ -15622,8 +16580,7 @@ export type GetWorkflowData = {
15622
16580
  */
15623
16581
  wait?: number;
15624
16582
  /**
15625
- * What wait waits for: `completion` (the default) returns once the workflow reaches a
15626
- * final status, `change` as soon as its status or any of its steps changes.
16583
+ * What a held read of a workflow waits for before it returns.
15627
16584
  */
15628
16585
  until?: WorkflowWaitUntil;
15629
16586
  /**