fal-endpoint-types 1.3.22 → 1.3.23
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
|
@@ -414,6 +414,11 @@ declare global {
|
|
|
414
414
|
output: falEndpoints.WorkflowUtilitiesTrimVideoOutput;
|
|
415
415
|
};
|
|
416
416
|
|
|
417
|
+
'fal-ai/workflow-utilities/scale-video': {
|
|
418
|
+
input: falEndpoints.WorkflowUtilitiesScaleVideoInput;
|
|
419
|
+
output: falEndpoints.WorkflowUtilitiesScaleVideoOutput;
|
|
420
|
+
};
|
|
421
|
+
|
|
417
422
|
'fal-ai/workflow-utilities/interleave-video': {
|
|
418
423
|
input: falEndpoints.WorkflowUtilitiesInterleaveVideoInput;
|
|
419
424
|
output: falEndpoints.WorkflowUtilitiesInterleaveVideoOutput;
|
|
@@ -1414,6 +1419,26 @@ declare global {
|
|
|
1414
1419
|
output: falEndpoints.RecraftVectorizeOutput;
|
|
1415
1420
|
};
|
|
1416
1421
|
|
|
1422
|
+
'fal-ai/recraft/v4/text-to-vector': {
|
|
1423
|
+
input: falEndpoints.RecraftV4TextToVectorInput;
|
|
1424
|
+
output: falEndpoints.RecraftV4TextToVectorOutput;
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
'fal-ai/recraft/v4/text-to-image': {
|
|
1428
|
+
input: falEndpoints.RecraftV4TextToImageInput;
|
|
1429
|
+
output: falEndpoints.RecraftV4TextToImageOutput;
|
|
1430
|
+
};
|
|
1431
|
+
|
|
1432
|
+
'fal-ai/recraft/v4/pro/text-to-vector': {
|
|
1433
|
+
input: falEndpoints.RecraftV4ProTextToVectorInput;
|
|
1434
|
+
output: falEndpoints.RecraftV4ProTextToVectorOutput;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
'fal-ai/recraft/v4/pro/text-to-image': {
|
|
1438
|
+
input: falEndpoints.RecraftV4ProTextToImageInput;
|
|
1439
|
+
output: falEndpoints.RecraftV4ProTextToImageOutput;
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1417
1442
|
'fal-ai/recraft/v3/text-to-image': {
|
|
1418
1443
|
input: falEndpoints.RecraftV3TextToImageInput;
|
|
1419
1444
|
output: falEndpoints.RecraftV3TextToImageOutput;
|
|
@@ -31,19 +31,20 @@ export interface XaiGrokImagineVideoTextToVideoInput {
|
|
|
31
31
|
|
|
32
32
|
export interface XaiGrokImagineVideoTextToVideoOutput {
|
|
33
33
|
/**
|
|
34
|
+
* Video
|
|
34
35
|
* @description The generated video.
|
|
35
36
|
* @example {
|
|
36
37
|
* "height": 720,
|
|
37
38
|
* "duration": 6.041667,
|
|
38
39
|
* "url": "https://v3b.fal.media/files/b/0a8b90e4/RUAbFYlssdqnbjNLmE8qP_IX7BNYGP.mp4",
|
|
39
|
-
* "fps": 24,
|
|
40
40
|
* "width": 1280,
|
|
41
|
+
* "fps": 24,
|
|
41
42
|
* "file_name": "RUAbFYlssdqnbjNLmE8qP_IX7BNYGP.mp4",
|
|
42
|
-
* "
|
|
43
|
-
* "
|
|
43
|
+
* "num_frames": 145,
|
|
44
|
+
* "content_type": "video/mp4"
|
|
44
45
|
* }
|
|
45
46
|
*/
|
|
46
|
-
video: Components.
|
|
47
|
+
video: Components.VideoFile;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export interface XaiGrokImagineVideoImageToVideoInput {
|
|
@@ -51,6 +52,7 @@ export interface XaiGrokImagineVideoImageToVideoInput {
|
|
|
51
52
|
* Aspect Ratio
|
|
52
53
|
* @description Aspect ratio of the generated video.
|
|
53
54
|
* @default auto
|
|
55
|
+
* @enum {string}
|
|
54
56
|
*/
|
|
55
57
|
aspect_ratio?: 'auto' | '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16';
|
|
56
58
|
/**
|
|
@@ -82,19 +84,20 @@ export interface XaiGrokImagineVideoImageToVideoInput {
|
|
|
82
84
|
|
|
83
85
|
export interface XaiGrokImagineVideoImageToVideoOutput {
|
|
84
86
|
/**
|
|
87
|
+
* Video
|
|
85
88
|
* @description The generated video.
|
|
86
89
|
* @example {
|
|
87
90
|
* "height": 720,
|
|
88
91
|
* "duration": 6.041667,
|
|
89
92
|
* "url": "https://v3b.fal.media/files/b/0a8b90e0/0Ci1dviuSnEyUZzBUq-_5_nu7MrAAa.mp4",
|
|
90
|
-
* "fps": 24,
|
|
91
93
|
* "width": 1280,
|
|
94
|
+
* "fps": 24,
|
|
92
95
|
* "file_name": "0Ci1dviuSnEyUZzBUq-_5_nu7MrAAa.mp4",
|
|
93
|
-
* "
|
|
94
|
-
* "
|
|
96
|
+
* "num_frames": 145,
|
|
97
|
+
* "content_type": "video/mp4"
|
|
95
98
|
* }
|
|
96
99
|
*/
|
|
97
|
-
video: Components.
|
|
100
|
+
video: Components.VideoFile;
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
export interface XaiGrokImagineVideoEditVideoInput {
|
|
@@ -121,19 +124,20 @@ export interface XaiGrokImagineVideoEditVideoInput {
|
|
|
121
124
|
|
|
122
125
|
export interface XaiGrokImagineVideoEditVideoOutput {
|
|
123
126
|
/**
|
|
127
|
+
* Video
|
|
124
128
|
* @description The generated video.
|
|
125
129
|
* @example {
|
|
126
130
|
* "height": 720,
|
|
127
131
|
* "duration": 5.041667,
|
|
128
132
|
* "url": "https://v3b.fal.media/files/b/0a8b9113/EuDrZuQTW9m1phBXOsauz_EpJH3s8X.mp4",
|
|
129
|
-
* "fps": 24,
|
|
130
133
|
* "width": 1280,
|
|
134
|
+
* "fps": 24,
|
|
131
135
|
* "file_name": "EuDrZuQTW9m1phBXOsauz_EpJH3s8X.mp4",
|
|
132
|
-
* "
|
|
133
|
-
* "
|
|
136
|
+
* "num_frames": 121,
|
|
137
|
+
* "content_type": "video/mp4"
|
|
134
138
|
* }
|
|
135
139
|
*/
|
|
136
|
-
video: Components.
|
|
140
|
+
video: Components.VideoFile;
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
export interface XaiGrokImagineImageEditInput {
|
|
@@ -180,7 +184,7 @@ export interface XaiGrokImagineImageEditOutput {
|
|
|
180
184
|
* }
|
|
181
185
|
* ]
|
|
182
186
|
*/
|
|
183
|
-
images: Components.
|
|
187
|
+
images: Components.ImageFile[];
|
|
184
188
|
/**
|
|
185
189
|
* Revised Prompt
|
|
186
190
|
* @description The enhanced prompt that was used to generate the image.
|
|
@@ -246,7 +250,7 @@ export interface XaiGrokImagineImageOutput {
|
|
|
246
250
|
* }
|
|
247
251
|
* ]
|
|
248
252
|
*/
|
|
249
|
-
images: Components.
|
|
253
|
+
images: Components.ImageFile[];
|
|
250
254
|
/**
|
|
251
255
|
* Revised Prompt
|
|
252
256
|
* @description The enhanced prompt that was used to generate the image.
|
|
@@ -2796,6 +2800,29 @@ export interface SharedType_e34 {
|
|
|
2796
2800
|
sync_mode?: boolean;
|
|
2797
2801
|
}
|
|
2798
2802
|
|
|
2803
|
+
export interface SharedType_e19 {
|
|
2804
|
+
/**
|
|
2805
|
+
* Images
|
|
2806
|
+
* @description The generated images
|
|
2807
|
+
* @example [
|
|
2808
|
+
* {
|
|
2809
|
+
* "height": 1536,
|
|
2810
|
+
* "file_size": 3731290,
|
|
2811
|
+
* "file_name": "257cf8e7bd3a47c2959396343d5b38cf.png",
|
|
2812
|
+
* "content_type": "image/png",
|
|
2813
|
+
* "url": "https://v3.fal.media/files/tiger/48e63e0K6C9XQYBuomoU-_257cf8e7bd3a47c2959396343d5b38cf.png",
|
|
2814
|
+
* "width": 1536
|
|
2815
|
+
* }
|
|
2816
|
+
* ]
|
|
2817
|
+
*/
|
|
2818
|
+
images: Components.Image[];
|
|
2819
|
+
/**
|
|
2820
|
+
* Seed
|
|
2821
|
+
* @description Seed value used for generation.
|
|
2822
|
+
*/
|
|
2823
|
+
seed: number;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2799
2826
|
export interface SharedType_e18 {
|
|
2800
2827
|
/**
|
|
2801
2828
|
* Default Caption
|
|
@@ -5226,29 +5253,6 @@ export interface SharedType_ab0 {
|
|
|
5226
5253
|
strength: number;
|
|
5227
5254
|
}
|
|
5228
5255
|
|
|
5229
|
-
export interface SharedType_a97 {
|
|
5230
|
-
/**
|
|
5231
|
-
* Images
|
|
5232
|
-
* @description The generated images
|
|
5233
|
-
* @example [
|
|
5234
|
-
* {
|
|
5235
|
-
* "file_size": 3731290,
|
|
5236
|
-
* "height": 1536,
|
|
5237
|
-
* "file_name": "257cf8e7bd3a47c2959396343d5b38cf.png",
|
|
5238
|
-
* "content_type": "image/png",
|
|
5239
|
-
* "url": "https://v3.fal.media/files/tiger/48e63e0K6C9XQYBuomoU-_257cf8e7bd3a47c2959396343d5b38cf.png",
|
|
5240
|
-
* "width": 1536
|
|
5241
|
-
* }
|
|
5242
|
-
* ]
|
|
5243
|
-
*/
|
|
5244
|
-
images: Components.Image[];
|
|
5245
|
-
/**
|
|
5246
|
-
* Seed
|
|
5247
|
-
* @description Seed value used for generation.
|
|
5248
|
-
*/
|
|
5249
|
-
seed: number;
|
|
5250
|
-
}
|
|
5251
|
-
|
|
5252
5256
|
export interface SharedType_a96 {
|
|
5253
5257
|
/**
|
|
5254
5258
|
* Prompt
|
|
@@ -15650,6 +15654,105 @@ export interface WorkflowUtilitiesTrimVideoOutput {
|
|
|
15650
15654
|
video: Components.File;
|
|
15651
15655
|
}
|
|
15652
15656
|
|
|
15657
|
+
export interface WorkflowUtilitiesScaleVideoInput {
|
|
15658
|
+
/**
|
|
15659
|
+
* Codec
|
|
15660
|
+
* @description Video codec to use for encoding. libx264 (H.264) is widely compatible, libx265 (H.265/HEVC) offers better compression.
|
|
15661
|
+
* @default libx264
|
|
15662
|
+
* @enum {string}
|
|
15663
|
+
*/
|
|
15664
|
+
codec?: 'libx264' | 'libx265';
|
|
15665
|
+
/**
|
|
15666
|
+
* Crf
|
|
15667
|
+
* @description Constant Rate Factor for quality (0-51). Lower values mean better quality and larger files. 18 is visually lossless for most content.
|
|
15668
|
+
* @default 18
|
|
15669
|
+
*/
|
|
15670
|
+
crf?: number;
|
|
15671
|
+
/**
|
|
15672
|
+
* Height
|
|
15673
|
+
* @description Target height in pixels
|
|
15674
|
+
* @example 1080
|
|
15675
|
+
* @example 2160
|
|
15676
|
+
* @example 720
|
|
15677
|
+
*/
|
|
15678
|
+
height: number;
|
|
15679
|
+
/**
|
|
15680
|
+
* Mode
|
|
15681
|
+
* @description Scaling mode. 'stretch' scales the video to the exact target dimensions (may distort aspect ratio). 'pad' scales to fit within the target dimensions while preserving aspect ratio, then pads with the chosen color to fill the remaining space (letterbox/pillarbox). 'crop' scales to cover the target dimensions while preserving aspect ratio, then center-crops to the exact target size.
|
|
15682
|
+
* @default stretch
|
|
15683
|
+
* @enum {string}
|
|
15684
|
+
*/
|
|
15685
|
+
mode?: 'stretch' | 'pad' | 'crop';
|
|
15686
|
+
/**
|
|
15687
|
+
* Pad Color
|
|
15688
|
+
* @description Padding color when mode is 'pad'. Ignored for other modes.
|
|
15689
|
+
* @default black
|
|
15690
|
+
* @enum {string}
|
|
15691
|
+
*/
|
|
15692
|
+
pad_color?: 'black' | 'white' | 'red' | 'green' | 'blue' | 'gray';
|
|
15693
|
+
/**
|
|
15694
|
+
* Preset
|
|
15695
|
+
* @description Encoding speed preset. Slower presets give better compression but take longer.
|
|
15696
|
+
* @default fast
|
|
15697
|
+
* @enum {string}
|
|
15698
|
+
*/
|
|
15699
|
+
preset?: 'ultrafast' | 'fast' | 'medium' | 'slow';
|
|
15700
|
+
/**
|
|
15701
|
+
* Video Url
|
|
15702
|
+
* @description URL of the video file to scale/resize. Height and Width of the video must be even numbers for compatibility with video codecs.
|
|
15703
|
+
*
|
|
15704
|
+
* Max file size: 476.8MB, Timeout: 30.0s
|
|
15705
|
+
* @example https://storage.googleapis.com/falserverless/example_outputs/wan-25-i2v-output.mp4
|
|
15706
|
+
*/
|
|
15707
|
+
video_url: string;
|
|
15708
|
+
/**
|
|
15709
|
+
* Width
|
|
15710
|
+
* @description Target width in pixels
|
|
15711
|
+
* @example 1920
|
|
15712
|
+
* @example 3840
|
|
15713
|
+
* @example 1280
|
|
15714
|
+
*/
|
|
15715
|
+
width: number;
|
|
15716
|
+
}
|
|
15717
|
+
|
|
15718
|
+
export interface WorkflowUtilitiesScaleVideoOutput {
|
|
15719
|
+
/**
|
|
15720
|
+
* Original Height
|
|
15721
|
+
* @description Height of the original video in pixels
|
|
15722
|
+
* @example 1082
|
|
15723
|
+
*/
|
|
15724
|
+
original_height: number;
|
|
15725
|
+
/**
|
|
15726
|
+
* Original Width
|
|
15727
|
+
* @description Width of the original video in pixels
|
|
15728
|
+
* @example 1929
|
|
15729
|
+
*/
|
|
15730
|
+
original_width: number;
|
|
15731
|
+
/**
|
|
15732
|
+
* Scaled Height
|
|
15733
|
+
* @description Height of the output video in pixels
|
|
15734
|
+
* @example 1080
|
|
15735
|
+
*/
|
|
15736
|
+
scaled_height: number;
|
|
15737
|
+
/**
|
|
15738
|
+
* Scaled Width
|
|
15739
|
+
* @description Width of the output video in pixels
|
|
15740
|
+
* @example 1920
|
|
15741
|
+
*/
|
|
15742
|
+
scaled_width: number;
|
|
15743
|
+
/**
|
|
15744
|
+
* Video
|
|
15745
|
+
* @description The scaled/resized video
|
|
15746
|
+
* @example {
|
|
15747
|
+
* "file_size": 3456789,
|
|
15748
|
+
* "file_name": "output.mp4",
|
|
15749
|
+
* "content_type": "video/mp4",
|
|
15750
|
+
* "url": "https://v3b.fal.media/files/b/monkey/scaled_output.mp4"
|
|
15751
|
+
* }
|
|
15752
|
+
*/
|
|
15753
|
+
video: Components.File;
|
|
15754
|
+
}
|
|
15755
|
+
|
|
15653
15756
|
export interface WorkflowUtilitiesInterleaveVideoInput {
|
|
15654
15757
|
/**
|
|
15655
15758
|
* Video Urls
|
|
@@ -26844,11 +26947,23 @@ export interface SamAudioVisualSeparateInput {
|
|
|
26844
26947
|
* @enum {string}
|
|
26845
26948
|
*/
|
|
26846
26949
|
acceleration?: 'fast' | 'balanced' | 'quality';
|
|
26950
|
+
/**
|
|
26951
|
+
* Chunk Overlap
|
|
26952
|
+
* @description Overlap duration (in seconds) between chunks for crossfade blending.
|
|
26953
|
+
* @default 5
|
|
26954
|
+
*/
|
|
26955
|
+
chunk_overlap?: number;
|
|
26847
26956
|
/**
|
|
26848
26957
|
* Mask Video Url
|
|
26849
26958
|
* @description URL of the mask video (binary mask indicating target object). Black=target, White=background.
|
|
26850
26959
|
*/
|
|
26851
26960
|
mask_video_url?: string;
|
|
26961
|
+
/**
|
|
26962
|
+
* Max Chunk Duration
|
|
26963
|
+
* @description Maximum audio duration (in seconds) to process in a single pass. Longer audio will be chunked with overlap and blended.
|
|
26964
|
+
* @default 60
|
|
26965
|
+
*/
|
|
26966
|
+
max_chunk_duration?: number;
|
|
26852
26967
|
/**
|
|
26853
26968
|
* Output Format
|
|
26854
26969
|
* @description Output audio format.
|
|
@@ -26924,6 +27039,18 @@ export interface SamAudioSpanSeparateInput {
|
|
|
26924
27039
|
* @example https://v3b.fal.media/files/b/0a8853d1/T7zRmsiculA6u_V6RCF2c_man.mp3
|
|
26925
27040
|
*/
|
|
26926
27041
|
audio_url: string;
|
|
27042
|
+
/**
|
|
27043
|
+
* Chunk Overlap
|
|
27044
|
+
* @description Overlap duration (in seconds) between chunks for crossfade blending.
|
|
27045
|
+
* @default 5
|
|
27046
|
+
*/
|
|
27047
|
+
chunk_overlap?: number;
|
|
27048
|
+
/**
|
|
27049
|
+
* Max Chunk Duration
|
|
27050
|
+
* @description Maximum audio duration (in seconds) to process in a single pass. Longer audio will be chunked with overlap and blended.
|
|
27051
|
+
* @default 60
|
|
27052
|
+
*/
|
|
27053
|
+
max_chunk_duration?: number;
|
|
26927
27054
|
/**
|
|
26928
27055
|
* Output Format
|
|
26929
27056
|
* @description Output audio format.
|
|
@@ -26962,6 +27089,12 @@ export interface SamAudioSpanSeparateInput {
|
|
|
26962
27089
|
* @default false
|
|
26963
27090
|
*/
|
|
26964
27091
|
trim_to_span?: boolean;
|
|
27092
|
+
/**
|
|
27093
|
+
* Use Sound Activity Ranking
|
|
27094
|
+
* @description Use sound activity detection to rank reranking candidates based on how well each candidate's non-silent regions match the provided spans. Enables effective reranking even without a text prompt (span-only separation). Requires reranking_candidates > 1.
|
|
27095
|
+
* @default false
|
|
27096
|
+
*/
|
|
27097
|
+
use_sound_activity_ranking?: boolean;
|
|
26965
27098
|
}
|
|
26966
27099
|
|
|
26967
27100
|
export interface SamAudioSpanSeparateOutput {
|
|
@@ -27011,6 +27144,18 @@ export interface SamAudioSeparateInput {
|
|
|
27011
27144
|
* @example https://v3b.fal.media/files/b/0a88511f/tUUCI9eDmeC2RqJEOXrZk_assets_avatar_multi_sing_woman.WAV
|
|
27012
27145
|
*/
|
|
27013
27146
|
audio_url: string;
|
|
27147
|
+
/**
|
|
27148
|
+
* Chunk Overlap
|
|
27149
|
+
* @description Overlap duration (in seconds) between chunks for crossfade blending.
|
|
27150
|
+
* @default 5
|
|
27151
|
+
*/
|
|
27152
|
+
chunk_overlap?: number;
|
|
27153
|
+
/**
|
|
27154
|
+
* Max Chunk Duration
|
|
27155
|
+
* @description Maximum audio duration (in seconds) to process in a single pass. Longer audio will be chunked with overlap and blended.
|
|
27156
|
+
* @default 60
|
|
27157
|
+
*/
|
|
27158
|
+
max_chunk_duration?: number;
|
|
27014
27159
|
/**
|
|
27015
27160
|
* Output Format
|
|
27016
27161
|
* @description Output audio format.
|
|
@@ -27921,6 +28066,226 @@ export interface RecraftVectorizeOutput {
|
|
|
27921
28066
|
image: Components.File;
|
|
27922
28067
|
}
|
|
27923
28068
|
|
|
28069
|
+
export interface RecraftV4TextToVectorInput {
|
|
28070
|
+
/**
|
|
28071
|
+
* Background Color
|
|
28072
|
+
* @description The preferable background color of the generated images.
|
|
28073
|
+
*/
|
|
28074
|
+
background_color?: Components.RGBColor;
|
|
28075
|
+
/**
|
|
28076
|
+
* Colors
|
|
28077
|
+
* @description An array of preferable colors
|
|
28078
|
+
* @default []
|
|
28079
|
+
*/
|
|
28080
|
+
colors?: Components.RGBColor[];
|
|
28081
|
+
/**
|
|
28082
|
+
* Enable Safety Checker
|
|
28083
|
+
* @description If set to true, the safety checker will be enabled.
|
|
28084
|
+
* @default true
|
|
28085
|
+
*/
|
|
28086
|
+
enable_safety_checker?: boolean;
|
|
28087
|
+
/**
|
|
28088
|
+
* Image Size
|
|
28089
|
+
* @default square_hd
|
|
28090
|
+
* @example landscape_16_9
|
|
28091
|
+
*/
|
|
28092
|
+
image_size?:
|
|
28093
|
+
| Components.ImageSize
|
|
28094
|
+
| (
|
|
28095
|
+
| 'square_hd'
|
|
28096
|
+
| 'square'
|
|
28097
|
+
| 'portrait_4_3'
|
|
28098
|
+
| 'portrait_16_9'
|
|
28099
|
+
| 'landscape_4_3'
|
|
28100
|
+
| 'landscape_16_9'
|
|
28101
|
+
);
|
|
28102
|
+
/**
|
|
28103
|
+
* Prompt
|
|
28104
|
+
* @example a cute character fox with cool clothes, 3d flat color, design
|
|
28105
|
+
*/
|
|
28106
|
+
prompt: string;
|
|
28107
|
+
}
|
|
28108
|
+
|
|
28109
|
+
export interface RecraftV4TextToVectorOutput {
|
|
28110
|
+
/**
|
|
28111
|
+
* Images
|
|
28112
|
+
* @example [
|
|
28113
|
+
* {
|
|
28114
|
+
* "file_size": 1722022,
|
|
28115
|
+
* "file_name": "image.svg",
|
|
28116
|
+
* "content_type": "image/svg+xml",
|
|
28117
|
+
* "url": "https://v3b.fal.media/files/b/0a8ee4fd/sw8YD36iblpO64JeQZEDt_image.svg"
|
|
28118
|
+
* }
|
|
28119
|
+
* ]
|
|
28120
|
+
*/
|
|
28121
|
+
images: Components.File[];
|
|
28122
|
+
}
|
|
28123
|
+
|
|
28124
|
+
export interface RecraftV4TextToImageInput {
|
|
28125
|
+
/**
|
|
28126
|
+
* Background Color
|
|
28127
|
+
* @description The preferable background color of the generated images.
|
|
28128
|
+
*/
|
|
28129
|
+
background_color?: Components.RGBColor;
|
|
28130
|
+
/**
|
|
28131
|
+
* Colors
|
|
28132
|
+
* @description An array of preferable colors
|
|
28133
|
+
* @default []
|
|
28134
|
+
*/
|
|
28135
|
+
colors?: Components.RGBColor[];
|
|
28136
|
+
/**
|
|
28137
|
+
* Enable Safety Checker
|
|
28138
|
+
* @description If set to true, the safety checker will be enabled.
|
|
28139
|
+
* @default true
|
|
28140
|
+
*/
|
|
28141
|
+
enable_safety_checker?: boolean;
|
|
28142
|
+
/**
|
|
28143
|
+
* Image Size
|
|
28144
|
+
* @default square_hd
|
|
28145
|
+
* @example landscape_16_9
|
|
28146
|
+
*/
|
|
28147
|
+
image_size?:
|
|
28148
|
+
| Components.ImageSize
|
|
28149
|
+
| (
|
|
28150
|
+
| 'square_hd'
|
|
28151
|
+
| 'square'
|
|
28152
|
+
| 'portrait_4_3'
|
|
28153
|
+
| 'portrait_16_9'
|
|
28154
|
+
| 'landscape_4_3'
|
|
28155
|
+
| 'landscape_16_9'
|
|
28156
|
+
);
|
|
28157
|
+
/**
|
|
28158
|
+
* Prompt
|
|
28159
|
+
* @example Tilt-shift miniature effect on a real Portuguese fishing village at golden hour, colorful boats in the harbor appearing toy-like, selective focus band across the middle, saturated primary colors of blue red and yellow boats against white buildings, 90mm tilt-shift lens, the familiar made fantastical, Wes Anderson color sensibility
|
|
28160
|
+
*/
|
|
28161
|
+
prompt: string;
|
|
28162
|
+
}
|
|
28163
|
+
|
|
28164
|
+
export interface RecraftV4TextToImageOutput {
|
|
28165
|
+
/**
|
|
28166
|
+
* Images
|
|
28167
|
+
* @example [
|
|
28168
|
+
* {
|
|
28169
|
+
* "file_size": 272628,
|
|
28170
|
+
* "file_name": "image.webp",
|
|
28171
|
+
* "content_type": "image/webp",
|
|
28172
|
+
* "url": "https://storage.googleapis.com/falserverless/example_outputs/recraft-v4/standard-output.webp"
|
|
28173
|
+
* }
|
|
28174
|
+
* ]
|
|
28175
|
+
*/
|
|
28176
|
+
images: Components.File[];
|
|
28177
|
+
}
|
|
28178
|
+
|
|
28179
|
+
export interface RecraftV4ProTextToVectorInput {
|
|
28180
|
+
/**
|
|
28181
|
+
* Background Color
|
|
28182
|
+
* @description The preferable background color of the generated images.
|
|
28183
|
+
*/
|
|
28184
|
+
background_color?: Components.RGBColor;
|
|
28185
|
+
/**
|
|
28186
|
+
* Colors
|
|
28187
|
+
* @description An array of preferable colors
|
|
28188
|
+
* @default []
|
|
28189
|
+
*/
|
|
28190
|
+
colors?: Components.RGBColor[];
|
|
28191
|
+
/**
|
|
28192
|
+
* Enable Safety Checker
|
|
28193
|
+
* @description If set to true, the safety checker will be enabled.
|
|
28194
|
+
* @default true
|
|
28195
|
+
*/
|
|
28196
|
+
enable_safety_checker?: boolean;
|
|
28197
|
+
/**
|
|
28198
|
+
* Image Size
|
|
28199
|
+
* @default square_hd
|
|
28200
|
+
* @example landscape_16_9
|
|
28201
|
+
*/
|
|
28202
|
+
image_size?:
|
|
28203
|
+
| Components.ImageSize
|
|
28204
|
+
| (
|
|
28205
|
+
| 'square_hd'
|
|
28206
|
+
| 'square'
|
|
28207
|
+
| 'portrait_4_3'
|
|
28208
|
+
| 'portrait_16_9'
|
|
28209
|
+
| 'landscape_4_3'
|
|
28210
|
+
| 'landscape_16_9'
|
|
28211
|
+
);
|
|
28212
|
+
/**
|
|
28213
|
+
* Prompt
|
|
28214
|
+
* @example a cute character panda with cool clothes, 3d flat color, design
|
|
28215
|
+
*/
|
|
28216
|
+
prompt: string;
|
|
28217
|
+
}
|
|
28218
|
+
|
|
28219
|
+
export interface RecraftV4ProTextToVectorOutput {
|
|
28220
|
+
/**
|
|
28221
|
+
* Images
|
|
28222
|
+
* @example [
|
|
28223
|
+
* {
|
|
28224
|
+
* "file_size": 1818794,
|
|
28225
|
+
* "file_name": "image.svg",
|
|
28226
|
+
* "content_type": "image/svg+xml",
|
|
28227
|
+
* "url": "https://v3b.fal.media/files/b/0a8ee4de/lmXuapOPV309mE533swE0_image.svg"
|
|
28228
|
+
* }
|
|
28229
|
+
* ]
|
|
28230
|
+
*/
|
|
28231
|
+
images: Components.File[];
|
|
28232
|
+
}
|
|
28233
|
+
|
|
28234
|
+
export interface RecraftV4ProTextToImageInput {
|
|
28235
|
+
/**
|
|
28236
|
+
* Background Color
|
|
28237
|
+
* @description The preferable background color of the generated images.
|
|
28238
|
+
*/
|
|
28239
|
+
background_color?: Components.RGBColor;
|
|
28240
|
+
/**
|
|
28241
|
+
* Colors
|
|
28242
|
+
* @description An array of preferable colors
|
|
28243
|
+
* @default []
|
|
28244
|
+
*/
|
|
28245
|
+
colors?: Components.RGBColor[];
|
|
28246
|
+
/**
|
|
28247
|
+
* Enable Safety Checker
|
|
28248
|
+
* @description If set to true, the safety checker will be enabled.
|
|
28249
|
+
* @default true
|
|
28250
|
+
*/
|
|
28251
|
+
enable_safety_checker?: boolean;
|
|
28252
|
+
/**
|
|
28253
|
+
* Image Size
|
|
28254
|
+
* @default square_hd
|
|
28255
|
+
* @example landscape_16_9
|
|
28256
|
+
*/
|
|
28257
|
+
image_size?:
|
|
28258
|
+
| Components.ImageSize
|
|
28259
|
+
| (
|
|
28260
|
+
| 'square_hd'
|
|
28261
|
+
| 'square'
|
|
28262
|
+
| 'portrait_4_3'
|
|
28263
|
+
| 'portrait_16_9'
|
|
28264
|
+
| 'landscape_4_3'
|
|
28265
|
+
| 'landscape_16_9'
|
|
28266
|
+
);
|
|
28267
|
+
/**
|
|
28268
|
+
* Prompt
|
|
28269
|
+
* @example Crash zoom frozen at the moment of impact as a kingfisher breaks the surface of a pond, water crown splash forming a perfect circle, the bird's beak piercing the mirror-like surface, fish visible just below, frozen at 1/8000s, 400mm super telephoto with 2x extender, ring flash fill, pre-dawn blue light with single shaft of gold, BBC Frozen Planet production quality
|
|
28270
|
+
*/
|
|
28271
|
+
prompt: string;
|
|
28272
|
+
}
|
|
28273
|
+
|
|
28274
|
+
export interface RecraftV4ProTextToImageOutput {
|
|
28275
|
+
/**
|
|
28276
|
+
* Images
|
|
28277
|
+
* @example [
|
|
28278
|
+
* {
|
|
28279
|
+
* "file_size": 1949504,
|
|
28280
|
+
* "file_name": "image.webp",
|
|
28281
|
+
* "content_type": "image/webp",
|
|
28282
|
+
* "url": "https://storage.googleapis.com/falserverless/example_outputs/recraft-v4/pro-output.webp"
|
|
28283
|
+
* }
|
|
28284
|
+
* ]
|
|
28285
|
+
*/
|
|
28286
|
+
images: Components.File[];
|
|
28287
|
+
}
|
|
28288
|
+
|
|
27924
28289
|
export interface RecraftV3TextToImageInput {
|
|
27925
28290
|
/**
|
|
27926
28291
|
* Colors
|
|
@@ -57837,7 +58202,7 @@ export interface HunyuanImageV3InstructEditInput {
|
|
|
57837
58202
|
);
|
|
57838
58203
|
/**
|
|
57839
58204
|
* Image Urls
|
|
57840
|
-
* @description The URLs of the images to use as a reference for the generation. A maximum of
|
|
58205
|
+
* @description The URLs of the images to use as a reference for the generation. A maximum of 3 images are supported.
|
|
57841
58206
|
* @example [
|
|
57842
58207
|
* "https://v3b.fal.media/files/b/0a8c3cf9/voXcX8hd5maRSrSvZalXh_jAMqrScj.png"
|
|
57843
58208
|
* ]
|
|
@@ -60276,9 +60641,9 @@ export interface FooocusUpscaleOrVaryInput {
|
|
|
60276
60641
|
* Styles
|
|
60277
60642
|
* @description The style to use.
|
|
60278
60643
|
* @default [
|
|
60644
|
+
* "Fooocus Sharp",
|
|
60279
60645
|
* "Fooocus Enhance",
|
|
60280
|
-
* "Fooocus V2"
|
|
60281
|
-
* "Fooocus Sharp"
|
|
60646
|
+
* "Fooocus V2"
|
|
60282
60647
|
* ]
|
|
60283
60648
|
*/
|
|
60284
60649
|
styles?: (
|
|
@@ -60562,9 +60927,7 @@ export interface FooocusUpscaleOrVaryInput {
|
|
|
60562
60927
|
)[];
|
|
60563
60928
|
/**
|
|
60564
60929
|
* Sync Mode
|
|
60565
|
-
* @description If
|
|
60566
|
-
* before returning the response. This will increase the latency of the function but
|
|
60567
|
-
* it allows you to get the image directly in the response without going through the CDN.
|
|
60930
|
+
* @description If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
|
|
60568
60931
|
* @default false
|
|
60569
60932
|
*/
|
|
60570
60933
|
sync_mode?: boolean;
|
|
@@ -60787,9 +61150,9 @@ export interface FooocusInpaintInput {
|
|
|
60787
61150
|
* Styles
|
|
60788
61151
|
* @description The style to use.
|
|
60789
61152
|
* @default [
|
|
61153
|
+
* "Fooocus Sharp",
|
|
60790
61154
|
* "Fooocus Enhance",
|
|
60791
|
-
* "Fooocus V2"
|
|
60792
|
-
* "Fooocus Sharp"
|
|
61155
|
+
* "Fooocus V2"
|
|
60793
61156
|
* ]
|
|
60794
61157
|
*/
|
|
60795
61158
|
styles?: (
|
|
@@ -61073,9 +61436,7 @@ export interface FooocusInpaintInput {
|
|
|
61073
61436
|
)[];
|
|
61074
61437
|
/**
|
|
61075
61438
|
* Sync Mode
|
|
61076
|
-
* @description If
|
|
61077
|
-
* before returning the response. This will increase the latency of the function but
|
|
61078
|
-
* it allows you to get the image directly in the response without going through the CDN.
|
|
61439
|
+
* @description If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
|
|
61079
61440
|
* @default false
|
|
61080
61441
|
*/
|
|
61081
61442
|
sync_mode?: boolean;
|
|
@@ -61107,10 +61468,10 @@ export interface FooocusImagePromptInput {
|
|
|
61107
61468
|
/**
|
|
61108
61469
|
* Image Prompt 1
|
|
61109
61470
|
* @example {
|
|
61110
|
-
* "
|
|
61471
|
+
* "image_url": "https://storage.googleapis.com/falserverless/model_tests/fooocus/Pikachu.webp",
|
|
61111
61472
|
* "stop_at": 1,
|
|
61112
61473
|
* "type": "PyraCanny",
|
|
61113
|
-
* "
|
|
61474
|
+
* "weight": 1
|
|
61114
61475
|
* }
|
|
61115
61476
|
*/
|
|
61116
61477
|
image_prompt_1: Components.ImagePrompt;
|
|
@@ -61241,9 +61602,9 @@ export interface FooocusImagePromptInput {
|
|
|
61241
61602
|
* Styles
|
|
61242
61603
|
* @description The style to use.
|
|
61243
61604
|
* @default [
|
|
61605
|
+
* "Fooocus Sharp",
|
|
61244
61606
|
* "Fooocus Enhance",
|
|
61245
|
-
* "Fooocus V2"
|
|
61246
|
-
* "Fooocus Sharp"
|
|
61607
|
+
* "Fooocus V2"
|
|
61247
61608
|
* ]
|
|
61248
61609
|
*/
|
|
61249
61610
|
styles?: (
|
|
@@ -61527,9 +61888,7 @@ export interface FooocusImagePromptInput {
|
|
|
61527
61888
|
)[];
|
|
61528
61889
|
/**
|
|
61529
61890
|
* Sync Mode
|
|
61530
|
-
* @description If
|
|
61531
|
-
* before returning the response. This will increase the latency of the function but
|
|
61532
|
-
* it allows you to get the image directly in the response without going through the CDN.
|
|
61891
|
+
* @description If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
|
|
61533
61892
|
* @default false
|
|
61534
61893
|
*/
|
|
61535
61894
|
sync_mode?: boolean;
|
|
@@ -61701,9 +62060,9 @@ export interface FooocusInput {
|
|
|
61701
62060
|
* Styles
|
|
61702
62061
|
* @description The style to use.
|
|
61703
62062
|
* @default [
|
|
62063
|
+
* "Fooocus Sharp",
|
|
61704
62064
|
* "Fooocus Enhance",
|
|
61705
|
-
* "Fooocus V2"
|
|
61706
|
-
* "Fooocus Sharp"
|
|
62065
|
+
* "Fooocus V2"
|
|
61707
62066
|
* ]
|
|
61708
62067
|
*/
|
|
61709
62068
|
styles?: (
|
|
@@ -61987,9 +62346,7 @@ export interface FooocusInput {
|
|
|
61987
62346
|
)[];
|
|
61988
62347
|
/**
|
|
61989
62348
|
* Sync Mode
|
|
61990
|
-
* @description If
|
|
61991
|
-
* before returning the response. This will increase the latency of the function but
|
|
61992
|
-
* it allows you to get the image directly in the response without going through the CDN.
|
|
62349
|
+
* @description If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
|
|
61993
62350
|
* @default false
|
|
61994
62351
|
*/
|
|
61995
62352
|
sync_mode?: boolean;
|
|
@@ -74079,30 +74436,12 @@ export interface ElevenlabsTtsElevenV3Input {
|
|
|
74079
74436
|
* @description Language code (ISO 639-1) used to enforce a language for the model.
|
|
74080
74437
|
*/
|
|
74081
74438
|
language_code?: string;
|
|
74082
|
-
/**
|
|
74083
|
-
* Similarity Boost
|
|
74084
|
-
* @description Similarity boost (0-1)
|
|
74085
|
-
* @default 0.75
|
|
74086
|
-
*/
|
|
74087
|
-
similarity_boost?: number;
|
|
74088
|
-
/**
|
|
74089
|
-
* Speed
|
|
74090
|
-
* @description Speech speed (0.7-1.2). Values below 1.0 slow down the speech, above 1.0 speed it up. Extreme values may affect quality.
|
|
74091
|
-
* @default 1
|
|
74092
|
-
*/
|
|
74093
|
-
speed?: number;
|
|
74094
74439
|
/**
|
|
74095
74440
|
* Stability
|
|
74096
74441
|
* @description Voice stability (0-1)
|
|
74097
74442
|
* @default 0.5
|
|
74098
74443
|
*/
|
|
74099
74444
|
stability?: number;
|
|
74100
|
-
/**
|
|
74101
|
-
* Style
|
|
74102
|
-
* @description Style exaggeration (0-1)
|
|
74103
|
-
* @default 0
|
|
74104
|
-
*/
|
|
74105
|
-
style?: number;
|
|
74106
74445
|
/**
|
|
74107
74446
|
* Text
|
|
74108
74447
|
* @description The text to convert to speech
|
|
@@ -78797,7 +79136,7 @@ export interface BytedanceUpscalerUpscaleVideoOutput {
|
|
|
78797
79136
|
|
|
78798
79137
|
export interface BriaTextToImageHdInput extends SharedType_411 {}
|
|
78799
79138
|
|
|
78800
|
-
export interface BriaTextToImageHdOutput extends
|
|
79139
|
+
export interface BriaTextToImageHdOutput extends SharedType_e19 {}
|
|
78801
79140
|
|
|
78802
79141
|
export interface BriaTextToImageFastInput {
|
|
78803
79142
|
/**
|
|
@@ -78870,11 +79209,11 @@ export interface BriaTextToImageFastInput {
|
|
|
78870
79209
|
sync_mode?: boolean;
|
|
78871
79210
|
}
|
|
78872
79211
|
|
|
78873
|
-
export interface BriaTextToImageFastOutput extends
|
|
79212
|
+
export interface BriaTextToImageFastOutput extends SharedType_e19 {}
|
|
78874
79213
|
|
|
78875
79214
|
export interface BriaTextToImageBaseInput extends SharedType_411 {}
|
|
78876
79215
|
|
|
78877
|
-
export interface BriaTextToImageBaseOutput extends
|
|
79216
|
+
export interface BriaTextToImageBaseOutput extends SharedType_e19 {}
|
|
78878
79217
|
|
|
78879
79218
|
export interface BriaReimagineInput {
|
|
78880
79219
|
/**
|
|
@@ -79103,8 +79442,8 @@ export interface BriaGenfillOutput {
|
|
|
79103
79442
|
* @description Generated Images
|
|
79104
79443
|
* @example [
|
|
79105
79444
|
* {
|
|
79106
|
-
* "file_size": 1064550,
|
|
79107
79445
|
* "height": 768,
|
|
79446
|
+
* "file_size": 1064550,
|
|
79108
79447
|
* "file_name": "a0d138e6820c4ad58f1fd3c758f16047.png",
|
|
79109
79448
|
* "content_type": "image/png",
|
|
79110
79449
|
* "url": "https://storage.googleapis.com/falserverless/bria/bria_genfill_res.png",
|
|
@@ -79113,6 +79452,11 @@ export interface BriaGenfillOutput {
|
|
|
79113
79452
|
* ]
|
|
79114
79453
|
*/
|
|
79115
79454
|
images: Components.Image[];
|
|
79455
|
+
/**
|
|
79456
|
+
* Seed
|
|
79457
|
+
* @description Seed value used for generation.
|
|
79458
|
+
*/
|
|
79459
|
+
seed: number;
|
|
79116
79460
|
}
|
|
79117
79461
|
|
|
79118
79462
|
export interface BriaExpandInput {
|
|
@@ -79185,8 +79529,8 @@ export interface BriaExpandOutput {
|
|
|
79185
79529
|
* Image
|
|
79186
79530
|
* @description The generated image
|
|
79187
79531
|
* @example {
|
|
79188
|
-
* "file_size": 1471342,
|
|
79189
79532
|
* "height": 674,
|
|
79533
|
+
* "file_size": 1471342,
|
|
79190
79534
|
* "file_name": "afa402a35ea742cdb5c3e219b2b19bfb.png",
|
|
79191
79535
|
* "content_type": "image/png",
|
|
79192
79536
|
* "url": "https://v3.fal.media/files/koala/8np-spgxxG-I1r3cjthRV_afa402a35ea742cdb5c3e219b2b19bfb.png",
|
|
@@ -79344,8 +79688,8 @@ export interface BriaBackgroundRemoveOutput {
|
|
|
79344
79688
|
* Image
|
|
79345
79689
|
* @description The generated image
|
|
79346
79690
|
* @example {
|
|
79347
|
-
* "file_size": 1076276,
|
|
79348
79691
|
* "height": 1024,
|
|
79692
|
+
* "file_size": 1076276,
|
|
79349
79693
|
* "file_name": "070c731993e949d993c10ef6283d335d.png",
|
|
79350
79694
|
* "content_type": "image/png",
|
|
79351
79695
|
* "url": "https://v3.fal.media/files/tiger/GQEMNjRyxSoza7N8LPPqb_070c731993e949d993c10ef6283d335d.png",
|
|
@@ -79451,8 +79795,8 @@ export interface BirefnetV2VideoOutput {
|
|
|
79451
79795
|
* "height": 1080,
|
|
79452
79796
|
* "duration": 8,
|
|
79453
79797
|
* "url": "https://storage.googleapis.com/falserverless/example_outputs/birefnet-video-output.webm",
|
|
79454
|
-
* "fps": 24,
|
|
79455
79798
|
* "width": 1920,
|
|
79799
|
+
* "fps": 24,
|
|
79456
79800
|
* "file_name": "birefnet-video-output.webm",
|
|
79457
79801
|
* "content_type": "video/webm",
|
|
79458
79802
|
* "num_frames": 192
|