fal-endpoint-types 1.3.43 → 1.3.45

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fal-endpoint-types",
3
- "version": "1.3.43",
3
+ "version": "1.3.45",
4
4
  "description": "TypeScript types for Fal AI endpoints generated from the OpenAPI schemas.",
5
5
  "homepage": "https://github.com/rawpixel-vincent/fal-endpoint-types#readme",
6
6
  "bugs": {
@@ -1777,6 +1777,7 @@ export interface UsageInfo {
1777
1777
  completion_tokens?: number;
1778
1778
  cost: number;
1779
1779
  prompt_tokens?: number;
1780
+ prompt_tokens_details?: PromptTokensDetails;
1780
1781
  /**
1781
1782
  * Total Tokens
1782
1783
  * @default 0
@@ -2661,6 +2662,19 @@ export interface PronunciationDict {
2661
2662
  tone_list?: string[];
2662
2663
  }
2663
2664
 
2665
+ export interface PromptTokensDetails {
2666
+ /**
2667
+ * Cache Write Tokens
2668
+ * @default 0
2669
+ */
2670
+ cache_write_tokens?: number;
2671
+ /**
2672
+ * Cached Tokens
2673
+ * @default 0
2674
+ */
2675
+ cached_tokens?: number;
2676
+ }
2677
+
2664
2678
  export interface PromptObject_1 {
2665
2679
  /**
2666
2680
  * Action
@@ -3283,6 +3297,48 @@ export interface MaskMetadata {
3283
3297
  score?: number;
3284
3298
  }
3285
3299
 
3300
+ export interface MapImageFile {
3301
+ /**
3302
+ * Content Type
3303
+ * @description The mime type of the file.
3304
+ * @example image/png
3305
+ */
3306
+ content_type?: string;
3307
+ /**
3308
+ * File Name
3309
+ * @description The name of the file. It will be auto-generated if not provided.
3310
+ * @example z9RV14K95DvU.png
3311
+ */
3312
+ file_name?: string;
3313
+ /**
3314
+ * File Size
3315
+ * @description The size of the file in bytes.
3316
+ * @example 4404019
3317
+ */
3318
+ file_size?: number;
3319
+ /**
3320
+ * Height
3321
+ * @description The height of the image
3322
+ */
3323
+ height?: number;
3324
+ /**
3325
+ * Map Type
3326
+ * @description Which PBR map this image represents.
3327
+ * @enum {string}
3328
+ */
3329
+ map_type: 'basecolor' | 'normal' | 'roughness' | 'metalness' | 'height';
3330
+ /**
3331
+ * Url
3332
+ * @description The URL where the file can be downloaded from.
3333
+ */
3334
+ url: string;
3335
+ /**
3336
+ * Width
3337
+ * @description The width of the image
3338
+ */
3339
+ width?: number;
3340
+ }
3341
+
3286
3342
  export interface LoudnormSummary {
3287
3343
  /**
3288
3344
  * Input Integrated
@@ -3363,6 +3419,29 @@ export interface LoudnessNormalizationSetting {
3363
3419
  target_range?: number;
3364
3420
  }
3365
3421
 
3422
+ export interface LoraWeight_6 {
3423
+ /**
3424
+ * Force
3425
+ * @description If set to true, the embedding will be forced to be used.
3426
+ * @default false
3427
+ */
3428
+ force?: boolean;
3429
+ /**
3430
+ * Path
3431
+ * @description URL or path to a LoRA safetensors file. Or HF model name that resolves to safetensors weights.
3432
+ * @example https://civitai.com/api/download/models/135931
3433
+ * @example https://filebin.net/3chfqasxpqu21y8n/my-custom-lora-v1.safetensors
3434
+ */
3435
+ path: string;
3436
+ /**
3437
+ * Scale
3438
+ * @description The scale of the LoRA weight. This is used to scale the LoRA weight
3439
+ * before merging it with the base model.
3440
+ * @default 1
3441
+ */
3442
+ scale?: number;
3443
+ }
3444
+
3366
3445
  export interface LoraWeight_5 {
3367
3446
  /**
3368
3447
  * Path
@@ -3879,6 +3958,30 @@ export interface ImageSize {
3879
3958
  width?: number;
3880
3959
  }
3881
3960
 
3961
+ export interface ImageReference {
3962
+ /**
3963
+ * Image Url
3964
+ * @description URL of the reference image
3965
+ * @example https://v3.fal.media/files/zebra/qL93Je8ezvzQgDOEzTjKF_KhGKZTEebZcDw6T5rwQPK_output.png
3966
+ */
3967
+ image_url: string;
3968
+ /**
3969
+ * Ref Name
3970
+ * @description A short name for this reference. Use @ref_name in the prompt to refer to this image.
3971
+ * @example character
3972
+ * @example dog
3973
+ * @example room
3974
+ */
3975
+ ref_name: string;
3976
+ /**
3977
+ * Type
3978
+ * @description Type of reference: 'subject' for character/object references, 'background' for scene/environment references
3979
+ * @default subject
3980
+ * @enum {string}
3981
+ */
3982
+ type?: 'subject' | 'background';
3983
+ }
3984
+
3882
3985
  export interface ImagePrompt {
3883
3986
  image_url?: string;
3884
3987
  /**
@@ -6484,6 +6587,30 @@ export interface AudioTimeSpan {
6484
6587
  start: number;
6485
6588
  }
6486
6589
 
6590
+ export interface AudioSetting25 {
6591
+ /**
6592
+ * Bitrate
6593
+ * @description Bitrate of generated audio
6594
+ * @default 256000
6595
+ * @enum {integer}
6596
+ */
6597
+ bitrate?: 32000 | 64000 | 128000 | 256000;
6598
+ /**
6599
+ * Format
6600
+ * @description Audio format
6601
+ * @default mp3
6602
+ * @enum {string}
6603
+ */
6604
+ format?: 'mp3' | 'wav' | 'pcm';
6605
+ /**
6606
+ * Sample Rate
6607
+ * @description Sample rate of generated audio
6608
+ * @default 44100
6609
+ * @enum {integer}
6610
+ */
6611
+ sample_rate?: 16000 | 24000 | 32000 | 44100;
6612
+ }
6613
+
6487
6614
  export interface AudioSetting_1 {
6488
6615
  /**
6489
6616
  * Bitrate
@@ -824,6 +824,11 @@ declare global {
824
824
  output: falEndpoints.ViduQ3TextToVideoOutput;
825
825
  };
826
826
 
827
+ 'fal-ai/vidu/q3/reference-to-video/mix': {
828
+ input: falEndpoints.ViduQ3ReferenceToVideoMixInput;
829
+ output: falEndpoints.ViduQ3ReferenceToVideoMixOutput;
830
+ };
831
+
827
832
  'fal-ai/vidu/q3/image-to-video/turbo': {
828
833
  input: falEndpoints.ViduQ3ImageToVideoTurboInput;
829
834
  output: falEndpoints.ViduQ3ImageToVideoTurboOutput;
@@ -2149,6 +2154,26 @@ declare global {
2149
2154
  output: falEndpoints.PixverseExtendOutput;
2150
2155
  };
2151
2156
 
2157
+ 'fal-ai/pixverse/c1/transition': {
2158
+ input: falEndpoints.PixverseC1TransitionInput;
2159
+ output: falEndpoints.PixverseC1TransitionOutput;
2160
+ };
2161
+
2162
+ 'fal-ai/pixverse/c1/text-to-video': {
2163
+ input: falEndpoints.PixverseC1TextToVideoInput;
2164
+ output: falEndpoints.PixverseC1TextToVideoOutput;
2165
+ };
2166
+
2167
+ 'fal-ai/pixverse/c1/reference-to-video': {
2168
+ input: falEndpoints.PixverseC1ReferenceToVideoInput;
2169
+ output: falEndpoints.PixverseC1ReferenceToVideoOutput;
2170
+ };
2171
+
2172
+ 'fal-ai/pixverse/c1/image-to-video': {
2173
+ input: falEndpoints.PixverseC1ImageToVideoInput;
2174
+ output: falEndpoints.PixverseC1ImageToVideoOutput;
2175
+ };
2176
+
2152
2177
  'fal-ai/pixart-sigma': {
2153
2178
  input: falEndpoints.PixartSigmaInput;
2154
2179
  output: falEndpoints.PixartSigmaOutput;
@@ -2249,6 +2274,21 @@ declare global {
2249
2274
  output: falEndpoints.PersonaplexOutput;
2250
2275
  };
2251
2276
 
2277
+ 'fal-ai/patina/material/extract': {
2278
+ input: { [x in string]: any };
2279
+ output: { [x in string]: any };
2280
+ };
2281
+
2282
+ 'fal-ai/patina/material': {
2283
+ input: { [x in string]: any };
2284
+ output: { [x in string]: any };
2285
+ };
2286
+
2287
+ 'fal-ai/patina': {
2288
+ input: falEndpoints.PatinaInput;
2289
+ output: falEndpoints.PatinaOutput;
2290
+ };
2291
+
2252
2292
  'fal-ai/pasd': {
2253
2293
  input: falEndpoints.PasdInput;
2254
2294
  output: falEndpoints.PasdOutput;
@@ -2644,6 +2684,16 @@ declare global {
2644
2684
  output: falEndpoints.MinimaxHailuo02FastImageToVideoOutput;
2645
2685
  };
2646
2686
 
2687
+ 'fal-ai/minimax-music/v2.6': {
2688
+ input: falEndpoints.MinimaxMusicV26Input;
2689
+ output: falEndpoints.MinimaxMusicV26Output;
2690
+ };
2691
+
2692
+ 'fal-ai/minimax-music/v2.5': {
2693
+ input: falEndpoints.MinimaxMusicV25Input;
2694
+ output: falEndpoints.MinimaxMusicV25Output;
2695
+ };
2696
+
2647
2697
  'fal-ai/minimax-music/v2': {
2648
2698
  input: falEndpoints.MinimaxMusicV2Input;
2649
2699
  output: falEndpoints.MinimaxMusicV2Output;