@ai-sdk/google-vertex 5.0.101 → 5.0.103

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.
@@ -950,17 +950,18 @@ The following Zod features are known to not work with Google Vertex:
950
950
 
951
951
  ### Model Capabilities
952
952
 
953
- | Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
954
- | ----------------------- | ----------- | ----------------- | ---------- | -------------- |
955
- | `gemini-3.8-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
956
- | `gemini-3.7-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
957
- | `gemini-3.6-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
958
- | `gemini-3.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
959
- | `gemini-3.5-flash-lite` | <Check /> | <Check /> | <Check /> | <Check /> |
960
- | `gemini-3-pro-preview` | <Check /> | <Check /> | <Check /> | <Check /> |
961
- | `gemini-2.5-pro` | <Check /> | <Check /> | <Check /> | <Check /> |
962
- | `gemini-2.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
963
- | `gemini-2.0-flash-001` | <Check /> | <Check /> | <Check /> | <Check /> |
953
+ | Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
954
+ | ------------------------ | ----------- | ----------------- | ---------- | -------------- |
955
+ | `gemini-nano-banana-2.1` | <Check /> | <Cross /> | <Cross /> | <Cross /> |
956
+ | `gemini-3.8-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
957
+ | `gemini-3.7-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
958
+ | `gemini-3.6-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
959
+ | `gemini-3.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
960
+ | `gemini-3.5-flash-lite` | <Check /> | <Check /> | <Check /> | <Check /> |
961
+ | `gemini-3-pro-preview` | <Check /> | <Check /> | <Check /> | <Check /> |
962
+ | `gemini-2.5-pro` | <Check /> | <Check /> | <Check /> | <Check /> |
963
+ | `gemini-2.5-flash` | <Check /> | <Check /> | <Check /> | <Check /> |
964
+ | `gemini-2.0-flash-001` | <Check /> | <Check /> | <Check /> | <Check /> |
964
965
 
965
966
  <Note>
966
967
  The table above lists popular models. Please see the [Google Vertex AI
@@ -1100,11 +1101,12 @@ const { image } = await generateImage({
1100
1101
 
1101
1102
  ##### Gemini Image Model Capabilities
1102
1103
 
1103
- | Model | Image Generation | Image Editing | Aspect Ratios |
1104
- | -------------------------------- | ---------------- | ------------- | --------------------------------------------------- |
1105
- | `gemini-3.1-flash-image-preview` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1106
- | `gemini-3-pro-image-preview` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1107
- | `gemini-2.5-flash-image` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1104
+ | Model | Image Generation | Image Editing | Aspect Ratios |
1105
+ | -------------------------------- | ---------------- | ------------- | ----------------------------------------------------------------------- |
1106
+ | `gemini-nano-banana-2.1` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:8, 8:1, 1:4, 4:1 |
1107
+ | `gemini-3.1-flash-image-preview` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1108
+ | `gemini-3-pro-image-preview` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1109
+ | `gemini-2.5-flash-image` | <Check /> | <Check /> | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
1108
1110
 
1109
1111
  <Note>
1110
1112
  `gemini-3-pro-image-preview` supports additional features including up to 14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google-vertex",
3
- "version": "5.0.101",
3
+ "version": "5.0.103",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -71,19 +71,19 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@ai-sdk/anthropic": "4.0.71",
75
- "@ai-sdk/google": "4.0.87",
76
- "@ai-sdk/openai-compatible": "3.0.62",
77
- "@ai-sdk/provider": "4.0.21",
78
- "@ai-sdk/provider-utils": "5.0.53",
74
+ "@ai-sdk/anthropic": "4.0.73",
75
+ "@ai-sdk/google": "4.0.89",
76
+ "@ai-sdk/openai-compatible": "3.0.64",
77
+ "@ai-sdk/provider": "4.0.23",
78
+ "@ai-sdk/provider-utils": "5.0.55",
79
79
  "google-auth-library": "^10.6.2"
80
80
  },
81
81
  "devDependencies": {
82
- "@ai-sdk/test-server": "2.0.3",
82
+ "@ai-sdk/test-server": "2.0.4",
83
83
  "@types/node": "22.19.19",
84
84
  "@vercel/ai-tsconfig": "0.0.0",
85
85
  "tsdown": "^0.23.0",
86
- "typescript": "5.8.3",
86
+ "typescript": "6.0.3",
87
87
  "zod": "3.25.76"
88
88
  },
89
89
  "peerDependencies": {
@@ -30,6 +30,7 @@ const googleVertexImageModelsWithFileInputSupport = new Set<string>([
30
30
  'gemini-2.5-flash-image',
31
31
  'gemini-3-pro-image-preview',
32
32
  'gemini-3.1-flash-image-preview',
33
+ 'gemini-nano-banana-2.1',
33
34
  ]);
34
35
 
35
36
  export class GoogleVertexImageModel implements ImageModelV4 {
@@ -2,4 +2,5 @@ export type GoogleVertexImageModelId =
2
2
  | 'gemini-2.5-flash-image'
3
3
  | 'gemini-3-pro-image-preview'
4
4
  | 'gemini-3.1-flash-image-preview'
5
+ | 'gemini-nano-banana-2.1'
5
6
  | (string & {});
@@ -3,6 +3,7 @@
3
3
  // https://console.cloud.google.com/vertex-ai/studio/
4
4
  export type GoogleVertexModelId =
5
5
  // Stable models
6
+ | 'gemini-nano-banana-2.1'
6
7
  | 'gemini-3.8-flash'
7
8
  | 'gemini-3.7-flash'
8
9
  | 'gemini-3.6-flash'