@ai-sdk/fal 1.0.0-canary.9 → 1.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,509 @@
1
1
  # @ai-sdk/fal
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 85f0e8f: fix(fal): handle null file_name and file_size in image responses
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - d5f588f: AI SDK 5
14
+ - 516be5b: ### Move Image Model Settings into generate options
15
+
16
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
17
+
18
+ Before
19
+
20
+ ```js
21
+ await generateImage({
22
+ model: luma.image('photon-flash-1', {
23
+ maxImagesPerCall: 5,
24
+ pollIntervalMillis: 500,
25
+ }),
26
+ prompt,
27
+ n: 10,
28
+ });
29
+ ```
30
+
31
+ After
32
+
33
+ ```js
34
+ await generateImage({
35
+ model: luma.image('photon-flash-1'),
36
+ prompt,
37
+ n: 10,
38
+ maxImagesPerCall: 5,
39
+ providerOptions: {
40
+ luma: { pollIntervalMillis: 5 },
41
+ },
42
+ });
43
+ ```
44
+
45
+ Pull Request: https://github.com/vercel/ai/pull/6180
46
+
47
+ ### Patch Changes
48
+
49
+ - d8aeaef: feat(providers/fal): add transcribe
50
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
51
+ - d9209ca: fix (image-model): `specificationVersion: v1` -> `v2`
52
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
53
+ - 5bafc5c: fix (providers/fal): improve model compatibility
54
+ - d1a034f: feature: using Zod 4 for internal stuff
55
+ - b248983: feat (@ai-sdk/fal): support new Flux Kontext models
56
+ - 3d1dcca: feat (fal): Set `.providerMetaData` for image model responses
57
+ - 205077b: fix: improve Zod compatibility
58
+ - Updated dependencies [a571d6e]
59
+ - Updated dependencies [742b7be]
60
+ - Updated dependencies [e7fcc86]
61
+ - Updated dependencies [7cddb72]
62
+ - Updated dependencies [ccce59b]
63
+ - Updated dependencies [e2b9e4b]
64
+ - Updated dependencies [95857aa]
65
+ - Updated dependencies [45c1ea2]
66
+ - Updated dependencies [6f6bb89]
67
+ - Updated dependencies [060370c]
68
+ - Updated dependencies [dc714f3]
69
+ - Updated dependencies [b5da06a]
70
+ - Updated dependencies [d1a1aa1]
71
+ - Updated dependencies [63f9e9b]
72
+ - Updated dependencies [5d142ab]
73
+ - Updated dependencies [d5f588f]
74
+ - Updated dependencies [e025824]
75
+ - Updated dependencies [0571b98]
76
+ - Updated dependencies [b6b43c7]
77
+ - Updated dependencies [4fef487]
78
+ - Updated dependencies [48d257a]
79
+ - Updated dependencies [0c0c0b3]
80
+ - Updated dependencies [0d2c085]
81
+ - Updated dependencies [40acf9b]
82
+ - Updated dependencies [9222aeb]
83
+ - Updated dependencies [e2aceaf]
84
+ - Updated dependencies [411e483]
85
+ - Updated dependencies [8ba77a7]
86
+ - Updated dependencies [7b3ae3f]
87
+ - Updated dependencies [a166433]
88
+ - Updated dependencies [26735b5]
89
+ - Updated dependencies [443d8ec]
90
+ - Updated dependencies [a8c8bd5]
91
+ - Updated dependencies [abf9a79]
92
+ - Updated dependencies [14c9410]
93
+ - Updated dependencies [e86be6f]
94
+ - Updated dependencies [9bf7291]
95
+ - Updated dependencies [2e13791]
96
+ - Updated dependencies [9f95b35]
97
+ - Updated dependencies [66962ed]
98
+ - Updated dependencies [0d06df6]
99
+ - Updated dependencies [472524a]
100
+ - Updated dependencies [dd3ff01]
101
+ - Updated dependencies [d9c98f4]
102
+ - Updated dependencies [05d2819]
103
+ - Updated dependencies [9301f86]
104
+ - Updated dependencies [0a87932]
105
+ - Updated dependencies [c4a2fec]
106
+ - Updated dependencies [957b739]
107
+ - Updated dependencies [79457bd]
108
+ - Updated dependencies [a3f768e]
109
+ - Updated dependencies [7435eb5]
110
+ - Updated dependencies [8aa9e20]
111
+ - Updated dependencies [4617fab]
112
+ - Updated dependencies [ac34802]
113
+ - Updated dependencies [0054544]
114
+ - Updated dependencies [cb68df0]
115
+ - Updated dependencies [ad80501]
116
+ - Updated dependencies [68ecf2f]
117
+ - Updated dependencies [9e9c809]
118
+ - Updated dependencies [32831c6]
119
+ - Updated dependencies [6dc848c]
120
+ - Updated dependencies [6b98118]
121
+ - Updated dependencies [d0f9495]
122
+ - Updated dependencies [63d791d]
123
+ - Updated dependencies [87b828f]
124
+ - Updated dependencies [3f2f00c]
125
+ - Updated dependencies [bfdca8d]
126
+ - Updated dependencies [0ff02bb]
127
+ - Updated dependencies [7979f7f]
128
+ - Updated dependencies [39a4fab]
129
+ - Updated dependencies [44f4aba]
130
+ - Updated dependencies [9bd5ab5]
131
+ - Updated dependencies [57edfcb]
132
+ - Updated dependencies [faf8446]
133
+ - Updated dependencies [7ea4132]
134
+ - Updated dependencies [d1a034f]
135
+ - Updated dependencies [5c56081]
136
+ - Updated dependencies [fd65bc6]
137
+ - Updated dependencies [023ba40]
138
+ - Updated dependencies [ea7a7c9]
139
+ - Updated dependencies [26535e0]
140
+ - Updated dependencies [e030615]
141
+ - Updated dependencies [5e57fae]
142
+ - Updated dependencies [393138b]
143
+ - Updated dependencies [c57e248]
144
+ - Updated dependencies [88a8ee5]
145
+ - Updated dependencies [41fa418]
146
+ - Updated dependencies [205077b]
147
+ - Updated dependencies [71f938d]
148
+ - Updated dependencies [3795467]
149
+ - Updated dependencies [28a5ed5]
150
+ - Updated dependencies [7182d14]
151
+ - Updated dependencies [c1e6647]
152
+ - Updated dependencies [1766ede]
153
+ - Updated dependencies [811dff3]
154
+ - Updated dependencies [f10304b]
155
+ - Updated dependencies [dd5fd43]
156
+ - Updated dependencies [33f4a6a]
157
+ - Updated dependencies [383cbfa]
158
+ - Updated dependencies [27deb4d]
159
+ - Updated dependencies [c4df419]
160
+ - @ai-sdk/provider-utils@3.0.0
161
+ - @ai-sdk/provider@2.0.0
162
+
163
+ ## 1.0.0-beta.10
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies [88a8ee5]
168
+ - @ai-sdk/provider-utils@3.0.0-beta.10
169
+
170
+ ## 1.0.0-beta.9
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [27deb4d]
175
+ - @ai-sdk/provider@2.0.0-beta.2
176
+ - @ai-sdk/provider-utils@3.0.0-beta.9
177
+
178
+ ## 1.0.0-beta.8
179
+
180
+ ### Patch Changes
181
+
182
+ - eb173f1: chore (providers): remove model shorthand deprecation warnings
183
+ - Updated dependencies [dd5fd43]
184
+ - @ai-sdk/provider-utils@3.0.0-beta.8
185
+
186
+ ## 1.0.0-beta.7
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies [e7fcc86]
191
+ - @ai-sdk/provider-utils@3.0.0-beta.7
192
+
193
+ ## 1.0.0-beta.6
194
+
195
+ ### Patch Changes
196
+
197
+ - Updated dependencies [ac34802]
198
+ - @ai-sdk/provider-utils@3.0.0-beta.6
199
+
200
+ ## 1.0.0-beta.5
201
+
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies [57edfcb]
205
+ - Updated dependencies [383cbfa]
206
+ - @ai-sdk/provider-utils@3.0.0-beta.5
207
+
208
+ ## 1.0.0-beta.4
209
+
210
+ ### Patch Changes
211
+
212
+ - 205077b: fix: improve Zod compatibility
213
+ - Updated dependencies [205077b]
214
+ - @ai-sdk/provider-utils@3.0.0-beta.4
215
+
216
+ ## 1.0.0-beta.3
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [05d2819]
221
+ - @ai-sdk/provider-utils@3.0.0-beta.3
222
+
223
+ ## 1.0.0-beta.2
224
+
225
+ ### Patch Changes
226
+
227
+ - d1a034f: feature: using Zod 4 for internal stuff
228
+ - Updated dependencies [0571b98]
229
+ - Updated dependencies [39a4fab]
230
+ - Updated dependencies [d1a034f]
231
+ - @ai-sdk/provider-utils@3.0.0-beta.2
232
+
233
+ ## 1.0.0-beta.1
234
+
235
+ ### Patch Changes
236
+
237
+ - Updated dependencies [742b7be]
238
+ - Updated dependencies [7cddb72]
239
+ - Updated dependencies [ccce59b]
240
+ - Updated dependencies [e2b9e4b]
241
+ - Updated dependencies [45c1ea2]
242
+ - Updated dependencies [e025824]
243
+ - Updated dependencies [0d06df6]
244
+ - Updated dependencies [472524a]
245
+ - Updated dependencies [dd3ff01]
246
+ - Updated dependencies [7435eb5]
247
+ - Updated dependencies [cb68df0]
248
+ - Updated dependencies [bfdca8d]
249
+ - Updated dependencies [44f4aba]
250
+ - Updated dependencies [023ba40]
251
+ - Updated dependencies [5e57fae]
252
+ - Updated dependencies [71f938d]
253
+ - Updated dependencies [28a5ed5]
254
+ - @ai-sdk/provider@2.0.0-beta.1
255
+ - @ai-sdk/provider-utils@3.0.0-beta.1
256
+
257
+ ## 1.0.0-alpha.15
258
+
259
+ ### Patch Changes
260
+
261
+ - Updated dependencies [48d257a]
262
+ - Updated dependencies [8ba77a7]
263
+ - @ai-sdk/provider@2.0.0-alpha.15
264
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
265
+
266
+ ## 1.0.0-alpha.14
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [b5da06a]
271
+ - Updated dependencies [63f9e9b]
272
+ - Updated dependencies [2e13791]
273
+ - @ai-sdk/provider@2.0.0-alpha.14
274
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
275
+
276
+ ## 1.0.0-alpha.13
277
+
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies [68ecf2f]
281
+ - @ai-sdk/provider@2.0.0-alpha.13
282
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
283
+
284
+ ## 1.0.0-alpha.12
285
+
286
+ ### Patch Changes
287
+
288
+ - Updated dependencies [e2aceaf]
289
+ - @ai-sdk/provider@2.0.0-alpha.12
290
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
291
+
292
+ ## 1.0.0-alpha.11
293
+
294
+ ### Patch Changes
295
+
296
+ - Updated dependencies [c1e6647]
297
+ - @ai-sdk/provider@2.0.0-alpha.11
298
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
299
+
300
+ ## 1.0.0-alpha.10
301
+
302
+ ### Patch Changes
303
+
304
+ - Updated dependencies [c4df419]
305
+ - @ai-sdk/provider@2.0.0-alpha.10
306
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
307
+
308
+ ## 1.0.0-alpha.9
309
+
310
+ ### Patch Changes
311
+
312
+ - b248983: feat (@ai-sdk/fal): support new Flux Kontext models
313
+ - Updated dependencies [811dff3]
314
+ - @ai-sdk/provider@2.0.0-alpha.9
315
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
316
+
317
+ ## 1.0.0-alpha.8
318
+
319
+ ### Patch Changes
320
+
321
+ - Updated dependencies [4fef487]
322
+ - Updated dependencies [9222aeb]
323
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
324
+ - @ai-sdk/provider@2.0.0-alpha.8
325
+
326
+ ## 1.0.0-alpha.7
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies [5c56081]
331
+ - @ai-sdk/provider@2.0.0-alpha.7
332
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
333
+
334
+ ## 1.0.0-alpha.6
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [0d2c085]
339
+ - @ai-sdk/provider@2.0.0-alpha.6
340
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
341
+
342
+ ## 1.0.0-alpha.4
343
+
344
+ ### Patch Changes
345
+
346
+ - 3d1dcca: feat (fal): Set `.providerMetaData` for image model responses
347
+ - Updated dependencies [dc714f3]
348
+ - @ai-sdk/provider@2.0.0-alpha.4
349
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
350
+
351
+ ## 1.0.0-alpha.3
352
+
353
+ ### Patch Changes
354
+
355
+ - Updated dependencies [6b98118]
356
+ - @ai-sdk/provider@2.0.0-alpha.3
357
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
358
+
359
+ ## 1.0.0-alpha.2
360
+
361
+ ### Patch Changes
362
+
363
+ - Updated dependencies [26535e0]
364
+ - @ai-sdk/provider@2.0.0-alpha.2
365
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
366
+
367
+ ## 1.0.0-alpha.1
368
+
369
+ ### Patch Changes
370
+
371
+ - Updated dependencies [3f2f00c]
372
+ - @ai-sdk/provider@2.0.0-alpha.1
373
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
374
+
375
+ ## 1.0.0-canary.20
376
+
377
+ ### Patch Changes
378
+
379
+ - Updated dependencies [faf8446]
380
+ - @ai-sdk/provider-utils@3.0.0-canary.19
381
+
382
+ ## 1.0.0-canary.19
383
+
384
+ ### Patch Changes
385
+
386
+ - Updated dependencies [40acf9b]
387
+ - @ai-sdk/provider-utils@3.0.0-canary.18
388
+
389
+ ## 1.0.0-canary.18
390
+
391
+ ### Major Changes
392
+
393
+ - 516be5b: ### Move Image Model Settings into generate options
394
+
395
+ Image Models no longer have settings. Instead, `maxImagesPerCall` can be passed directly to `generateImage()`. All other image settings can be passed to `providerOptions[provider]`.
396
+
397
+ Before
398
+
399
+ ```js
400
+ await generateImage({
401
+ model: luma.image('photon-flash-1', {
402
+ maxImagesPerCall: 5,
403
+ pollIntervalMillis: 500,
404
+ }),
405
+ prompt,
406
+ n: 10,
407
+ });
408
+ ```
409
+
410
+ After
411
+
412
+ ```js
413
+ await generateImage({
414
+ model: luma.image('photon-flash-1'),
415
+ prompt,
416
+ n: 10,
417
+ maxImagesPerCall: 5,
418
+ providerOptions: {
419
+ luma: { pollIntervalMillis: 5 },
420
+ },
421
+ });
422
+ ```
423
+
424
+ Pull Request: https://github.com/vercel/ai/pull/6180
425
+
426
+ ### Patch Changes
427
+
428
+ - Updated dependencies [ea7a7c9]
429
+ - @ai-sdk/provider-utils@3.0.0-canary.17
430
+
431
+ ## 1.0.0-canary.17
432
+
433
+ ### Patch Changes
434
+
435
+ - Updated dependencies [87b828f]
436
+ - @ai-sdk/provider-utils@3.0.0-canary.16
437
+
438
+ ## 1.0.0-canary.16
439
+
440
+ ### Patch Changes
441
+
442
+ - Updated dependencies [a571d6e]
443
+ - Updated dependencies [a8c8bd5]
444
+ - Updated dependencies [7979f7f]
445
+ - Updated dependencies [41fa418]
446
+ - @ai-sdk/provider-utils@3.0.0-canary.15
447
+ - @ai-sdk/provider@2.0.0-canary.14
448
+
449
+ ## 1.0.0-canary.15
450
+
451
+ ### Patch Changes
452
+
453
+ - Updated dependencies [957b739]
454
+ - Updated dependencies [9bd5ab5]
455
+ - @ai-sdk/provider-utils@3.0.0-canary.14
456
+ - @ai-sdk/provider@2.0.0-canary.13
457
+
458
+ ## 1.0.0-canary.14
459
+
460
+ ### Patch Changes
461
+
462
+ - d9209ca: fix (image-model): `specificationVersion: v1` -> `v2`
463
+ - Updated dependencies [7b3ae3f]
464
+ - Updated dependencies [0ff02bb]
465
+ - @ai-sdk/provider@2.0.0-canary.12
466
+ - @ai-sdk/provider-utils@3.0.0-canary.13
467
+
468
+ ## 1.0.0-canary.13
469
+
470
+ ### Patch Changes
471
+
472
+ - Updated dependencies [9bf7291]
473
+ - Updated dependencies [4617fab]
474
+ - Updated dependencies [e030615]
475
+ - @ai-sdk/provider@2.0.0-canary.11
476
+ - @ai-sdk/provider-utils@3.0.0-canary.12
477
+
478
+ ## 1.0.0-canary.12
479
+
480
+ ### Patch Changes
481
+
482
+ - 9301f86: refactor (image-model): rename `ImageModelV1` to `ImageModelV2`
483
+ - Updated dependencies [66962ed]
484
+ - Updated dependencies [9301f86]
485
+ - Updated dependencies [a3f768e]
486
+ - @ai-sdk/provider-utils@3.0.0-canary.11
487
+ - @ai-sdk/provider@2.0.0-canary.10
488
+
489
+ ## 1.0.0-canary.11
490
+
491
+ ### Patch Changes
492
+
493
+ - 5bafc5c: fix (providers/fal): improve model compatibility
494
+ - Updated dependencies [e86be6f]
495
+ - @ai-sdk/provider@2.0.0-canary.9
496
+ - @ai-sdk/provider-utils@3.0.0-canary.10
497
+
498
+ ## 1.0.0-canary.10
499
+
500
+ ### Patch Changes
501
+
502
+ - Updated dependencies [95857aa]
503
+ - Updated dependencies [7ea4132]
504
+ - @ai-sdk/provider@2.0.0-canary.8
505
+ - @ai-sdk/provider-utils@3.0.0-canary.9
506
+
3
507
  ## 1.0.0-canary.9
4
508
 
5
509
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AI SDK - fal Provider
2
2
 
3
- The **[fal provider](https://sdk.vercel.ai/providers/ai-sdk-providers/fal)** for the [AI SDK](https://sdk.vercel.ai/docs) contains image model support for the [fal.ai API](https://fal.ai/).
3
+ The **[fal provider](https://ai-sdk.dev/providers/ai-sdk-providers/fal)** for the [AI SDK](https://ai-sdk.dev/docs) contains image model support for the [fal.ai API](https://fal.ai/).
4
4
 
5
5
  ## Setup
6
6
 
@@ -53,4 +53,4 @@ const { image } = await generateImage({
53
53
 
54
54
  ## Documentation
55
55
 
56
- Please check out the **[fal provider](https://sdk.vercel.ai/providers/ai-sdk-providers/fal)** for more information.
56
+ Please check out the **[fal provider](https://ai-sdk.dev/providers/ai-sdk-providers/fal)** for more information.
package/dist/index.d.mts CHANGED
@@ -1,13 +1,7 @@
1
- import { ProviderV2, ImageModelV1, TranscriptionModelV1 } from '@ai-sdk/provider';
1
+ import { ProviderV2, ImageModelV2, TranscriptionModelV2 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
 
4
- type FalImageModelId = 'fal-ai/aura-flow' | 'fal-ai/aura-sr' | 'fal-ai/bria/eraser' | 'fal-ai/bria/product-shot' | 'fal-ai/bria/text-to-image/base' | 'fal-ai/bria/text-to-image/fast' | 'fal-ai/bria/text-to-image/hd' | 'fal-ai/bria/text-to-image/turbo' | 'fal-ai/ccsr' | 'fal-ai/clarity-upscaler' | 'fal-ai/creative-upscaler' | 'fal-ai/esrgan' | 'fal-ai/fast-sdxl' | 'fal-ai/flux-general' | 'fal-ai/flux-general/differential-diffusion' | 'fal-ai/flux-general/image-to-image' | 'fal-ai/flux-general/inpainting' | 'fal-ai/flux-general/rf-inversion' | 'fal-ai/flux-lora' | 'fal-ai/flux-lora/image-to-image' | 'fal-ai/flux-lora/inpainting' | 'fal-ai/flux-pro/v1.1' | 'fal-ai/flux-pro/v1.1-ultra' | 'fal-ai/flux-pro/v1.1-ultra-finetuned' | 'fal-ai/flux-pro/v1.1-ultra/redux' | 'fal-ai/flux-pro/v1.1/redux' | 'fal-ai/flux/dev' | 'fal-ai/flux/dev/image-to-image' | 'fal-ai/flux/dev/redux' | 'fal-ai/flux/schnell' | 'fal-ai/flux/schnell/redux' | 'fal-ai/hyper-sdxl' | 'fal-ai/ideogram/v2' | 'fal-ai/ideogram/v2/remix' | 'fal-ai/ideogram/v2/turbo' | 'fal-ai/ideogram/v2/turbo/edit' | 'fal-ai/ideogram/v2/turbo/remix' | 'fal-ai/janus' | 'fal-ai/luma-photon' | 'fal-ai/luma-photon/flash' | 'fal-ai/omnigen-v1' | 'fal-ai/playground-v25' | 'fal-ai/recraft-20b' | 'fal-ai/recraft-v3' | 'fal-ai/sana' | 'fal-ai/stable-cascade' | 'fal-ai/stable-diffusion-3.5-large' | 'fal-ai/stable-diffusion-3.5-medium' | 'fashn/tryon' | (string & {});
5
- interface FalImageSettings {
6
- /**
7
- Override the maximum number of images per call (default 1).
8
- */
9
- maxImagesPerCall?: number;
10
- }
4
+ type FalImageModelId = 'fal-ai/flux-pro/kontext/max' | 'fal-ai/flux-pro/kontext' | 'fal-ai/aura-flow' | 'fal-ai/aura-sr' | 'fal-ai/bria/eraser' | 'fal-ai/bria/product-shot' | 'fal-ai/bria/text-to-image/base' | 'fal-ai/bria/text-to-image/fast' | 'fal-ai/bria/text-to-image/hd' | 'fal-ai/bria/text-to-image/turbo' | 'fal-ai/ccsr' | 'fal-ai/clarity-upscaler' | 'fal-ai/creative-upscaler' | 'fal-ai/esrgan' | 'fal-ai/fast-sdxl' | 'fal-ai/flux-general' | 'fal-ai/flux-general/differential-diffusion' | 'fal-ai/flux-general/image-to-image' | 'fal-ai/flux-general/inpainting' | 'fal-ai/flux-general/rf-inversion' | 'fal-ai/flux-lora' | 'fal-ai/flux-lora/image-to-image' | 'fal-ai/flux-lora/inpainting' | 'fal-ai/flux-pro/v1.1' | 'fal-ai/flux-pro/v1.1-ultra' | 'fal-ai/flux-pro/v1.1-ultra-finetuned' | 'fal-ai/flux-pro/v1.1-ultra/redux' | 'fal-ai/flux-pro/v1.1/redux' | 'fal-ai/flux/dev' | 'fal-ai/flux/dev/image-to-image' | 'fal-ai/flux/dev/redux' | 'fal-ai/flux/schnell' | 'fal-ai/flux/schnell/redux' | 'fal-ai/hyper-sdxl' | 'fal-ai/ideogram/v2' | 'fal-ai/ideogram/v2/remix' | 'fal-ai/ideogram/v2/turbo' | 'fal-ai/ideogram/v2/turbo/edit' | 'fal-ai/ideogram/v2/turbo/remix' | 'fal-ai/janus' | 'fal-ai/luma-photon' | 'fal-ai/luma-photon/flash' | 'fal-ai/omnigen-v1' | 'fal-ai/playground-v25' | 'fal-ai/recraft-20b' | 'fal-ai/recraft-v3' | 'fal-ai/sana' | 'fal-ai/stable-cascade' | 'fal-ai/stable-diffusion-3.5-large' | 'fal-ai/stable-diffusion-3.5-medium' | 'fashn/tryon' | (string & {});
11
5
 
12
6
  type FalTranscriptionModelId = 'whisper' | 'wizper' | (string & {});
13
7
 
@@ -36,15 +30,15 @@ interface FalProvider extends ProviderV2 {
36
30
  /**
37
31
  Creates a model for image generation.
38
32
  */
39
- image(modelId: FalImageModelId, settings?: FalImageSettings): ImageModelV1;
33
+ image(modelId: FalImageModelId): ImageModelV2;
40
34
  /**
41
35
  Creates a model for image generation.
42
36
  */
43
- imageModel(modelId: FalImageModelId, settings?: FalImageSettings): ImageModelV1;
37
+ imageModel(modelId: FalImageModelId): ImageModelV2;
44
38
  /**
45
39
  Creates a model for transcription.
46
40
  */
47
- transcription(modelId: FalTranscriptionModelId): TranscriptionModelV1;
41
+ transcription(modelId: FalTranscriptionModelId): TranscriptionModelV2;
48
42
  }
49
43
  /**
50
44
  Create a fal.ai provider instance.
package/dist/index.d.ts CHANGED
@@ -1,13 +1,7 @@
1
- import { ProviderV2, ImageModelV1, TranscriptionModelV1 } from '@ai-sdk/provider';
1
+ import { ProviderV2, ImageModelV2, TranscriptionModelV2 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
 
4
- type FalImageModelId = 'fal-ai/aura-flow' | 'fal-ai/aura-sr' | 'fal-ai/bria/eraser' | 'fal-ai/bria/product-shot' | 'fal-ai/bria/text-to-image/base' | 'fal-ai/bria/text-to-image/fast' | 'fal-ai/bria/text-to-image/hd' | 'fal-ai/bria/text-to-image/turbo' | 'fal-ai/ccsr' | 'fal-ai/clarity-upscaler' | 'fal-ai/creative-upscaler' | 'fal-ai/esrgan' | 'fal-ai/fast-sdxl' | 'fal-ai/flux-general' | 'fal-ai/flux-general/differential-diffusion' | 'fal-ai/flux-general/image-to-image' | 'fal-ai/flux-general/inpainting' | 'fal-ai/flux-general/rf-inversion' | 'fal-ai/flux-lora' | 'fal-ai/flux-lora/image-to-image' | 'fal-ai/flux-lora/inpainting' | 'fal-ai/flux-pro/v1.1' | 'fal-ai/flux-pro/v1.1-ultra' | 'fal-ai/flux-pro/v1.1-ultra-finetuned' | 'fal-ai/flux-pro/v1.1-ultra/redux' | 'fal-ai/flux-pro/v1.1/redux' | 'fal-ai/flux/dev' | 'fal-ai/flux/dev/image-to-image' | 'fal-ai/flux/dev/redux' | 'fal-ai/flux/schnell' | 'fal-ai/flux/schnell/redux' | 'fal-ai/hyper-sdxl' | 'fal-ai/ideogram/v2' | 'fal-ai/ideogram/v2/remix' | 'fal-ai/ideogram/v2/turbo' | 'fal-ai/ideogram/v2/turbo/edit' | 'fal-ai/ideogram/v2/turbo/remix' | 'fal-ai/janus' | 'fal-ai/luma-photon' | 'fal-ai/luma-photon/flash' | 'fal-ai/omnigen-v1' | 'fal-ai/playground-v25' | 'fal-ai/recraft-20b' | 'fal-ai/recraft-v3' | 'fal-ai/sana' | 'fal-ai/stable-cascade' | 'fal-ai/stable-diffusion-3.5-large' | 'fal-ai/stable-diffusion-3.5-medium' | 'fashn/tryon' | (string & {});
5
- interface FalImageSettings {
6
- /**
7
- Override the maximum number of images per call (default 1).
8
- */
9
- maxImagesPerCall?: number;
10
- }
4
+ type FalImageModelId = 'fal-ai/flux-pro/kontext/max' | 'fal-ai/flux-pro/kontext' | 'fal-ai/aura-flow' | 'fal-ai/aura-sr' | 'fal-ai/bria/eraser' | 'fal-ai/bria/product-shot' | 'fal-ai/bria/text-to-image/base' | 'fal-ai/bria/text-to-image/fast' | 'fal-ai/bria/text-to-image/hd' | 'fal-ai/bria/text-to-image/turbo' | 'fal-ai/ccsr' | 'fal-ai/clarity-upscaler' | 'fal-ai/creative-upscaler' | 'fal-ai/esrgan' | 'fal-ai/fast-sdxl' | 'fal-ai/flux-general' | 'fal-ai/flux-general/differential-diffusion' | 'fal-ai/flux-general/image-to-image' | 'fal-ai/flux-general/inpainting' | 'fal-ai/flux-general/rf-inversion' | 'fal-ai/flux-lora' | 'fal-ai/flux-lora/image-to-image' | 'fal-ai/flux-lora/inpainting' | 'fal-ai/flux-pro/v1.1' | 'fal-ai/flux-pro/v1.1-ultra' | 'fal-ai/flux-pro/v1.1-ultra-finetuned' | 'fal-ai/flux-pro/v1.1-ultra/redux' | 'fal-ai/flux-pro/v1.1/redux' | 'fal-ai/flux/dev' | 'fal-ai/flux/dev/image-to-image' | 'fal-ai/flux/dev/redux' | 'fal-ai/flux/schnell' | 'fal-ai/flux/schnell/redux' | 'fal-ai/hyper-sdxl' | 'fal-ai/ideogram/v2' | 'fal-ai/ideogram/v2/remix' | 'fal-ai/ideogram/v2/turbo' | 'fal-ai/ideogram/v2/turbo/edit' | 'fal-ai/ideogram/v2/turbo/remix' | 'fal-ai/janus' | 'fal-ai/luma-photon' | 'fal-ai/luma-photon/flash' | 'fal-ai/omnigen-v1' | 'fal-ai/playground-v25' | 'fal-ai/recraft-20b' | 'fal-ai/recraft-v3' | 'fal-ai/sana' | 'fal-ai/stable-cascade' | 'fal-ai/stable-diffusion-3.5-large' | 'fal-ai/stable-diffusion-3.5-medium' | 'fashn/tryon' | (string & {});
11
5
 
12
6
  type FalTranscriptionModelId = 'whisper' | 'wizper' | (string & {});
13
7
 
@@ -36,15 +30,15 @@ interface FalProvider extends ProviderV2 {
36
30
  /**
37
31
  Creates a model for image generation.
38
32
  */
39
- image(modelId: FalImageModelId, settings?: FalImageSettings): ImageModelV1;
33
+ image(modelId: FalImageModelId): ImageModelV2;
40
34
  /**
41
35
  Creates a model for image generation.
42
36
  */
43
- imageModel(modelId: FalImageModelId, settings?: FalImageSettings): ImageModelV1;
37
+ imageModel(modelId: FalImageModelId): ImageModelV2;
44
38
  /**
45
39
  Creates a model for transcription.
46
40
  */
47
- transcription(modelId: FalTranscriptionModelId): TranscriptionModelV1;
41
+ transcription(modelId: FalTranscriptionModelId): TranscriptionModelV2;
48
42
  }
49
43
  /**
50
44
  Create a fal.ai provider instance.