@civitai/orchestration-client 0.2.0-beta.102 → 0.2.0-beta.104

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.
@@ -200,11 +200,17 @@ export {
200
200
  type ComfyErnieTurboCreateImageGenInput,
201
201
  type ComfyErnieTurboImageGenInput,
202
202
  type ComfyFlux1CreateImageGenInput,
203
+ type ComfyFlux1EditImageGenInput,
203
204
  type ComfyFlux1ImageGenInput,
204
205
  type ComfyFlux1VariantImageGenInput,
205
206
  type ComfyFlux2DevCreateImageInput,
206
207
  type ComfyFlux2DevEditImageInput,
207
208
  type ComfyFlux2DevImageGenInput,
209
+ type ComfyFlux2DevVariantImageGenInput,
210
+ type ComfyFlux2KleinCreateImageInput,
211
+ type ComfyFlux2KleinEditImageInput,
212
+ type ComfyFlux2KleinImageGenInput,
213
+ type ComfyFlux2KleinVariantImageGenInput,
208
214
  type ComfyHiDreamImageGenInput,
209
215
  type ComfyHiDreamO1CreateImageGenInput,
210
216
  type ComfyHiDreamO1DevCreateImageGenInput,
@@ -269,6 +275,13 @@ export {
269
275
  type ComfyNodepackSnapshotStepTemplate,
270
276
  type ComfyOutput,
271
277
  type ComfyPolyGenInput,
278
+ type ComfyQwen20bCreateImageGenInput,
279
+ type ComfyQwen20bEditImageGenInput,
280
+ type ComfyQwen20bEditImageGenInputWritable,
281
+ type ComfyQwen20bImageGenInput,
282
+ type ComfyQwen20bVariantImageGenInput,
283
+ type ComfyQwen20bVariantImageGenInputWritable,
284
+ type ComfyQwenImageGenInput,
272
285
  ComfySampler,
273
286
  ComfyScheduler,
274
287
  type ComfySd1CreateImageGenInput,
@@ -281,6 +294,11 @@ export {
281
294
  type ComfyStepTemplate,
282
295
  type ComfyTrainingInput,
283
296
  type ComfyTrainingInputWritable,
297
+ type ComfyZImageBaseCreateImageGenInput,
298
+ type ComfyZImageBaseImageGenInput,
299
+ type ComfyZImageImageGenInput,
300
+ type ComfyZImageTurboCreateImageGenInput,
301
+ type ComfyZImageTurboImageGenInput,
284
302
  type ComposeMediaElementInput,
285
303
  type ComposeMediaInput,
286
304
  type ComposeMediaOutput,
@@ -933,6 +951,12 @@ export {
933
951
  type OpenAiGpt1CreateImageInput,
934
952
  type OpenAiGpt1EditImageInput,
935
953
  type OpenAiGpt1ImageGenInput,
954
+ type OpenAiGpt25FlareCreateImageInput,
955
+ type OpenAiGpt25FlareEditImageInput,
956
+ type OpenAiGpt25FlareImageGenInput,
957
+ type OpenAiGpt25SunburstCreateImageInput,
958
+ type OpenAiGpt25SunburstEditImageInput,
959
+ type OpenAiGpt25SunburstImageGenInput,
936
960
  type OpenAiGpt2CreateImageInput,
937
961
  type OpenAiGpt2EditImageInput,
938
962
  type OpenAiGpt2ImageGenInput,
@@ -1339,7 +1339,7 @@ export type ComfyAnimaCreateImageGenInput = Omit<
1339
1339
  engine: 'comfy';
1340
1340
  };
1341
1341
  export type ComfyAnimaImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
1342
- operation: string;
1342
+ operation: null | string;
1343
1343
  prompt: string;
1344
1344
  negativePrompt?: null | string;
1345
1345
  sampler?: ComfySampler;
@@ -1586,8 +1586,27 @@ export type ComfyFlux1CreateImageGenInput = Omit<
1586
1586
  ecosystem: 'flux1';
1587
1587
  engine: 'comfy';
1588
1588
  };
1589
+ /**
1590
+ * Compatibility route for sdcpp Flux 1 editing: ordinary image-to-image using only
1591
+ * the first source image, or text-to-image when the image list is empty.
1592
+ */
1593
+ export type ComfyFlux1EditImageGenInput = Omit<
1594
+ ComfyFlux1ImageGenInput,
1595
+ 'engine' | 'ecosystem' | 'operation'
1596
+ > & {
1597
+ width?: number;
1598
+ height?: number;
1599
+ steps?: number;
1600
+ /**
1601
+ * Uses only the first image for image-to-image at denoise strength 0.7. An empty list generates from text, matching sdcpp Flux 1 editImage.
1602
+ */
1603
+ images?: Array<string>;
1604
+ operation: 'editImage';
1605
+ ecosystem: 'flux1';
1606
+ engine: 'comfy';
1607
+ };
1589
1608
  export type ComfyFlux1ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
1590
- operation: string;
1609
+ operation: null | string;
1591
1610
  prompt: string;
1592
1611
  sampler?: ComfySampler;
1593
1612
  scheduler?: ComfyScheduler;
@@ -1654,6 +1673,71 @@ export type ComfyFlux2DevImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ec
1654
1673
  ecosystem: 'flux2Dev';
1655
1674
  engine: 'comfy';
1656
1675
  };
1676
+ export type ComfyFlux2DevVariantImageGenInput = Omit<
1677
+ ComfyFlux2DevImageGenInput,
1678
+ 'engine' | 'ecosystem' | 'operation'
1679
+ > & {
1680
+ /**
1681
+ * Either A URL, A DataURL or a Base64 string
1682
+ */
1683
+ image: string;
1684
+ strength?: number;
1685
+ operation: 'createVariant';
1686
+ ecosystem: 'flux2Dev';
1687
+ engine: 'comfy';
1688
+ };
1689
+ export type ComfyFlux2KleinCreateImageInput = Omit<
1690
+ ComfyFlux2KleinImageGenInput,
1691
+ 'engine' | 'ecosystem' | 'operation'
1692
+ > & {
1693
+ operation: 'createImage';
1694
+ ecosystem: 'flux2Klein';
1695
+ engine: 'comfy';
1696
+ };
1697
+ export type ComfyFlux2KleinEditImageInput = Omit<
1698
+ ComfyFlux2KleinImageGenInput,
1699
+ 'engine' | 'ecosystem' | 'operation'
1700
+ > & {
1701
+ images?: Array<string>;
1702
+ operation: 'editImage';
1703
+ ecosystem: 'flux2Klein';
1704
+ engine: 'comfy';
1705
+ };
1706
+ export type ComfyFlux2KleinImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
1707
+ operation: string;
1708
+ prompt: string;
1709
+ width?: number;
1710
+ height?: number;
1711
+ seed?: null | number;
1712
+ quantity?: number;
1713
+ cfgScale?: number;
1714
+ steps?: number;
1715
+ sampler?: ComfySampler;
1716
+ scheduler?: ComfyScheduler;
1717
+ negativePrompt?: null | string;
1718
+ loras?: {
1719
+ [key: string]: number;
1720
+ };
1721
+ /**
1722
+ * Klein model variant. Both 9b and 9b-kv always use the 9B KV checkpoint and reference-image caching. 4B and Base variants use their original checkpoints.
1723
+ */
1724
+ modelVersion?: '4b' | '4b-base' | '9b' | '9b-base' | '9b-kv';
1725
+ ecosystem: 'flux2Klein';
1726
+ engine: 'comfy';
1727
+ };
1728
+ export type ComfyFlux2KleinVariantImageGenInput = Omit<
1729
+ ComfyFlux2KleinImageGenInput,
1730
+ 'engine' | 'ecosystem' | 'operation'
1731
+ > & {
1732
+ /**
1733
+ * Either A URL, A DataURL or a Base64 string
1734
+ */
1735
+ image: string;
1736
+ strength?: number;
1737
+ operation: 'createVariant';
1738
+ ecosystem: 'flux2Klein';
1739
+ engine: 'comfy';
1740
+ };
1657
1741
  export type ComfyHiDreamImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
1658
1742
  model: string;
1659
1743
  ecosystem: 'hidream-o1';
@@ -2539,6 +2623,73 @@ export type ComfyPolyGenInput = Omit<PolyGenInput, 'engine'> & {
2539
2623
  model: string;
2540
2624
  engine: 'comfy';
2541
2625
  };
2626
+ export type ComfyQwen20bCreateImageGenInput = Omit<
2627
+ ComfyQwen20bImageGenInput,
2628
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2629
+ > & {
2630
+ version?: 'latest' | '2509' | '2512';
2631
+ width?: number;
2632
+ height?: number;
2633
+ operation: 'createImage';
2634
+ model: '20b';
2635
+ ecosystem: 'qwen';
2636
+ engine: 'comfy';
2637
+ };
2638
+ export type ComfyQwen20bEditImageGenInput = Omit<
2639
+ ComfyQwen20bImageGenInput,
2640
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2641
+ > & {
2642
+ version?: 'latest' | '2509' | '2511';
2643
+ images: Array<string>;
2644
+ readonly width: number;
2645
+ readonly height: number;
2646
+ operation: 'editImage';
2647
+ model: '20b';
2648
+ ecosystem: 'qwen';
2649
+ engine: 'comfy';
2650
+ };
2651
+ export type ComfyQwen20bImageGenInput = Omit<
2652
+ ComfyQwenImageGenInput,
2653
+ 'engine' | 'ecosystem' | 'model'
2654
+ > & {
2655
+ operation: string;
2656
+ prompt: string;
2657
+ negativePrompt?: null | string;
2658
+ sampler?: ComfySampler;
2659
+ scheduler?: ComfyScheduler;
2660
+ steps?: number;
2661
+ cfgScale?: number;
2662
+ seed?: null | number;
2663
+ quantity?: number;
2664
+ loras?: {
2665
+ [key: string]: number;
2666
+ };
2667
+ model: '20b';
2668
+ ecosystem: 'qwen';
2669
+ engine: 'comfy';
2670
+ };
2671
+ export type ComfyQwen20bVariantImageGenInput = Omit<
2672
+ ComfyQwen20bImageGenInput,
2673
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2674
+ > & {
2675
+ version?: 'latest' | '2509' | '2512';
2676
+ /**
2677
+ * Either A URL, A DataURL or a Base64 string
2678
+ */
2679
+ image: string;
2680
+ strength?: number;
2681
+ readonly width: number;
2682
+ readonly height: number;
2683
+ operation: 'createVariant';
2684
+ model: '20b';
2685
+ ecosystem: 'qwen';
2686
+ engine: 'comfy';
2687
+ };
2688
+ export type ComfyQwenImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
2689
+ model: null | string;
2690
+ ecosystem: 'qwen';
2691
+ engine: 'comfy';
2692
+ };
2542
2693
  export declare const ComfySampler: {
2543
2694
  readonly EULER: 'euler';
2544
2695
  readonly EULER_ANCESTRAL: 'euler_ancestral';
@@ -2836,6 +2987,76 @@ export type ComfyTrainingInput = Omit<TrainingInput, 'engine'> & {
2836
2987
  readonly maxBatchSize: number;
2837
2988
  engine: 'comfy';
2838
2989
  };
2990
+ export type ComfyZImageBaseCreateImageGenInput = Omit<
2991
+ ComfyZImageBaseImageGenInput,
2992
+ 'engine' | 'ecosystem' | 'model' | 'operation'
2993
+ > & {
2994
+ width?: number;
2995
+ height?: number;
2996
+ operation: 'createImage';
2997
+ model: 'base';
2998
+ ecosystem: 'zImage';
2999
+ engine: 'comfy';
3000
+ };
3001
+ export type ComfyZImageBaseImageGenInput = Omit<
3002
+ ComfyZImageImageGenInput,
3003
+ 'engine' | 'ecosystem' | 'model'
3004
+ > & {
3005
+ operation: null | string;
3006
+ prompt: string;
3007
+ negativePrompt?: null | string;
3008
+ sampler?: ComfySampler;
3009
+ scheduler?: ComfyScheduler;
3010
+ steps?: number;
3011
+ cfgScale?: number;
3012
+ seed?: null | number;
3013
+ quantity?: number;
3014
+ loras?: {
3015
+ [key: string]: number;
3016
+ };
3017
+ controlNets?: Array<ImageJobControlNet>;
3018
+ model: 'base';
3019
+ ecosystem: 'zImage';
3020
+ engine: 'comfy';
3021
+ };
3022
+ export type ComfyZImageImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
3023
+ model: null | string;
3024
+ diffuserModel?: string;
3025
+ ecosystem: 'zImage';
3026
+ engine: 'comfy';
3027
+ };
3028
+ export type ComfyZImageTurboCreateImageGenInput = Omit<
3029
+ ComfyZImageTurboImageGenInput,
3030
+ 'engine' | 'ecosystem' | 'model' | 'operation'
3031
+ > & {
3032
+ width?: number;
3033
+ height?: number;
3034
+ operation: 'createImage';
3035
+ model: 'turbo';
3036
+ ecosystem: 'zImage';
3037
+ engine: 'comfy';
3038
+ };
3039
+ export type ComfyZImageTurboImageGenInput = Omit<
3040
+ ComfyZImageImageGenInput,
3041
+ 'engine' | 'ecosystem' | 'model'
3042
+ > & {
3043
+ operation: null | string;
3044
+ prompt: string;
3045
+ negativePrompt?: null | string;
3046
+ sampler?: ComfySampler;
3047
+ scheduler?: ComfyScheduler;
3048
+ steps?: number;
3049
+ cfgScale?: number;
3050
+ seed?: null | number;
3051
+ quantity?: number;
3052
+ loras?: {
3053
+ [key: string]: number;
3054
+ };
3055
+ controlNets?: Array<ImageJobControlNet>;
3056
+ model: 'turbo';
3057
+ ecosystem: 'zImage';
3058
+ engine: 'comfy';
3059
+ };
2839
3060
  /**
2840
3061
  * A single audio or video element participating in a composition.
2841
3062
  */
@@ -6563,6 +6784,96 @@ export type OpenAiGpt1ImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'mod
6563
6784
  model: 'gpt-image-1';
6564
6785
  engine: 'openai';
6565
6786
  };
6787
+ export type OpenAiGpt25FlareCreateImageInput = Omit<
6788
+ OpenAiGpt25FlareImageGenInput,
6789
+ 'engine' | 'model' | 'operation'
6790
+ > & {
6791
+ operation: 'createImage';
6792
+ model: 'gpt-image-2.5-flare';
6793
+ engine: 'openai';
6794
+ };
6795
+ export type OpenAiGpt25FlareEditImageInput = Omit<
6796
+ OpenAiGpt25FlareImageGenInput,
6797
+ 'engine' | 'model' | 'operation'
6798
+ > & {
6799
+ images: Array<string>;
6800
+ /**
6801
+ * Either A URL, A DataURL or a Base64 string
6802
+ */
6803
+ maskImage?: null | string;
6804
+ /**
6805
+ * When null, fal infers output size from the input images (image_size: "auto").
6806
+ * Both Width and Height must be set together, or both null.
6807
+ */
6808
+ width?: null | number;
6809
+ /**
6810
+ * When null, fal infers output size from the input images (image_size: "auto").
6811
+ * Both Width and Height must be set together, or both null.
6812
+ */
6813
+ height?: null | number;
6814
+ operation: 'editImage';
6815
+ model: 'gpt-image-2.5-flare';
6816
+ engine: 'openai';
6817
+ };
6818
+ /**
6819
+ * GPT-Image-2.5 "flare": the faster of the two variants.
6820
+ * FAL endpoints: openai/gpt-image-2.5/flare/text-to-image[/edit]
6821
+ */
6822
+ export type OpenAiGpt25FlareImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
6823
+ operation: string;
6824
+ prompt: string;
6825
+ width?: null | number;
6826
+ height?: null | number;
6827
+ quantity?: number;
6828
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
6829
+ model: 'gpt-image-2.5-flare';
6830
+ engine: 'openai';
6831
+ };
6832
+ export type OpenAiGpt25SunburstCreateImageInput = Omit<
6833
+ OpenAiGpt25SunburstImageGenInput,
6834
+ 'engine' | 'model' | 'operation'
6835
+ > & {
6836
+ operation: 'createImage';
6837
+ model: 'gpt-image-2.5-sunburst';
6838
+ engine: 'openai';
6839
+ };
6840
+ export type OpenAiGpt25SunburstEditImageInput = Omit<
6841
+ OpenAiGpt25SunburstImageGenInput,
6842
+ 'engine' | 'model' | 'operation'
6843
+ > & {
6844
+ images: Array<string>;
6845
+ /**
6846
+ * Either A URL, A DataURL or a Base64 string
6847
+ */
6848
+ maskImage?: null | string;
6849
+ /**
6850
+ * When null, fal infers output size from the input images (image_size: "auto").
6851
+ * Both Width and Height must be set together, or both null.
6852
+ */
6853
+ width?: null | number;
6854
+ /**
6855
+ * When null, fal infers output size from the input images (image_size: "auto").
6856
+ * Both Width and Height must be set together, or both null.
6857
+ */
6858
+ height?: null | number;
6859
+ operation: 'editImage';
6860
+ model: 'gpt-image-2.5-sunburst';
6861
+ engine: 'openai';
6862
+ };
6863
+ /**
6864
+ * GPT-Image-2.5 "sunburst": higher fidelity on intricate detail, slower.
6865
+ * FAL endpoints: openai/gpt-image-2.5/sunburst/text-to-image[/edit]
6866
+ */
6867
+ export type OpenAiGpt25SunburstImageGenInput = Omit<OpenApiImageGenInput, 'engine' | 'model'> & {
6868
+ operation: string;
6869
+ prompt: string;
6870
+ width?: null | number;
6871
+ height?: null | number;
6872
+ quantity?: number;
6873
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
6874
+ model: 'gpt-image-2.5-sunburst';
6875
+ engine: 'openai';
6876
+ };
6566
6877
  export type OpenAiGpt2CreateImageInput = Omit<
6567
6878
  OpenAiGpt2ImageGenInput,
6568
6879
  'engine' | 'model' | 'operation'
@@ -10848,6 +11159,32 @@ export type ChromaAiToolkitTrainingInputWritable = Omit<
10848
11159
  */
10849
11160
  batchSize?: null | number;
10850
11161
  };
11162
+ export type ComfyQwen20bEditImageGenInputWritable = Omit<
11163
+ ComfyQwen20bImageGenInput,
11164
+ 'engine' | 'ecosystem' | 'model' | 'operation'
11165
+ > & {
11166
+ version?: 'latest' | '2509' | '2511';
11167
+ images: Array<string>;
11168
+ operation: 'ComfyQwen20bEditImageGenInputWritable';
11169
+ model: '20b';
11170
+ ecosystem: 'qwen';
11171
+ engine: 'comfy';
11172
+ };
11173
+ export type ComfyQwen20bVariantImageGenInputWritable = Omit<
11174
+ ComfyQwen20bImageGenInput,
11175
+ 'engine' | 'ecosystem' | 'model' | 'operation'
11176
+ > & {
11177
+ version?: 'latest' | '2509' | '2512';
11178
+ /**
11179
+ * Either A URL, A DataURL or a Base64 string
11180
+ */
11181
+ image: string;
11182
+ strength?: number;
11183
+ operation: 'ComfyQwen20bVariantImageGenInputWritable';
11184
+ model: '20b';
11185
+ ecosystem: 'qwen';
11186
+ engine: 'comfy';
11187
+ };
10851
11188
  /**
10852
11189
  * Input for model-family-driven Comfy-backed LoRA training.
10853
11190
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/orchestration-client",
3
- "version": "0.2.0-beta.102",
3
+ "version": "0.2.0-beta.104",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "packageManager": "pnpm@10.34.4",
6
6
  "main": "dist/index.js",