@ai-sdk/google
4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed
497 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 2.x
2.0.22
13 Oct 2025The mediaResolution option has been added and is now passed to the Google API.
2.0.21
13 Oct 2025Support
imageConfig.aspectRatioconfiguration for Gemini models
2.0.20
10 Oct 2025Only updates a dependency:@ai-sdk/provider-utils 3.0.12
2.0.19
10 Oct 2025provider/google: Lazy schema loading
import time improved by 12.5% (22.3ms ➡️ 19.5ms)
2.0.18
9 Oct 2025Only updates a dependency:@ai-sdk/provider-utils 3.0.11
2.0.17
26 Sep 2025Chore (provider/google): Add preview modelIds for gemini 2.5 flash and lite
Patch Changes
Chore (provider/google): Add preview modelIds for gemini 2.5 flash and lite
2.0.16
23 Sep 2025Add provider version to user-agent header
2.0.15
22 Sep 2025Add promptFeedback outputs
2.0.14
12 Sep 2025Only updates a dependency:@ai-sdk/provider-utils 3.0.9
2.0.13
8 Sep 2025Fixed handling of image response in the tool call result.
2.0.12
4 Sep 2025Only updates a dependency:@ai-sdk/provider-utils 3.0.8
2.0.11
26 Aug 2025provider/google: Add gemini 2.5 flash image preview model support
2.0.5 – 2.0.106 releases that only update dependencies@ai-sdk/provider-utils 3.0.7Show each
- 2.0.1026 Aug 2025@ai-sdk/provider-utils 3.0.7
- 2.0.926 Aug 2025@ai-sdk/provider-utils 3.0.6
- 2.0.821 Aug 2025@ai-sdk/provider-utils 3.0.5
- 2.0.719 Aug 2025@ai-sdk/provider-utils 3.0.4
- 2.0.613 Aug 2025@ai-sdk/provider-utils 3.0.3
- 2.0.512 Aug 2025@ai-sdk/provider-utils 3.0.2
2.0.4
11 Aug 2025Add labels field to providerOptions
2.0.3
7 Aug 2025google: Add thought signature support for reasoning
2.0.2
5 Aug 2025Only updates a dependency:@ai-sdk/provider-utils 3.0.1
2.0.1
4 Aug 2025google: Update docs + add YouTube URL support to Google Generative AI provider
2.0.0
31 Jul 2025- Breaking
AI SDK 5
- Removed
Removes (unsupported)
additionalPropertiesfrom the Schema sent in the request payloads to Google APIs Add code execution provider defined tool
Major Changes
- Breaking
AI SDK 5
Patch Changes
Add code execution provider defined tool
Feat (provider/google): add new gemini models
Expose raw usageMetadata returned from Google Generative AI in providerMetadata
Added Image Models to the Google Provider for Imagen 3 Support
Update supportedUrls to only support native URL
providers/google: Add taskType support for Text Embedding Models
Feat (providers/google): add thinking config to provider options
Add raw chunk support
Chore (providers): remove model shorthand deprecation warnings
embed() now uses the single embeddings endpoint
No code updates are needed.This is to make sure that users are not ratelimited when using the batch endpoint, since many models have different limits for batch and single embeddings.
Eg: Google has a limit of 150 RPM for batch requests, and 1500 RPM for single requests.
Before, AI SDK would always use the batch endpoint, even for embed() calls, which led to ratelimits.
This does not have any breaking functionality and is fully tested :)
if (values.length > 1) {
const batchResult = await this.doEmbedBatch({
values,
options,
});
return batchResult;
}Fix (provider/google): allow "OFF" for Google HarmBlockThreshold
embedding-model-v2: Add response body field
Support tool schemas that allow additional properties (e.g
z.record(z.string()))packages: Export node10 compatible types
Omit system message for gemma models
Remove non-functional models
providers/google: Accept nullish in safetyRatings
Add Gemini 2.5 Flash Lite GA
Add provider option schemas for vertex imagegen and google genai
Fix (provider/google): prevent error when thinking signature is used
Feat (provider/google): Change to provider defined tools
Change the google search tool to be a provider defined tool
Added new URL context tool as a provider defined tool
providers/google: Add support for Gemini 2.5 Pro and Gemini 2.5 Flash (now stable)
google: Automatically handle system instructions for Gemma models
Using Zod 4 for internal stuff
- Removed
Removes (unsupported)
additionalPropertiesfrom the Schema sent in the request payloads to Google APIs Add gemini-embedding-001 model, add embedding provider options type export
google: Grounding streaming sources
Improve Zod compatibility
tool-calling: Don't require the user to have to pass parameters
- 1.x
1.2.22
2 Jul 2025Fix missing systemInstruction in object-tool mode. The object-tool generation mode now properly includes system instructions in API requests, matching the behavior of regular and object-json modes
1.2.21
1 Jul 2025- Removed
Removes (unsupported)
additionalPropertiesfrom the Schema sent in the request payloads to Google APIs
1.2.20
1 Jul 2025Support tool schemas that allow additional properties (e.g
z.record(z.string()))providers/google: Add support for Gemini 2.5 Pro and Gemini 2.5 Flash (now stable)
1.2.19
3 Jun 2025Fix (provider/google): prevent error when thinking signature is used
1.2.18
12 May 2025Add reasoning token output support for gemini models via Vertex AI Provider
1.2.17
7 May 2025Only updates a dependency:@ai-sdk/provider-utils 2.2.8
1.2.16
6 May 2025providers/google: Add gemini-2.5-pro-preview-05-06
1.2.15
6 May 2025providers/google: Accept nullish in safetyRatings
1.2.14
28 Apr 2025Feat (provider/google): add new gemini models
1.2.13
23 Apr 2025providers/google: Add taskType support for Text Embedding Models
1.2.12
18 Apr 2025Feat (providers/google): add thinking config to provider options
1.2.9 – 1.2.113 releases that only update dependencies@ai-sdk/provider 1.1.3@ai-sdk/provider-utils 2.2.7Show each
1.2.8
6 Apr 2025Fix (provider/google): allow "OFF" for Google HarmBlockThreshold
1.2.7
5 Apr 2025Add provider option schemas for vertex imagegen and google genai
1.2.4 – 1.2.63 releases that only update dependencies@ai-sdk/provider-utils 2.2.4Show each
- 1.2.64 Apr 2025@ai-sdk/provider-utils 2.2.4
- 1.2.531 Mar 2025@ai-sdk/provider-utils 2.2.3
- 1.2.431 Mar 2025@ai-sdk/provider-utils 2.2.2
1.2.3
25 Mar 2025Feat (provider/google): add gemini-2.5-pro-exp-03-25 to model list
1.2.2
24 Mar 2025Only updates a dependency:@ai-sdk/provider-utils 2.2.1
1.2.1
21 Mar 2025Feat (provider/google): support IMAGE_SAFETY finish reason
1.2.0
21 Mar 2025AI SDK 4.2
Minor Changes
AI SDK 4.2
1.1.27
20 Mar 2025Feat (provider-utils): parseProviderOptions function
Patch Changes
Feat (provider-utils): parseProviderOptions function
1.1.26
19 Mar 2025Feat (ai): support model-generated files
Patch Changes
Feat (ai): support model-generated files
1.1.25
13 Mar 2025Only updates dependencies:@ai-sdk/provider 1.0.11@ai-sdk/provider-utils 2.1.13
1.1.24
13 Mar 2025Fix (provider/google): ensure correct finishReason for tool calls in streaming response
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.