@civitai/client 0.2.0-beta.39 → 0.2.0-beta.40

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.
@@ -665,6 +665,47 @@ export declare const CoarseMode: {
665
665
  readonly ENABLE: 'enable';
666
666
  };
667
667
  export type CoarseMode = (typeof CoarseMode)[keyof typeof CoarseMode];
668
+ export type ComfyFlux1CreateImageGenInput = ComfyFlux1ImageGenInput & {
669
+ width?: number;
670
+ height?: number;
671
+ } & {
672
+ operation: 'createImage';
673
+ };
674
+ export type ComfyFlux1ImageGenInput = ComfyImageGenInput & {
675
+ operation: string;
676
+ prompt: string;
677
+ sampler?: ComfySampler;
678
+ scheduler?: ComfyScheduler;
679
+ steps?: number;
680
+ cfgScale?: number;
681
+ seed?: number | null;
682
+ quantity?: number;
683
+ model: string;
684
+ vaeModel?: string | null;
685
+ loras?: {
686
+ [key: string]: number;
687
+ };
688
+ } & {
689
+ ecosystem: 'flux1';
690
+ };
691
+ export type ComfyFlux1VariantImageGenInput = ComfyFlux1ImageGenInput & {
692
+ width?: number;
693
+ height?: number;
694
+ /**
695
+ * Either A URL, A DataURL or a Base64 string
696
+ */
697
+ image: string;
698
+ denoiseStrength?: number;
699
+ } & {
700
+ operation: 'createVariant';
701
+ };
702
+ export type ComfyImageGenInput = ImageGenInput & {
703
+ engine: 'comfy';
704
+ } & {
705
+ ecosystem: string;
706
+ } & {
707
+ engine: 'comfy';
708
+ };
668
709
  export type ComfyInput = {
669
710
  /**
670
711
  * Get the comfy workflow that needs to be executed
@@ -777,6 +818,119 @@ export type ComfyOutput = {
777
818
  */
778
819
  blobs?: Array<Blob>;
779
820
  };
821
+ export declare const ComfySampler: {
822
+ readonly EULER: 'euler';
823
+ readonly EULER_ANCESTRAL: 'euler_ancestral';
824
+ readonly EULER_CFG_PP: 'euler_cfg_pp';
825
+ readonly EULER_ANCESTRAL_CFG_PP: 'euler_ancestral_cfg_pp';
826
+ readonly HEUN: 'heun';
827
+ readonly HEUNPP2: 'heunpp2';
828
+ readonly DPM_2: 'dpm_2';
829
+ readonly DPM_2_ANCESTRAL: 'dpm_2_ancestral';
830
+ readonly LMS: 'lms';
831
+ readonly DPM_FAST: 'dpm_fast';
832
+ readonly DPM_ADAPTIVE: 'dpm_adaptive';
833
+ readonly DPMPP_2S_ANCESTRAL: 'dpmpp_2s_ancestral';
834
+ readonly DPMPP_2S_ANCESTRAL_CFG_PP: 'dpmpp_2s_ancestral_cfg_pp';
835
+ readonly DPMPP_SDE: 'dpmpp_sde';
836
+ readonly DPMPP_SDE_GPU: 'dpmpp_sde_gpu';
837
+ readonly DPMPP_2M: 'dpmpp_2m';
838
+ readonly DPMPP_2M_CFG_PP: 'dpmpp_2m_cfg_pp';
839
+ readonly DPMPP_2M_SDE: 'dpmpp_2m_sde';
840
+ readonly DPMPP_2M_SDE_GPU: 'dpmpp_2m_sde_gpu';
841
+ readonly DPMPP_3M_SDE: 'dpmpp_3m_sde';
842
+ readonly DPMPP_3M_SDE_GPU: 'dpmpp_3m_sde_gpu';
843
+ readonly DDPM: 'ddpm';
844
+ readonly LCM: 'lcm';
845
+ readonly IPNDM: 'ipndm';
846
+ readonly IPNDM_V: 'ipndm_v';
847
+ readonly DEIS: 'deis';
848
+ readonly DDIM: 'ddim';
849
+ readonly UNI_PC: 'uni_pc';
850
+ readonly UNI_PC_BH2: 'uni_pc_bh2';
851
+ };
852
+ export type ComfySampler = (typeof ComfySampler)[keyof typeof ComfySampler];
853
+ export declare const ComfyScheduler: {
854
+ readonly NORMAL: 'normal';
855
+ readonly KARRAS: 'karras';
856
+ readonly EXPONENTIAL: 'exponential';
857
+ readonly SGM_UNIFORM: 'sgm_uniform';
858
+ readonly SIMPLE: 'simple';
859
+ readonly DDIM_UNIFORM: 'ddim_uniform';
860
+ readonly BETA: 'beta';
861
+ };
862
+ export type ComfyScheduler = (typeof ComfyScheduler)[keyof typeof ComfyScheduler];
863
+ export type ComfySd1CreateImageGenInput = ComfySd1ImageGenInput & {
864
+ width?: number;
865
+ height?: number;
866
+ } & {
867
+ operation: 'createImage';
868
+ };
869
+ export type ComfySd1ImageGenInput = ComfyImageGenInput & {
870
+ operation: string;
871
+ prompt: string;
872
+ negativePrompt?: string | null;
873
+ sampler?: ComfySampler;
874
+ scheduler?: ComfyScheduler;
875
+ steps?: number;
876
+ cfgScale?: number;
877
+ seed?: number | null;
878
+ quantity?: number;
879
+ model: string;
880
+ vaeModel?: string | null;
881
+ loras?: {
882
+ [key: string]: number;
883
+ };
884
+ clipSkip?: number;
885
+ } & {
886
+ ecosystem: 'sd1';
887
+ };
888
+ export type ComfySd1VariantImageGenInput = ComfySd1ImageGenInput & {
889
+ width?: number;
890
+ height?: number;
891
+ /**
892
+ * Either A URL, A DataURL or a Base64 string
893
+ */
894
+ image: string;
895
+ denoiseStrength?: number;
896
+ } & {
897
+ operation: 'createVariant';
898
+ };
899
+ export type ComfySdxlCreateImageGenInput = ComfySdxlImageGenInput & {
900
+ width?: number;
901
+ height?: number;
902
+ } & {
903
+ operation: 'createImage';
904
+ };
905
+ export type ComfySdxlImageGenInput = ComfyImageGenInput & {
906
+ operation: string;
907
+ prompt: string;
908
+ negativePrompt?: string | null;
909
+ sampler?: ComfySampler;
910
+ scheduler?: ComfyScheduler;
911
+ steps?: number;
912
+ cfgScale?: number;
913
+ seed?: number | null;
914
+ quantity?: number;
915
+ model: string;
916
+ vaeModel?: string | null;
917
+ loras?: {
918
+ [key: string]: number;
919
+ };
920
+ } & {
921
+ ecosystem: 'sdxl';
922
+ };
923
+ export type ComfySdxlVariantImageGenInput = ComfySdxlImageGenInput & {
924
+ width?: number;
925
+ height?: number;
926
+ /**
927
+ * Either A URL, A DataURL or a Base64 string
928
+ */
929
+ image: string;
930
+ denoiseStrength?: number;
931
+ } & {
932
+ operation: 'createVariant';
933
+ };
780
934
  /**
781
935
  * Comfy workflows
782
936
  */
@@ -1044,6 +1198,13 @@ export type FaceRecognitionResult = {
1044
1198
  */
1045
1199
  similarityMatrix?: Array<Array<number>> | null;
1046
1200
  };
1201
+ export type FalImageGenInput = ImageGenInput & {
1202
+ engine: 'fal';
1203
+ } & {
1204
+ model: string;
1205
+ } & {
1206
+ engine: 'fal';
1207
+ };
1047
1208
  export declare const FileFormat: {
1048
1209
  readonly UNKNOWN: 'unknown';
1049
1210
  readonly SAFE_TENSOR: 'safeTensor';
@@ -1263,6 +1424,42 @@ export type Flux2KleinImageGenInput = Flux2ImageGenInput & {
1263
1424
  } & {
1264
1425
  model: 'klein';
1265
1426
  };
1427
+ export type Flux2KleinSdCppCreateImageInput = Flux2KleinSdCppImageGenInput & {} & {
1428
+ operation: 'createImage';
1429
+ };
1430
+ export type Flux2KleinSdCppEditImageInput = Flux2KleinSdCppImageGenInput & {
1431
+ images?: Array<string>;
1432
+ } & {
1433
+ operation: 'editImage';
1434
+ };
1435
+ export type Flux2KleinSdCppImageGenInput = SdCppImageGenInput & {
1436
+ operation: string;
1437
+ prompt: string;
1438
+ width?: number;
1439
+ height?: number;
1440
+ seed?: number | null;
1441
+ quantity?: number;
1442
+ cfgScale?: number;
1443
+ steps?: number;
1444
+ sampleMethod?: SdCppSampleMethod;
1445
+ schedule?: SdCppSchedule;
1446
+ negativePrompt?: string | null;
1447
+ loras?: {
1448
+ [key: string]: number;
1449
+ };
1450
+ modelVersion?: '4b' | '4b-base' | '9b' | '9b-base';
1451
+ } & {
1452
+ ecosystem: 'flux2Klein';
1453
+ };
1454
+ export type Flux2KleinSdCppVariantImageGenInput = Flux2KleinSdCppImageGenInput & {
1455
+ /**
1456
+ * Either A URL, A DataURL or a Base64 string
1457
+ */
1458
+ image: string;
1459
+ strength?: number;
1460
+ } & {
1461
+ operation: 'createVariant';
1462
+ };
1266
1463
  export type Flux2MaxCreateImageInput = Flux2MaxImageGenInput & {
1267
1464
  readonly operation: string;
1268
1465
  } & {
@@ -2797,6 +2994,40 @@ export type Qwen20bVariantImageGenInput = Qwen20bImageGenInput & {
2797
2994
  } & {
2798
2995
  operation: 'createVariant';
2799
2996
  };
2997
+ export type Qwen2CreateFalImageGenInput = Qwen2FalImageGenInput & {} & {
2998
+ operation: 'createImage';
2999
+ };
3000
+ export type Qwen2EditFalImageGenInput = Qwen2FalImageGenInput & {
3001
+ images: Array<string>;
3002
+ } & {
3003
+ operation: 'editImage';
3004
+ };
3005
+ export type Qwen2FalImageGenInput = FalImageGenInput & {
3006
+ operation: string;
3007
+ prompt: string;
3008
+ negativePrompt?: string | null;
3009
+ quantity?: number;
3010
+ imageSize?:
3011
+ | 'square_hd'
3012
+ | 'square'
3013
+ | 'portrait_4_3'
3014
+ | 'portrait_16_9'
3015
+ | 'landscape_4_3'
3016
+ | 'landscape_16_9';
3017
+ seed?: number | null;
3018
+ enablePromptExpansion?: boolean;
3019
+ enableSafetyChecker?: boolean;
3020
+ } & {
3021
+ model: 'qwen2';
3022
+ };
3023
+ export type Qwen2ProCreateFalImageGenInput = Qwen2FalImageGenInput & {} & {
3024
+ operation: 'proCreateImage';
3025
+ };
3026
+ export type Qwen2ProEditFalImageGenInput = Qwen2FalImageGenInput & {
3027
+ images: Array<string>;
3028
+ } & {
3029
+ operation: 'proEditImage';
3030
+ };
2800
3031
  /**
2801
3032
  * AI Toolkit training for Qwen Image models
2802
3033
  */
@@ -3017,6 +3248,17 @@ export type Sd1ImageGenInput = SdCppImageGenInput & {
3017
3248
  } & {
3018
3249
  ecosystem: 'sd1';
3019
3250
  };
3251
+ export type Sd1VariantImageGenInput = Sd1ImageGenInput & {
3252
+ width?: number;
3253
+ height?: number;
3254
+ /**
3255
+ * Either A URL, A DataURL or a Base64 string
3256
+ */
3257
+ image: string;
3258
+ strength?: number;
3259
+ } & {
3260
+ operation: 'createVariant';
3261
+ };
3020
3262
  export type SdCppImageGenInput = ImageGenInput & {
3021
3263
  engine: 'sdcpp';
3022
3264
  } & {
@@ -3038,6 +3280,7 @@ export declare const SdCppSampleMethod: {
3038
3280
  readonly LCM: 'lcm';
3039
3281
  readonly RES_MULTISTEP: 'res_multistep';
3040
3282
  readonly RES_2S: 'res_2s';
3283
+ readonly TCD: 'tcd';
3041
3284
  };
3042
3285
  export type SdCppSampleMethod = (typeof SdCppSampleMethod)[keyof typeof SdCppSampleMethod];
3043
3286
  export declare const SdCppSchedule: {
@@ -3047,6 +3290,11 @@ export declare const SdCppSchedule: {
3047
3290
  readonly EXPONENTIAL: 'exponential';
3048
3291
  readonly AYS: 'ays';
3049
3292
  readonly BONG_TANGENT: 'bong_tangent';
3293
+ readonly GITS: 'gits';
3294
+ readonly SGM_UNIFORM: 'sgm_uniform';
3295
+ readonly SMOOTHSTEP: 'smoothstep';
3296
+ readonly KL_OPTIMAL: 'kl_optimal';
3297
+ readonly LCM: 'lcm';
3050
3298
  };
3051
3299
  export type SdCppSchedule = (typeof SdCppSchedule)[keyof typeof SdCppSchedule];
3052
3300
  export declare const SdCppUCacheMode: {
@@ -3100,6 +3348,17 @@ export type SdxlImageGenInput = SdCppImageGenInput & {
3100
3348
  } & {
3101
3349
  ecosystem: 'sdxl';
3102
3350
  };
3351
+ export type SdxlVariantImageGenInput = SdxlImageGenInput & {
3352
+ width?: number;
3353
+ height?: number;
3354
+ /**
3355
+ * Either A URL, A DataURL or a Base64 string
3356
+ */
3357
+ image: string;
3358
+ strength?: number;
3359
+ } & {
3360
+ operation: 'createVariant';
3361
+ };
3103
3362
  export type SeedreamImageGenInput = ImageGenInput & {
3104
3363
  engine: 'seedream';
3105
3364
  } & {
@@ -33,6 +33,46 @@ export const CoarseMode = {
33
33
  DISABLE: 'disable',
34
34
  ENABLE: 'enable',
35
35
  };
36
+ export const ComfySampler = {
37
+ EULER: 'euler',
38
+ EULER_ANCESTRAL: 'euler_ancestral',
39
+ EULER_CFG_PP: 'euler_cfg_pp',
40
+ EULER_ANCESTRAL_CFG_PP: 'euler_ancestral_cfg_pp',
41
+ HEUN: 'heun',
42
+ HEUNPP2: 'heunpp2',
43
+ DPM_2: 'dpm_2',
44
+ DPM_2_ANCESTRAL: 'dpm_2_ancestral',
45
+ LMS: 'lms',
46
+ DPM_FAST: 'dpm_fast',
47
+ DPM_ADAPTIVE: 'dpm_adaptive',
48
+ DPMPP_2S_ANCESTRAL: 'dpmpp_2s_ancestral',
49
+ DPMPP_2S_ANCESTRAL_CFG_PP: 'dpmpp_2s_ancestral_cfg_pp',
50
+ DPMPP_SDE: 'dpmpp_sde',
51
+ DPMPP_SDE_GPU: 'dpmpp_sde_gpu',
52
+ DPMPP_2M: 'dpmpp_2m',
53
+ DPMPP_2M_CFG_PP: 'dpmpp_2m_cfg_pp',
54
+ DPMPP_2M_SDE: 'dpmpp_2m_sde',
55
+ DPMPP_2M_SDE_GPU: 'dpmpp_2m_sde_gpu',
56
+ DPMPP_3M_SDE: 'dpmpp_3m_sde',
57
+ DPMPP_3M_SDE_GPU: 'dpmpp_3m_sde_gpu',
58
+ DDPM: 'ddpm',
59
+ LCM: 'lcm',
60
+ IPNDM: 'ipndm',
61
+ IPNDM_V: 'ipndm_v',
62
+ DEIS: 'deis',
63
+ DDIM: 'ddim',
64
+ UNI_PC: 'uni_pc',
65
+ UNI_PC_BH2: 'uni_pc_bh2',
66
+ };
67
+ export const ComfyScheduler = {
68
+ NORMAL: 'normal',
69
+ KARRAS: 'karras',
70
+ EXPONENTIAL: 'exponential',
71
+ SGM_UNIFORM: 'sgm_uniform',
72
+ SIMPLE: 'simple',
73
+ DDIM_UNIFORM: 'ddim_uniform',
74
+ BETA: 'beta',
75
+ };
36
76
  export const ContainerFormat = {
37
77
  MP4: 'mp4',
38
78
  WEB_M: 'webM',
@@ -251,6 +291,7 @@ export const SdCppSampleMethod = {
251
291
  LCM: 'lcm',
252
292
  RES_MULTISTEP: 'res_multistep',
253
293
  RES_2S: 'res_2s',
294
+ TCD: 'tcd',
254
295
  };
255
296
  export const SdCppSchedule = {
256
297
  SIMPLE: 'simple',
@@ -259,6 +300,11 @@ export const SdCppSchedule = {
259
300
  EXPONENTIAL: 'exponential',
260
301
  AYS: 'ays',
261
302
  BONG_TANGENT: 'bong_tangent',
303
+ GITS: 'gits',
304
+ SGM_UNIFORM: 'sgm_uniform',
305
+ SMOOTHSTEP: 'smoothstep',
306
+ KL_OPTIMAL: 'kl_optimal',
307
+ LCM: 'lcm',
262
308
  };
263
309
  export const SdCppUCacheMode = {
264
310
  OFF: 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.39",
3
+ "version": "0.2.0-beta.40",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",