@nodetool-ai/fal-nodes 0.7.0-rc.11

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,84 @@
1
+ /**
2
+ * FalProvider — TypeScript port of nodetool-fal fal_provider.py.
3
+ *
4
+ * Provides textToImage, imageToImage, textToSpeech methods and the full list
5
+ * of available image models (ported from get_available_image_models).
6
+ */
7
+ export interface FalImageModel {
8
+ id: string;
9
+ name: string;
10
+ }
11
+ /** All FAL AI image models available through the provider. */
12
+ export declare const FAL_IMAGE_MODELS: readonly FalImageModel[];
13
+ export interface TextToImageParams {
14
+ /** Text description of the desired image. */
15
+ prompt: string;
16
+ /** FAL endpoint ID (e.g. "fal-ai/flux/dev"). */
17
+ model: string;
18
+ negativePrompt?: string;
19
+ width?: number;
20
+ height?: number;
21
+ seed?: number;
22
+ guidanceScale?: number;
23
+ numInferenceSteps?: number;
24
+ safetyCheck?: boolean;
25
+ }
26
+ export interface ImageToImageParams {
27
+ /** Input image as raw bytes (PNG or JPEG). */
28
+ imageBytes: Uint8Array;
29
+ /** Text prompt describing the desired transformation. */
30
+ prompt: string;
31
+ /** FAL endpoint ID. */
32
+ model: string;
33
+ negativePrompt?: string;
34
+ strength?: number;
35
+ guidanceScale?: number;
36
+ numInferenceSteps?: number;
37
+ targetWidth?: number;
38
+ targetHeight?: number;
39
+ seed?: number;
40
+ }
41
+ export interface TextToSpeechParams {
42
+ text: string;
43
+ /** FAL TTS endpoint ID (e.g. "fal-ai/mmaudio-v2/text-to-audio"). */
44
+ model: string;
45
+ numSteps?: number;
46
+ duration?: number;
47
+ cfgStrength?: number;
48
+ negativePrompt?: string;
49
+ seed?: number;
50
+ }
51
+ export declare class FalProvider {
52
+ private readonly apiKey;
53
+ totalRequests: number;
54
+ totalImages: number;
55
+ constructor(apiKeyOrSecrets: string | Record<string, string>);
56
+ /**
57
+ * Generate an image from a text prompt.
58
+ * Returns the raw image bytes (PNG).
59
+ */
60
+ textToImage(params: TextToImageParams): Promise<Uint8Array>;
61
+ /**
62
+ * Transform an existing image based on a text prompt.
63
+ * Returns raw image bytes (PNG).
64
+ */
65
+ imageToImage(params: ImageToImageParams): Promise<Uint8Array>;
66
+ /**
67
+ * Generate audio from text using a FAL TTS endpoint.
68
+ * Returns the raw audio bytes.
69
+ */
70
+ textToSpeech(params: TextToSpeechParams): Promise<Uint8Array>;
71
+ /** Return all available FAL AI image models. */
72
+ getAvailableImageModels(): readonly FalImageModel[];
73
+ /**
74
+ * Upload bytes to FAL CDN and return the CDN URL.
75
+ * Thin wrapper around falUpload for callers that already have a FalProvider.
76
+ */
77
+ upload(data: Uint8Array, contentType: string): Promise<string>;
78
+ /**
79
+ * Convert an image ref ({data, uri}) to a data: URI or FAL CDN URL
80
+ * suitable for passing as image_url in API arguments.
81
+ */
82
+ imageRefToUrl(imageRef: Record<string, unknown>): Promise<string | null>;
83
+ }
84
+ //# sourceMappingURL=fal-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fal-provider.d.ts","sourceRoot":"","sources":["../src/fal-provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAgDpD,CAAC;AAMF,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE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IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpE;;;OAGG;IACG,aAAa,CACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAG1B"}
@@ -0,0 +1,285 @@
1
+ /**
2
+ * FalProvider — TypeScript port of nodetool-fal fal_provider.py.
3
+ *
4
+ * Provides textToImage, imageToImage, textToSpeech methods and the full list
5
+ * of available image models (ported from get_available_image_models).
6
+ */
7
+ import { getFalApiKey, falSubmit, falUpload, imageToDataUrl } from "./fal-base.js";
8
+ /** All FAL AI image models available through the provider. */
9
+ export const FAL_IMAGE_MODELS = [
10
+ // FLUX Models
11
+ { id: "fal-ai/flux/dev", name: "FLUX.1 Dev" },
12
+ { id: "fal-ai/flux/schnell", name: "FLUX.1 Schnell" },
13
+ { id: "fal-ai/flux-pro/v1.1", name: "FLUX.1 Pro v1.1" },
14
+ { id: "fal-ai/flux-pro/v1.1-ultra", name: "FLUX.1 Pro Ultra" },
15
+ { id: "fal-ai/flux-pro/new", name: "FLUX.1 Pro (New)" },
16
+ { id: "fal-ai/flux-lora", name: "FLUX.1 Dev with LoRA" },
17
+ { id: "fal-ai/flux-subject", name: "FLUX.1 Subject" },
18
+ { id: "fal-ai/flux-general", name: "FLUX.1 General" },
19
+ // Ideogram Models
20
+ { id: "fal-ai/ideogram/v2", name: "Ideogram v2" },
21
+ { id: "fal-ai/ideogram/v2/turbo", name: "Ideogram v2 Turbo" },
22
+ // Recraft Models
23
+ { id: "fal-ai/recraft-v3", name: "Recraft v3" },
24
+ { id: "fal-ai/recraft-20b", name: "Recraft 20B" },
25
+ // Stable Diffusion Models
26
+ {
27
+ id: "fal-ai/stable-diffusion-v3-medium",
28
+ name: "Stable Diffusion v3 Medium"
29
+ },
30
+ {
31
+ id: "fal-ai/stable-diffusion-v35-large",
32
+ name: "Stable Diffusion v3.5 Large"
33
+ },
34
+ { id: "fal-ai/fast-sdxl", name: "Fast SDXL" },
35
+ { id: "fal-ai/stable-cascade", name: "Stable Cascade" },
36
+ { id: "fal-ai/fast-lightning-sdxl", name: "Fast Lightning SDXL" },
37
+ { id: "fal-ai/hyper-sdxl", name: "Hyper SDXL" },
38
+ { id: "fal-ai/fast-turbo-diffusion", name: "Fast Turbo Diffusion" },
39
+ { id: "fal-ai/fast-lcm-diffusion", name: "Fast LCM Diffusion" },
40
+ { id: "fal-ai/lcm", name: "LCM Diffusion" },
41
+ // Bria Models (Licensed Data)
42
+ { id: "fal-ai/bria/text-to-image/base", name: "Bria v1" },
43
+ { id: "fal-ai/bria/text-to-image/fast", name: "Bria v1 Fast" },
44
+ { id: "fal-ai/bria/text-to-image/hd", name: "Bria v1 HD" },
45
+ // Other Models
46
+ { id: "fal-ai/aura-flow", name: "AuraFlow v0.3" },
47
+ { id: "fal-ai/switti/1024", name: "Switti" },
48
+ { id: "fal-ai/sana", name: "Sana v1" },
49
+ { id: "fal-ai/omnigen-v1", name: "OmniGen v1" },
50
+ { id: "fal-ai/luma-photon", name: "Luma Photon" },
51
+ { id: "fal-ai/luma-photon/flash", name: "Luma Photon Flash" },
52
+ { id: "fal-ai/playground-v25", name: "Playground v2.5" },
53
+ { id: "fal-ai/fooocus", name: "Fooocus" },
54
+ { id: "fal-ai/illusion-diffusion", name: "Illusion Diffusion" },
55
+ { id: "fal-ai/imagen4/preview", name: "Imagen 4 Preview" },
56
+ { id: "fal-ai/lora", name: "LoRA Text-to-Image" }
57
+ ];
58
+ // ---------------------------------------------------------------------------
59
+ // Validation error formatter (ported from Python _format_validation_error)
60
+ // ---------------------------------------------------------------------------
61
+ function formatValidationError(errorStr) {
62
+ try {
63
+ const match = /\[{.*}\]/s.exec(errorStr);
64
+ if (match) {
65
+ const errors = JSON.parse(match[0]);
66
+ if (Array.isArray(errors) && errors.length > 0) {
67
+ const formatted = [];
68
+ for (const error of errors) {
69
+ if (typeof error !== "object" || error === null)
70
+ continue;
71
+ const loc = error.loc;
72
+ const fieldName = loc ? loc[loc.length - 1] : "unknown field";
73
+ const msg = error.msg ?? "";
74
+ const inputValue = error.input;
75
+ const ctx = error.ctx ?? {};
76
+ const errorType = error.type ?? "";
77
+ if (errorType === "less_than_equal" && "le" in ctx) {
78
+ formatted.push(`Parameter '${fieldName}' must be ${ctx.le} or less (you provided ${inputValue})`);
79
+ }
80
+ else if (errorType === "greater_than_equal" && "ge" in ctx) {
81
+ formatted.push(`Parameter '${fieldName}' must be ${ctx.ge} or greater (you provided ${inputValue})`);
82
+ }
83
+ else if (errorType === "missing") {
84
+ formatted.push(`Required parameter '${fieldName}' is missing`);
85
+ }
86
+ else if (errorType === "value_error") {
87
+ formatted.push(`Parameter '${fieldName}': ${msg}`);
88
+ }
89
+ else if (inputValue !== undefined) {
90
+ formatted.push(`Parameter '${fieldName}': ${msg} (you provided ${inputValue})`);
91
+ }
92
+ else {
93
+ formatted.push(`Parameter '${fieldName}': ${msg}`);
94
+ }
95
+ }
96
+ if (formatted.length > 0) {
97
+ return "Invalid parameters:\n - " + formatted.join("\n - ");
98
+ }
99
+ }
100
+ }
101
+ }
102
+ catch {
103
+ // Fall through to return original
104
+ }
105
+ return errorStr;
106
+ }
107
+ // ---------------------------------------------------------------------------
108
+ // FalProvider class
109
+ // ---------------------------------------------------------------------------
110
+ export class FalProvider {
111
+ apiKey;
112
+ totalRequests = 0;
113
+ totalImages = 0;
114
+ constructor(apiKeyOrSecrets) {
115
+ if (typeof apiKeyOrSecrets === "string") {
116
+ this.apiKey = apiKeyOrSecrets;
117
+ }
118
+ else {
119
+ this.apiKey = getFalApiKey(apiKeyOrSecrets);
120
+ }
121
+ }
122
+ // -------------------------------------------------------------------------
123
+ // Text-to-Image
124
+ // -------------------------------------------------------------------------
125
+ /**
126
+ * Generate an image from a text prompt.
127
+ * Returns the raw image bytes (PNG).
128
+ */
129
+ async textToImage(params) {
130
+ const args = {
131
+ prompt: params.prompt,
132
+ output_format: "png"
133
+ };
134
+ if (params.negativePrompt)
135
+ args.negative_prompt = params.negativePrompt;
136
+ if (params.guidanceScale != null)
137
+ args.guidance_scale = params.guidanceScale;
138
+ if (params.numInferenceSteps != null)
139
+ args.num_inference_steps = params.numInferenceSteps;
140
+ if (params.width && params.height) {
141
+ args.image_size = { width: params.width, height: params.height };
142
+ }
143
+ if (params.seed != null && params.seed !== -1)
144
+ args.seed = params.seed;
145
+ if (params.safetyCheck != null)
146
+ args.enable_safety_checker = params.safetyCheck;
147
+ try {
148
+ this.totalRequests++;
149
+ const result = await falSubmit(this.apiKey, params.model, args);
150
+ this.totalImages++;
151
+ const imageUrl = extractImageUrl(result);
152
+ return downloadBytes(imageUrl);
153
+ }
154
+ catch (e) {
155
+ const msg = formatValidationError(String(e));
156
+ throw new Error(`FAL text-to-image generation failed: ${msg}`);
157
+ }
158
+ }
159
+ // -------------------------------------------------------------------------
160
+ // Image-to-Image
161
+ // -------------------------------------------------------------------------
162
+ /**
163
+ * Transform an existing image based on a text prompt.
164
+ * Returns raw image bytes (PNG).
165
+ */
166
+ async imageToImage(params) {
167
+ // FAL requires images as data URIs for image-to-image
168
+ const b64 = Buffer.from(params.imageBytes).toString("base64");
169
+ const imageDataUri = `data:image/png;base64,${b64}`;
170
+ const args = {
171
+ prompt: params.prompt,
172
+ image_url: imageDataUri,
173
+ output_format: "png"
174
+ };
175
+ if (params.negativePrompt)
176
+ args.negative_prompt = params.negativePrompt;
177
+ if (params.guidanceScale != null)
178
+ args.guidance_scale = params.guidanceScale;
179
+ if (params.numInferenceSteps != null)
180
+ args.num_inference_steps = params.numInferenceSteps;
181
+ if (params.strength != null)
182
+ args.strength = params.strength;
183
+ if (params.targetWidth && params.targetHeight) {
184
+ args.image_size = {
185
+ width: params.targetWidth,
186
+ height: params.targetHeight
187
+ };
188
+ }
189
+ if (params.seed != null && params.seed !== -1)
190
+ args.seed = params.seed;
191
+ try {
192
+ this.totalRequests++;
193
+ const result = await falSubmit(this.apiKey, params.model, args);
194
+ this.totalImages++;
195
+ const imageUrl = extractImageUrl(result);
196
+ return downloadBytes(imageUrl);
197
+ }
198
+ catch (e) {
199
+ const msg = formatValidationError(String(e));
200
+ throw new Error(`FAL image-to-image generation failed: ${msg}`);
201
+ }
202
+ }
203
+ // -------------------------------------------------------------------------
204
+ // Text-to-Speech
205
+ // -------------------------------------------------------------------------
206
+ /**
207
+ * Generate audio from text using a FAL TTS endpoint.
208
+ * Returns the raw audio bytes.
209
+ */
210
+ async textToSpeech(params) {
211
+ if (!params.text)
212
+ throw new Error("text must not be empty");
213
+ const args = { prompt: params.text };
214
+ if (params.numSteps != null)
215
+ args.num_steps = params.numSteps;
216
+ if (params.duration != null)
217
+ args.duration = params.duration;
218
+ if (params.cfgStrength != null)
219
+ args.cfg_strength = params.cfgStrength;
220
+ if (params.negativePrompt)
221
+ args.negative_prompt = params.negativePrompt;
222
+ if (params.seed != null && params.seed !== -1)
223
+ args.seed = params.seed;
224
+ try {
225
+ this.totalRequests++;
226
+ const result = await falSubmit(this.apiKey, params.model, args);
227
+ const audioField = result.audio;
228
+ if (!audioField?.url) {
229
+ throw new Error(`Unexpected FAL response format: ${JSON.stringify(result)}`);
230
+ }
231
+ return downloadBytes(audioField.url);
232
+ }
233
+ catch (e) {
234
+ const msg = formatValidationError(String(e));
235
+ throw new Error(`FAL text-to-speech generation failed: ${msg}`);
236
+ }
237
+ }
238
+ // -------------------------------------------------------------------------
239
+ // Model catalogue
240
+ // -------------------------------------------------------------------------
241
+ /** Return all available FAL AI image models. */
242
+ getAvailableImageModels() {
243
+ return FAL_IMAGE_MODELS;
244
+ }
245
+ // -------------------------------------------------------------------------
246
+ // Low-level helpers
247
+ // -------------------------------------------------------------------------
248
+ /**
249
+ * Upload bytes to FAL CDN and return the CDN URL.
250
+ * Thin wrapper around falUpload for callers that already have a FalProvider.
251
+ */
252
+ async upload(data, contentType) {
253
+ return falUpload(this.apiKey, data, contentType);
254
+ }
255
+ /**
256
+ * Convert an image ref ({data, uri}) to a data: URI or FAL CDN URL
257
+ * suitable for passing as image_url in API arguments.
258
+ */
259
+ async imageRefToUrl(imageRef) {
260
+ return imageToDataUrl(imageRef);
261
+ }
262
+ }
263
+ // ---------------------------------------------------------------------------
264
+ // Private helpers
265
+ // ---------------------------------------------------------------------------
266
+ function extractImageUrl(result) {
267
+ const images = result.images;
268
+ if (images && images.length > 0) {
269
+ const url = images[0].url;
270
+ if (url)
271
+ return url;
272
+ }
273
+ const image = result.image;
274
+ if (image?.url)
275
+ return image.url;
276
+ throw new Error(`Unexpected FAL response format: ${JSON.stringify(result)}`);
277
+ }
278
+ async function downloadBytes(url) {
279
+ const res = await fetch(url);
280
+ if (!res.ok)
281
+ throw new Error(`Failed to download FAL result: ${res.status}`);
282
+ const buf = await res.arrayBuffer();
283
+ return new Uint8Array(buf);
284
+ }
285
+ //# sourceMappingURL=fal-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fal-provider.js","sourceRoot":"","sources":["../src/fal-provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,YAAY,EACZ,SAAS,EACT,SAAS,EACT,cAAc,EACf,MAAM,eAAe,CAAC;AAWvB,8DAA8D;AAC9D,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,cAAc;IACd,EAAE,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE;IAC7C,EAAE,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,gBAAgB,EAAE;IACrD,EAAE,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACvD,EAAE,EAAE,EAAE,4BAA4B,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAC9D,EAAE,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,kBAAkB,EAAE;IACvD,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACxD,EAAE,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,g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AM,IAAI,KAAK,CAAC,kCAAkC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7E,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC;IACpC,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,295 @@
1
+ /**
2
+ * Type definitions for FAL nodes.
3
+ *
4
+ * Translated from Python nodetool-fal/src/nodetool/nodes/fal/types.py.
5
+ * These types represent complex nested structures in the FAL API.
6
+ */
7
+ /** Audio time span specification. */
8
+ export interface AudioTimeSpan {
9
+ /** Start time in seconds */
10
+ start?: number;
11
+ /** End time in seconds */
12
+ end?: number;
13
+ }
14
+ /** Bounding box prompt base. */
15
+ export interface BBoxPromptBase {
16
+ /** X coordinate */
17
+ x?: number;
18
+ /** Y coordinate */
19
+ y?: number;
20
+ /** Width */
21
+ width?: number;
22
+ /** Height */
23
+ height?: number;
24
+ }
25
+ /** Box prompt for image segmentation. */
26
+ export interface BoxPrompt {
27
+ /** X coordinate */
28
+ x?: number;
29
+ /** Y coordinate */
30
+ y?: number;
31
+ /** Width */
32
+ width?: number;
33
+ /** Height */
34
+ height?: number;
35
+ }
36
+ /** Base class for box prompts. */
37
+ export interface BoxPromptBase {
38
+ /** X coordinate */
39
+ x?: number;
40
+ /** Y coordinate */
41
+ y?: number;
42
+ /** Width */
43
+ width?: number;
44
+ /** Height */
45
+ height?: number;
46
+ }
47
+ /** Chrono LoRA weight configuration. */
48
+ export interface ChronoLoraWeight {
49
+ /** Path to LoRA weights */
50
+ path?: string;
51
+ /** Weight scale */
52
+ scale?: number;
53
+ }
54
+ /** Control LoRA weight configuration. */
55
+ export interface ControlLoraWeight {
56
+ /** Path to LoRA weights */
57
+ path?: string;
58
+ /** Weight scale */
59
+ scale?: number;
60
+ }
61
+ /** ControlNet configuration. */
62
+ export interface ControlNet {
63
+ /** ControlNet model path */
64
+ path?: string;
65
+ /** Conditioning scale */
66
+ conditioning_scale?: number;
67
+ }
68
+ /** ControlNet Union configuration. */
69
+ export interface ControlNetUnion {
70
+ /** ControlNet model path */
71
+ path?: string;
72
+ /** Conditioning scale */
73
+ conditioning_scale?: number;
74
+ }
75
+ /** Dialogue block for text-to-speech. */
76
+ export interface DialogueBlock {
77
+ /** Speaker identifier */
78
+ speaker?: string;
79
+ /** Text content */
80
+ text?: string;
81
+ }
82
+ /** Dynamic mask specification. */
83
+ export interface DynamicMask {
84
+ /** Mask data */
85
+ mask_data?: unknown;
86
+ }
87
+ /** Easy control weight configuration. */
88
+ export interface EasyControlWeight {
89
+ /** Weight scale */
90
+ scale?: number;
91
+ }
92
+ /** Element input specification. */
93
+ export interface ElementInput {
94
+ /** Element data */
95
+ element_data?: unknown;
96
+ }
97
+ /** Embedding configuration. */
98
+ export interface Embedding {
99
+ /** Embedding path */
100
+ path?: string;
101
+ /** Token list */
102
+ tokens?: string[];
103
+ }
104
+ /** Frame specification for video. */
105
+ export interface Frame {
106
+ /** Frame index */
107
+ index?: number;
108
+ /** Frame data */
109
+ data?: unknown;
110
+ }
111
+ /** Guidance input for image generation. */
112
+ export interface GuidanceInput {
113
+ /** Guidance data */
114
+ guidance_data?: unknown;
115
+ }
116
+ /** IP-Adapter configuration. */
117
+ export interface IPAdapter {
118
+ /** Image encoder path */
119
+ image_encoder_path?: string;
120
+ /** IP-Adapter model path */
121
+ ip_adapter_path?: string;
122
+ /** Adapter scale */
123
+ scale?: number;
124
+ }
125
+ /** Image conditioning specification. */
126
+ export interface ImageCondition {
127
+ /** Image URL */
128
+ image_url?: string;
129
+ /** Conditioning scale */
130
+ conditioning_scale?: number;
131
+ }
132
+ /** Image conditioning input. */
133
+ export interface ImageConditioningInput {
134
+ /** Image URL */
135
+ image_url?: string;
136
+ /** Conditioning scale */
137
+ conditioning_scale?: number;
138
+ }
139
+ /** Image input specification. */
140
+ export interface ImageInput {
141
+ /** Image URL */
142
+ image_url?: string;
143
+ }
144
+ /** Inpainting section specification. */
145
+ export interface InpaintSection {
146
+ /** Start position */
147
+ start?: number;
148
+ /** End position */
149
+ end?: number;
150
+ }
151
+ /** Keyframe transition specification. */
152
+ export interface KeyframeTransition {
153
+ /** Frame number */
154
+ frame?: number;
155
+ /** Transition type */
156
+ transition_type?: string;
157
+ }
158
+ /** Kling V3 combo element input. */
159
+ export interface KlingV3ComboElementInput {
160
+ /** Element data */
161
+ element_data?: unknown;
162
+ }
163
+ /** Kling V3 image element input. */
164
+ export interface KlingV3ImageElementInput {
165
+ /** The frontal image of the element (main view). */
166
+ frontal_image_url?: string;
167
+ /** Additional reference images from different angles. 1-3 images supported. At least one image is required. */
168
+ reference_image_urls?: string[];
169
+ }
170
+ /** Kling V3 multi-prompt element. */
171
+ export interface KlingV3MultiPromptElement {
172
+ /** Prompt text */
173
+ prompt?: string;
174
+ /** Prompt weight */
175
+ weight?: number;
176
+ }
177
+ /** LoRA input configuration. */
178
+ export interface LoRAInput {
179
+ /** LoRA model path */
180
+ path?: string;
181
+ /** LoRA scale */
182
+ scale?: number;
183
+ }
184
+ /** LoRA weight configuration. */
185
+ export interface LoRAWeight {
186
+ /** LoRA weights path */
187
+ path?: string;
188
+ /** Weight scale */
189
+ scale?: number;
190
+ }
191
+ /** LoRA weight configuration (alternate naming). */
192
+ export interface LoraWeight {
193
+ /** LoRA weights path */
194
+ path?: string;
195
+ /** Weight scale */
196
+ scale?: number;
197
+ }
198
+ /** Moondream input parameters. */
199
+ export interface MoondreamInputParam {
200
+ /** Parameter data */
201
+ param_data?: unknown;
202
+ }
203
+ /** Omni video element input. */
204
+ export interface OmniVideoElementInput {
205
+ /** Element data */
206
+ element_data?: unknown;
207
+ }
208
+ /** Point prompt for image segmentation. */
209
+ export interface PointPrompt {
210
+ /** X coordinate */
211
+ x?: number;
212
+ /** Y coordinate */
213
+ y?: number;
214
+ /** Point label */
215
+ label?: number;
216
+ }
217
+ /** Base class for point prompts. */
218
+ export interface PointPromptBase {
219
+ /** X coordinate */
220
+ x?: number;
221
+ /** Y coordinate */
222
+ y?: number;
223
+ }
224
+ /** Pronunciation dictionary locator. */
225
+ export interface PronunciationDictionaryLocator {
226
+ /** Dictionary ID */
227
+ dictionary_id?: string;
228
+ }
229
+ /** RGB color specification. */
230
+ export interface RGBColor {
231
+ /** Red component (0-255) */
232
+ r?: number;
233
+ /** Green component (0-255) */
234
+ g?: number;
235
+ /** Blue component (0-255) */
236
+ b?: number;
237
+ }
238
+ /** Reference face for face-related operations. */
239
+ export interface ReferenceFace {
240
+ /** Face image URL */
241
+ image_url?: string;
242
+ }
243
+ /** Reference image input. */
244
+ export interface ReferenceImageInput {
245
+ /** Reference image URL */
246
+ image_url?: string;
247
+ }
248
+ /** Semantic image input. */
249
+ export interface SemanticImageInput {
250
+ /** Semantic image URL */
251
+ image_url?: string;
252
+ }
253
+ /** Speaker configuration. */
254
+ export interface Speaker {
255
+ /** Speaker identifier */
256
+ speaker_id?: string;
257
+ /** Voice identifier */
258
+ voice?: string;
259
+ }
260
+ /** Audio/video track specification. */
261
+ export interface Track {
262
+ /** Track identifier */
263
+ track_id?: string;
264
+ /** Track data */
265
+ track_data?: unknown;
266
+ }
267
+ /** Conversation turn specification. */
268
+ export interface Turn {
269
+ /** Turn role (user/assistant) */
270
+ role?: string;
271
+ /** Turn content */
272
+ content?: string;
273
+ }
274
+ /** Vibe voice speaker configuration. */
275
+ export interface VibeVoiceSpeaker {
276
+ /** Speaker identifier */
277
+ speaker_id?: string;
278
+ /** Voice style */
279
+ voice_style?: string;
280
+ }
281
+ /** Video conditioning specification. */
282
+ export interface VideoCondition {
283
+ /** Video URL */
284
+ video_url?: string;
285
+ /** Conditioning scale */
286
+ conditioning_scale?: number;
287
+ }
288
+ /** Video conditioning input. */
289
+ export interface VideoConditioningInput {
290
+ /** Video URL */
291
+ video_url?: string;
292
+ /** Conditioning scale */
293
+ conditioning_scale?: number;
294
+ }
295
+ //# sourceMappingURL=fal-types.d.ts.map