@civitai/orchestration-client 0.2.0-beta.120 → 0.2.0-beta.122

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.
@@ -173,9 +173,10 @@ export type AceStepAudioCover = {
173
173
  };
174
174
  export type AceStepAudioInput = {
175
175
  /**
176
- * Music style/genre description (e.g., "Neo-Soul: A warm, organic neo-soul track...")
176
+ * What the track should sound like: genre, mood, instruments, tempo
177
+ * (e.g., "Neo-Soul: A warm, organic neo-soul track..."). The words to sing go in lyrics.
177
178
  */
178
- musicDescription: string;
179
+ prompt: string;
179
180
  /**
180
181
  * Structured lyrics with section markers like [Verse], [Chorus], [Bridge], etc.
181
182
  */
@@ -293,7 +294,7 @@ export type AceStepAudioInput = {
293
294
  * Classifier-free guidance scale. Turbo variants run CFG-off at 1.0;
294
295
  * non-turbo base / sft variants expect CFG on (around 4).
295
296
  */
296
- cfg?: number;
297
+ cfgScale?: number;
297
298
  /**
298
299
  * LoRAs to apply; each strength applies to both the diffusion model and the dual CLIP.
299
300
  * Compatibility with non-default base models is the caller's responsibility.
@@ -472,7 +473,7 @@ export type AnimaImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'
472
473
  loras?: {
473
474
  [key: string]: number;
474
475
  };
475
- diffuserModel?: string;
476
+ diffusionModel?: string;
476
477
  ecosystem: 'anima';
477
478
  engine: 'sdcpp';
478
479
  };
@@ -1122,10 +1123,10 @@ export type ComfyAnimaImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosy
1122
1123
  loras?: {
1123
1124
  [key: string]: number;
1124
1125
  };
1125
- diffuserModel?: string;
1126
+ diffusionModel?: string;
1127
+ ecosystem: 'anima';
1126
1128
  controlNets?: Array<ImageJobControlNet>;
1127
1129
  vaeModel?: string;
1128
- ecosystem: 'anima';
1129
1130
  engine: 'comfy';
1130
1131
  };
1131
1132
  export type ComfyAnimaVariantImageGenInput = Omit<
@@ -1138,7 +1139,7 @@ export type ComfyAnimaVariantImageGenInput = Omit<
1138
1139
  * Either A URL, A DataURL or a Base64 string
1139
1140
  */
1140
1141
  image: string;
1141
- denoiseStrength?: number;
1142
+ strength?: number;
1142
1143
  operation: 'createVariant';
1143
1144
  ecosystem: 'anima';
1144
1145
  engine: 'comfy';
@@ -1430,7 +1431,7 @@ export type ComfyFlux1VariantImageGenInput = Omit<
1430
1431
  * Either A URL, A DataURL or a Base64 string
1431
1432
  */
1432
1433
  image: string;
1433
- denoiseStrength?: number;
1434
+ strength?: number;
1434
1435
  operation: 'createVariant';
1435
1436
  ecosystem: 'flux1';
1436
1437
  engine: 'comfy';
@@ -1956,7 +1957,8 @@ export type ComfyLtx23VideoGenInput = Omit<VideoGenInput, 'engine'> & {
1956
1957
  height?: number;
1957
1958
  fps?: number;
1958
1959
  generateAudio?: boolean;
1959
- guidanceScale?: number;
1960
+ cfgScale?: number;
1961
+ engine: 'ltx2.3';
1960
1962
  steps?: number;
1961
1963
  model?: '22b-dev' | '22b-distilled';
1962
1964
  loras?: {
@@ -1972,7 +1974,6 @@ export type ComfyLtx23VideoGenInput = Omit<VideoGenInput, 'engine'> & {
1972
1974
  * (Seed + slotIndex) and is produced by re-running the Comfy workflow.
1973
1975
  */
1974
1976
  quantity?: number;
1975
- engine: 'ltx2.3';
1976
1977
  };
1977
1978
  /**
1978
1979
  * Style-transfer an existing video using prompt guidance (ComfyUI backend)
@@ -2062,7 +2063,8 @@ export type ComfyLtx25VideoGenInput = Omit<VideoGenInput, 'engine'> & {
2062
2063
  height?: number;
2063
2064
  fps?: number;
2064
2065
  generateAudio?: boolean;
2065
- guidanceScale?: number;
2066
+ cfgScale?: number;
2067
+ engine: 'ltx2.5';
2066
2068
  steps?: number;
2067
2069
  model?: '22b-dev' | '22b-distilled';
2068
2070
  loras?: {
@@ -2078,7 +2080,6 @@ export type ComfyLtx25VideoGenInput = Omit<VideoGenInput, 'engine'> & {
2078
2080
  * (Seed + slotIndex) and is produced by re-running the Comfy workflow.
2079
2081
  */
2080
2082
  quantity?: number;
2081
- engine: 'ltx2.5';
2082
2083
  };
2083
2084
  /**
2084
2085
  * Style-transfer an existing video using prompt guidance (ComfyUI backend)
@@ -2148,13 +2149,13 @@ export type ComfyLtx2VideoGenInput = Omit<VideoGenInput, 'engine'> & {
2148
2149
  height?: number;
2149
2150
  fps?: number;
2150
2151
  generateAudio?: boolean;
2151
- guidanceScale?: number;
2152
+ cfgScale?: number;
2152
2153
  steps?: number;
2154
+ engine: 'ltx2';
2153
2155
  model?: '19b-dev' | '19b-distilled';
2154
2156
  loras?: {
2155
2157
  [key: string]: number;
2156
2158
  };
2157
- engine: 'ltx2';
2158
2159
  };
2159
2160
  export type ComfyMageFlow4bCreateImageGenInput = Omit<
2160
2161
  ComfyMageFlow4bImageGenInput,
@@ -2355,13 +2356,21 @@ export type ComfyMiniMaxH3ImageToVideoInput = Omit<
2355
2356
  engine: 'minimax-h3-comfy';
2356
2357
  };
2357
2358
  /**
2358
- * Reference-image-to-video using the REF2VA weights.
2359
+ * Reference-image/audio-to-video using the REF2VA weights.
2359
2360
  */
2360
2361
  export type ComfyMiniMaxH3ReferenceToVideoInput = Omit<
2361
2362
  ComfyMiniMaxH3VideoGenInput,
2362
2363
  'engine' | 'operation'
2363
2364
  > & {
2364
- images: Array<string>;
2365
+ images?: Array<string>;
2366
+ /**
2367
+ * Up to three voice reference AIRs or AIR-compatible URLs, each 2–15 seconds. Upload other sources to orchestrator blob storage first. Refer to them as <Audio 1>, etc. in the prompt.
2368
+ */
2369
+ referenceAudios?: Array<string>;
2370
+ /**
2371
+ * Optional first frame to anchor the video while using image or voice references.
2372
+ */
2373
+ firstFrame?: null | string;
2365
2374
  operation: 'referenceToVideo';
2366
2375
  engine: 'minimax-h3-comfy';
2367
2376
  };
@@ -2591,6 +2600,56 @@ export type ComfyQwen21ImageGenInput = Omit<
2591
2600
  ecosystem: 'qwen';
2592
2601
  engine: 'comfy';
2593
2602
  };
2603
+ export type ComfyQwen21TurboCreateImageGenInput = Omit<
2604
+ ComfyQwen21TurboImageGenInput,
2605
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2606
+ > & {
2607
+ width?: number;
2608
+ height?: number;
2609
+ operation: 'createImage';
2610
+ model: '2.1-turbo';
2611
+ ecosystem: 'qwen';
2612
+ engine: 'comfy';
2613
+ };
2614
+ export type ComfyQwen21TurboEditImageGenInput = Omit<
2615
+ ComfyQwen21TurboImageGenInput,
2616
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2617
+ > & {
2618
+ images: Array<string>;
2619
+ /**
2620
+ * Reference pixel budget as resolution squared; preserves each image's aspect ratio.
2621
+ */
2622
+ resolution?: number;
2623
+ readonly width: number;
2624
+ readonly height: number;
2625
+ operation: 'editImage';
2626
+ model: '2.1-turbo';
2627
+ ecosystem: 'qwen';
2628
+ engine: 'comfy';
2629
+ };
2630
+ export type ComfyQwen21TurboImageGenInput = Omit<
2631
+ ComfyQwenImageGenInput,
2632
+ 'engine' | 'ecosystem' | 'model'
2633
+ > & {
2634
+ operation: string;
2635
+ prompt: string;
2636
+ negativePrompt?: null | string;
2637
+ sampler?: ComfySampler;
2638
+ /**
2639
+ * Turbo uses the checkpoint's fixed eight-step sigma schedule.
2640
+ */
2641
+ steps?: number;
2642
+ cfgScale?: number;
2643
+ seed?: null | number;
2644
+ quantity?: number;
2645
+ loras?: {
2646
+ [key: string]: number;
2647
+ };
2648
+ diffusionModel?: null | string;
2649
+ model: '2.1-turbo';
2650
+ ecosystem: 'qwen';
2651
+ engine: 'comfy';
2652
+ };
2594
2653
  export type ComfyQwenImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
2595
2654
  model: null | string;
2596
2655
  ecosystem: 'qwen';
@@ -2660,7 +2719,8 @@ export type ComfySd1ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosyst
2660
2719
  cfgScale?: number;
2661
2720
  seed?: null | number;
2662
2721
  quantity?: number;
2663
- model: string;
2722
+ checkpointModel: string;
2723
+ ecosystem: 'sd1';
2664
2724
  vaeModel?: null | string;
2665
2725
  loras?: {
2666
2726
  [key: string]: number;
@@ -2668,7 +2728,6 @@ export type ComfySd1ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosyst
2668
2728
  embeddings?: Array<string>;
2669
2729
  clipSkip?: number;
2670
2730
  controlNets?: Array<ImageJobControlNet>;
2671
- ecosystem: 'sd1';
2672
2731
  engine: 'comfy';
2673
2732
  };
2674
2733
  export type ComfySd1VariantImageGenInput = Omit<
@@ -2681,7 +2740,7 @@ export type ComfySd1VariantImageGenInput = Omit<
2681
2740
  * Either A URL, A DataURL or a Base64 string
2682
2741
  */
2683
2742
  image: string;
2684
- denoiseStrength?: number;
2743
+ strength?: number;
2685
2744
  operation: 'createVariant';
2686
2745
  ecosystem: 'sd1';
2687
2746
  engine: 'comfy';
@@ -2706,7 +2765,8 @@ export type ComfySdxlImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosys
2706
2765
  cfgScale?: number;
2707
2766
  seed?: null | number;
2708
2767
  quantity?: number;
2709
- model: string;
2768
+ checkpointModel?: string;
2769
+ ecosystem: 'sdxl';
2710
2770
  vaeModel?: null | string;
2711
2771
  loras?: {
2712
2772
  [key: string]: number;
@@ -2714,7 +2774,6 @@ export type ComfySdxlImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosys
2714
2774
  embeddings?: Array<string>;
2715
2775
  clipSkip?: number;
2716
2776
  controlNets?: Array<ImageJobControlNet>;
2717
- ecosystem: 'sdxl';
2718
2777
  engine: 'comfy';
2719
2778
  };
2720
2779
  export type ComfySdxlVariantImageGenInput = Omit<
@@ -2727,7 +2786,7 @@ export type ComfySdxlVariantImageGenInput = Omit<
2727
2786
  * Either A URL, A DataURL or a Base64 string
2728
2787
  */
2729
2788
  image: string;
2730
- denoiseStrength?: number;
2789
+ strength?: number;
2731
2790
  operation: 'createVariant';
2732
2791
  ecosystem: 'sdxl';
2733
2792
  engine: 'comfy';
@@ -2914,7 +2973,7 @@ export type ComfyZImageBaseImageGenInput = Omit<
2914
2973
  };
2915
2974
  export type ComfyZImageImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
2916
2975
  model: null | string;
2917
- diffuserModel?: string;
2976
+ diffusionModel?: string;
2918
2977
  ecosystem: 'zImage';
2919
2978
  engine: 'comfy';
2920
2979
  };
@@ -3363,6 +3422,9 @@ export type Flux1KontextImageGenInput = Omit<ImageGenInput, 'engine'> & {
3363
3422
  prompt: string;
3364
3423
  images?: Array<string>;
3365
3424
  aspectRatio?: '21:9' | '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16' | '9:21';
3425
+ /**
3426
+ * Model/provider guidance strength. This is not a portable classifier-free guidance scale.
3427
+ */
3366
3428
  guidanceScale?: number;
3367
3429
  quantity?: number;
3368
3430
  seed?: null | number;
@@ -3448,11 +3510,11 @@ export type Flux1SdCppImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosy
3448
3510
  loras?: {
3449
3511
  [key: string]: number;
3450
3512
  };
3451
- diffuserModel: string;
3513
+ diffusionModel: string;
3514
+ ecosystem: 'flux1';
3452
3515
  vaeModel: string;
3453
3516
  clipLModel: string;
3454
3517
  t5XXLModel: string;
3455
- ecosystem: 'flux1';
3456
3518
  engine: 'sdcpp';
3457
3519
  };
3458
3520
  export type Flux1SdCppVariantImageGenInput = Omit<
@@ -3504,10 +3566,13 @@ export type Flux2DevEditImageResourceTrainingInput = Omit<ImageResourceTrainingI
3504
3566
  };
3505
3567
  export type Flux2DevImageGenInput = Omit<Flux2ImageGenInput, 'engine' | 'model'> & {
3506
3568
  operation: string;
3569
+ /**
3570
+ * Embedded guidance strength passed to the guidance-distilled model; not sampling-time classifier-free guidance.
3571
+ */
3507
3572
  guidanceScale?: number;
3508
- numInferenceSteps?: number;
3509
- loras?: Array<ImageGenInputLora>;
3573
+ steps?: number;
3510
3574
  model: 'dev';
3575
+ loras?: Array<ImageGenInputLora>;
3511
3576
  engine: 'flux2';
3512
3577
  };
3513
3578
  export type Flux2DevImageResourceTrainingInput = Omit<ImageResourceTrainingInput, 'engine'> & {
@@ -3589,8 +3654,11 @@ export type Flux2FlexEditImageInput = Omit<
3589
3654
  };
3590
3655
  export type Flux2FlexImageGenInput = Omit<Flux2ImageGenInput, 'engine' | 'model'> & {
3591
3656
  operation: string;
3657
+ /**
3658
+ * Model/provider guidance strength. This is not a portable classifier-free guidance scale.
3659
+ */
3592
3660
  guidanceScale?: number;
3593
- numInferenceSteps?: number;
3661
+ steps?: number;
3594
3662
  model: 'flex';
3595
3663
  engine: 'flux2';
3596
3664
  };
@@ -3601,7 +3669,7 @@ export type Flux2ImageGenInput = Omit<ImageGenInput, 'engine'> & {
3601
3669
  height?: number;
3602
3670
  seed?: null | number;
3603
3671
  quantity?: number;
3604
- enablePromptExpansion?: boolean;
3672
+ enhancePrompt?: boolean;
3605
3673
  engine: 'flux2';
3606
3674
  };
3607
3675
  export type Flux2Klein4bAiToolkitTrainingInput = Omit<
@@ -3813,9 +3881,9 @@ export type Flux3FalImageGenInput = Omit<FalImageGenInput, 'engine' | 'model'> &
3813
3881
  | '2:3'
3814
3882
  | '9:16'
3815
3883
  | '1:2';
3816
- enablePromptExpansion?: boolean;
3817
- safetyTolerance?: number;
3884
+ enhancePrompt?: boolean;
3818
3885
  model: 'flux3';
3886
+ safetyTolerance?: number;
3819
3887
  engine: 'fal';
3820
3888
  };
3821
3889
  /**
@@ -4042,6 +4110,47 @@ export type FreeTierWindowResponse = {
4042
4110
  */
4043
4111
  resetAt?: null | string;
4044
4112
  };
4113
+ export type FundDeposit = {
4114
+ amount: number;
4115
+ /**
4116
+ * Which of the caller's currencies to draw from, in order. Defaults to all.
4117
+ */
4118
+ currencies?: null | Array<BuzzClientAccount>;
4119
+ };
4120
+ export type FundResponse = {
4121
+ id: string;
4122
+ allowMatureContent: boolean;
4123
+ description?: null | string;
4124
+ createdAt: string;
4125
+ expiresAt: string;
4126
+ balance: number;
4127
+ /**
4128
+ * Balance per currency (`yellow`, `blue`, `green`, `fakeRed`).
4129
+ */
4130
+ balances: {
4131
+ [key: string]: number;
4132
+ };
4133
+ };
4134
+ export type FundTemplate = {
4135
+ /**
4136
+ * How long until the fund is deleted on its own. Defaults to 24 hours, at most 7 days.
4137
+ */
4138
+ ttl?: null | string;
4139
+ /**
4140
+ * Whether workflows billed to this fund may return mature content. Deposits are then limited to Yellow, and Blue from members.
4141
+ */
4142
+ allowMatureContent?: boolean;
4143
+ /**
4144
+ * Shown on each deposit in the depositor's Buzz history, e.g. "Game pot deposit".
4145
+ */
4146
+ description?: null | string;
4147
+ };
4148
+ export type FundUpdate = {
4149
+ /**
4150
+ * How long from now until the fund is deleted on its own, at most 7 days.
4151
+ */
4152
+ ttl: string;
4153
+ };
4045
4154
  export type Gemini25FlashCreateImageGenInput = Omit<
4046
4155
  Gemini25FlashImageGenInput,
4047
4156
  'engine' | 'model' | 'operation'
@@ -4344,12 +4453,12 @@ export type HaiperVideoGenInput = Omit<VideoGenInput, 'engine'> & {
4344
4453
  aspectRatio?: HaiperVideoGenAspectRatio;
4345
4454
  model?: HaiperVideoGenModel;
4346
4455
  resolution?: 720 | 1080 | 2160;
4347
- enablePromptEnhancer?: boolean;
4456
+ enhancePrompt?: boolean;
4457
+ engine: 'haiper';
4348
4458
  /**
4349
4459
  * Either A URL, A DataURL or a Base64 string
4350
4460
  */
4351
4461
  sourceImage?: null | string;
4352
- engine: 'haiper';
4353
4462
  };
4354
4463
  export declare const HaiperVideoGenModel: {
4355
4464
  readonly V1_5: 'v1_5';
@@ -4647,14 +4756,14 @@ export type Hunyuan3dTexGenComfyPolyGenInput = Omit<
4647
4756
  };
4648
4757
  export type HunyuanVdeoGenInput = Omit<VideoGenInput, 'engine'> & {
4649
4758
  cfgScale: number;
4650
- frameRate?: number;
4759
+ fps?: number;
4651
4760
  duration?: number;
4652
4761
  seed?: null | number;
4653
4762
  steps?: number;
4654
4763
  width: number;
4655
4764
  height: number;
4656
4765
  loras?: Array<VideoGenInputLora>;
4657
- model?: null | string;
4766
+ checkpointModel?: null | string;
4658
4767
  engine: 'hunyuan';
4659
4768
  };
4660
4769
  export type Ideogram45CreateFalImageGenInput = Omit<
@@ -4669,7 +4778,7 @@ export type Ideogram45CreateFalImageGenInput = Omit<
4669
4778
  | 'portrait_16_9'
4670
4779
  | 'landscape_4_3'
4671
4780
  | 'landscape_16_9';
4672
- enablePromptExpansion?: boolean;
4781
+ enhancePrompt?: boolean;
4673
4782
  operation: 'createImage';
4674
4783
  model: 'ideogram45';
4675
4784
  engine: 'fal';
@@ -4694,9 +4803,9 @@ export type Ideogram45EditFalImageGenInput = Omit<
4694
4803
  /**
4695
4804
  * Black edits, white preserves. Must match the source dimensions and contain both regions.
4696
4805
  */
4697
- maskImage?: null | string;
4698
- editPrecision?: 'regular' | 'high';
4806
+ mask?: null | string;
4699
4807
  operation: 'editImage';
4808
+ editPrecision?: 'regular' | 'high';
4700
4809
  model: 'ideogram45';
4701
4810
  engine: 'fal';
4702
4811
  };
@@ -4963,6 +5072,10 @@ export type ImageScanningOutput = {
4963
5072
  humanRecognition: ImageScanningHumanRecognition;
4964
5073
  jointAgeClassification: ImageScanningJointAgeClassification;
4965
5074
  csam?: null | boolean;
5075
+ /**
5076
+ * Why the image would be refused as input to other workflows; null when it passes.
5077
+ */
5078
+ blockedReason?: null | string;
4966
5079
  };
4967
5080
  export type ImageScanningPersonMask = {
4968
5081
  width: number;
@@ -5121,9 +5234,9 @@ export type Imagen4ImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'model'>
5121
5234
  prompt: string;
5122
5235
  negativePrompt?: string;
5123
5236
  aspectRatio?: '1:1' | '16:9' | '9:16' | '3:4' | '4:3';
5124
- numImages?: number;
5125
- seed?: null | number;
5237
+ quantity?: number;
5126
5238
  model: 'imagen4';
5239
+ seed?: null | number;
5127
5240
  engine: 'google';
5128
5241
  };
5129
5242
  export declare const JobSupport: {
@@ -5285,9 +5398,9 @@ export type KlingV3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
5285
5398
  elements?: Array<KlingV3ElementInput>;
5286
5399
  generateAudio?: boolean;
5287
5400
  voiceIds?: null | Array<string>;
5288
- keepAudio?: boolean;
5289
- multiPrompt?: null | Array<KlingV3MultiPrompt>;
5401
+ keepSourceAudio?: boolean;
5290
5402
  engine: 'kling-v3';
5403
+ multiPrompt?: null | Array<KlingV3MultiPrompt>;
5291
5404
  };
5292
5405
  export declare const KlingVideoGenAspectRatio: {
5293
5406
  readonly '16_9': '16:9';
@@ -5427,6 +5540,35 @@ export type Krea2StyleReference = {
5427
5540
  imageUrl: string;
5428
5541
  strength?: number;
5429
5542
  };
5543
+ /**
5544
+ * Krea 3 generation and editing at 1K or 2K.
5545
+ */
5546
+ export type Krea3ImageGenInput = Omit<ImageGenInput, 'engine'> & {
5547
+ prompt: string;
5548
+ thinkingMode?: 'instant' | 'medium';
5549
+ /**
5550
+ * Omit for text-to-image, or provide up to six images to edit.
5551
+ */
5552
+ images: Array<string>;
5553
+ quantity?: number;
5554
+ resolution?: '1k' | '2k';
5555
+ /**
5556
+ * Omit to let Krea choose, e.g. to follow the reference images.
5557
+ */
5558
+ aspectRatio?:
5559
+ | null
5560
+ | '1:1'
5561
+ | '4:5'
5562
+ | '3:4'
5563
+ | '2:3'
5564
+ | '9:16'
5565
+ | '5:4'
5566
+ | '4:3'
5567
+ | '3:2'
5568
+ | '16:9'
5569
+ | '21:9';
5570
+ engine: 'krea3';
5571
+ };
5430
5572
  /**
5431
5573
  * Text-to-image, or image-to-image when Civitai.Orchestration.Grains.Workflows.Steps.ImageGen.Krea.KreaCreateImageGenInput.Image is supplied.
5432
5574
  */
@@ -5489,7 +5631,7 @@ export type LightricksAspectRatio =
5489
5631
  export type LightricksVideoGenInput = Omit<VideoGenInput, 'engine'> & {
5490
5632
  negativePrompt?: null | string;
5491
5633
  cfgScale: number;
5492
- frameRate?: number;
5634
+ fps?: number;
5493
5635
  duration?: number;
5494
5636
  seed?: null | number;
5495
5637
  steps?: number;
@@ -5498,7 +5640,7 @@ export type LightricksVideoGenInput = Omit<VideoGenInput, 'engine'> & {
5498
5640
  * Either A URL, A DataURL or a Base64 string
5499
5641
  */
5500
5642
  sourceImage?: null | string;
5501
- expandPrompt?: boolean;
5643
+ enhancePrompt?: boolean;
5502
5644
  engine: 'lightricks';
5503
5645
  };
5504
5646
  export type LiveQwen3CustomVoiceTtsInput = Omit<
@@ -5580,6 +5722,10 @@ export type LiveTextToSpeechOutput = {
5580
5722
  */
5581
5723
  characters: number;
5582
5724
  audioSeconds: number;
5725
+ /**
5726
+ * One WebSocket in place of `inputUrl` and `audioUrl`, avoiding a request per text chunk.
5727
+ */
5728
+ socketUrl?: null | string;
5583
5729
  };
5584
5730
  /**
5585
5731
  * Live text to speech
@@ -5615,6 +5761,11 @@ export type LiveTranscriptionInput = {
5615
5761
  * disappears does not hold the session open.
5616
5762
  */
5617
5763
  idleTimeoutSeconds?: number;
5764
+ /**
5765
+ * Sends a `turn` event shortly after each pause in speech with the probability that the
5766
+ * speaker has finished, so a voice agent can answer sooner than a fixed silence timeout.
5767
+ */
5768
+ turnDetection?: boolean;
5618
5769
  };
5619
5770
  export type LiveTranscriptionOutput = {
5620
5771
  /**
@@ -5635,6 +5786,10 @@ export type LiveTranscriptionOutput = {
5635
5786
  * Seconds of audio received so far; the session is billed on this.
5636
5787
  */
5637
5788
  audioSeconds: number;
5789
+ /**
5790
+ * One WebSocket in place of `inputUrl` and `transcriptUrl`, avoiding a request per audio chunk.
5791
+ */
5792
+ socketUrl?: null | string;
5638
5793
  };
5639
5794
  /**
5640
5795
  * Live transcription
@@ -6371,10 +6526,10 @@ export type MiniMaxH3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
6371
6526
  };
6372
6527
  export type MiniMaxMusic3Input = {
6373
6528
  /**
6374
- * Structured music description. For best results use Global Metadata, Vocal Details,
6375
- * and Arrangement sections.
6529
+ * What the track should sound like, as a structured description. For best results use Global
6530
+ * Metadata, Vocal Details, and Arrangement sections. The words to sing go in lyrics.
6376
6531
  */
6377
- caption: string;
6532
+ prompt: string;
6378
6533
  /**
6379
6534
  * Lyrics with section markers such as [Intro], [Verse], [Chorus], and [Outro].
6380
6535
  */
@@ -6389,7 +6544,7 @@ export type MiniMaxMusic3Input = {
6389
6544
  /**
6390
6545
  * Classifier-free guidance scale used by both text encoding and sampling.
6391
6546
  */
6392
- cfg?: number;
6547
+ cfgScale?: number;
6393
6548
  /**
6394
6549
  * Top-k sampling limit used by the MiniMax music text encoder.
6395
6550
  */
@@ -6425,12 +6580,12 @@ export type MiniMaxMusic3StepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6425
6580
  };
6426
6581
  export type MiniMaxVideoGenInput = Omit<VideoGenInput, 'engine'> & {
6427
6582
  model?: MiniMaxVideoGenModel;
6428
- enablePromptEnhancer?: boolean;
6583
+ enhancePrompt?: boolean;
6584
+ engine: 'minimax';
6429
6585
  /**
6430
6586
  * Either A URL, A DataURL or a Base64 string
6431
6587
  */
6432
6588
  sourceImage?: null | string;
6433
- engine: 'minimax';
6434
6589
  };
6435
6590
  export declare const MiniMaxVideoGenModel: {
6436
6591
  readonly HAILOU: 'hailou';
@@ -6438,7 +6593,7 @@ export declare const MiniMaxVideoGenModel: {
6438
6593
  export type MiniMaxVideoGenModel = (typeof MiniMaxVideoGenModel)[keyof typeof MiniMaxVideoGenModel];
6439
6594
  export type MochiVideoGenInput = Omit<VideoGenInput, 'engine'> & {
6440
6595
  seed: number;
6441
- enablePromptEnhancer?: boolean;
6596
+ enhancePrompt?: boolean;
6442
6597
  engine: 'mochi';
6443
6598
  };
6444
6599
  export type ModalitiesResponse = {
@@ -6670,6 +6825,7 @@ export type MusubiImageResourceTrainingInput = Omit<ImageResourceTrainingInput,
6670
6825
  * Maximum of 20 epochs can be specified.
6671
6826
  */
6672
6827
  epochs?: number;
6828
+ engine: 'musubi';
6673
6829
  /**
6674
6830
  * Specify the maximum resolution of training images. If the training images exceed the resolution specified here, they will be scaled down to this resolution
6675
6831
  */
@@ -6704,7 +6860,6 @@ export type MusubiImageResourceTrainingInput = Omit<ImageResourceTrainingInput,
6704
6860
  */
6705
6861
  optimizerType?: null | string;
6706
6862
  readonly targetSteps?: null | number;
6707
- engine: 'musubi';
6708
6863
  };
6709
6864
  export declare const NsfwLevel: {
6710
6865
  readonly PG: 'pg';
@@ -6733,40 +6888,40 @@ export type NanoBanana21ImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'mo
6733
6888
  | '1:8'
6734
6889
  | '8:1'
6735
6890
  | '9:21';
6736
- numImages?: number;
6891
+ quantity?: number;
6892
+ model: 'nano-banana-2.1';
6737
6893
  resolution?: '1K' | '2K' | '4K';
6738
6894
  images?: Array<string>;
6739
- model: 'nano-banana-2.1';
6740
6895
  engine: 'google';
6741
6896
  };
6742
6897
  export type NanoBanana2ImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'model'> & {
6743
6898
  prompt: string;
6744
6899
  aspectRatio?: '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16';
6745
- numImages?: number;
6900
+ quantity?: number;
6901
+ model: 'nano-banana-2';
6746
6902
  resolution?: '1K' | '2K' | '4K';
6747
6903
  images?: Array<string>;
6748
6904
  seed?: null | number;
6749
6905
  enableWebSearch?: boolean;
6750
6906
  enableGoogleSearch?: boolean;
6751
- model: 'nano-banana-2';
6752
6907
  engine: 'google';
6753
6908
  };
6754
6909
  export type NanoBanana2LiteImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'model'> & {
6755
6910
  prompt: string;
6756
6911
  aspectRatio?: '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16';
6757
- numImages?: number;
6912
+ quantity?: number;
6913
+ model: 'nano-banana-2-lite';
6758
6914
  images?: Array<string>;
6759
6915
  seed?: null | number;
6760
- model: 'nano-banana-2-lite';
6761
6916
  engine: 'google';
6762
6917
  };
6763
6918
  export type NanoBananaProImageGenInput = Omit<GoogleImageGenInput, 'engine' | 'model'> & {
6764
6919
  prompt: string;
6765
6920
  aspectRatio?: '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16';
6766
- numImages?: number;
6921
+ quantity?: number;
6922
+ model: 'nano-banana-pro';
6767
6923
  resolution?: '1K' | '2K' | '4K';
6768
6924
  images?: Array<string>;
6769
- model: 'nano-banana-pro';
6770
6925
  engine: 'google';
6771
6926
  };
6772
6927
  export type OmniSvgImageToSvgInput = Omit<ComfyImageToSvgInput, 'engine' | 'ecosystem'> & {
@@ -6924,7 +7079,8 @@ export type OpenAiGpt25FlareEditImageInput = Omit<
6924
7079
  /**
6925
7080
  * Either A URL, A DataURL or a Base64 string
6926
7081
  */
6927
- maskImage?: null | string;
7082
+ mask?: null | string;
7083
+ operation: 'editImage';
6928
7084
  /**
6929
7085
  * When null, fal infers output size from the input images (image_size: "auto").
6930
7086
  * Both Width and Height must be set together, or both null.
@@ -6935,7 +7091,6 @@ export type OpenAiGpt25FlareEditImageInput = Omit<
6935
7091
  * Both Width and Height must be set together, or both null.
6936
7092
  */
6937
7093
  height?: null | number;
6938
- operation: 'editImage';
6939
7094
  model: 'gpt-image-2.5-flare';
6940
7095
  engine: 'openai';
6941
7096
  };
@@ -6969,7 +7124,8 @@ export type OpenAiGpt25SunburstEditImageInput = Omit<
6969
7124
  /**
6970
7125
  * Either A URL, A DataURL or a Base64 string
6971
7126
  */
6972
- maskImage?: null | string;
7127
+ mask?: null | string;
7128
+ operation: 'editImage';
6973
7129
  /**
6974
7130
  * When null, fal infers output size from the input images (image_size: "auto").
6975
7131
  * Both Width and Height must be set together, or both null.
@@ -6980,7 +7136,6 @@ export type OpenAiGpt25SunburstEditImageInput = Omit<
6980
7136
  * Both Width and Height must be set together, or both null.
6981
7137
  */
6982
7138
  height?: null | number;
6983
- operation: 'editImage';
6984
7139
  model: 'gpt-image-2.5-sunburst';
6985
7140
  engine: 'openai';
6986
7141
  };
@@ -7014,7 +7169,8 @@ export type OpenAiGpt2EditImageInput = Omit<
7014
7169
  /**
7015
7170
  * Either A URL, A DataURL or a Base64 string
7016
7171
  */
7017
- maskImage?: null | string;
7172
+ mask?: null | string;
7173
+ operation: 'editImage';
7018
7174
  /**
7019
7175
  * When null, fal infers the output size from the input images (image_size: "auto").
7020
7176
  * Width and Height must be set together, or both null.
@@ -7025,7 +7181,6 @@ export type OpenAiGpt2EditImageInput = Omit<
7025
7181
  * Width and Height must be set together, or both null.
7026
7182
  */
7027
7183
  height?: null | number;
7028
- operation: 'editImage';
7029
7184
  model: 'gpt-image-2';
7030
7185
  engine: 'openai';
7031
7186
  };
@@ -7583,9 +7738,9 @@ export type Qwen2FalImageGenInput = Omit<FalImageGenInput, 'engine' | 'model'> &
7583
7738
  | 'landscape_4_3'
7584
7739
  | 'landscape_16_9';
7585
7740
  seed?: null | number;
7586
- enablePromptExpansion?: boolean;
7587
- enableSafetyChecker?: boolean;
7741
+ enhancePrompt?: boolean;
7588
7742
  model: 'qwen2';
7743
+ enableSafetyChecker?: boolean;
7589
7744
  engine: 'fal';
7590
7745
  };
7591
7746
  export type Qwen2ProCreateFalImageGenInput = Omit<
@@ -7706,9 +7861,9 @@ export type QwenApiImageGenInput = Omit<ImageGenInput, 'engine'> & {
7706
7861
  width: number;
7707
7862
  height: number;
7708
7863
  seed?: null | number;
7709
- promptExtend?: boolean;
7710
- watermark?: boolean;
7864
+ enhancePrompt?: boolean;
7711
7865
  engine: 'qwen';
7866
+ watermark?: boolean;
7712
7867
  };
7713
7868
  export type QwenImageBenchInput = {
7714
7869
  /**
@@ -8030,7 +8185,8 @@ export type Sd1ImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'>
8030
8185
  cfgScale?: number;
8031
8186
  seed?: null | number;
8032
8187
  quantity?: number;
8033
- model: string;
8188
+ checkpointModel: string;
8189
+ ecosystem: 'sd1';
8034
8190
  vaeModel?: null | string;
8035
8191
  loras?: {
8036
8192
  [key: string]: number;
@@ -8038,7 +8194,6 @@ export type Sd1ImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'>
8038
8194
  embeddings?: Array<string>;
8039
8195
  clipSkip?: number;
8040
8196
  uCache?: SdCppUCacheMode;
8041
- ecosystem: 'sd1';
8042
8197
  engine: 'sdcpp';
8043
8198
  };
8044
8199
  export type Sd1VariantImageGenInput = Omit<
@@ -8131,7 +8286,8 @@ export type SdxlImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'>
8131
8286
  cfgScale?: number;
8132
8287
  seed?: null | number;
8133
8288
  quantity?: number;
8134
- model: string;
8289
+ checkpointModel?: string;
8290
+ ecosystem: 'sdxl';
8135
8291
  vaeModel?: null | string;
8136
8292
  loras?: {
8137
8293
  [key: string]: number;
@@ -8139,7 +8295,6 @@ export type SdxlImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'>
8139
8295
  embeddings?: Array<string>;
8140
8296
  clipSkip?: number;
8141
8297
  uCache?: SdCppUCacheMode;
8142
- ecosystem: 'sdxl';
8143
8298
  engine: 'sdcpp';
8144
8299
  };
8145
8300
  export type SdxlVariantImageGenInput = Omit<
@@ -8208,6 +8363,9 @@ export type SeedreamImageGenInput = Omit<ImageGenInput, 'engine'> & {
8208
8363
  quantity?: number;
8209
8364
  width?: number;
8210
8365
  height?: number;
8366
+ /**
8367
+ * Model/provider guidance strength. This is not a portable classifier-free guidance scale.
8368
+ */
8211
8369
  guidanceScale?: number;
8212
8370
  seed?: null | number;
8213
8371
  enableSafetyChecker?: boolean;
@@ -8976,7 +9134,8 @@ export declare const Veo3Version: {
8976
9134
  export type Veo3Version = (typeof Veo3Version)[keyof typeof Veo3Version];
8977
9135
  export type Veo3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
8978
9136
  negativePrompt?: null | string;
8979
- enablePromptEnhancer?: boolean;
9137
+ enhancePrompt?: boolean;
9138
+ engine: 'veo3';
8980
9139
  aspectRatio?: Veo3AspectRatio;
8981
9140
  duration?: 4 | 6 | 8;
8982
9141
  generateAudio: boolean;
@@ -8985,7 +9144,6 @@ export type Veo3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
8985
9144
  images?: Array<string>;
8986
9145
  version?: Veo3Version;
8987
9146
  mode?: Veo3GenerationMode;
8988
- engine: 'veo3';
8989
9147
  };
8990
9148
  export type VideoBackgroundRemovalInput = {
8991
9149
  video: string;
@@ -9212,10 +9370,10 @@ export type ViduQ3VideoGenInput = Omit<VideoGenInput, 'engine'> & {
9212
9370
  duration?: number;
9213
9371
  resolution?: '360p' | '540p' | '720p' | '1080p';
9214
9372
  turbo?: boolean;
9215
- enableAudio?: boolean;
9373
+ generateAudio?: boolean;
9374
+ engine: 'vidu-q3';
9216
9375
  aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4';
9217
9376
  images?: Array<string>;
9218
- engine: 'vidu-q3';
9219
9377
  };
9220
9378
  /**
9221
9379
  * Animate one starting frame. Use an empty prompt for animation without text instructions. Audio is generated by the provider.
@@ -9238,7 +9396,7 @@ export type ViduQ4ReferenceToVideoInput = Omit<ViduQ4VideoGenInput, 'engine' | '
9238
9396
  */
9239
9397
  referenceAudios?: Array<string>;
9240
9398
  aspectRatio?: '16:9' | '9:16' | '4:3' | '3:4' | '1:1';
9241
- enableAudio?: boolean;
9399
+ generateAudio?: boolean;
9242
9400
  operation: 'referenceToVideo';
9243
9401
  engine: 'vidu-q4';
9244
9402
  };
@@ -9250,7 +9408,8 @@ export type ViduQ4VideoGenInput = Omit<VideoGenInput, 'engine'> & {
9250
9408
  engine: 'vidu-q4';
9251
9409
  };
9252
9410
  export type ViduVideoGenInput = Omit<VideoGenInput, 'engine'> & {
9253
- enablePromptEnhancer?: boolean;
9411
+ enhancePrompt?: boolean;
9412
+ engine: 'vidu';
9254
9413
  seed?: null | number;
9255
9414
  /**
9256
9415
  * Either A URL, A DataURL or a Base64 string
@@ -9267,7 +9426,6 @@ export type ViduVideoGenInput = Omit<VideoGenInput, 'engine'> & {
9267
9426
  movementAmplitude?: 'auto' | 'small' | 'medium' | 'large';
9268
9427
  images?: Array<string>;
9269
9428
  enableBackgroundMusic?: boolean;
9270
- engine: 'vidu';
9271
9429
  };
9272
9430
  export declare const ViduVideoGenModel: {
9273
9431
  readonly DEFAULT: 'default';
@@ -9345,15 +9503,15 @@ export type Wan21CivitaiVideoGenInput = Omit<
9345
9503
  > & {
9346
9504
  width?: number;
9347
9505
  height?: number;
9348
- model?: null | string;
9349
- images?: Array<string>;
9506
+ diffusionModel?: null | string;
9350
9507
  provider: 'civitai';
9508
+ images?: Array<string>;
9351
9509
  version: 'v2.1';
9352
9510
  engine: 'wan';
9353
9511
  };
9354
9512
  export type Wan21FalVideoGenInput = Omit<Wan21VideoGenInput, 'engine' | 'version' | 'provider'> & {
9355
9513
  aspectRatio?: '1:1' | '16:9' | '9:16';
9356
- enablePromptExpansion?: boolean;
9514
+ enhancePrompt?: boolean;
9357
9515
  provider: 'fal';
9358
9516
  version: 'v2.1';
9359
9517
  engine: 'wan';
@@ -9397,14 +9555,14 @@ export type Wan225bFalVideoGenInput = Omit<
9397
9555
  operation: null | string;
9398
9556
  resolution?: '480p' | '580p' | '720p';
9399
9557
  aspectRatio?: '1:1' | '16:9' | '9:16' | 'auto';
9400
- enablePromptExpansion?: boolean;
9558
+ enhancePrompt?: boolean;
9559
+ provider: 'fal';
9401
9560
  useDistill?: boolean;
9402
9561
  useFastWan?: boolean;
9403
9562
  interpolatorModel?: 'none' | 'film' | 'rife';
9404
9563
  negativePrompt?: null | string;
9405
9564
  enableSafetyChecker?: boolean;
9406
9565
  numInferenceSteps?: number;
9407
- provider: 'fal';
9408
9566
  version: 'v2.2-5b';
9409
9567
  engine: 'wan';
9410
9568
  };
@@ -9426,7 +9584,8 @@ export type Wan22ComfyVideoGenInput = Omit<
9426
9584
  > & {
9427
9585
  width?: number;
9428
9586
  height?: number;
9429
- model?: null | string;
9587
+ diffusionModel?: null | string;
9588
+ provider: 'comfy';
9430
9589
  images?: Array<string>;
9431
9590
  negativePrompt?: null | string;
9432
9591
  sampler?:
@@ -9457,7 +9616,6 @@ export type Wan22ComfyVideoGenInput = Omit<
9457
9616
  | 'ddim_uniform'
9458
9617
  | 'beta';
9459
9618
  shift?: number;
9460
- provider: 'comfy';
9461
9619
  version: 'v2.2';
9462
9620
  engine: 'wan';
9463
9621
  };
@@ -9490,13 +9648,13 @@ export type Wan22FalVideoGenInput = Omit<Wan22VideoGenInput, 'engine' | 'version
9490
9648
  operation: null | string;
9491
9649
  resolution?: '480p' | '720p';
9492
9650
  aspectRatio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '4:5' | '5:4';
9493
- enablePromptExpansion?: boolean;
9651
+ enhancePrompt?: boolean;
9652
+ provider: 'fal';
9494
9653
  shift?: number;
9495
9654
  interpolatorModel?: 'film' | 'rife';
9496
9655
  useTurbo?: boolean;
9497
9656
  negativePrompt?: null | string;
9498
9657
  enableSafetyChecker?: boolean;
9499
- provider: 'fal';
9500
9658
  version: 'v2.2';
9501
9659
  engine: 'wan';
9502
9660
  };
@@ -9559,9 +9717,9 @@ export type Wan25FalVideoGenInput = Omit<Wan25VideoGenInput, 'engine' | 'version
9559
9717
  operation: null | string;
9560
9718
  resolution?: '480p' | '720p' | '1080p';
9561
9719
  aspectRatio?: '16:9' | '9:16' | '1:1';
9562
- enablePromptExpansion?: boolean;
9563
- negativePrompt?: null | string;
9720
+ enhancePrompt?: boolean;
9564
9721
  provider: 'fal';
9722
+ negativePrompt?: null | string;
9565
9723
  version: 'v2.5';
9566
9724
  engine: 'wan';
9567
9725
  };
@@ -9618,7 +9776,8 @@ export type Wan26FalVideoGenInput = Omit<Wan26VideoGenInput, 'engine' | 'version
9618
9776
  operation: null | string;
9619
9777
  resolution?: '720p' | '1080p';
9620
9778
  negativePrompt?: null | string;
9621
- enablePromptExpansion?: boolean;
9779
+ enhancePrompt?: boolean;
9780
+ provider: 'fal';
9622
9781
  multiShots?: boolean;
9623
9782
  enableSafetyChecker?: boolean;
9624
9783
  /**
@@ -9626,7 +9785,6 @@ export type Wan26FalVideoGenInput = Omit<Wan26VideoGenInput, 'engine' | 'version
9626
9785
  * Supported for text-to-video and image-to-video only
9627
9786
  */
9628
9787
  audioUrl?: null | string;
9629
- provider: 'fal';
9630
9788
  version: 'v2.6';
9631
9789
  engine: 'wan';
9632
9790
  };
@@ -9697,12 +9855,12 @@ export type Wan27FalImageToVideoInput = Omit<
9697
9855
  */
9698
9856
  videoUrl?: null | string;
9699
9857
  negativePrompt?: null | string;
9700
- enablePromptExpansion?: boolean;
9858
+ enhancePrompt?: boolean;
9859
+ operation: 'image-to-video';
9701
9860
  /**
9702
9861
  * URL of audio file (WAV/MP3, 3-30 seconds, up to 15 MB)
9703
9862
  */
9704
9863
  audioUrl?: null | string;
9705
- operation: 'image-to-video';
9706
9864
  provider: 'fal';
9707
9865
  version: 'v2.7';
9708
9866
  engine: 'wan';
@@ -9743,12 +9901,12 @@ export type Wan27FalTextToVideoInput = Omit<
9743
9901
  > & {
9744
9902
  aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4';
9745
9903
  negativePrompt?: null | string;
9746
- enablePromptExpansion?: boolean;
9904
+ enhancePrompt?: boolean;
9905
+ operation: 'text-to-video';
9747
9906
  /**
9748
9907
  * URL of audio file (WAV/MP3, 3-30 seconds, up to 15 MB)
9749
9908
  */
9750
9909
  audioUrl?: null | string;
9751
- operation: 'text-to-video';
9752
9910
  provider: 'fal';
9753
9911
  version: 'v2.7';
9754
9912
  engine: 'wan';
@@ -9801,26 +9959,26 @@ export type Wan30VideoGenInput = Omit<WanVideoGenInput, 'engine' | 'version'> &
9801
9959
  * Prompt rewriting. Disabling saves 20-60s of latency but may reduce generation quality —
9802
9960
  * follow Alibaba's prompting guide when turning it off.
9803
9961
  */
9804
- enablePromptExpansion?: boolean;
9962
+ enhancePrompt?: boolean;
9963
+ version: 'v3.0';
9805
9964
  /**
9806
9965
  * Run on wan3.0-video-prime: same output quality, lower latency, higher price.
9807
9966
  */
9808
9967
  usePrime?: boolean;
9809
- version: 'v3.0';
9810
9968
  engine: 'wan';
9811
9969
  };
9812
9970
  export type WanImageGenInput = Omit<ImageGenInput, 'engine'> & {
9813
9971
  version: null | string;
9814
9972
  prompt: string;
9815
9973
  negativePrompt?: null | string;
9816
- guidanceScale?: number;
9974
+ cfgScale?: number;
9817
9975
  seed?: null | number;
9818
9976
  quantity?: number;
9819
9977
  imageSize?: string;
9820
- enablePromptExpansion?: boolean;
9978
+ enhancePrompt?: boolean;
9979
+ engine: 'wan';
9821
9980
  enableSafetyChecker?: boolean;
9822
9981
  loras?: Array<ImageGenInputLora>;
9823
- engine: 'wan';
9824
9982
  };
9825
9983
  export type WanVideoGenInput = Omit<VideoGenInput, 'engine'> & {
9826
9984
  version: null | string;
@@ -9829,12 +9987,12 @@ export type WanVideoGenInput = Omit<VideoGenInput, 'engine'> & {
9829
9987
  */
9830
9988
  sourceImage?: null | string;
9831
9989
  cfgScale: number;
9832
- frameRate?: number;
9990
+ fps?: number;
9991
+ engine: 'wan';
9833
9992
  duration?: number;
9834
9993
  seed?: null | number;
9835
9994
  steps?: number;
9836
9995
  loras?: Array<VideoGenInputLora>;
9837
- engine: 'wan';
9838
9996
  };
9839
9997
  export type WebScrapeInput = {
9840
9998
  url: string;
@@ -9988,6 +10146,7 @@ export type Workflow = {
9988
10146
  deletedAt?: null | string;
9989
10147
  downloadPriority?: Priority;
9990
10148
  tier: WorkflowTier;
10149
+ fund?: null | string;
9991
10150
  };
9992
10151
  export type WorkflowCallback = {
9993
10152
  url: string;
@@ -10237,6 +10396,7 @@ export type WorkflowStepWarning = {
10237
10396
  };
10238
10397
  export declare const WorkflowStepWarningCode: {
10239
10398
  readonly MODEL_DEPRECATED: 'modelDeprecated';
10399
+ readonly FIELD_DEPRECATED: 'fieldDeprecated';
10240
10400
  };
10241
10401
  export type WorkflowStepWarningCode =
10242
10402
  (typeof WorkflowStepWarningCode)[keyof typeof WorkflowStepWarningCode];
@@ -10270,6 +10430,11 @@ export type WorkflowTemplate = {
10270
10430
  * Limit the currencies that can be used to pay for this workflow.
10271
10431
  */
10272
10432
  currencies: Array<BuzzClientAccount>;
10433
+ /**
10434
+ * Bill this workflow to a fund (see `POST /v2/consumer/funds`) instead of the caller's Buzz. Implies the paid tier;
10435
+ * Civitai.Orchestration.Grains.Workflows.WorkflowTemplate.Currencies then limits which of the fund's currencies are spent.
10436
+ */
10437
+ fund?: null | string;
10273
10438
  /**
10274
10439
  * Never persisted: results are available only via callbacks or the synchronous `wait` parameter, and GET returns 404 once terminal.
10275
10440
  * Requires at least one callback or `wait > 0` on submission.
@@ -10508,7 +10673,7 @@ export type YuE2Input = {
10508
10673
  /**
10509
10674
  * Optional YuE2 checkpoint override containing the model, text encoder, and audio VAE.
10510
10675
  */
10511
- model?: null | string;
10676
+ checkpointModel?: null | string;
10512
10677
  /**
10513
10678
  * Optional LoRAs for both YuE2 experts.
10514
10679
  */
@@ -10590,7 +10755,7 @@ export type ZImageBaseImageGenInput = Omit<
10590
10755
  };
10591
10756
  export type ZImageImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'> & {
10592
10757
  model: string;
10593
- diffuserModel?: string;
10758
+ diffusionModel?: string;
10594
10759
  ecosystem: 'zImage';
10595
10760
  engine: 'sdcpp';
10596
10761
  };
@@ -10936,6 +11101,20 @@ export type ComfyQwen21EditImageGenInputWritable = Omit<
10936
11101
  ecosystem: 'qwen';
10937
11102
  engine: 'comfy';
10938
11103
  };
11104
+ export type ComfyQwen21TurboEditImageGenInputWritable = Omit<
11105
+ ComfyQwen21TurboImageGenInput,
11106
+ 'engine' | 'ecosystem' | 'model' | 'operation'
11107
+ > & {
11108
+ images: Array<string>;
11109
+ /**
11110
+ * Reference pixel budget as resolution squared; preserves each image's aspect ratio.
11111
+ */
11112
+ resolution?: number;
11113
+ operation: 'ComfyQwen21TurboEditImageGenInputWritable';
11114
+ model: '2.1-turbo';
11115
+ ecosystem: 'qwen';
11116
+ engine: 'comfy';
11117
+ };
10939
11118
  export type ComfyTrainingInputWritable = Omit<TrainingInputWritable2, 'engine'> & {
10940
11119
  ecosystem?: string;
10941
11120
  /**
@@ -11101,6 +11280,9 @@ export type Flux1KontextImageGenInputWritable = Omit<ImageGenInputWritable, 'eng
11101
11280
  prompt: string;
11102
11281
  images?: Array<string>;
11103
11282
  aspectRatio?: '21:9' | '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16' | '9:21';
11283
+ /**
11284
+ * Model/provider guidance strength. This is not a portable classifier-free guidance scale.
11285
+ */
11104
11286
  guidanceScale?: number;
11105
11287
  quantity?: number;
11106
11288
  seed?: null | number;
@@ -11363,6 +11545,7 @@ export type MusubiImageResourceTrainingInputWritable = Omit<
11363
11545
  * Maximum of 20 epochs can be specified.
11364
11546
  */
11365
11547
  epochs?: number;
11548
+ engine: 'musubi';
11366
11549
  /**
11367
11550
  * Specify the maximum resolution of training images. If the training images exceed the resolution specified here, they will be scaled down to this resolution
11368
11551
  */
@@ -11396,7 +11579,6 @@ export type MusubiImageResourceTrainingInputWritable = Omit<
11396
11579
  * Optimizer that updates the weights during training; "AdamW8bit" is the common choice, "Adafactor" for SDXL.
11397
11580
  */
11398
11581
  optimizerType?: null | string;
11399
- engine: 'musubi';
11400
11582
  };
11401
11583
  export type PreprocessImageAnimalPoseInputWritable = Omit<PreprocessImageInputWritable2, 'kind'> & {
11402
11584
  bboxDetector?: AnimalPoseBboxDetector;
@@ -11869,6 +12051,7 @@ export type WorkflowWritable = {
11869
12051
  deletedAt?: null | string;
11870
12052
  downloadPriority?: Priority;
11871
12053
  tier: WorkflowTier;
12054
+ fund?: null | string;
11872
12055
  };
11873
12056
  export type WorkflowCostWritable = {
11874
12057
  /**
@@ -12468,6 +12651,146 @@ export type GetFreeTierResponses = {
12468
12651
  200: FreeTierResponse;
12469
12652
  };
12470
12653
  export type GetFreeTierResponse = GetFreeTierResponses[keyof GetFreeTierResponses];
12654
+ export type CreateFundData = {
12655
+ body?: FundTemplate;
12656
+ path?: never;
12657
+ query?: never;
12658
+ url: '/v2/consumer/funds';
12659
+ };
12660
+ export type CreateFundErrors = {
12661
+ /**
12662
+ * Bad Request
12663
+ */
12664
+ 400: ProblemDetails;
12665
+ /**
12666
+ * Unauthorized
12667
+ */
12668
+ 401: ProblemDetails;
12669
+ /**
12670
+ * Forbidden
12671
+ */
12672
+ 403: string;
12673
+ };
12674
+ export type CreateFundError = CreateFundErrors[keyof CreateFundErrors];
12675
+ export type CreateFundResponses = {
12676
+ /**
12677
+ * Created
12678
+ */
12679
+ 201: FundResponse;
12680
+ };
12681
+ export type CreateFundResponse = CreateFundResponses[keyof CreateFundResponses];
12682
+ export type DeleteFundData = {
12683
+ body?: never;
12684
+ path: {
12685
+ fundId: string;
12686
+ };
12687
+ query?: never;
12688
+ url: '/v2/consumer/funds/{fundId}';
12689
+ };
12690
+ export type DeleteFundErrors = {
12691
+ /**
12692
+ * Unauthorized
12693
+ */
12694
+ 401: ProblemDetails;
12695
+ /**
12696
+ * Not Found
12697
+ */
12698
+ 404: ProblemDetails;
12699
+ };
12700
+ export type DeleteFundError = DeleteFundErrors[keyof DeleteFundErrors];
12701
+ export type DeleteFundResponses = {
12702
+ /**
12703
+ * No Content
12704
+ */
12705
+ 204: void;
12706
+ };
12707
+ export type DeleteFundResponse = DeleteFundResponses[keyof DeleteFundResponses];
12708
+ export type GetFundData = {
12709
+ body?: never;
12710
+ path: {
12711
+ fundId: string;
12712
+ };
12713
+ query?: never;
12714
+ url: '/v2/consumer/funds/{fundId}';
12715
+ };
12716
+ export type GetFundErrors = {
12717
+ /**
12718
+ * Unauthorized
12719
+ */
12720
+ 401: ProblemDetails;
12721
+ /**
12722
+ * Not Found
12723
+ */
12724
+ 404: ProblemDetails;
12725
+ };
12726
+ export type GetFundError = GetFundErrors[keyof GetFundErrors];
12727
+ export type GetFundResponses = {
12728
+ /**
12729
+ * OK
12730
+ */
12731
+ 200: FundResponse;
12732
+ };
12733
+ export type GetFundResponse = GetFundResponses[keyof GetFundResponses];
12734
+ export type UpdateFundData = {
12735
+ body?: JsonPatchDocument;
12736
+ path: {
12737
+ fundId: string;
12738
+ };
12739
+ query?: never;
12740
+ url: '/v2/consumer/funds/{fundId}';
12741
+ };
12742
+ export type UpdateFundErrors = {
12743
+ /**
12744
+ * Bad Request
12745
+ */
12746
+ 400: ProblemDetails;
12747
+ /**
12748
+ * Unauthorized
12749
+ */
12750
+ 401: ProblemDetails;
12751
+ /**
12752
+ * Not Found
12753
+ */
12754
+ 404: ProblemDetails;
12755
+ };
12756
+ export type UpdateFundError = UpdateFundErrors[keyof UpdateFundErrors];
12757
+ export type UpdateFundResponses = {
12758
+ /**
12759
+ * OK
12760
+ */
12761
+ 200: FundResponse;
12762
+ };
12763
+ export type UpdateFundResponse = UpdateFundResponses[keyof UpdateFundResponses];
12764
+ export type DepositIntoFundData = {
12765
+ body?: FundDeposit;
12766
+ path: {
12767
+ fundId: string;
12768
+ };
12769
+ query?: never;
12770
+ url: '/v2/consumer/funds/{fundId}/deposits';
12771
+ };
12772
+ export type DepositIntoFundErrors = {
12773
+ /**
12774
+ * Unauthorized
12775
+ */
12776
+ 401: ProblemDetails;
12777
+ /**
12778
+ * Payment Required
12779
+ */
12780
+ 402: ProblemDetails;
12781
+ /**
12782
+ * Not Found
12783
+ */
12784
+ 404: ProblemDetails;
12785
+ };
12786
+ export type DepositIntoFundError = DepositIntoFundErrors[keyof DepositIntoFundErrors];
12787
+ export type DepositIntoFundResponses = {
12788
+ /**
12789
+ * OK
12790
+ */
12791
+ 200: FundResponse;
12792
+ };
12793
+ export type DepositIntoFundResponse = DepositIntoFundResponses[keyof DepositIntoFundResponses];
12471
12794
  export type InvokeAceStepAudioStepTemplateData = {
12472
12795
  body?: AceStepAudioInput;
12473
12796
  path?: never;