This page provides information about how to download or install the libraries for accessing the Gemini API. If you're new to the Gemini API, try out the API quickstart.Note: Based on developer feedback, we created the new Google Gen AI SDK, if you are using one of the previous SDKs, check out our migration guide.Python#
We provide a Python SDK which you can install by running:JavaScript and TypeScript (Preview)#
npm install @google/genai
Go (Preview)#
We provide a Go SDK which you can install by running:go get google.golang.org/genai
Previous SDKs#
The following is a set of our previous SDK's which are no longer being actively developed, you can switch to the updated Google Gen AI SDK by using our migration guide: Modified at 2025-04-24 09:13:17