Gemini Libraries
Python
- The SDK:
pip install google-generativeai
- The low-level client library:
pip install google-ai-generativelanguage
Go
- Run:
go get github.com/google/generative-ai-go
Node.js
- Run:
npm install @google/generative-ai
Web
- Add the following import to your web app:
import { GoogleGenerativeAI } from 'https://esm.run/@google/generative-ai'
Dart (Flutter)
- For Dart:
dart pub add google_generative_ai
- For Flutter:
flutter pub add google_generative_ai
Swift
- Add
generative-ai-swift
to your Xcode project using Swift Package Manager.
Android
- Add the following dependency to your Android project:
implementation("com.google.ai.client.generativeai:generativeai:0.9.0")