You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(provider/google): add support for gemini-3.1-flash-image-preview (#12883)
## Background
Google released `gemini-3.1-flash-image-preview`, a new Gemini image
model:
- https://blog.google/innovation-and-ai/technology/ai/nano-banana-2/
-
https://ai.google.dev/gemini-api/docs/pricing#gemini-3.1-flash-image-preview
## Summary
Adds `gemini-3.1-flash-image-preview` to the model ID type unions in
google, google-vertex, and gateway packages (both language model and
image model ID lists). Updates documentation capability tables for both
providers. Adds two `ai-functions` examples: one using `generateImage`,
one using `generateText` with multimodal output.
## Manual Verification
Model ID additions are type-only changes. Examples can be verified by
running:
```bash
aif examples/ai-functions/src/generate-image/google/gemini-3-1-flash-image.ts
aif examples/ai-functions/src/generate-text/google/gemini-3-1-flash-image-output.ts
```
## Checklist
- [ ] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)
- [x] I have reviewed this pull request (self-review)
## Future Work
N/A
## Related Issues
Fixes#12882
0 commit comments