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

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.
@@ -90,6 +90,11 @@ export type AiToolkitTrainingInput = TrainingInput & {
90
90
  * This option does nothing if the Shuffle Tokens option is off.
91
91
  */
92
92
  keepTokens?: number;
93
+ /**
94
+ * A trigger word that activates the trained LoRA when used in prompts.
95
+ * Only applicable to certain ecosystems (sd1, sdxl, flux1, chroma, zimagebase, zimageturbo, flux2klein).
96
+ */
97
+ triggerWord?: string | null;
93
98
  } & {
94
99
  engine: 'ai-toolkit';
95
100
  };
@@ -726,6 +731,82 @@ export type ComfyInput = {
726
731
  */
727
732
  useSpineComfy?: boolean | null;
728
733
  };
734
+ /**
735
+ * Create video from text prompt, optionally with a source image (ComfyUI backend)
736
+ */
737
+ export type ComfyLtx23CreateVideoInput = ComfyLtx23VideoGenInput & {
738
+ /**
739
+ * Optional source image for image-to-video generation
740
+ */
741
+ images?: Array<string>;
742
+ } & {
743
+ operation: 'createVideo';
744
+ };
745
+ /**
746
+ * Edit/transform an existing video using Canny edge control (ComfyUI backend)
747
+ */
748
+ export type ComfyLtx23EditVideoInput = ComfyLtx23VideoGenInput & {
749
+ sourceVideo: string;
750
+ cannyLowThreshold?: number;
751
+ cannyHighThreshold?: number;
752
+ guideStrength?: number;
753
+ } & {
754
+ operation: 'editVideo';
755
+ };
756
+ /**
757
+ * Extend an existing video with new content (ComfyUI backend)
758
+ */
759
+ export type ComfyLtx23ExtendVideoInput = ComfyLtx23VideoGenInput & {
760
+ sourceVideo: string;
761
+ numFrames?: number;
762
+ } & {
763
+ operation: 'extendVideo';
764
+ };
765
+ /**
766
+ * Generate video guided by first and/or last frame images using LTXVAddGuide conditioning (ComfyUI backend)
767
+ */
768
+ export type ComfyLtx23FirstLastFrameToVideoInput = ComfyLtx23VideoGenInput & {
769
+ /**
770
+ * First frame guide image. At least one of FirstFrame or LastFrame must be provided.
771
+ */
772
+ firstFrame?: string | null;
773
+ /**
774
+ * Last frame guide image. At least one of FirstFrame or LastFrame must be provided.
775
+ */
776
+ lastFrame?: string | null;
777
+ /**
778
+ * Strength of the frame guide conditioning (0.0 to 1.0).
779
+ */
780
+ frameGuideStrength?: number;
781
+ } & {
782
+ operation: 'firstLastFrameToVideo';
783
+ };
784
+ /**
785
+ * LTX Video v2.3 generation via ComfyUI backend
786
+ */
787
+ export type ComfyLtx23VideoGenInput = VideoGenInput & {
788
+ engine: 'ltx2.3';
789
+ } & {
790
+ operation: string | null;
791
+ negativePrompt?: string | null;
792
+ seed?: number | null;
793
+ /**
794
+ * Duration in seconds (3 or 5)
795
+ */
796
+ duration?: 3 | 5;
797
+ width?: number;
798
+ height?: number;
799
+ fps?: number;
800
+ generateAudio?: boolean;
801
+ guidanceScale?: number;
802
+ steps?: number;
803
+ model?: '22b-dev' | '22b-distilled';
804
+ loras?: {
805
+ [key: string]: number;
806
+ };
807
+ } & {
808
+ engine: 'ltx2.3';
809
+ };
729
810
  /**
730
811
  * Create video from text prompt, optionally with a source image (ComfyUI backend)
731
812
  */
@@ -4329,6 +4410,43 @@ export type Wan225bVideoGenInput = WanVideoGenInput & {
4329
4410
  } & {
4330
4411
  version: 'v2.2-5b';
4331
4412
  };
4413
+ export type Wan22ComfyVideoGenInput = Wan22VideoGenInput & {
4414
+ width?: number;
4415
+ height?: number;
4416
+ model?: string | null;
4417
+ images?: Array<string>;
4418
+ negativePrompt?: string | null;
4419
+ sampler?:
4420
+ | 'euler'
4421
+ | 'euler_ancestral'
4422
+ | 'heun'
4423
+ | 'heunpp2'
4424
+ | 'dpm_2'
4425
+ | 'dpm_2_ancestral'
4426
+ | 'lms'
4427
+ | 'dpm_fast'
4428
+ | 'dpm_adaptive'
4429
+ | 'dpmpp_2s_ancestral'
4430
+ | 'dpmpp_sde'
4431
+ | 'dpmpp_2m'
4432
+ | 'dpmpp_2m_sde'
4433
+ | 'dpmpp_3m_sde'
4434
+ | 'ddpm'
4435
+ | 'lcm'
4436
+ | 'uni_pc'
4437
+ | 'uni_pc_bh2';
4438
+ scheduler?:
4439
+ | 'normal'
4440
+ | 'karras'
4441
+ | 'exponential'
4442
+ | 'sgm_uniform'
4443
+ | 'simple'
4444
+ | 'ddim_uniform'
4445
+ | 'beta';
4446
+ shift?: number;
4447
+ } & {
4448
+ provider: 'comfy';
4449
+ };
4332
4450
  export type Wan22FalImageGenInput = Wan22ImageGenInput & {
4333
4451
  acceleration?: 'none' | 'fast' | 'faster';
4334
4452
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.40",
3
+ "version": "0.2.0-beta.41",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",