@civitai/client 0.2.0-beta.37 → 0.2.0-beta.38

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.
@@ -135,12 +135,17 @@ export type AceStepAudioInput = {
135
135
  * Optional model override (uses default ACE Step 1.5 turbo if not specified)
136
136
  */
137
137
  model?: string | null;
138
+ /**
139
+ * Either A URL, A DataURL or a Base64 string
140
+ */
141
+ backgroundImageUrl?: string;
138
142
  };
139
143
  /**
140
- * Output from ACE Step 1.5 audio generation workflow step
144
+ * Output from ACE Step 1.5 audio generation workflow step.
145
+ * Returns a video with audio visualization overlaid on a background image.
141
146
  */
142
147
  export type AceStepAudioOutput = {
143
- audioBlob: AudioBlob;
148
+ videoBlob: VideoBlob;
144
149
  };
145
150
  /**
146
151
  * Workflow step for generating music using ACE Step 1.5.
@@ -1315,6 +1320,72 @@ export type GoogleImageGenInput = ImageGenInput & {
1315
1320
  } & {
1316
1321
  engine: 'google';
1317
1322
  };
1323
+ export type GrokCreateImageGenInput = GrokImageGenInput & {
1324
+ /**
1325
+ * Aspect ratio: 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2
1326
+ */
1327
+ aspectRatio?: string;
1328
+ } & {
1329
+ operation: 'createImage';
1330
+ };
1331
+ export type GrokEditImageGenInput = GrokImageGenInput & {
1332
+ images: Array<string>;
1333
+ } & {
1334
+ operation: 'editImage';
1335
+ };
1336
+ /**
1337
+ * Grok Edit-Video
1338
+ * FAL Endpoint: xai/grok-imagine-video/edit-video
1339
+ * Input video is resized to max 854x480 and truncated to 8 seconds.
1340
+ * Uses FFProbe to analyze input video duration for accurate costing.
1341
+ */
1342
+ export type GrokEditVideoInput = GrokVideoGenInput & {
1343
+ videoUrl: string;
1344
+ analyzedDuration?: number | null;
1345
+ } & {
1346
+ operation: 'edit-video';
1347
+ };
1348
+ export type GrokImageGenInput = ImageGenInput & {
1349
+ engine: 'grok';
1350
+ } & {
1351
+ operation: string;
1352
+ prompt: string;
1353
+ quantity?: number;
1354
+ } & {
1355
+ engine: 'grok';
1356
+ };
1357
+ /**
1358
+ * Grok Image-to-Video
1359
+ * FAL Endpoint: xai/grok-imagine-video/image-to-video
1360
+ */
1361
+ export type GrokImageToVideoInput = GrokVideoGenInput & {
1362
+ aspectRatio?: 'auto' | '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16';
1363
+ images?: [string];
1364
+ } & {
1365
+ operation: 'image-to-video';
1366
+ };
1367
+ /**
1368
+ * Grok Text-to-Video
1369
+ * FAL Endpoint: xai/grok-imagine-video/text-to-video
1370
+ */
1371
+ export type GrokTextToVideoInput = GrokVideoGenInput & {
1372
+ aspectRatio?: '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16';
1373
+ } & {
1374
+ operation: 'text-to-video';
1375
+ };
1376
+ /**
1377
+ * Base class for Grok video generation (xAI's Grok-Imagine-Video model via FAL).
1378
+ * Discriminator: operation (text-to-video, image-to-video, edit-video)
1379
+ */
1380
+ export type GrokVideoGenInput = VideoGenInput & {
1381
+ engine: 'grok';
1382
+ } & {
1383
+ operation: string | null;
1384
+ duration?: number;
1385
+ resolution?: '480p' | '720p';
1386
+ } & {
1387
+ engine: 'grok';
1388
+ };
1318
1389
  export declare const HaiperVideoGenAspectRatio: {
1319
1390
  readonly '16:9': '16:9';
1320
1391
  readonly '4:3': '4:3';
@@ -2880,6 +2951,33 @@ export declare const Scheduler: {
2880
2951
  * The available options for schedulers used in image generation.
2881
2952
  */
2882
2953
  export type Scheduler = (typeof Scheduler)[keyof typeof Scheduler];
2954
+ export type Sd1CreateImageGenInput = Sd1ImageGenInput & {
2955
+ width?: number;
2956
+ height?: number;
2957
+ } & {
2958
+ operation: 'createImage';
2959
+ };
2960
+ export type Sd1ImageGenInput = SdCppImageGenInput & {
2961
+ operation: string;
2962
+ prompt: string;
2963
+ negativePrompt?: string | null;
2964
+ sampleMethod?: SdCppSampleMethod;
2965
+ schedule?: SdCppSchedule;
2966
+ steps?: number;
2967
+ cfgScale?: number;
2968
+ seed?: number | null;
2969
+ quantity?: number;
2970
+ model: string;
2971
+ vaeModel?: string | null;
2972
+ loras?: {
2973
+ [key: string]: number;
2974
+ };
2975
+ embeddings?: Array<string>;
2976
+ clipSkip?: number;
2977
+ uCache?: SdCppUCacheMode;
2978
+ } & {
2979
+ ecosystem: 'sd1';
2980
+ };
2883
2981
  export type SdCppImageGenInput = ImageGenInput & {
2884
2982
  engine: 'sdcpp';
2885
2983
  } & {
@@ -2912,6 +3010,11 @@ export declare const SdCppSchedule: {
2912
3010
  readonly BONG_TANGENT: 'bong_tangent';
2913
3011
  };
2914
3012
  export type SdCppSchedule = (typeof SdCppSchedule)[keyof typeof SdCppSchedule];
3013
+ export declare const SdCppUCacheMode: {
3014
+ readonly OFF: 'off';
3015
+ readonly NORMAL: 'normal';
3016
+ };
3017
+ export type SdCppUCacheMode = (typeof SdCppUCacheMode)[keyof typeof SdCppUCacheMode];
2915
3018
  /**
2916
3019
  * AI Toolkit training for Stable Diffusion XL models
2917
3020
  */
@@ -2932,6 +3035,32 @@ export type SdxlAiToolkitTrainingInput = AiToolkitTrainingInput & {
2932
3035
  } & {
2933
3036
  ecosystem: 'sdxl';
2934
3037
  };
3038
+ export type SdxlCreateImageGenInput = SdxlImageGenInput & {
3039
+ width?: number;
3040
+ height?: number;
3041
+ } & {
3042
+ operation: 'createImage';
3043
+ };
3044
+ export type SdxlImageGenInput = SdCppImageGenInput & {
3045
+ operation: string;
3046
+ prompt: string;
3047
+ negativePrompt?: string | null;
3048
+ sampleMethod?: SdCppSampleMethod;
3049
+ schedule?: SdCppSchedule;
3050
+ steps?: number;
3051
+ cfgScale?: number;
3052
+ seed?: number | null;
3053
+ quantity?: number;
3054
+ model: string;
3055
+ vaeModel?: string | null;
3056
+ loras?: {
3057
+ [key: string]: number;
3058
+ };
3059
+ embeddings?: Array<string>;
3060
+ uCache?: SdCppUCacheMode;
3061
+ } & {
3062
+ ecosystem: 'sdxl';
3063
+ };
2935
3064
  export type SeedreamImageGenInput = ImageGenInput & {
2936
3065
  engine: 'seedream';
2937
3066
  } & {
@@ -260,6 +260,10 @@ export const SdCppSchedule = {
260
260
  AYS: 'ays',
261
261
  BONG_TANGENT: 'bong_tangent',
262
262
  };
263
+ export const SdCppUCacheMode = {
264
+ OFF: 'off',
265
+ NORMAL: 'normal',
266
+ };
263
267
  export const SeedreamVersion = {
264
268
  V3: 'v3',
265
269
  V4: 'v4',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.37",
3
+ "version": "0.2.0-beta.38",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",