@apicity/fal 0.1.0-alpha.0

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.
@@ -0,0 +1,1008 @@
1
+ import type { z } from "zod";
2
+ export type { FalOptions, FalEstimateRequest, FalQueueSubmitParams, FalLogsStreamParams, FalFilesUploadUrlParams, FalFilesUploadLocalParams, FalDeletePayloadsParams, FalSeedance2p0ImageToVideoParams, FalSeedance2p0TextToVideoParams, FalSeedance2p0FastImageToVideoParams, FalSeedance2p0FastTextToVideoParams, FalSeedance2p0ReferenceToVideoParams, FalSeedance2p0FastReferenceToVideoParams, FalNanoBananaProTextToImageParams, FalNanoBananaProEditParams, FalNanoBanana2TextToImageParams, FalNanoBanana2EditParams, FalSeedreamV5LiteEditParams, FalSeedreamV5LiteTextToImageParams, FalElevenlabsSpeechToTextScribeV2Params, FalWanV2p7TextToImageParams, FalWanV2p7EditParams, FalWanV2p7TextToVideoParams, FalWanV2p7ImageToVideoParams, FalWanV2p7ReferenceToVideoParams, FalWanV2p7EditVideoParams, FalXaiGrokImagineImageParams, FalXaiGrokImagineImageEditParams, FalQwenImageParams, FalQwenImageEditParams, FalGptImage1p5Params, FalGptImage1p5EditParams, FalNanoBananaTextToImageParams, FalNanoBananaEditParams, FalXaiGrokImagineVideoImageToVideoParams, FalXaiGrokImagineVideoReferenceToVideoParams, FalXaiGrokImagineVideoExtendVideoParams, FalXaiGrokImagineVideoEditVideoParams, FalVeo3p1TextToVideoParams, FalVeo3p1ImageToVideoParams, FalStorageUploadInitiateParams, FalStorageUploadInitiateMultipartParams, FalStorageUploadCompleteMultipartParams, FalKlingVideoV3ProImageToVideoParams, FalKlingVideoV3ProTextToVideoParams, FalKlingVideoV3StandardImageToVideoParams, FalKlingVideoV3StandardTextToVideoParams, FalKlingVideoO3p4kImageToVideoParams, FalKlingVideoO3p4kReferenceToVideoParams, FalKlingVideoO3p4kTextToVideoParams, FalSora2TextToVideoParams, FalSora2ImageToVideoParams, FalHunyuanImageV3InstructEditParams, } from "./zod";
3
+ import type { FalEstimateRequest, FalQueueSubmitParams, FalLogsStreamParams, FalFilesUploadUrlParams, FalFilesUploadLocalParams, FalDeletePayloadsParams, FalSeedance2p0ImageToVideoParams, FalSeedance2p0TextToVideoParams, FalSeedance2p0FastImageToVideoParams, FalSeedance2p0FastTextToVideoParams, FalSeedance2p0ReferenceToVideoParams, FalSeedance2p0FastReferenceToVideoParams, FalNanoBananaProTextToImageParams, FalNanoBananaProEditParams, FalNanoBanana2TextToImageParams, FalNanoBanana2EditParams, FalSeedreamV5LiteEditParams, FalSeedreamV5LiteTextToImageParams, FalElevenlabsSpeechToTextScribeV2Params, FalWanV2p7TextToImageParams, FalWanV2p7EditParams, FalWanV2p7TextToVideoParams, FalWanV2p7ImageToVideoParams, FalWanV2p7ReferenceToVideoParams, FalWanV2p7EditVideoParams, FalXaiGrokImagineImageParams, FalXaiGrokImagineImageEditParams, FalQwenImageParams, FalQwenImageEditParams, FalGptImage1p5Params, FalGptImage1p5EditParams, FalNanoBananaTextToImageParams, FalNanoBananaEditParams, FalXaiGrokImagineVideoImageToVideoParams, FalXaiGrokImagineVideoReferenceToVideoParams, FalXaiGrokImagineVideoExtendVideoParams, FalXaiGrokImagineVideoEditVideoParams, FalVeo3p1TextToVideoParams, FalVeo3p1ImageToVideoParams, FalStorageUploadInitiateParams, FalStorageUploadInitiateMultipartParams, FalStorageUploadCompleteMultipartParams, FalKlingVideoV3ProImageToVideoParams, FalKlingVideoV3ProTextToVideoParams, FalKlingVideoV3StandardImageToVideoParams, FalKlingVideoV3StandardTextToVideoParams, FalKlingVideoO3p4kImageToVideoParams, FalKlingVideoO3p4kReferenceToVideoParams, FalKlingVideoO3p4kTextToVideoParams, FalSora2TextToVideoParams, FalSora2ImageToVideoParams, FalHunyuanImageV3InstructEditParams } from "./zod";
4
+ export type FalErrorType = "authorization_error" | "validation_error" | "not_found" | "rate_limited" | "server_error" | "not_implemented";
5
+ export declare class FalError extends Error {
6
+ readonly status: number;
7
+ readonly type: FalErrorType;
8
+ readonly request_id?: string;
9
+ readonly docs_url?: string;
10
+ readonly body: unknown;
11
+ constructor(message: string, status: number, type: FalErrorType, request_id?: string, docs_url?: string, body?: unknown);
12
+ }
13
+ export interface FalPaginatedParams {
14
+ limit?: number;
15
+ cursor?: string;
16
+ }
17
+ export interface FalTimeRangeParams {
18
+ start?: string;
19
+ end?: string;
20
+ timezone?: string;
21
+ timeframe?: "minute" | "hour" | "day" | "week" | "month";
22
+ bound_to_timeframe?: boolean;
23
+ }
24
+ export interface FalModelSearchParams extends FalPaginatedParams {
25
+ endpoint_id?: string | string[];
26
+ q?: string;
27
+ category?: string;
28
+ status?: "active" | "deprecated";
29
+ expand?: string[];
30
+ }
31
+ export interface FalModelGroup {
32
+ key: string;
33
+ label: string;
34
+ }
35
+ export interface FalModelMetadata {
36
+ display_name: string;
37
+ category: string;
38
+ description: string;
39
+ status: "active" | "deprecated";
40
+ tags: string[];
41
+ updated_at: string;
42
+ is_favorited: boolean | null;
43
+ thumbnail_url: string;
44
+ thumbnail_animated_url?: string;
45
+ model_url: string;
46
+ github_url?: string;
47
+ license_type?: "commercial" | "research" | "private";
48
+ date: string;
49
+ group?: FalModelGroup;
50
+ highlighted: boolean;
51
+ kind?: "inference" | "training";
52
+ training_endpoint_ids?: string[];
53
+ inference_endpoint_ids?: string[];
54
+ stream_url?: string;
55
+ duration_estimate?: number;
56
+ pinned: boolean;
57
+ }
58
+ export interface FalOpenApiSpec {
59
+ openapi: string;
60
+ [key: string]: unknown;
61
+ }
62
+ export interface FalOpenApiError {
63
+ error: {
64
+ code: string;
65
+ message: string;
66
+ };
67
+ }
68
+ export interface FalModel {
69
+ endpoint_id: string;
70
+ metadata?: FalModelMetadata;
71
+ openapi?: FalOpenApiSpec | FalOpenApiError;
72
+ }
73
+ export interface FalModelSearchResponse {
74
+ models: FalModel[];
75
+ next_cursor: string | null;
76
+ has_more: boolean;
77
+ }
78
+ export interface FalPricingParams {
79
+ endpoint_id: string | string[];
80
+ }
81
+ export interface FalPrice {
82
+ endpoint_id: string;
83
+ unit_price: number;
84
+ unit: string;
85
+ currency: string;
86
+ }
87
+ export interface FalPricingResponse {
88
+ prices: FalPrice[];
89
+ next_cursor: string | null;
90
+ has_more: boolean;
91
+ }
92
+ export interface FalEstimateResponse {
93
+ estimate_type: "historical_api_price" | "unit_price";
94
+ total_cost: number;
95
+ currency: string;
96
+ }
97
+ export interface FalUsageParams extends FalPaginatedParams, FalTimeRangeParams {
98
+ endpoint_id?: string | string[];
99
+ expand?: string[];
100
+ }
101
+ export interface FalUsageRecord {
102
+ endpoint_id: string;
103
+ unit: string;
104
+ quantity: number;
105
+ unit_price: number;
106
+ cost: number;
107
+ currency: string;
108
+ auth_method?: string;
109
+ }
110
+ export interface FalUsageBucket {
111
+ bucket: string;
112
+ results: FalUsageRecord[];
113
+ }
114
+ export interface FalUsageResponse {
115
+ next_cursor: string | null;
116
+ has_more: boolean;
117
+ time_series?: FalUsageBucket[];
118
+ summary?: FalUsageRecord[];
119
+ }
120
+ export interface FalAnalyticsParams extends FalPaginatedParams, FalTimeRangeParams {
121
+ endpoint_id: string | string[];
122
+ expand?: string[];
123
+ }
124
+ export interface FalAnalyticsRecord {
125
+ endpoint_id: string;
126
+ request_count?: number;
127
+ success_count?: number;
128
+ user_error_count?: number;
129
+ error_count?: number;
130
+ p50_duration?: number;
131
+ p75_duration?: number;
132
+ p90_duration?: number;
133
+ p50_prepare_duration?: number;
134
+ p75_prepare_duration?: number;
135
+ p90_prepare_duration?: number;
136
+ }
137
+ export interface FalAnalyticsBucket {
138
+ bucket: string;
139
+ results: FalAnalyticsRecord[];
140
+ }
141
+ export interface FalAnalyticsResponse {
142
+ next_cursor: string | null;
143
+ has_more: boolean;
144
+ time_series?: FalAnalyticsBucket[];
145
+ summary?: FalAnalyticsRecord[];
146
+ }
147
+ export interface FalRequestsParams extends FalPaginatedParams {
148
+ endpoint_id: string;
149
+ start?: string;
150
+ end?: string;
151
+ status?: "success" | "error" | "user_error";
152
+ request_id?: string;
153
+ expand?: string[];
154
+ sort_by?: "ended_at" | "duration";
155
+ }
156
+ export interface FalRequestItem {
157
+ request_id: string;
158
+ endpoint_id: string;
159
+ started_at: string;
160
+ sent_at: string;
161
+ ended_at?: string;
162
+ status_code?: number;
163
+ duration?: number;
164
+ json_input?: unknown;
165
+ json_output?: unknown;
166
+ }
167
+ export interface FalRequestsResponse {
168
+ next_cursor: string | null;
169
+ has_more: boolean;
170
+ items: FalRequestItem[];
171
+ }
172
+ export interface FalCdnDeleteResult {
173
+ link: string;
174
+ exception: string | null;
175
+ }
176
+ export interface FalDeletePayloadsResponse {
177
+ cdn_delete_results: FalCdnDeleteResult[];
178
+ }
179
+ export interface FalWorkflowListParams extends FalPaginatedParams {
180
+ search?: string;
181
+ used_endpoint_ids?: string | string[];
182
+ }
183
+ export interface FalWorkflowListItem {
184
+ name: string;
185
+ title: string;
186
+ user_nickname: string;
187
+ created_at: string;
188
+ thumbnail_url?: string;
189
+ description?: string;
190
+ tags: string[];
191
+ endpoint_ids: string[];
192
+ }
193
+ export interface FalWorkflowListResponse {
194
+ workflows: FalWorkflowListItem[];
195
+ next_cursor: string | null;
196
+ has_more: boolean;
197
+ total?: number;
198
+ }
199
+ export interface FalWorkflowGetParams {
200
+ username: string;
201
+ workflow_name: string;
202
+ }
203
+ export interface FalWorkflowDetail {
204
+ name: string;
205
+ title: string;
206
+ user_nickname: string;
207
+ created_at: string;
208
+ is_public: boolean;
209
+ contents: Record<string, unknown>;
210
+ }
211
+ export interface FalWorkflowGetResponse {
212
+ workflow: FalWorkflowDetail;
213
+ }
214
+ export interface FalFile {
215
+ url: string;
216
+ content_type?: string;
217
+ file_name?: string;
218
+ file_size?: number;
219
+ }
220
+ export interface FalVideoFile extends FalFile {
221
+ width?: number;
222
+ height?: number;
223
+ fps?: number;
224
+ duration?: number;
225
+ num_frames?: number;
226
+ }
227
+ export interface FalTranscriptionWord {
228
+ text: string;
229
+ start: number;
230
+ end: number;
231
+ speaker_id: string;
232
+ type: "word" | "spacing" | "audio_event";
233
+ }
234
+ export interface FalElevenlabsSpeechToTextScribeV2Response {
235
+ text: string;
236
+ language_code: string;
237
+ language_probability: number;
238
+ words: FalTranscriptionWord[];
239
+ }
240
+ export type FalSeedanceResolution = "480p" | "720p";
241
+ export type FalSeedanceDuration = "auto" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15";
242
+ export type FalSeedanceAspectRatio = "auto" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
243
+ export interface FalSeedance2p0ImageToVideoResponse {
244
+ video: FalFile;
245
+ seed: number;
246
+ }
247
+ export interface FalSeedance2p0TextToVideoResponse {
248
+ video: FalFile;
249
+ seed: number;
250
+ }
251
+ export interface FalSeedance2p0FastImageToVideoResponse {
252
+ video: FalFile;
253
+ seed: number;
254
+ }
255
+ export interface FalSeedance2p0FastTextToVideoResponse {
256
+ video: FalFile;
257
+ seed: number;
258
+ }
259
+ export interface FalSeedance2p0ReferenceToVideoResponse {
260
+ video: FalFile;
261
+ seed: number;
262
+ }
263
+ export interface FalSeedance2p0FastReferenceToVideoResponse {
264
+ video: FalFile;
265
+ seed: number;
266
+ }
267
+ export type FalNanoBananaProAspectRatio = "auto" | "21:9" | "16:9" | "3:2" | "4:3" | "5:4" | "1:1" | "4:5" | "3:4" | "2:3" | "9:16";
268
+ export type FalNanoBananaProOutputFormat = "jpeg" | "png" | "webp";
269
+ export type FalNanoBananaProSafetyTolerance = "1" | "2" | "3" | "4" | "5" | "6";
270
+ export type FalNanoBananaProResolution = "1K" | "2K" | "4K";
271
+ export interface FalNanoBananaProTextToImageResponse {
272
+ images: FalFile[];
273
+ description: string;
274
+ }
275
+ export interface FalNanoBananaProEditResponse {
276
+ images: FalFile[];
277
+ description: string;
278
+ }
279
+ export type FalNanoBanana2AspectRatio = "auto" | "21:9" | "16:9" | "3:2" | "4:3" | "5:4" | "1:1" | "4:5" | "3:4" | "2:3" | "9:16" | "4:1" | "1:4" | "8:1" | "1:8";
280
+ export type FalNanoBanana2OutputFormat = "jpeg" | "png" | "webp";
281
+ export type FalNanoBanana2SafetyTolerance = "1" | "2" | "3" | "4" | "5" | "6";
282
+ export type FalNanoBanana2Resolution = "0.5K" | "1K" | "2K" | "4K";
283
+ export type FalNanoBanana2ThinkingLevel = "minimal" | "high";
284
+ export interface FalNanoBanana2TextToImageResponse {
285
+ images: FalFile[];
286
+ description: string;
287
+ }
288
+ export interface FalNanoBanana2EditResponse {
289
+ images: FalFile[];
290
+ description: string;
291
+ }
292
+ export type FalQwenImageSize = "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | {
293
+ width: number;
294
+ height: number;
295
+ };
296
+ export type FalQwenImageOutputFormat = "jpeg" | "png";
297
+ export type FalQwenImageAcceleration = "none" | "regular" | "high";
298
+ export interface FalQwenImageResponse {
299
+ images: FalFile[];
300
+ timings: Record<string, unknown>;
301
+ seed: number;
302
+ has_nsfw_concepts: boolean[];
303
+ prompt: string;
304
+ }
305
+ export interface FalQwenImageEditResponse {
306
+ images: FalFile[];
307
+ timings: Record<string, unknown>;
308
+ seed: number;
309
+ has_nsfw_concepts: boolean[];
310
+ prompt: string;
311
+ }
312
+ export type FalGptImage1p5ImageSize = "1024x1024" | "1536x1024" | "1024x1536";
313
+ export type FalGptImage1p5EditImageSize = "auto" | "1024x1024" | "1536x1024" | "1024x1536";
314
+ export type FalGptImage1p5Background = "auto" | "transparent" | "opaque";
315
+ export type FalGptImage1p5Quality = "low" | "medium" | "high";
316
+ export type FalGptImage1p5OutputFormat = "jpeg" | "png" | "webp";
317
+ export type FalGptImage1p5InputFidelity = "low" | "high";
318
+ export interface FalGptImage1p5Response {
319
+ images: FalFile[];
320
+ }
321
+ export interface FalGptImage1p5EditResponse {
322
+ images: FalFile[];
323
+ }
324
+ export type FalNanoBananaAspectRatio = "21:9" | "16:9" | "3:2" | "4:3" | "5:4" | "1:1" | "4:5" | "3:4" | "2:3" | "9:16";
325
+ export type FalNanoBananaEditAspectRatio = "auto" | FalNanoBananaAspectRatio;
326
+ export type FalNanoBananaOutputFormat = "jpeg" | "png" | "webp";
327
+ export type FalNanoBananaSafetyTolerance = "1" | "2" | "3" | "4" | "5" | "6";
328
+ export interface FalNanoBananaTextToImageResponse {
329
+ images: FalFile[];
330
+ description: string;
331
+ }
332
+ export interface FalNanoBananaEditResponse {
333
+ images: FalFile[];
334
+ description: string;
335
+ }
336
+ export type FalSeedreamV5LiteImageSize = "auto_2K" | "auto_4K" | {
337
+ width: number;
338
+ height: number;
339
+ };
340
+ export interface FalSeedreamV5LiteEditResponse {
341
+ images: FalFile[];
342
+ seed: number;
343
+ }
344
+ export interface FalSeedreamV5LiteTextToImageResponse {
345
+ images: FalFile[];
346
+ seed: number;
347
+ }
348
+ export type FalWanImageSize = "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | {
349
+ width: number;
350
+ height: number;
351
+ };
352
+ export interface FalWanV2p7TextToImageResponse {
353
+ images: FalFile[];
354
+ generated_text?: string;
355
+ seed: number;
356
+ }
357
+ export interface FalWanV2p7EditResponse {
358
+ images: FalFile[];
359
+ seed: number;
360
+ }
361
+ export type FalHunyuanImageV3ImageSize = "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | "auto" | {
362
+ width: number;
363
+ height: number;
364
+ };
365
+ export interface FalHunyuanImageV3InstructEditResponse {
366
+ images: FalFile[];
367
+ seed: number;
368
+ }
369
+ export interface FalWanV2p7TextToVideoResponse {
370
+ video: FalVideoFile;
371
+ seed: number;
372
+ actual_prompt?: string;
373
+ }
374
+ export interface FalWanV2p7ImageToVideoResponse {
375
+ video: FalVideoFile;
376
+ seed: number;
377
+ actual_prompt?: string;
378
+ }
379
+ export interface FalWanV2p7ReferenceToVideoResponse {
380
+ video: FalVideoFile;
381
+ seed: number;
382
+ actual_prompt?: string;
383
+ }
384
+ export interface FalWanV2p7EditVideoResponse {
385
+ video: FalVideoFile;
386
+ seed: number;
387
+ actual_prompt?: string;
388
+ }
389
+ export type FalXaiGrokImagineImageAspectRatio = "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";
390
+ export type FalXaiGrokImagineImageResolution = "1k" | "2k";
391
+ export type FalXaiGrokImagineImageOutputFormat = "jpeg" | "png" | "webp";
392
+ export interface FalXaiGrokImagineImageResponse {
393
+ images: FalFile[];
394
+ revised_prompt: string;
395
+ }
396
+ export interface FalXaiGrokImagineImageEditResponse {
397
+ images: FalFile[];
398
+ revised_prompt: string;
399
+ }
400
+ export type FalXaiGrokImagineVideoAspectRatio = "auto" | "16:9" | "4:3" | "3:2" | "1:1" | "2:3" | "3:4" | "9:16";
401
+ export type FalXaiGrokImagineVideoResolution = "480p" | "720p";
402
+ export type FalXaiGrokImagineVideoReferenceAspectRatio = "16:9" | "4:3" | "3:2" | "1:1" | "2:3" | "3:4" | "9:16";
403
+ export interface FalXaiGrokImagineVideoImageToVideoResponse {
404
+ video: FalFile;
405
+ }
406
+ export interface FalXaiGrokImagineVideoReferenceToVideoResponse {
407
+ video: FalFile;
408
+ }
409
+ export interface FalXaiGrokImagineVideoExtendVideoResponse {
410
+ video: FalFile;
411
+ }
412
+ export type FalXaiGrokImagineVideoEditResolution = "auto" | "480p" | "720p";
413
+ export interface FalXaiGrokImagineVideoEditVideoResponse {
414
+ video: FalFile;
415
+ }
416
+ export type FalVeo3p1AspectRatio = "16:9" | "9:16";
417
+ export type FalVeo3p1ImageToVideoAspectRatio = "auto" | FalVeo3p1AspectRatio;
418
+ export type FalVeo3p1Duration = "4s" | "6s" | "8s";
419
+ export type FalVeo3p1Resolution = "720p" | "1080p" | "4k";
420
+ export type FalVeo3p1SafetyTolerance = "1" | "2" | "3" | "4" | "5" | "6";
421
+ export interface FalVeo3p1TextToVideoResponse {
422
+ video: FalFile;
423
+ }
424
+ export interface FalVeo3p1ImageToVideoResponse {
425
+ video: FalFile;
426
+ }
427
+ export interface FalKlingV3MultiPromptElement {
428
+ prompt: string;
429
+ duration?: string;
430
+ }
431
+ export interface FalKlingV3ComboElementInput {
432
+ frontal_image_url?: string;
433
+ reference_image_urls?: string[];
434
+ video_url?: string;
435
+ voice_id?: string;
436
+ }
437
+ export interface FalKlingVideoV3ProImageToVideoResponse {
438
+ video: FalFile;
439
+ }
440
+ export interface FalKlingVideoV3ProTextToVideoResponse {
441
+ video: FalFile;
442
+ }
443
+ export interface FalKlingVideoV3StandardImageToVideoResponse {
444
+ video: FalFile;
445
+ }
446
+ export interface FalKlingVideoV3StandardTextToVideoResponse {
447
+ video: FalFile;
448
+ }
449
+ export interface FalKlingVideoO3p4kImageToVideoResponse {
450
+ video: FalFile;
451
+ }
452
+ export interface FalKlingVideoO3p4kReferenceToVideoResponse {
453
+ video: FalFile;
454
+ }
455
+ export interface FalKlingVideoO3p4kTextToVideoResponse {
456
+ video: FalFile;
457
+ }
458
+ export type FalSora2Model = "sora-2" | "sora-2-2025-12-08" | "sora-2-2025-10-06";
459
+ export type FalSora2AspectRatio = "9:16" | "16:9";
460
+ export type FalSora2ImageToVideoAspectRatio = "auto" | FalSora2AspectRatio;
461
+ export type FalSora2Resolution = "720p";
462
+ export type FalSora2ImageToVideoResolution = "auto" | "720p";
463
+ export type FalSora2Duration = 4 | 8 | 12 | 16 | 20;
464
+ export interface FalSora2TextToVideoResponse {
465
+ video: FalFile;
466
+ video_id: string;
467
+ thumbnail: FalFile | null;
468
+ spritesheet: FalFile | null;
469
+ }
470
+ export interface FalSora2ImageToVideoResponse {
471
+ video: FalFile;
472
+ video_id: string;
473
+ thumbnail: FalFile | null;
474
+ spritesheet: FalFile | null;
475
+ }
476
+ export interface FalLabelFilter {
477
+ key: string;
478
+ value: string | string[];
479
+ condition_type?: "equals" | "in" | "not_equals" | "not_in";
480
+ }
481
+ export type FalRunSource = "grpc-run" | "grpc-register" | "gateway" | "cron";
482
+ export interface FalLogEntry {
483
+ timestamp: string;
484
+ level: string;
485
+ message: string;
486
+ app: string;
487
+ revision: string;
488
+ labels?: Record<string, string>;
489
+ }
490
+ export interface FalFileItem {
491
+ path: string;
492
+ name: string;
493
+ created_time: string;
494
+ updated_time: string;
495
+ is_file: boolean;
496
+ size: number;
497
+ checksum_sha256?: string;
498
+ checksum_md5?: string;
499
+ }
500
+ export interface FalFilesListParams {
501
+ dir?: string;
502
+ }
503
+ export interface FalQueueSubmitResponse {
504
+ request_id: string;
505
+ response_url: string;
506
+ status_url: string;
507
+ cancel_url: string;
508
+ queue_position: number;
509
+ }
510
+ export interface FalQueueStatusParams {
511
+ endpoint_id: string;
512
+ request_id: string;
513
+ logs?: boolean;
514
+ }
515
+ export interface FalQueueResultParams {
516
+ endpoint_id: string;
517
+ request_id: string;
518
+ }
519
+ export type FalQueueResultResponse = Record<string, unknown>;
520
+ export interface FalQueueLog {
521
+ message: string;
522
+ level: "STDERR" | "STDOUT" | "ERROR" | "INFO" | "WARN" | "DEBUG";
523
+ source: string;
524
+ timestamp: string;
525
+ }
526
+ export interface FalQueueMetrics {
527
+ inference_time: number | null;
528
+ }
529
+ export interface FalQueueInQueueStatus {
530
+ status: "IN_QUEUE";
531
+ request_id: string;
532
+ response_url: string;
533
+ queue_position: number;
534
+ }
535
+ export interface FalQueueInProgressStatus {
536
+ status: "IN_PROGRESS";
537
+ request_id: string;
538
+ response_url: string;
539
+ logs?: FalQueueLog[];
540
+ }
541
+ export interface FalQueueCompletedStatus {
542
+ status: "COMPLETED";
543
+ request_id: string;
544
+ response_url: string;
545
+ logs?: FalQueueLog[];
546
+ metrics?: FalQueueMetrics;
547
+ error?: string;
548
+ error_type?: string;
549
+ }
550
+ export type FalQueueStatusResponse = FalQueueInQueueStatus | FalQueueInProgressStatus | FalQueueCompletedStatus;
551
+ export interface FalAppsQueueParams {
552
+ owner: string;
553
+ name: string;
554
+ }
555
+ export interface FalAppsQueueResponse {
556
+ queue_size: number;
557
+ }
558
+ interface FalPricingEstimateMethod {
559
+ (req: FalEstimateRequest, signal?: AbortSignal): Promise<FalEstimateResponse>;
560
+ schema: z.ZodType<FalEstimateRequest>;
561
+ }
562
+ interface FalModelsPricingNamespace {
563
+ (params: FalPricingParams, signal?: AbortSignal): Promise<FalPricingResponse>;
564
+ estimate: FalPricingEstimateMethod;
565
+ }
566
+ interface FalDeletePayloadsMethod {
567
+ (params: FalDeletePayloadsParams, signal?: AbortSignal): Promise<FalDeletePayloadsResponse>;
568
+ schema: z.ZodType<FalDeletePayloadsParams>;
569
+ }
570
+ interface FalModelsRequestsNamespace {
571
+ byEndpoint(params: FalRequestsParams, signal?: AbortSignal): Promise<FalRequestsResponse>;
572
+ payloads: FalDeletePayloadsMethod;
573
+ }
574
+ interface FalModelsNamespace {
575
+ (params?: FalModelSearchParams, signal?: AbortSignal): Promise<FalModelSearchResponse>;
576
+ pricing: FalModelsPricingNamespace;
577
+ usage(params?: FalUsageParams, signal?: AbortSignal): Promise<FalUsageResponse>;
578
+ analytics(params: FalAnalyticsParams, signal?: AbortSignal): Promise<FalAnalyticsResponse>;
579
+ requests: FalModelsRequestsNamespace;
580
+ }
581
+ interface FalQueueSubmitMethod {
582
+ (params: FalQueueSubmitParams, signal?: AbortSignal): Promise<FalQueueSubmitResponse>;
583
+ schema: z.ZodType<FalQueueSubmitParams>;
584
+ }
585
+ interface FalQueueNamespace {
586
+ submit: FalQueueSubmitMethod;
587
+ status(params: FalQueueStatusParams, signal?: AbortSignal): Promise<FalQueueStatusResponse>;
588
+ result(params: FalQueueResultParams, signal?: AbortSignal): Promise<FalQueueResultResponse>;
589
+ }
590
+ interface FalLogsStreamMethod {
591
+ (params?: FalLogsStreamParams, body?: FalLabelFilter[], signal?: AbortSignal): Promise<AsyncIterable<FalLogEntry>>;
592
+ schema: z.ZodType<FalLogsStreamParams>;
593
+ }
594
+ interface FalServerlessLogsNamespace {
595
+ stream: FalLogsStreamMethod;
596
+ }
597
+ interface FalFilesUploadUrlMethod {
598
+ (params: FalFilesUploadUrlParams, signal?: AbortSignal): Promise<boolean>;
599
+ schema: z.ZodType<FalFilesUploadUrlParams>;
600
+ }
601
+ interface FalFilesUploadLocalMethod {
602
+ (params: FalFilesUploadLocalParams, signal?: AbortSignal): Promise<boolean>;
603
+ schema: z.ZodType<FalFilesUploadLocalParams>;
604
+ }
605
+ interface FalServerlessFilesNamespace {
606
+ list(params?: FalFilesListParams, signal?: AbortSignal): Promise<FalFileItem[]>;
607
+ uploadUrl: FalFilesUploadUrlMethod;
608
+ uploadLocal: FalFilesUploadLocalMethod;
609
+ }
610
+ interface FalServerlessAppsQueueNamespace {
611
+ (params: FalAppsQueueParams, signal?: AbortSignal): Promise<FalAppsQueueResponse>;
612
+ }
613
+ interface FalServerlessAppsNamespace {
614
+ queue: FalServerlessAppsQueueNamespace;
615
+ }
616
+ interface FalServerlessNamespace {
617
+ logs: FalServerlessLogsNamespace;
618
+ files: FalServerlessFilesNamespace;
619
+ apps: FalServerlessAppsNamespace;
620
+ metrics(signal?: AbortSignal): Promise<string>;
621
+ }
622
+ interface FalWorkflowsNamespace {
623
+ (params?: FalWorkflowListParams, signal?: AbortSignal): Promise<FalWorkflowListResponse>;
624
+ get(params: FalWorkflowGetParams, signal?: AbortSignal): Promise<FalWorkflowGetResponse>;
625
+ }
626
+ interface FalV1Namespace {
627
+ models: FalModelsNamespace;
628
+ queue: FalQueueNamespace;
629
+ serverless: FalServerlessNamespace;
630
+ workflows: FalWorkflowsNamespace;
631
+ }
632
+ type FalSeedance2p0ImageToVideoFn = ((params: FalSeedance2p0ImageToVideoParams, signal?: AbortSignal) => Promise<FalSeedance2p0ImageToVideoResponse>) & {
633
+ schema: z.ZodType<FalSeedance2p0ImageToVideoParams>;
634
+ };
635
+ type FalSeedance2p0TextToVideoFn = ((params: FalSeedance2p0TextToVideoParams, signal?: AbortSignal) => Promise<FalSeedance2p0TextToVideoResponse>) & {
636
+ schema: z.ZodType<FalSeedance2p0TextToVideoParams>;
637
+ };
638
+ type FalSeedance2p0FastImageToVideoFn = ((params: FalSeedance2p0FastImageToVideoParams, signal?: AbortSignal) => Promise<FalSeedance2p0FastImageToVideoResponse>) & {
639
+ schema: z.ZodType<FalSeedance2p0FastImageToVideoParams>;
640
+ };
641
+ type FalSeedance2p0FastTextToVideoFn = ((params: FalSeedance2p0FastTextToVideoParams, signal?: AbortSignal) => Promise<FalSeedance2p0FastTextToVideoResponse>) & {
642
+ schema: z.ZodType<FalSeedance2p0FastTextToVideoParams>;
643
+ };
644
+ type FalSeedance2p0ReferenceToVideoFn = ((params: FalSeedance2p0ReferenceToVideoParams, signal?: AbortSignal) => Promise<FalSeedance2p0ReferenceToVideoResponse>) & {
645
+ schema: z.ZodType<FalSeedance2p0ReferenceToVideoParams>;
646
+ };
647
+ type FalSeedance2p0FastReferenceToVideoFn = ((params: FalSeedance2p0FastReferenceToVideoParams, signal?: AbortSignal) => Promise<FalSeedance2p0FastReferenceToVideoResponse>) & {
648
+ schema: z.ZodType<FalSeedance2p0FastReferenceToVideoParams>;
649
+ };
650
+ export interface FalRunBytedanceSeedance2p0FastNamespace {
651
+ imageToVideo: FalSeedance2p0FastImageToVideoFn;
652
+ textToVideo: FalSeedance2p0FastTextToVideoFn;
653
+ referenceToVideo: FalSeedance2p0FastReferenceToVideoFn;
654
+ }
655
+ export interface FalRunBytedanceSeedance2p0Namespace {
656
+ imageToVideo: FalSeedance2p0ImageToVideoFn;
657
+ textToVideo: FalSeedance2p0TextToVideoFn;
658
+ referenceToVideo: FalSeedance2p0ReferenceToVideoFn;
659
+ fast: FalRunBytedanceSeedance2p0FastNamespace;
660
+ }
661
+ export interface FalRunBytedanceSeedreamV5LiteNamespace {
662
+ edit: FalSeedreamV5LiteEditFn;
663
+ textToImage: FalSeedreamV5LiteTextToImageFn;
664
+ }
665
+ export interface FalRunBytedanceSeedreamV5Namespace {
666
+ lite: FalRunBytedanceSeedreamV5LiteNamespace;
667
+ }
668
+ export interface FalRunBytedanceSeedreamNamespace {
669
+ v5: FalRunBytedanceSeedreamV5Namespace;
670
+ }
671
+ export interface FalRunBytedanceNamespace {
672
+ seedance2p0: FalRunBytedanceSeedance2p0Namespace;
673
+ seedream: FalRunBytedanceSeedreamNamespace;
674
+ }
675
+ type FalNanoBananaProEditFn = ((params: FalNanoBananaProEditParams, signal?: AbortSignal) => Promise<FalNanoBananaProEditResponse>) & {
676
+ schema: z.ZodType<FalNanoBananaProEditParams>;
677
+ };
678
+ type FalNanoBananaProTextToImageFn = ((params: FalNanoBananaProTextToImageParams, signal?: AbortSignal) => Promise<FalNanoBananaProTextToImageResponse>) & {
679
+ schema: z.ZodType<FalNanoBananaProTextToImageParams>;
680
+ };
681
+ export interface FalRunNanoBananaProNamespace {
682
+ textToImage: FalNanoBananaProTextToImageFn;
683
+ edit: FalNanoBananaProEditFn;
684
+ }
685
+ type FalNanoBanana2TextToImageFn = ((params: FalNanoBanana2TextToImageParams, signal?: AbortSignal) => Promise<FalNanoBanana2TextToImageResponse>) & {
686
+ schema: z.ZodType<FalNanoBanana2TextToImageParams>;
687
+ };
688
+ type FalNanoBanana2EditFn = ((params: FalNanoBanana2EditParams, signal?: AbortSignal) => Promise<FalNanoBanana2EditResponse>) & {
689
+ schema: z.ZodType<FalNanoBanana2EditParams>;
690
+ };
691
+ export interface FalRunNanoBanana2Namespace {
692
+ textToImage: FalNanoBanana2TextToImageFn;
693
+ edit: FalNanoBanana2EditFn;
694
+ }
695
+ type FalSeedreamV5LiteEditFn = ((params: FalSeedreamV5LiteEditParams, signal?: AbortSignal) => Promise<FalSeedreamV5LiteEditResponse>) & {
696
+ schema: z.ZodType<FalSeedreamV5LiteEditParams>;
697
+ };
698
+ type FalSeedreamV5LiteTextToImageFn = ((params: FalSeedreamV5LiteTextToImageParams, signal?: AbortSignal) => Promise<FalSeedreamV5LiteTextToImageResponse>) & {
699
+ schema: z.ZodType<FalSeedreamV5LiteTextToImageParams>;
700
+ };
701
+ type FalWanV2p7TextToImageFn = ((params: FalWanV2p7TextToImageParams, signal?: AbortSignal) => Promise<FalWanV2p7TextToImageResponse>) & {
702
+ schema: z.ZodType<FalWanV2p7TextToImageParams>;
703
+ };
704
+ type FalWanV2p7EditFn = ((params: FalWanV2p7EditParams, signal?: AbortSignal) => Promise<FalWanV2p7EditResponse>) & {
705
+ schema: z.ZodType<FalWanV2p7EditParams>;
706
+ };
707
+ type FalWanV2p7TextToVideoFn = ((params: FalWanV2p7TextToVideoParams, signal?: AbortSignal) => Promise<FalWanV2p7TextToVideoResponse>) & {
708
+ schema: z.ZodType<FalWanV2p7TextToVideoParams>;
709
+ };
710
+ type FalWanV2p7ImageToVideoFn = ((params: FalWanV2p7ImageToVideoParams, signal?: AbortSignal) => Promise<FalWanV2p7ImageToVideoResponse>) & {
711
+ schema: z.ZodType<FalWanV2p7ImageToVideoParams>;
712
+ };
713
+ type FalWanV2p7ReferenceToVideoFn = ((params: FalWanV2p7ReferenceToVideoParams, signal?: AbortSignal) => Promise<FalWanV2p7ReferenceToVideoResponse>) & {
714
+ schema: z.ZodType<FalWanV2p7ReferenceToVideoParams>;
715
+ };
716
+ type FalWanV2p7EditVideoFn = ((params: FalWanV2p7EditVideoParams, signal?: AbortSignal) => Promise<FalWanV2p7EditVideoResponse>) & {
717
+ schema: z.ZodType<FalWanV2p7EditVideoParams>;
718
+ };
719
+ export interface FalRunWanV2p7ProNamespace {
720
+ textToImage: FalWanV2p7TextToImageFn;
721
+ edit: FalWanV2p7EditFn;
722
+ }
723
+ export interface FalRunWanV2p7Namespace {
724
+ textToImage: FalWanV2p7TextToImageFn;
725
+ edit: FalWanV2p7EditFn;
726
+ textToVideo: FalWanV2p7TextToVideoFn;
727
+ imageToVideo: FalWanV2p7ImageToVideoFn;
728
+ referenceToVideo: FalWanV2p7ReferenceToVideoFn;
729
+ editVideo: FalWanV2p7EditVideoFn;
730
+ pro: FalRunWanV2p7ProNamespace;
731
+ }
732
+ export interface FalRunWanNamespace {
733
+ v2p7: FalRunWanV2p7Namespace;
734
+ }
735
+ type FalXaiGrokImagineImageEditFn = ((params: FalXaiGrokImagineImageEditParams, signal?: AbortSignal) => Promise<FalXaiGrokImagineImageEditResponse>) & {
736
+ schema: z.ZodType<FalXaiGrokImagineImageEditParams>;
737
+ };
738
+ type FalXaiGrokImagineImageFn = ((params: FalXaiGrokImagineImageParams, signal?: AbortSignal) => Promise<FalXaiGrokImagineImageResponse>) & {
739
+ schema: z.ZodType<FalXaiGrokImagineImageParams>;
740
+ edit: FalXaiGrokImagineImageEditFn;
741
+ };
742
+ type FalXaiGrokImagineVideoImageToVideoFn = ((params: FalXaiGrokImagineVideoImageToVideoParams, signal?: AbortSignal) => Promise<FalXaiGrokImagineVideoImageToVideoResponse>) & {
743
+ schema: z.ZodType<FalXaiGrokImagineVideoImageToVideoParams>;
744
+ };
745
+ type FalXaiGrokImagineVideoReferenceToVideoFn = ((params: FalXaiGrokImagineVideoReferenceToVideoParams, signal?: AbortSignal) => Promise<FalXaiGrokImagineVideoReferenceToVideoResponse>) & {
746
+ schema: z.ZodType<FalXaiGrokImagineVideoReferenceToVideoParams>;
747
+ };
748
+ type FalXaiGrokImagineVideoExtendVideoFn = ((params: FalXaiGrokImagineVideoExtendVideoParams, signal?: AbortSignal) => Promise<FalXaiGrokImagineVideoExtendVideoResponse>) & {
749
+ schema: z.ZodType<FalXaiGrokImagineVideoExtendVideoParams>;
750
+ };
751
+ type FalXaiGrokImagineVideoEditVideoFn = ((params: FalXaiGrokImagineVideoEditVideoParams, signal?: AbortSignal) => Promise<FalXaiGrokImagineVideoEditVideoResponse>) & {
752
+ schema: z.ZodType<FalXaiGrokImagineVideoEditVideoParams>;
753
+ };
754
+ export interface FalRunXaiGrokImagineVideoNamespace {
755
+ imageToVideo: FalXaiGrokImagineVideoImageToVideoFn;
756
+ referenceToVideo: FalXaiGrokImagineVideoReferenceToVideoFn;
757
+ extendVideo: FalXaiGrokImagineVideoExtendVideoFn;
758
+ editVideo: FalXaiGrokImagineVideoEditVideoFn;
759
+ }
760
+ export interface FalRunXaiNamespace {
761
+ grokImagineImage: FalXaiGrokImagineImageFn;
762
+ grokImagineVideo: FalRunXaiGrokImagineVideoNamespace;
763
+ }
764
+ type FalQwenImageEditFn = ((params: FalQwenImageEditParams, signal?: AbortSignal) => Promise<FalQwenImageEditResponse>) & {
765
+ schema: z.ZodType<FalQwenImageEditParams>;
766
+ };
767
+ type FalQwenImageFn = ((params: FalQwenImageParams, signal?: AbortSignal) => Promise<FalQwenImageResponse>) & {
768
+ schema: z.ZodType<FalQwenImageParams>;
769
+ edit: FalQwenImageEditFn;
770
+ };
771
+ type FalGptImage1p5EditFn = ((params: FalGptImage1p5EditParams, signal?: AbortSignal) => Promise<FalGptImage1p5EditResponse>) & {
772
+ schema: z.ZodType<FalGptImage1p5EditParams>;
773
+ };
774
+ type FalGptImage1p5Fn = ((params: FalGptImage1p5Params, signal?: AbortSignal) => Promise<FalGptImage1p5Response>) & {
775
+ schema: z.ZodType<FalGptImage1p5Params>;
776
+ edit: FalGptImage1p5EditFn;
777
+ };
778
+ type FalNanoBananaTextToImageFn = ((params: FalNanoBananaTextToImageParams, signal?: AbortSignal) => Promise<FalNanoBananaTextToImageResponse>) & {
779
+ schema: z.ZodType<FalNanoBananaTextToImageParams>;
780
+ };
781
+ type FalNanoBananaEditFn = ((params: FalNanoBananaEditParams, signal?: AbortSignal) => Promise<FalNanoBananaEditResponse>) & {
782
+ schema: z.ZodType<FalNanoBananaEditParams>;
783
+ };
784
+ export interface FalRunNanoBananaNamespace {
785
+ textToImage: FalNanoBananaTextToImageFn;
786
+ edit: FalNanoBananaEditFn;
787
+ }
788
+ type FalVeo3p1TextToVideoFn = ((params: FalVeo3p1TextToVideoParams, signal?: AbortSignal) => Promise<FalVeo3p1TextToVideoResponse>) & {
789
+ schema: z.ZodType<FalVeo3p1TextToVideoParams>;
790
+ };
791
+ type FalVeo3p1ImageToVideoFn = ((params: FalVeo3p1ImageToVideoParams, signal?: AbortSignal) => Promise<FalVeo3p1ImageToVideoResponse>) & {
792
+ schema: z.ZodType<FalVeo3p1ImageToVideoParams>;
793
+ };
794
+ export interface FalRunVeo3p1Namespace {
795
+ textToVideo: FalVeo3p1TextToVideoFn;
796
+ imageToVideo: FalVeo3p1ImageToVideoFn;
797
+ }
798
+ type FalKlingVideoV3ProImageToVideoFn = ((params: FalKlingVideoV3ProImageToVideoParams, signal?: AbortSignal) => Promise<FalKlingVideoV3ProImageToVideoResponse>) & {
799
+ schema: z.ZodType<FalKlingVideoV3ProImageToVideoParams>;
800
+ };
801
+ type FalKlingVideoV3ProTextToVideoFn = ((params: FalKlingVideoV3ProTextToVideoParams, signal?: AbortSignal) => Promise<FalKlingVideoV3ProTextToVideoResponse>) & {
802
+ schema: z.ZodType<FalKlingVideoV3ProTextToVideoParams>;
803
+ };
804
+ type FalKlingVideoV3StandardImageToVideoFn = ((params: FalKlingVideoV3StandardImageToVideoParams, signal?: AbortSignal) => Promise<FalKlingVideoV3StandardImageToVideoResponse>) & {
805
+ schema: z.ZodType<FalKlingVideoV3StandardImageToVideoParams>;
806
+ };
807
+ type FalKlingVideoV3StandardTextToVideoFn = ((params: FalKlingVideoV3StandardTextToVideoParams, signal?: AbortSignal) => Promise<FalKlingVideoV3StandardTextToVideoResponse>) & {
808
+ schema: z.ZodType<FalKlingVideoV3StandardTextToVideoParams>;
809
+ };
810
+ export interface FalRunKlingVideoV3ProNamespace {
811
+ imageToVideo: FalKlingVideoV3ProImageToVideoFn;
812
+ textToVideo: FalKlingVideoV3ProTextToVideoFn;
813
+ }
814
+ export interface FalRunKlingVideoV3StandardNamespace {
815
+ imageToVideo: FalKlingVideoV3StandardImageToVideoFn;
816
+ textToVideo: FalKlingVideoV3StandardTextToVideoFn;
817
+ }
818
+ export interface FalRunKlingVideoV3Namespace {
819
+ pro: FalRunKlingVideoV3ProNamespace;
820
+ standard: FalRunKlingVideoV3StandardNamespace;
821
+ }
822
+ type FalKlingVideoO3p4kImageToVideoFn = ((params: FalKlingVideoO3p4kImageToVideoParams, signal?: AbortSignal) => Promise<FalKlingVideoO3p4kImageToVideoResponse>) & {
823
+ schema: z.ZodType<FalKlingVideoO3p4kImageToVideoParams>;
824
+ };
825
+ type FalKlingVideoO3p4kReferenceToVideoFn = ((params: FalKlingVideoO3p4kReferenceToVideoParams, signal?: AbortSignal) => Promise<FalKlingVideoO3p4kReferenceToVideoResponse>) & {
826
+ schema: z.ZodType<FalKlingVideoO3p4kReferenceToVideoParams>;
827
+ };
828
+ type FalKlingVideoO3p4kTextToVideoFn = ((params: FalKlingVideoO3p4kTextToVideoParams, signal?: AbortSignal) => Promise<FalKlingVideoO3p4kTextToVideoResponse>) & {
829
+ schema: z.ZodType<FalKlingVideoO3p4kTextToVideoParams>;
830
+ };
831
+ export interface FalRunKlingVideoO3p4kNamespace {
832
+ imageToVideo: FalKlingVideoO3p4kImageToVideoFn;
833
+ referenceToVideo: FalKlingVideoO3p4kReferenceToVideoFn;
834
+ textToVideo: FalKlingVideoO3p4kTextToVideoFn;
835
+ }
836
+ export interface FalRunKlingVideoNamespace {
837
+ v3: FalRunKlingVideoV3Namespace;
838
+ o3p4k: FalRunKlingVideoO3p4kNamespace;
839
+ }
840
+ type FalSora2TextToVideoFn = ((params: FalSora2TextToVideoParams, signal?: AbortSignal) => Promise<FalSora2TextToVideoResponse>) & {
841
+ schema: z.ZodType<FalSora2TextToVideoParams>;
842
+ };
843
+ type FalSora2ImageToVideoFn = ((params: FalSora2ImageToVideoParams, signal?: AbortSignal) => Promise<FalSora2ImageToVideoResponse>) & {
844
+ schema: z.ZodType<FalSora2ImageToVideoParams>;
845
+ };
846
+ export interface FalRunSora2Namespace {
847
+ textToVideo: FalSora2TextToVideoFn;
848
+ imageToVideo: FalSora2ImageToVideoFn;
849
+ }
850
+ type FalHunyuanImageV3InstructEditFn = ((params: FalHunyuanImageV3InstructEditParams, signal?: AbortSignal) => Promise<FalHunyuanImageV3InstructEditResponse>) & {
851
+ schema: z.ZodType<FalHunyuanImageV3InstructEditParams>;
852
+ };
853
+ export interface FalRunHunyuanV3Namespace {
854
+ instructEdit: FalHunyuanImageV3InstructEditFn;
855
+ }
856
+ export interface FalRunHunyuanNamespace {
857
+ v3: FalRunHunyuanV3Namespace;
858
+ }
859
+ export interface FalRunNamespace {
860
+ bytedance: FalRunBytedanceNamespace;
861
+ hunyuan: FalRunHunyuanNamespace;
862
+ klingVideo: FalRunKlingVideoNamespace;
863
+ nanoBanana: FalRunNanoBananaNamespace;
864
+ nanoBananaPro: FalRunNanoBananaProNamespace;
865
+ nanoBanana2: FalRunNanoBanana2Namespace;
866
+ qwenImage: FalQwenImageFn;
867
+ gptImage1p5: FalGptImage1p5Fn;
868
+ sora2: FalRunSora2Namespace;
869
+ veo3p1: FalRunVeo3p1Namespace;
870
+ falAi: FalRunFalAiNamespace;
871
+ wan: FalRunWanNamespace;
872
+ xai: FalRunXaiNamespace;
873
+ }
874
+ type FalElevenlabsSpeechToTextScribeV2Fn = ((params: FalElevenlabsSpeechToTextScribeV2Params, signal?: AbortSignal) => Promise<FalElevenlabsSpeechToTextScribeV2Response>) & {
875
+ schema: z.ZodType<FalElevenlabsSpeechToTextScribeV2Params>;
876
+ };
877
+ export interface FalRunElevenlabsSpeechToTextNamespace {
878
+ scribeV2: FalElevenlabsSpeechToTextScribeV2Fn;
879
+ }
880
+ export interface FalRunElevenlabsNamespace {
881
+ speechToText: FalRunElevenlabsSpeechToTextNamespace;
882
+ }
883
+ export interface FalRunFalAiNamespace {
884
+ elevenlabs: FalRunElevenlabsNamespace;
885
+ }
886
+ interface FalGetV1ModelsNamespace {
887
+ (params?: FalModelSearchParams, signal?: AbortSignal): Promise<FalModelSearchResponse>;
888
+ pricing: FalModelsPricingNamespace;
889
+ usage(params?: FalUsageParams, signal?: AbortSignal): Promise<FalUsageResponse>;
890
+ analytics(params: FalAnalyticsParams, signal?: AbortSignal): Promise<FalAnalyticsResponse>;
891
+ requests: FalModelsRequestsNamespace;
892
+ }
893
+ interface FalGetV1QueueNamespace {
894
+ status(params: FalQueueStatusParams, signal?: AbortSignal): Promise<FalQueueStatusResponse>;
895
+ result(params: FalQueueResultParams, signal?: AbortSignal): Promise<FalQueueResultResponse>;
896
+ }
897
+ interface FalGetV1ServerlessFilesNamespace {
898
+ list(params?: FalFilesListParams, signal?: AbortSignal): Promise<FalFileItem[]>;
899
+ }
900
+ interface FalGetV1ServerlessAppsNamespace {
901
+ queue(params: FalAppsQueueParams, signal?: AbortSignal): Promise<FalAppsQueueResponse>;
902
+ }
903
+ interface FalGetV1ServerlessNamespace {
904
+ files: FalGetV1ServerlessFilesNamespace;
905
+ apps: FalGetV1ServerlessAppsNamespace;
906
+ metrics(signal?: AbortSignal): Promise<string>;
907
+ }
908
+ interface FalGetV1WorkflowsNamespace {
909
+ (params?: FalWorkflowListParams, signal?: AbortSignal): Promise<FalWorkflowListResponse>;
910
+ get(params: FalWorkflowGetParams, signal?: AbortSignal): Promise<FalWorkflowGetResponse>;
911
+ }
912
+ interface FalGetV1Namespace {
913
+ models: FalGetV1ModelsNamespace;
914
+ queue: FalGetV1QueueNamespace;
915
+ serverless: FalGetV1ServerlessNamespace;
916
+ workflows: FalGetV1WorkflowsNamespace;
917
+ }
918
+ interface FalPostV1ModelsPricingNamespace {
919
+ estimate: FalPricingEstimateMethod;
920
+ }
921
+ interface FalPostV1ModelsNamespace {
922
+ pricing: FalPostV1ModelsPricingNamespace;
923
+ }
924
+ interface FalPostV1QueueNamespace {
925
+ submit: FalQueueSubmitMethod;
926
+ }
927
+ interface FalPostV1ServerlessFilesNamespace {
928
+ uploadUrl: FalFilesUploadUrlMethod;
929
+ uploadLocal: FalFilesUploadLocalMethod;
930
+ }
931
+ interface FalPostV1ServerlessNamespace {
932
+ files: FalPostV1ServerlessFilesNamespace;
933
+ }
934
+ interface FalPostV1Namespace {
935
+ models: FalPostV1ModelsNamespace;
936
+ queue: FalPostV1QueueNamespace;
937
+ serverless: FalPostV1ServerlessNamespace;
938
+ }
939
+ interface FalPostStreamV1ServerlessLogsNamespace {
940
+ stream: FalLogsStreamMethod;
941
+ }
942
+ interface FalPostStreamV1ServerlessNamespace {
943
+ logs: FalPostStreamV1ServerlessLogsNamespace;
944
+ }
945
+ interface FalPostStreamV1Namespace {
946
+ serverless: FalPostStreamV1ServerlessNamespace;
947
+ }
948
+ interface FalPostStreamNamespace {
949
+ v1: FalPostStreamV1Namespace;
950
+ }
951
+ interface FalDeleteV1ModelsRequestsNamespace {
952
+ payloads: FalDeletePayloadsMethod;
953
+ }
954
+ interface FalDeleteV1ModelsNamespace {
955
+ requests: FalDeleteV1ModelsRequestsNamespace;
956
+ }
957
+ interface FalDeleteV1Namespace {
958
+ models: FalDeleteV1ModelsNamespace;
959
+ }
960
+ interface FalGetNamespace {
961
+ v1: FalGetV1Namespace;
962
+ }
963
+ interface FalPostNamespace {
964
+ v1: FalPostV1Namespace;
965
+ run: FalRunNamespace;
966
+ stream: FalPostStreamNamespace;
967
+ }
968
+ interface FalDeleteNamespace {
969
+ v1: FalDeleteV1Namespace;
970
+ }
971
+ export interface FalStorageLifecycle {
972
+ expiration_duration_seconds: number;
973
+ allow_io_storage?: boolean;
974
+ }
975
+ export interface FalStorageUploadInitiateResponse {
976
+ file_url: string;
977
+ upload_url: string;
978
+ }
979
+ export interface FalStorageUploadPartResponse {
980
+ partNumber: number;
981
+ etag: string;
982
+ }
983
+ type FalStorageUploadInitiateFn = ((params: FalStorageUploadInitiateParams, signal?: AbortSignal) => Promise<FalStorageUploadInitiateResponse>) & {
984
+ schema: z.ZodType<FalStorageUploadInitiateParams>;
985
+ };
986
+ type FalStorageUploadInitiateMultipartFn = ((params: FalStorageUploadInitiateMultipartParams, signal?: AbortSignal) => Promise<FalStorageUploadInitiateResponse>) & {
987
+ schema: z.ZodType<FalStorageUploadInitiateMultipartParams>;
988
+ };
989
+ type FalStorageUploadCompleteMultipartFn = ((params: FalStorageUploadCompleteMultipartParams, signal?: AbortSignal) => Promise<Response>) & {
990
+ schema: z.ZodType<FalStorageUploadCompleteMultipartParams>;
991
+ };
992
+ export interface FalStorageUploadNamespace {
993
+ initiate: FalStorageUploadInitiateFn;
994
+ initiateMultipart: FalStorageUploadInitiateMultipartFn;
995
+ completeMultipart: FalStorageUploadCompleteMultipartFn;
996
+ }
997
+ export interface FalStorageNamespace {
998
+ upload: FalStorageUploadNamespace;
999
+ }
1000
+ export interface FalProvider {
1001
+ v1: FalV1Namespace;
1002
+ run: FalRunNamespace;
1003
+ storage: FalStorageNamespace;
1004
+ get: FalGetNamespace;
1005
+ post: FalPostNamespace;
1006
+ delete: FalDeleteNamespace;
1007
+ }
1008
+ //# sourceMappingURL=types.d.ts.map