@ai-sdk/fal 3.0.0-beta.0 → 3.0.0-beta.10

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,80 @@
1
1
  # @ai-sdk/fal
2
2
 
3
+ ## 3.0.0-beta.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 38fc777: Add AI Gateway hint to provider READMEs
8
+
9
+ ## 3.0.0-beta.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [2e17091]
14
+ - @ai-sdk/provider-utils@5.0.0-beta.9
15
+
16
+ ## 3.0.0-beta.8
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [986c6fd]
21
+ - Updated dependencies [493295c]
22
+ - @ai-sdk/provider-utils@5.0.0-beta.8
23
+
24
+ ## 3.0.0-beta.7
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [1f509d4]
29
+ - @ai-sdk/provider-utils@5.0.0-beta.7
30
+ - @ai-sdk/provider@4.0.0-beta.5
31
+
32
+ ## 3.0.0-beta.6
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [3887c70]
37
+ - @ai-sdk/provider-utils@5.0.0-beta.6
38
+ - @ai-sdk/provider@4.0.0-beta.4
39
+
40
+ ## 3.0.0-beta.5
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [776b617]
45
+ - @ai-sdk/provider-utils@5.0.0-beta.5
46
+ - @ai-sdk/provider@4.0.0-beta.3
47
+
48
+ ## 3.0.0-beta.4
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [61753c3]
53
+ - @ai-sdk/provider-utils@5.0.0-beta.4
54
+
55
+ ## 3.0.0-beta.3
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [f7d4f01]
60
+ - @ai-sdk/provider-utils@5.0.0-beta.3
61
+ - @ai-sdk/provider@4.0.0-beta.2
62
+
63
+ ## 3.0.0-beta.2
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [5c2a5a2]
68
+ - @ai-sdk/provider@4.0.0-beta.1
69
+ - @ai-sdk/provider-utils@5.0.0-beta.2
70
+
71
+ ## 3.0.0-beta.1
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [531251e]
76
+ - @ai-sdk/provider-utils@5.0.0-beta.1
77
+
3
78
  ## 3.0.0-beta.0
4
79
 
5
80
  ### Major Changes
@@ -212,13 +287,13 @@
212
287
  Before
213
288
 
214
289
  ```ts
215
- model.textEmbeddingModel('my-model-id');
290
+ model.textEmbeddingModel("my-model-id");
216
291
  ```
217
292
 
218
293
  After
219
294
 
220
295
  ```ts
221
- model.embeddingModel('my-model-id');
296
+ model.embeddingModel("my-model-id");
222
297
  ```
223
298
 
224
299
  - 95f65c2: chore: use import \* from zod/v4
@@ -422,13 +497,13 @@
422
497
  Before
423
498
 
424
499
  ```ts
425
- model.textEmbeddingModel('my-model-id');
500
+ model.textEmbeddingModel("my-model-id");
426
501
  ```
427
502
 
428
503
  After
429
504
 
430
505
  ```ts
431
- model.embeddingModel('my-model-id');
506
+ model.embeddingModel("my-model-id");
432
507
  ```
433
508
 
434
509
  - Updated dependencies [8d9e8ad]
@@ -830,7 +905,7 @@
830
905
 
831
906
  ```js
832
907
  await generateImage({
833
- model: luma.image('photon-flash-1', {
908
+ model: luma.image("photon-flash-1", {
834
909
  maxImagesPerCall: 5,
835
910
  pollIntervalMillis: 500,
836
911
  }),
@@ -843,7 +918,7 @@
843
918
 
844
919
  ```js
845
920
  await generateImage({
846
- model: luma.image('photon-flash-1'),
921
+ model: luma.image("photon-flash-1"),
847
922
  prompt,
848
923
  n: 10,
849
924
  maxImagesPerCall: 5,
@@ -1085,7 +1160,7 @@
1085
1160
 
1086
1161
  ```js
1087
1162
  await generateImage({
1088
- model: luma.image('photon-flash-1', {
1163
+ model: luma.image("photon-flash-1", {
1089
1164
  maxImagesPerCall: 5,
1090
1165
  pollIntervalMillis: 500,
1091
1166
  }),
@@ -1098,7 +1173,7 @@
1098
1173
 
1099
1174
  ```js
1100
1175
  await generateImage({
1101
- model: luma.image('photon-flash-1'),
1176
+ model: luma.image("photon-flash-1"),
1102
1177
  prompt,
1103
1178
  n: 10,
1104
1179
  maxImagesPerCall: 5,
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
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
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access fal (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
6
+
5
7
  ## Setup
6
8
 
7
9
  The fal provider is available in the `@ai-sdk/fal` module. You can install it with
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ProviderV3, ImageModelV3, TranscriptionModelV3, Experimental_VideoModelV3, SpeechModelV3 } from '@ai-sdk/provider';
1
+ import { ProviderV4, ImageModelV4, TranscriptionModelV4, Experimental_VideoModelV4, SpeechModelV4 } from '@ai-sdk/provider';
2
2
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
3
  import { FetchFunction, InferSchema } from '@ai-sdk/provider-utils';
4
4
  import { z } from 'zod/v4';
@@ -32,31 +32,31 @@ interface FalProviderSettings {
32
32
  */
33
33
  fetch?: FetchFunction;
34
34
  }
35
- interface FalProvider extends ProviderV3 {
35
+ interface FalProvider extends ProviderV4 {
36
36
  /**
37
37
  * Creates a model for image generation.
38
38
  */
39
- image(modelId: FalImageModelId): ImageModelV3;
39
+ image(modelId: FalImageModelId): ImageModelV4;
40
40
  /**
41
41
  * Creates a model for image generation.
42
42
  */
43
- imageModel(modelId: FalImageModelId): ImageModelV3;
43
+ imageModel(modelId: FalImageModelId): ImageModelV4;
44
44
  /**
45
45
  * Creates a model for transcription.
46
46
  */
47
- transcription(modelId: FalTranscriptionModelId): TranscriptionModelV3;
47
+ transcription(modelId: FalTranscriptionModelId): TranscriptionModelV4;
48
48
  /**
49
49
  * Creates a model for video generation.
50
50
  */
51
- video(modelId: FalVideoModelId): Experimental_VideoModelV3;
51
+ video(modelId: FalVideoModelId): Experimental_VideoModelV4;
52
52
  /**
53
53
  * Creates a model for video generation.
54
54
  */
55
- videoModel(modelId: FalVideoModelId): Experimental_VideoModelV3;
55
+ videoModel(modelId: FalVideoModelId): Experimental_VideoModelV4;
56
56
  /**
57
57
  * Creates a model for speech generation.
58
58
  */
59
- speech(modelId: FalSpeechModelId): SpeechModelV3;
59
+ speech(modelId: FalSpeechModelId): SpeechModelV4;
60
60
  /**
61
61
  * @deprecated Use `embeddingModel` instead.
62
62
  */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ProviderV3, ImageModelV3, TranscriptionModelV3, Experimental_VideoModelV3, SpeechModelV3 } from '@ai-sdk/provider';
1
+ import { ProviderV4, ImageModelV4, TranscriptionModelV4, Experimental_VideoModelV4, SpeechModelV4 } from '@ai-sdk/provider';
2
2
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
3
  import { FetchFunction, InferSchema } from '@ai-sdk/provider-utils';
4
4
  import { z } from 'zod/v4';
@@ -32,31 +32,31 @@ interface FalProviderSettings {
32
32
  */
33
33
  fetch?: FetchFunction;
34
34
  }
35
- interface FalProvider extends ProviderV3 {
35
+ interface FalProvider extends ProviderV4 {
36
36
  /**
37
37
  * Creates a model for image generation.
38
38
  */
39
- image(modelId: FalImageModelId): ImageModelV3;
39
+ image(modelId: FalImageModelId): ImageModelV4;
40
40
  /**
41
41
  * Creates a model for image generation.
42
42
  */
43
- imageModel(modelId: FalImageModelId): ImageModelV3;
43
+ imageModel(modelId: FalImageModelId): ImageModelV4;
44
44
  /**
45
45
  * Creates a model for transcription.
46
46
  */
47
- transcription(modelId: FalTranscriptionModelId): TranscriptionModelV3;
47
+ transcription(modelId: FalTranscriptionModelId): TranscriptionModelV4;
48
48
  /**
49
49
  * Creates a model for video generation.
50
50
  */
51
- video(modelId: FalVideoModelId): Experimental_VideoModelV3;
51
+ video(modelId: FalVideoModelId): Experimental_VideoModelV4;
52
52
  /**
53
53
  * Creates a model for video generation.
54
54
  */
55
- videoModel(modelId: FalVideoModelId): Experimental_VideoModelV3;
55
+ videoModel(modelId: FalVideoModelId): Experimental_VideoModelV4;
56
56
  /**
57
57
  * Creates a model for speech generation.
58
58
  */
59
- speech(modelId: FalSpeechModelId): SpeechModelV3;
59
+ speech(modelId: FalSpeechModelId): SpeechModelV4;
60
60
  /**
61
61
  * @deprecated Use `embeddingModel` instead.
62
62
  */
package/dist/index.js CHANGED
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  VERSION: () => VERSION,
24
24
  createFal: () => createFal,
25
25
  fal: () => fal
26
26
  });
27
- module.exports = __toCommonJS(src_exports);
27
+ module.exports = __toCommonJS(index_exports);
28
28
 
29
29
  // src/fal-provider.ts
30
30
  var import_provider3 = require("@ai-sdk/provider");
@@ -137,7 +137,7 @@ var FalImageModel = class {
137
137
  constructor(modelId, config) {
138
138
  this.modelId = modelId;
139
139
  this.config = config;
140
- this.specificationVersion = "v3";
140
+ this.specificationVersion = "v4";
141
141
  this.maxImagesPerCall = 1;
142
142
  }
143
143
  get provider() {
@@ -454,7 +454,7 @@ var FalTranscriptionModel = class {
454
454
  constructor(modelId, config) {
455
455
  this.modelId = modelId;
456
456
  this.config = config;
457
- this.specificationVersion = "v3";
457
+ this.specificationVersion = "v4";
458
458
  }
459
459
  get provider() {
460
460
  return this.config.provider;
@@ -670,7 +670,7 @@ var FalSpeechModel = class {
670
670
  constructor(modelId, config) {
671
671
  this.modelId = modelId;
672
672
  this.config = config;
673
- this.specificationVersion = "v3";
673
+ this.specificationVersion = "v4";
674
674
  }
675
675
  get provider() {
676
676
  return this.config.provider;
@@ -789,7 +789,7 @@ var FalVideoModel = class {
789
789
  constructor(modelId, config) {
790
790
  this.modelId = modelId;
791
791
  this.config = config;
792
- this.specificationVersion = "v3";
792
+ this.specificationVersion = "v4";
793
793
  this.maxVideosPerCall = 1;
794
794
  }
795
795
  // FAL video models support 1 video at a time
@@ -1002,7 +1002,7 @@ var falVideoResponseSchema = import_v46.z.object({
1002
1002
  });
1003
1003
 
1004
1004
  // src/version.ts
1005
- var VERSION = true ? "3.0.0-beta.0" : "0.0.0-test";
1005
+ var VERSION = true ? "3.0.0-beta.10" : "0.0.0-test";
1006
1006
 
1007
1007
  // src/fal-provider.ts
1008
1008
  var defaultBaseURL = "https://fal.run";
@@ -1080,7 +1080,7 @@ function createFal(options = {}) {
1080
1080
  });
1081
1081
  };
1082
1082
  return {
1083
- specificationVersion: "v3",
1083
+ specificationVersion: "v4",
1084
1084
  imageModel: createImageModel,
1085
1085
  image: createImageModel,
1086
1086
  languageModel: (modelId) => {