fal-endpoint-types 1.3.33 → 1.3.35
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 +88 -19
- package/types/fal/endpoints/index.d.ts +60 -5
- package/types/fal/endpoints/schema.d.ts +1759 -1011
package/package.json
CHANGED
|
@@ -2357,6 +2357,20 @@ export interface SemanticImageInput {
|
|
|
2357
2357
|
reference: string;
|
|
2358
2358
|
}
|
|
2359
2359
|
|
|
2360
|
+
export interface Seed2MiniMessage {
|
|
2361
|
+
/**
|
|
2362
|
+
* Content
|
|
2363
|
+
* @description The content of the message. Can be a string for text-only messages, or a list of content parts for multimodal messages (e.g. with images).
|
|
2364
|
+
*/
|
|
2365
|
+
content: string | Record<string, never>[];
|
|
2366
|
+
/**
|
|
2367
|
+
* Role
|
|
2368
|
+
* @description The role of the message author.
|
|
2369
|
+
* @enum {string}
|
|
2370
|
+
*/
|
|
2371
|
+
role: 'system' | 'user' | 'assistant';
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2360
2374
|
export interface SAM3DObjectMetadata {
|
|
2361
2375
|
/**
|
|
2362
2376
|
* Camera Pose
|
|
@@ -2984,6 +2998,28 @@ export interface PhotographicCharacteristics {
|
|
|
2984
2998
|
lens_focal_length?: string;
|
|
2985
2999
|
}
|
|
2986
3000
|
|
|
3001
|
+
export interface OutputFormat {
|
|
3002
|
+
/**
|
|
3003
|
+
* Bit Rate
|
|
3004
|
+
* @description Bit rate in bps. Only applicable for MP3 codec. Defaults to 128000 for MP3.
|
|
3005
|
+
*/
|
|
3006
|
+
bit_rate?: 32000 | 64000 | 96000 | 128000 | 192000;
|
|
3007
|
+
/**
|
|
3008
|
+
* Codec
|
|
3009
|
+
* @description Audio codec. Supported: mp3, wav, pcm, mulaw, alaw.
|
|
3010
|
+
* @default mp3
|
|
3011
|
+
* @enum {string}
|
|
3012
|
+
*/
|
|
3013
|
+
codec?: 'mp3' | 'wav' | 'pcm' | 'mulaw' | 'alaw';
|
|
3014
|
+
/**
|
|
3015
|
+
* Sample Rate
|
|
3016
|
+
* @description Sample rate in Hz.
|
|
3017
|
+
* @default 24000
|
|
3018
|
+
* @enum {integer}
|
|
3019
|
+
*/
|
|
3020
|
+
sample_rate?: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
2987
3023
|
export interface OmniVideoElementInput {
|
|
2988
3024
|
/**
|
|
2989
3025
|
* Frontal Image Url
|
|
@@ -3297,31 +3333,34 @@ export interface LoraWeight_5 {
|
|
|
3297
3333
|
/**
|
|
3298
3334
|
* Path
|
|
3299
3335
|
* @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
3336
|
*/
|
|
3302
3337
|
path: string;
|
|
3303
3338
|
/**
|
|
3304
3339
|
* Scale
|
|
3305
3340
|
* @description The scale of the LoRA weight. This is used to scale the LoRA weight
|
|
3306
3341
|
* before merging it with the base model.
|
|
3307
|
-
* @default
|
|
3342
|
+
* @default 1
|
|
3308
3343
|
*/
|
|
3309
3344
|
scale?: number;
|
|
3345
|
+
/**
|
|
3346
|
+
* Weight Name
|
|
3347
|
+
* @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.
|
|
3348
|
+
*/
|
|
3349
|
+
weight_name?: string;
|
|
3310
3350
|
}
|
|
3311
3351
|
|
|
3312
3352
|
export interface LoraWeight_4 {
|
|
3313
3353
|
/**
|
|
3314
3354
|
* 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
|
|
3355
|
+
* @description URL or the path to the LoRA weights.
|
|
3356
|
+
* @example https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors
|
|
3318
3357
|
*/
|
|
3319
3358
|
path: string;
|
|
3320
3359
|
/**
|
|
3321
3360
|
* Scale
|
|
3322
3361
|
* @description The scale of the LoRA weight. This is used to scale the LoRA weight
|
|
3323
3362
|
* before merging it with the base model.
|
|
3324
|
-
* @default 1
|
|
3363
|
+
* @default 0.1
|
|
3325
3364
|
*/
|
|
3326
3365
|
scale?: number;
|
|
3327
3366
|
}
|
|
@@ -3329,7 +3368,9 @@ export interface LoraWeight_4 {
|
|
|
3329
3368
|
export interface LoraWeight_3 {
|
|
3330
3369
|
/**
|
|
3331
3370
|
* Path
|
|
3332
|
-
* @description URL or the path to the LoRA weights.
|
|
3371
|
+
* @description URL or the path to the LoRA weights. Or HF model name.
|
|
3372
|
+
* @example https://civitai.com/api/download/models/135931
|
|
3373
|
+
* @example https://filebin.net/3chfqasxpqu21y8n/my-custom-lora-v1.safetensors
|
|
3333
3374
|
*/
|
|
3334
3375
|
path: string;
|
|
3335
3376
|
/**
|
|
@@ -3339,11 +3380,6 @@ export interface LoraWeight_3 {
|
|
|
3339
3380
|
* @default 1
|
|
3340
3381
|
*/
|
|
3341
3382
|
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
3383
|
}
|
|
3348
3384
|
|
|
3349
3385
|
export interface LoraWeight_2 {
|
|
@@ -3462,7 +3498,7 @@ export interface LoRAInput_2 {
|
|
|
3462
3498
|
export interface LoRAInput_1 {
|
|
3463
3499
|
/**
|
|
3464
3500
|
* Path
|
|
3465
|
-
* @description URL, HuggingFace repo ID (owner/repo)
|
|
3501
|
+
* @description URL, HuggingFace repo ID (owner/repo) to lora weights.
|
|
3466
3502
|
*/
|
|
3467
3503
|
path: string;
|
|
3468
3504
|
/**
|
|
@@ -3471,12 +3507,17 @@ export interface LoRAInput_1 {
|
|
|
3471
3507
|
* @default 1
|
|
3472
3508
|
*/
|
|
3473
3509
|
scale?: number;
|
|
3510
|
+
/**
|
|
3511
|
+
* Weight Name
|
|
3512
|
+
* @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.
|
|
3513
|
+
*/
|
|
3514
|
+
weight_name?: string;
|
|
3474
3515
|
}
|
|
3475
3516
|
|
|
3476
3517
|
export interface LoRAInput {
|
|
3477
3518
|
/**
|
|
3478
3519
|
* Path
|
|
3479
|
-
* @description URL, HuggingFace repo ID (owner/repo) to
|
|
3520
|
+
* @description URL, HuggingFace repo ID (owner/repo), or local path to LoRA weights.
|
|
3480
3521
|
*/
|
|
3481
3522
|
path: string;
|
|
3482
3523
|
/**
|
|
@@ -3485,11 +3526,6 @@ export interface LoRAInput {
|
|
|
3485
3526
|
* @default 1
|
|
3486
3527
|
*/
|
|
3487
3528
|
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
3529
|
}
|
|
3494
3530
|
|
|
3495
3531
|
export interface LightingDetails {
|
|
@@ -4141,6 +4177,39 @@ export interface Frame {
|
|
|
4141
4177
|
url: string;
|
|
4142
4178
|
}
|
|
4143
4179
|
|
|
4180
|
+
export interface ForceParams {
|
|
4181
|
+
/**
|
|
4182
|
+
* Angle
|
|
4183
|
+
* @description Direction of force in degrees. 0 = right, 90 = up, 180 = left, 270 = down.
|
|
4184
|
+
* @example 0
|
|
4185
|
+
*/
|
|
4186
|
+
angle: number;
|
|
4187
|
+
/**
|
|
4188
|
+
* Magnitude
|
|
4189
|
+
* @description Strength of the force (30 = gentle push, 400 = strong impact).
|
|
4190
|
+
* @example 350
|
|
4191
|
+
*/
|
|
4192
|
+
magnitude: number;
|
|
4193
|
+
/**
|
|
4194
|
+
* Mass
|
|
4195
|
+
* @description Mass of the object (1.0 to 4.0). Use -1 to let the model infer mass automatically.
|
|
4196
|
+
* @default -1
|
|
4197
|
+
*/
|
|
4198
|
+
mass?: number;
|
|
4199
|
+
/**
|
|
4200
|
+
* X
|
|
4201
|
+
* @description Normalized x position of the force application point (0 = left, 1 = right).
|
|
4202
|
+
* @example 0.22
|
|
4203
|
+
*/
|
|
4204
|
+
x: number;
|
|
4205
|
+
/**
|
|
4206
|
+
* Y
|
|
4207
|
+
* @description Normalized y position of the force application point (0 = top, 1 = bottom).
|
|
4208
|
+
* @example 0.18
|
|
4209
|
+
*/
|
|
4210
|
+
y: number;
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4144
4213
|
export interface File_2 {
|
|
4145
4214
|
/**
|
|
4146
4215
|
* 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;
|
|
@@ -1219,11 +1234,6 @@ declare global {
|
|
|
1219
1234
|
output: falEndpoints.SkyreelsI2vOutput;
|
|
1220
1235
|
};
|
|
1221
1236
|
|
|
1222
|
-
'fal-ai/sky-raccoon': {
|
|
1223
|
-
input: falEndpoints.SkyRaccoonInput;
|
|
1224
|
-
output: falEndpoints.SkyRaccoonOutput;
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
1237
|
'fal-ai/silero-vad': {
|
|
1228
1238
|
input: falEndpoints.SileroVadInput;
|
|
1229
1239
|
output: falEndpoints.SileroVadOutput;
|
|
@@ -2144,6 +2154,21 @@ declare global {
|
|
|
2144
2154
|
output: falEndpoints.OmnipartOutput;
|
|
2145
2155
|
};
|
|
2146
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
|
+
|
|
2147
2172
|
'fal-ai/omnigen-v2': {
|
|
2148
2173
|
input: falEndpoints.OmnigenV2Input;
|
|
2149
2174
|
output: falEndpoints.OmnigenV2Output;
|
|
@@ -4294,6 +4319,11 @@ declare global {
|
|
|
4294
4319
|
output: falEndpoints.GotOcrV2Output;
|
|
4295
4320
|
};
|
|
4296
4321
|
|
|
4322
|
+
'fal-ai/goal-force': {
|
|
4323
|
+
input: falEndpoints.GoalForceInput;
|
|
4324
|
+
output: falEndpoints.GoalForceOutput;
|
|
4325
|
+
};
|
|
4326
|
+
|
|
4297
4327
|
'fal-ai/glm-image/image-to-image': {
|
|
4298
4328
|
input: falEndpoints.GlmImageImageToImageInput;
|
|
4299
4329
|
output: falEndpoints.GlmImageImageToImageOutput;
|
|
@@ -4694,6 +4724,16 @@ declare global {
|
|
|
4694
4724
|
output: falEndpoints.Flux2KleinRealtimeOutput;
|
|
4695
4725
|
};
|
|
4696
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;
|
|
4735
|
+
};
|
|
4736
|
+
|
|
4697
4737
|
'fal-ai/flux-2/klein/9b/edit': {
|
|
4698
4738
|
input: falEndpoints.Flux2Klein9bEditInput;
|
|
4699
4739
|
output: falEndpoints.Flux2Klein9bEditOutput;
|
|
@@ -4724,6 +4764,16 @@ declare global {
|
|
|
4724
4764
|
output: falEndpoints.Flux2Klein9bOutput;
|
|
4725
4765
|
};
|
|
4726
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
|
+
|
|
4727
4777
|
'fal-ai/flux-2/klein/4b/edit': {
|
|
4728
4778
|
input: falEndpoints.Flux2Klein4bEditInput;
|
|
4729
4779
|
output: falEndpoints.Flux2Klein4bEditOutput;
|
|
@@ -5634,6 +5684,11 @@ declare global {
|
|
|
5634
5684
|
output: falEndpoints.BytedanceSeedanceV15ProImageToVideoOutput;
|
|
5635
5685
|
};
|
|
5636
5686
|
|
|
5687
|
+
'fal-ai/bytedance/seed/v2/mini': {
|
|
5688
|
+
input: falEndpoints.BytedanceSeedV2MiniInput;
|
|
5689
|
+
output: falEndpoints.BytedanceSeedV2MiniOutput;
|
|
5690
|
+
};
|
|
5691
|
+
|
|
5637
5692
|
'fal-ai/bytedance/omnihuman/v1.5': {
|
|
5638
5693
|
input: falEndpoints.BytedanceOmnihumanV15Input;
|
|
5639
5694
|
output: falEndpoints.BytedanceOmnihumanV15Output;
|