# Gemini API

CreateWithAI Hub page: https://createwithaihub.com/apis-sdks/gemini-api
Latest version of this file: https://createwithaihub.com/apis-sdks/gemini-api.md

- Type: API / SDK · Category: APIs & SDKs
- Publisher: Google
- Pricing: Free plan plus paid plans
- Runs on: API (cloud)

Google's API for Gemini models, with a free tier and the Google GenAI SDKs for Python, JS, Go, Java and C#.

The Gemini API provides programmatic access to Google's Gemini models for text, multimodal understanding, native image generation and editing, and real-time voice and video through the Live API. It supports function calling, JSON Schema structured output and grounding with Google Search. Google's GenAI SDKs are available for Python, JavaScript/TypeScript, Go, Java and C#, and the API has a free tier alongside paid tiers.

Useful for: Prototyping multimodal features on the free tier, analysing long video or audio files, or building real-time voice agents.

## Key features

- Multimodal prompts with up to 1M tokens of code, video, audio or documents
- Native image generation and editing
- Live API for real-time voice and video agents
- Function calling and JSON Schema structured output
- Grounding with Google Search and URL context
- Google GenAI SDKs for Python, JS/TS, Go, Java and C#

## Connection

- Modality: Text, Image, Audio, Video, Multimodal
- SDK language: Python, TypeScript / JS, Go, Java, C#
- Free tier: Has a free tier

## Before you start

- Google account
- Gemini API key

## Install steps from the official documentation

Python SDK:

```
pip install google-genai
```

JavaScript/TypeScript SDK:

```
npm install @google/genai
```

Go SDK:

```
go get google.golang.org/genai
```

C# SDK:

```
dotnet add package Google.GenAI
```

## Limitations

- Free-tier content is used to improve Google's products
- Legacy Google AI SDKs were deprecated on November 30, 2025

## Official links

- Website: https://aistudio.google.com
- Source repository: https://github.com/googleapis/python-genai
- Documentation: https://aistudio.google.com/docs
- Source: https://aistudio.google.com/docs (API capabilities)
- Source: https://aistudio.google.com/docs/libraries (SDK languages, install commands, legacy SDK deprecation)
- Source: https://aistudio.google.com/docs/pricing (Free tier)
- Source: https://github.com/googleapis/python-genai (Python SDK, Apache-2.0)
