fal-endpoint-types 1.3.32 → 1.3.34
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 +1 -1
- package/types/fal/endpoints/components.d.ts +74 -34
- package/types/fal/endpoints/index.d.ts +64 -9
- package/types/fal/endpoints/schema.d.ts +2145 -2060
package/package.json
CHANGED
|
@@ -2577,21 +2577,6 @@ export interface ReferenceFace {
|
|
|
2577
2577
|
image_url: string;
|
|
2578
2578
|
}
|
|
2579
2579
|
|
|
2580
|
-
export interface RawImage {
|
|
2581
|
-
/**
|
|
2582
|
-
* Content
|
|
2583
|
-
* Format: binary
|
|
2584
|
-
*/
|
|
2585
|
-
content: string;
|
|
2586
|
-
/**
|
|
2587
|
-
* Content Type
|
|
2588
|
-
* @default image/jpeg
|
|
2589
|
-
*/
|
|
2590
|
-
content_type?: string;
|
|
2591
|
-
height: number;
|
|
2592
|
-
width: number;
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
2580
|
export interface PronunciationDictionaryLocator {
|
|
2596
2581
|
/**
|
|
2597
2582
|
* Pronunciation Dictionary Id
|
|
@@ -2984,6 +2969,28 @@ export interface PhotographicCharacteristics {
|
|
|
2984
2969
|
lens_focal_length?: string;
|
|
2985
2970
|
}
|
|
2986
2971
|
|
|
2972
|
+
export interface OutputFormat {
|
|
2973
|
+
/**
|
|
2974
|
+
* Bit Rate
|
|
2975
|
+
* @description Bit rate in bps. Only applicable for MP3 codec. Defaults to 128000 for MP3.
|
|
2976
|
+
*/
|
|
2977
|
+
bit_rate?: 32000 | 64000 | 96000 | 128000 | 192000;
|
|
2978
|
+
/**
|
|
2979
|
+
* Codec
|
|
2980
|
+
* @description Audio codec. Supported: mp3, wav, pcm, mulaw, alaw.
|
|
2981
|
+
* @default mp3
|
|
2982
|
+
* @enum {string}
|
|
2983
|
+
*/
|
|
2984
|
+
codec?: 'mp3' | 'wav' | 'pcm' | 'mulaw' | 'alaw';
|
|
2985
|
+
/**
|
|
2986
|
+
* Sample Rate
|
|
2987
|
+
* @description Sample rate in Hz.
|
|
2988
|
+
* @default 24000
|
|
2989
|
+
* @enum {integer}
|
|
2990
|
+
*/
|
|
2991
|
+
sample_rate?: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2987
2994
|
export interface OmniVideoElementInput {
|
|
2988
2995
|
/**
|
|
2989
2996
|
* Frontal Image Url
|
|
@@ -3297,31 +3304,34 @@ export interface LoraWeight_5 {
|
|
|
3297
3304
|
/**
|
|
3298
3305
|
* Path
|
|
3299
3306
|
* @description URL or the path to the LoRA weights.
|
|
3300
|
-
* @example https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors
|
|
3301
3307
|
*/
|
|
3302
3308
|
path: string;
|
|
3303
3309
|
/**
|
|
3304
3310
|
* Scale
|
|
3305
3311
|
* @description The scale of the LoRA weight. This is used to scale the LoRA weight
|
|
3306
3312
|
* before merging it with the base model.
|
|
3307
|
-
* @default
|
|
3313
|
+
* @default 1
|
|
3308
3314
|
*/
|
|
3309
3315
|
scale?: number;
|
|
3316
|
+
/**
|
|
3317
|
+
* Weight Name
|
|
3318
|
+
* @description Name of the LoRA weight. Used only if `path` is a Hugging Face repository, and required only if you have more than 1 safetensors file in the repo.
|
|
3319
|
+
*/
|
|
3320
|
+
weight_name?: string;
|
|
3310
3321
|
}
|
|
3311
3322
|
|
|
3312
3323
|
export interface LoraWeight_4 {
|
|
3313
3324
|
/**
|
|
3314
3325
|
* Path
|
|
3315
|
-
* @description URL or the path to the LoRA weights.
|
|
3316
|
-
* @example https://
|
|
3317
|
-
* @example https://filebin.net/3chfqasxpqu21y8n/my-custom-lora-v1.safetensors
|
|
3326
|
+
* @description URL or the path to the LoRA weights.
|
|
3327
|
+
* @example https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors
|
|
3318
3328
|
*/
|
|
3319
3329
|
path: string;
|
|
3320
3330
|
/**
|
|
3321
3331
|
* Scale
|
|
3322
3332
|
* @description The scale of the LoRA weight. This is used to scale the LoRA weight
|
|
3323
3333
|
* before merging it with the base model.
|
|
3324
|
-
* @default 1
|
|
3334
|
+
* @default 0.1
|
|
3325
3335
|
*/
|
|
3326
3336
|
scale?: number;
|
|
3327
3337
|
}
|
|
@@ -3329,7 +3339,9 @@ export interface LoraWeight_4 {
|
|
|
3329
3339
|
export interface LoraWeight_3 {
|
|
3330
3340
|
/**
|
|
3331
3341
|
* Path
|
|
3332
|
-
* @description URL or the path to the LoRA weights.
|
|
3342
|
+
* @description URL or the path to the LoRA weights. Or HF model name.
|
|
3343
|
+
* @example https://civitai.com/api/download/models/135931
|
|
3344
|
+
* @example https://filebin.net/3chfqasxpqu21y8n/my-custom-lora-v1.safetensors
|
|
3333
3345
|
*/
|
|
3334
3346
|
path: string;
|
|
3335
3347
|
/**
|
|
@@ -3339,11 +3351,6 @@ export interface LoraWeight_3 {
|
|
|
3339
3351
|
* @default 1
|
|
3340
3352
|
*/
|
|
3341
3353
|
scale?: number;
|
|
3342
|
-
/**
|
|
3343
|
-
* Weight Name
|
|
3344
|
-
* @description Name of the LoRA weight. Used only if `path` is a Hugging Face repository, and required only if you have more than 1 safetensors file in the repo.
|
|
3345
|
-
*/
|
|
3346
|
-
weight_name?: string;
|
|
3347
3354
|
}
|
|
3348
3355
|
|
|
3349
3356
|
export interface LoraWeight_2 {
|
|
@@ -3462,7 +3469,7 @@ export interface LoRAInput_2 {
|
|
|
3462
3469
|
export interface LoRAInput_1 {
|
|
3463
3470
|
/**
|
|
3464
3471
|
* Path
|
|
3465
|
-
* @description URL, HuggingFace repo ID (owner/repo)
|
|
3472
|
+
* @description URL, HuggingFace repo ID (owner/repo) to lora weights.
|
|
3466
3473
|
*/
|
|
3467
3474
|
path: string;
|
|
3468
3475
|
/**
|
|
@@ -3471,12 +3478,17 @@ export interface LoRAInput_1 {
|
|
|
3471
3478
|
* @default 1
|
|
3472
3479
|
*/
|
|
3473
3480
|
scale?: number;
|
|
3481
|
+
/**
|
|
3482
|
+
* Weight Name
|
|
3483
|
+
* @description Name of the LoRA weight. Only used if `path` is a HuggingFace repository, and is only required when the repository contains multiple LoRA weights.
|
|
3484
|
+
*/
|
|
3485
|
+
weight_name?: string;
|
|
3474
3486
|
}
|
|
3475
3487
|
|
|
3476
3488
|
export interface LoRAInput {
|
|
3477
3489
|
/**
|
|
3478
3490
|
* Path
|
|
3479
|
-
* @description URL, HuggingFace repo ID (owner/repo) to
|
|
3491
|
+
* @description URL, HuggingFace repo ID (owner/repo), or local path to LoRA weights.
|
|
3480
3492
|
*/
|
|
3481
3493
|
path: string;
|
|
3482
3494
|
/**
|
|
@@ -3485,11 +3497,6 @@ export interface LoRAInput {
|
|
|
3485
3497
|
* @default 1
|
|
3486
3498
|
*/
|
|
3487
3499
|
scale?: number;
|
|
3488
|
-
/**
|
|
3489
|
-
* Weight Name
|
|
3490
|
-
* @description Name of the LoRA weight. Only used if `path` is a HuggingFace repository, and is only required when the repository contains multiple LoRA weights.
|
|
3491
|
-
*/
|
|
3492
|
-
weight_name?: string;
|
|
3493
3500
|
}
|
|
3494
3501
|
|
|
3495
3502
|
export interface LightingDetails {
|
|
@@ -4141,6 +4148,39 @@ export interface Frame {
|
|
|
4141
4148
|
url: string;
|
|
4142
4149
|
}
|
|
4143
4150
|
|
|
4151
|
+
export interface ForceParams {
|
|
4152
|
+
/**
|
|
4153
|
+
* Angle
|
|
4154
|
+
* @description Direction of force in degrees. 0 = right, 90 = up, 180 = left, 270 = down.
|
|
4155
|
+
* @example 0
|
|
4156
|
+
*/
|
|
4157
|
+
angle: number;
|
|
4158
|
+
/**
|
|
4159
|
+
* Magnitude
|
|
4160
|
+
* @description Strength of the force (30 = gentle push, 400 = strong impact).
|
|
4161
|
+
* @example 350
|
|
4162
|
+
*/
|
|
4163
|
+
magnitude: number;
|
|
4164
|
+
/**
|
|
4165
|
+
* Mass
|
|
4166
|
+
* @description Mass of the object (1.0 to 4.0). Use -1 to let the model infer mass automatically.
|
|
4167
|
+
* @default -1
|
|
4168
|
+
*/
|
|
4169
|
+
mass?: number;
|
|
4170
|
+
/**
|
|
4171
|
+
* X
|
|
4172
|
+
* @description Normalized x position of the force application point (0 = left, 1 = right).
|
|
4173
|
+
* @example 0.22
|
|
4174
|
+
*/
|
|
4175
|
+
x: number;
|
|
4176
|
+
/**
|
|
4177
|
+
* Y
|
|
4178
|
+
* @description Normalized y position of the force application point (0 = top, 1 = bottom).
|
|
4179
|
+
* @example 0.18
|
|
4180
|
+
*/
|
|
4181
|
+
y: number;
|
|
4182
|
+
}
|
|
4183
|
+
|
|
4144
4184
|
export interface File_2 {
|
|
4145
4185
|
/**
|
|
4146
4186
|
* Content Type
|
|
@@ -4,6 +4,11 @@ declare global {
|
|
|
4
4
|
export namespace fal {}
|
|
5
5
|
export namespace fal.endpoints {
|
|
6
6
|
export interface Endpoints {
|
|
7
|
+
'xai/tts/v1': {
|
|
8
|
+
input: falEndpoints.XaiTtsV1Input;
|
|
9
|
+
output: falEndpoints.XaiTtsV1Output;
|
|
10
|
+
};
|
|
11
|
+
|
|
7
12
|
'xai/grok-imagine-video/text-to-video': {
|
|
8
13
|
input: falEndpoints.XaiGrokImagineVideoTextToVideoInput;
|
|
9
14
|
output: falEndpoints.XaiGrokImagineVideoTextToVideoOutput;
|
|
@@ -299,6 +304,16 @@ declare global {
|
|
|
299
304
|
output: falEndpoints.ZonosOutput;
|
|
300
305
|
};
|
|
301
306
|
|
|
307
|
+
'fal-ai/z-image/turbo/tiling/lora': {
|
|
308
|
+
input: falEndpoints.ZImageTurboTilingLoraInput;
|
|
309
|
+
output: falEndpoints.ZImageTurboTilingLoraOutput;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
'fal-ai/z-image/turbo/tiling': {
|
|
313
|
+
input: falEndpoints.ZImageTurboTilingInput;
|
|
314
|
+
output: falEndpoints.ZImageTurboTilingOutput;
|
|
315
|
+
};
|
|
316
|
+
|
|
302
317
|
'fal-ai/z-image/turbo/lora': {
|
|
303
318
|
input: falEndpoints.ZImageTurboLoraInput;
|
|
304
319
|
output: falEndpoints.ZImageTurboLoraOutput;
|
|
@@ -1204,6 +1219,11 @@ declare global {
|
|
|
1204
1219
|
output: falEndpoints.Sora2ImageToVideoOutput;
|
|
1205
1220
|
};
|
|
1206
1221
|
|
|
1222
|
+
'fal-ai/sora-2/characters': {
|
|
1223
|
+
input: falEndpoints.Sora2CharactersInput;
|
|
1224
|
+
output: falEndpoints.Sora2CharactersOutput;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1207
1227
|
'fal-ai/smart-turn': {
|
|
1208
1228
|
input: falEndpoints.SmartTurnInput;
|
|
1209
1229
|
output: falEndpoints.SmartTurnOutput;
|
|
@@ -1214,11 +1234,6 @@ declare global {
|
|
|
1214
1234
|
output: falEndpoints.SkyreelsI2vOutput;
|
|
1215
1235
|
};
|
|
1216
1236
|
|
|
1217
|
-
'fal-ai/sky-raccoon': {
|
|
1218
|
-
input: falEndpoints.SkyRaccoonInput;
|
|
1219
|
-
output: falEndpoints.SkyRaccoonOutput;
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
1237
|
'fal-ai/silero-vad': {
|
|
1223
1238
|
input: falEndpoints.SileroVadInput;
|
|
1224
1239
|
output: falEndpoints.SileroVadOutput;
|
|
@@ -2085,8 +2100,8 @@ declare global {
|
|
|
2085
2100
|
};
|
|
2086
2101
|
|
|
2087
2102
|
'fal-ai/personaplex/realtime': {
|
|
2088
|
-
input:
|
|
2089
|
-
output:
|
|
2103
|
+
input: { [x in string]: any };
|
|
2104
|
+
output: { [x in string]: any };
|
|
2090
2105
|
};
|
|
2091
2106
|
|
|
2092
2107
|
'fal-ai/personaplex': {
|
|
@@ -2139,6 +2154,21 @@ declare global {
|
|
|
2139
2154
|
output: falEndpoints.OmnipartOutput;
|
|
2140
2155
|
};
|
|
2141
2156
|
|
|
2157
|
+
'fal-ai/omnilottie/video-to-lottie': {
|
|
2158
|
+
input: falEndpoints.OmnilottieVideoToLottieInput;
|
|
2159
|
+
output: falEndpoints.OmnilottieVideoToLottieOutput;
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
'fal-ai/omnilottie/image-to-lottie': {
|
|
2163
|
+
input: falEndpoints.OmnilottieImageToLottieInput;
|
|
2164
|
+
output: falEndpoints.OmnilottieImageToLottieOutput;
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
'fal-ai/omnilottie': {
|
|
2168
|
+
input: falEndpoints.OmnilottieInput;
|
|
2169
|
+
output: falEndpoints.OmnilottieOutput;
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2142
2172
|
'fal-ai/omnigen-v2': {
|
|
2143
2173
|
input: falEndpoints.OmnigenV2Input;
|
|
2144
2174
|
output: falEndpoints.OmnigenV2Output;
|
|
@@ -4289,6 +4319,11 @@ declare global {
|
|
|
4289
4319
|
output: falEndpoints.GotOcrV2Output;
|
|
4290
4320
|
};
|
|
4291
4321
|
|
|
4322
|
+
'fal-ai/goal-force': {
|
|
4323
|
+
input: falEndpoints.GoalForceInput;
|
|
4324
|
+
output: falEndpoints.GoalForceOutput;
|
|
4325
|
+
};
|
|
4326
|
+
|
|
4292
4327
|
'fal-ai/glm-image/image-to-image': {
|
|
4293
4328
|
input: falEndpoints.GlmImageImageToImageInput;
|
|
4294
4329
|
output: falEndpoints.GlmImageImageToImageOutput;
|
|
@@ -4685,8 +4720,18 @@ declare global {
|
|
|
4685
4720
|
};
|
|
4686
4721
|
|
|
4687
4722
|
'fal-ai/flux-2/klein/realtime': {
|
|
4688
|
-
input:
|
|
4689
|
-
output:
|
|
4723
|
+
input: { [x in string]: any };
|
|
4724
|
+
output: { [x in string]: any };
|
|
4725
|
+
};
|
|
4726
|
+
|
|
4727
|
+
'fal-ai/flux-2/klein/9b/lora': {
|
|
4728
|
+
input: falEndpoints.Flux2Klein9bLoraInput;
|
|
4729
|
+
output: falEndpoints.Flux2Klein9bLoraOutput;
|
|
4730
|
+
};
|
|
4731
|
+
|
|
4732
|
+
'fal-ai/flux-2/klein/9b/edit/lora': {
|
|
4733
|
+
input: falEndpoints.Flux2Klein9bEditLoraInput;
|
|
4734
|
+
output: falEndpoints.Flux2Klein9bEditLoraOutput;
|
|
4690
4735
|
};
|
|
4691
4736
|
|
|
4692
4737
|
'fal-ai/flux-2/klein/9b/edit': {
|
|
@@ -4719,6 +4764,16 @@ declare global {
|
|
|
4719
4764
|
output: falEndpoints.Flux2Klein9bOutput;
|
|
4720
4765
|
};
|
|
4721
4766
|
|
|
4767
|
+
'fal-ai/flux-2/klein/4b/lora': {
|
|
4768
|
+
input: falEndpoints.Flux2Klein4bLoraInput;
|
|
4769
|
+
output: falEndpoints.Flux2Klein4bLoraOutput;
|
|
4770
|
+
};
|
|
4771
|
+
|
|
4772
|
+
'fal-ai/flux-2/klein/4b/edit/lora': {
|
|
4773
|
+
input: falEndpoints.Flux2Klein4bEditLoraInput;
|
|
4774
|
+
output: falEndpoints.Flux2Klein4bEditLoraOutput;
|
|
4775
|
+
};
|
|
4776
|
+
|
|
4722
4777
|
'fal-ai/flux-2/klein/4b/edit': {
|
|
4723
4778
|
input: falEndpoints.Flux2Klein4bEditInput;
|
|
4724
4779
|
output: falEndpoints.Flux2Klein4bEditOutput;
|