google.generative-ai
Package
Section titled “Package”@ai-sdk/google
Factories
Section titled “Factories”AIProviders.google
Capabilities
Section titled “Capabilities”- Language
- Embedding
- Image
- Speech
- Video
- Files
Google Generative AI’s implemented Gemini language, embedding, image, TTS speech, Veo video, files, interactions, and agents surface was audited against upstream Google 4.0.64. The current pass adds the published 100-input embedding preflight limit. Imagen factories remain locally available for source compatibility after their removal from the current upstream package. Gemini 3.7 Flash normalizes none and minimal reasoning to the supported low thinking floor. Primitive JSON Schema enum/const values and local $ref expansion, including boolean-schema references, map to Gemini’s OpenAPI-compatible wire form, while strict forced/named tools use ANY and strict automatic tools retain VALIDATED. Interactions forwards topK and seed while warning for unsupported penalties and agent-dropped settings; Files resumable uploads leave payload length to the transport. Generate and stream results surface Gemini responseId; multiple code-execution results retain their originating call ID; parallel unsigned function calls reuse an earlier signed standard call; and unknown future Gemini IDs default to the newest supported tool, thinking, file-search, and multimodal response capabilities while known legacy families stay conservative. Speech maps Gemini TTS generateContent requests with WAV-wrapped PCM by default, raw PCM opt-in, multi-speaker provider options, response sample-rate metadata, and upstream warnings. Gemini 3.5 unary/live transcription, Files URL recognition, recursive-tool behavior, prompt-level safety blocks, and Gemini 2.5 penalty warnings remain deferred to a dedicated provider pass. Realtime/WebSocket speech translation and lifecycle events and JS ProviderV4 runtime helpers also remain gaps. The 4.0.64 pass adds JSON Schema minItems and maxItems, preserves caller function aliases, forwards file headers and cancellation, supplies a durable Batch V4 adapter with tool content and input-file metadata, and supports Interactions video plus processing-call/result request, response, stream, warning, and metadata handling. Final integration also round-trips Interactions response history, function and built-in tool items, reasoning items, compaction state, provider references, mediaResolution, and systemInstruction precedence; Google Batch rejects empty result keys and preserves thought signatures even when their associated text is empty.
Factory argument requirements are defined by the public Swift factory signatures. Use Public symbols when you need the exact initializer or factory declaration.
Return to the provider matrix.