CreateWithAIHub

API / SDK Google

Gemini API

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

Model APIFree plan + paid
Visit website ↗
Save

What it is

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.

What it's 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#

How to use it

Before you start

  • Google account
  • Gemini API key
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

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

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

Website tech stack

Hosting & CDN
Cloudflare

Detected on aistudio.google.com on 25 Nov 2026. This describes the public website only; the product itself may use different technology.

Alternatives

Cohere's API for Command chat models, Embed and Rerank, with official Python, TypeScript, Java and Go SDKs and free trial keys.

Free plan + paid

Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.

Paid

OpenAI's developer API for GPT, image, audio and embedding models, with official SDKs in several languages.

Paid

xAI's (now SpaceXSI) OpenAI-compatible API for Grok text, image, video and voice models, with Python and TypeScript SDKs.

Paid

See all 5 Gemini API alternatives →

MCP servers for this

Hugging Face's hosted MCP server that lets agents search models, datasets, Spaces and papers and call Gradio Spaces.

Free plan + paidOpen source

Skills for this

Anthropic skill for generative art in p5.js with seeded randomness and an interactive viewer for exploring parameters.

FreeOpen source

Related resources

OpenAI's proprietary GPT model family, with frontier, efficient, image and speech variants served through the OpenAI API.

Paid

Google's multimodal model family covering reasoning, image generation, speech, video and embeddings.

Free plan + paid

Serverless GPU inference on Cloudflare's network for open models, callable from Workers or the REST API.

Free plan + paid

Inference cloud serving hundreds of open models through an OpenAI-compatible API, plus private GPU deployments and GPU rental.

Paid

Type to search. Use ↑ ↓ and Enter.