Gemini API

Gemini API

by Google • • Large Language Models (LLMs)

No reviews yet
Free plan available View plans

Gemini API is Google's LLM API for building apps on Gemini models, with Google AI Studio for prompt testing, a free tier and pay-as-you-go token billing.

Gemini API lets an application send text, images, audio and video to Gemini models and get back text, structured data, speech or images. Google builds and runs it from ai.google.dev, alongside Google AI Studio, the browser workspace where each model can be tried before any code exists. It is a separate product from the Gemini app that consumers chat with. It is also distinct from Gemini Enterprise Agent Platform, the enterprise route to the same models on Google Cloud. Content generation runs on the Flash, Flash-Lite and Pro model lines, and a thinking_level parameter sets how hard a model reasons before it answers. Function calling connects a model to outside tools and APIs, while structured output holds each response to a supplied JSON Schema. Grounding with Google Search and Grounding with Google Maps let answers draw on current web results and place data. Context caching charges less for repeated prompt prefixes, and the Batch API processes many requests in a single call. Beyond text, the API serves Gemini Embedding, the Transcribe speech models, Flash TTS voices, Nano Banana image generation and Gemini Omni Flash for video. It suits developers and product teams putting Gemini inside their own software rather than using it in a chat window. Solo builders and start-ups can prototype on the free tier, where prompts help improve Google products, then switch on paid use once an app meets real users. Paid use is billed by the token for each model, with Batch, Flex and Priority modes for work that can wait or needs priority serving. Rate limits rise through usage tiers as spending grows. Organisations that need contractual data commitments or tuned Gemini models reach the same models through Gemini Enterprise Agent Platform. A typical project starts with a prompt shaped in Google AI Studio and moves into code through the Google GenAI SDKs. Support teams build assistants that answer from current Google Search results, and operations teams use structured output to turn invoices and forms into clean JSON. Travel and local apps add Grounding with Google Maps so answers about places stay current. Search features pair the embedding models with a team's own retrieval store, while nightly classification and summarising jobs move to the Batch API. It fits a developer who wants Gemini behind an API key today and a clear path onto Google Cloud as the project grows.

Pricing

View plans
  • Free Tier

    Free

    • No charge for input and output tokens on many models within rate limits, Standard tab
    • New accounts start on the Free Tier
    • Prompts and responses are used to improve Google products on the free tier
    • Gemini 3.1 Pro Preview and the Omni models are paid only
    • Not offered on the Batch and Flex tabs for Gemini 3.8 Flash
    • Grounding with Google Search and Google Maps not available on the free tier
  • Paid Tier, Standard

    Custom pricing

    • Pay as you go per 1M tokens in USD, Standard tab (page default)
    • Gemini 3.8, 3.7 and 3.6 Flash $0.75 input and $3.75 output, promotional through December 31, 2026
    • From January 1, 2027 those three models are $1.50 input and $7.50 output; output includes thinking tokens
    • Context caching $0.075 per 1M tokens through 2026, then $0.15; storage $0.50 per 1M tokens an hour, then $1.00
    • Gemini 3.5 Flash $1.50 input and $9.00 output; Gemini 3.5 Flash-Lite $0.30 input and $2.50 output
    • Gemini 3.1 Pro Preview $2.00 input and $12.00 output up to 200k-token prompts, $4.00 and $18.00 above
    • Prompts and responses are not used to improve Google products on the paid tier
    • Usage tiers 1 to 3 raise rate limits with cumulative spend
    • Paid prompts are logged for a limited period for abuse monitoring; guaranteed zero data retention needs Vertex AI
    • No Gemini model supports fine-tuning here; tuning is in Gemini Enterprise Agent Platform
    • Shutdown dates on the deprecations page are the earliest possible, with notice given later
  • Paid Tier, Batch

    Custom pricing

    • Pay as you go per 1M tokens in USD, Batch tab, asynchronous offline requests
    • Gemini 3.8 Flash $0.375 input and $1.875 output, promotional through December 31, 2026
    • From January 1, 2027 $0.75 input and $3.75 output
    • Half the Standard token price; no free tier on this tab
  • Paid Tier, Flex

    Custom pricing

    • Pay as you go per 1M tokens in USD, Flex tab
    • Gemini 3.8 Flash $0.375 input and $1.875 output, promotional through December 31, 2026
    • From January 1, 2027 $0.75 input and $3.75 output
    • No free tier on this tab
  • Paid Tier, Priority

    Custom pricing

    • Pay as you go per 1M tokens in USD, Priority tab, priority serving of requests
    • Gemini 3.8 Flash $1.35 input and $6.75 output, promotional through December 31, 2026
    • From January 1, 2027 $2.70 input and $13.50 output
  • Grounding with Google Search and Google Maps

    Custom pricing

    • Paid tier add-on billed per request on top of tokens, Standard tab
    • Google Search: 5,000 free search requests a month shared across Gemini 3.x models, then $14 per 1,000 requests
    • Google Maps: 5,000 prompts a month free, shared across Gemini 3, then $14 per 1,000 search queries
    • One customer request to Gemini may result in more than one search query

Features

  • Included: Published context window size
  • Included: Image input support
  • Included: Audio input support
  • Included: Function and tool calling
  • Included: JSON schema output mode
  • Included: Extended reasoning mode
  • Included: Prompt caching discount
  • Included: Batch inference API
  • Not included: Fine-tuning offered
  • Not included: Open weights release
  • Not included: Zero data retention option
  • Not included: Regional data residency
  • Included: Published safety evaluations
  • Included: Free tier or trial credits
  • Not included: Enterprise agreement available
  • Included: Published deprecation policy
  • Included: Published benchmark results
  • Included: Embeddings endpoint

Additional Features

  • Google AI Studio prompt workspace
  • Gemini 3.8 Flash, 3.7 Flash and 3.6 Flash models
  • Gemini 3.5 Flash-Lite for high-volume tasks
  • Gemini 3.1 Pro Preview
  • thinking_level reasoning control
  • Function calling to your own tools and APIs
  • Structured output against a JSON Schema
  • Long context up to 1,048,576 input tokens on Gemini 3.8 Flash
  • Grounding with Google Search
  • Grounding with Google Maps
  • Context caching for repeated prompt prefixes
  • Batch API for offline requests
  • Flex and Priority serving modes
  • Image, audio and video understanding
  • Gemini Embedding models
  • Gemini 3.5 Transcribe and Transcribe Live speech-to-text
  • Gemini 3.8 Flash TTS text-to-speech
  • Nano Banana image generation models
  • Gemini Omni Flash Preview video generation and editing
  • Google GenAI SDKs
  • Usage tiers that raise rate limits with spend
  • Published model deprecation schedule

Best for

  • Developers prototyping Gemini apps on a free tier before paying
  • Teams that want pay-as-you-go token billing with no contract
  • Builders of agents that call their own functions and ground answers in Google Search or Maps
  • Teams running large offline jobs that can wait for Batch pricing
  • Apps that read images, audio and video in one model call
  • Products that need speech-to-text, text-to-speech and image generation from one API
  • Teams that need no guaranteed zero data retention or Gemini fine-tuning

Use cases

  • Testing prompts in Google AI Studio before writing code
  • Building a chatbot or assistant on Gemini 3.8 Flash
  • Extracting structured JSON from invoices and forms
  • Answering questions from current Google Search results
  • Adding place information from Google Maps to an app's answers
  • Summarising long documents in a single long-context prompt
  • Transcribing calls and meetings with Gemini 3.5 Transcribe
  • Generating embeddings for semantic search and retrieval
  • Running overnight classification jobs through the Batch API
  • Generating and editing images with Nano Banana models
  • Giving an agent tools through function calling

Screenshots & Videos

Explore Gemini API in action

Gemini Api Docs Home With A Python Code Sample
View full size
Gemini Api Docs Home With A Python Code Sample

User Reviews

Write a Review

No reviews yet

Be the first to share your experience with this software.

Compare with Similar Software

Click to compare side by side with Gemini API

Want to claim this brand?

To claim this brand, please contact support.