This page provides information about how to download or install the libraries for accessing Gemini.
Python
We provide a Python SDK which can be installed by running:
pip install google-generativeai
Node.js
We provide a Node SDK which can be installed by running:
npm install @google/generative-ai
Go
We provide a Go SDK which can be installed by running:
go get github.com/google/generative-ai-go
Dart (Flutter)
We provide a Dart and Flutter SDK which can be installed by running either:
dart pub add google_generative_ai
If you are using Flutter, run the following command:
flutter pub add google_generative_ai
Swift
We provide a Swift SDK
which can be installed by adding generative-ai-swift
to your Xcode project
using Swift Package Manager.
Android
We provide an Android SDK
which can be installed by adding the dependency
implementation("com.google.ai.client.generativeai:generativeai:0.9.0")
to your Android project.