Google Gemini API
  1. models
Google Gemini API
  • Get API key
  • Release notes
  • Libraries
  • Run Gemini on Google Cloud
  • Model Capabilities
    • Overview
    • Long context
    • Structured output
    • Document understanding
    • Image understanding
    • Video understanding
    • Audio understanding
    • Text generation
      • Text input
      • Image input
      • Streaming output
      • Multi-turn conversations
      • Multi-turn conversations (Streaming)
      • Configuration parameters
    • Generate images
      • Generate images using Gemini
      • Image editing with Gemini
      • Generate images using Imagen 3
    • Gemini thinking
      • Use thinking models
      • Set budget on thinking models
    • Function calling
      • Function Calling with the Gemini API
  • models
    • All Model
    • Pricing
    • Rate limits
    • Billing info
  • Safety
    • Safety settings
    • Safety guidance
  1. models

All Model

Gemini 模型#

2.5 Pro experiment#

Our most powerful thinking model with maximum response accuracy and state-of-the-art performance
Input audio, images, video, and text, get text responses
Tackle difficult problems, analyze large databases, and more
Best for complex coding, reasoning, and multimodal understanding

2.5 Flash experiment#

Our best model in terms of price-performance, offering well-rounded capabilities.
Input audio, images, video, and text, and get text responses
Model thinks as needed; or, you can configure a thinking budget
Best for low latency, high volume tasks that require thinking

2.0 Flash spark#

Our newest multimodal model, with next generation features and improved capabilities
Input audio, images, video, and text, get text responses
Generate code and images, extract data, analyze files, generate graphs, and more
Low latency, enhanced performance, built to power agentic experiences

Model variants#

The Gemini API offers different models that are optimized for specific use cases. Here's a brief overview of Gemini variants that are available:
Model variantInput(s)OutputOptimized for
Gemini 2.5 Flash Preview 04-17 gemini-2.5-flash-preview-04-17Audio, images, videos, and textTextAdaptive thinking, cost efficiency
Gemini 2.5 Pro Preview gemini-2.5-pro-preview-03-25Audio, images, videos, and textTextEnhanced thinking and reasoning, multimodal understanding, advanced coding, and more
Gemini 2.0 Flash gemini-2.0-flashAudio, images, videos, and textText, images (experimental), and audio (coming soon)Next generation features, speed, thinking, realtime streaming, and multimodal generation
Gemini 2.0 Flash-Lite gemini-2.0-flash-liteAudio, images, videos, and textTextCost efficiency and low latency
Gemini 1.5 Flash gemini-1.5-flashAudio, images, videos, and textTextFast and versatile performance across a diverse variety of tasks
Gemini 1.5 Flash-8B gemini-1.5-flash-8bAudio, images, videos, and textTextHigh volume and lower intelligence tasks
Gemini 1.5 Pro gemini-1.5-proAudio, images, videos, and textTextComplex reasoning tasks requiring more intelligence
Gemini Embedding gemini-embedding-expTextText embeddingsMeasuring the relatedness of text strings
Imagen 3 imagen-3.0-generate-002TextImagesOur most advanced image generation model
Veo 2 veo-2.0-generate-001Text, imagesVideoHigh quality video generation
Gemini 2.0 Flash Live gemini-2.0-flash-live-001Audio, video, and textText, audioLow-latency bidirectional voice and video interactions
You can view the rate limits for each model on the rate limits page.
Gemini 2.5 Flash Preview 04-17
Gemini 2.5 Pro Preview
Gemini 2.0 Flash
Gemini 2.0 Flash-Lite
Gemini 1.5 Flash
Gemini 1.5 Flash-8B
Gemini 1.5 Pro
Imagen 3
Veo 2
Gemini 2.0 Flash Live
Gemini Embedding Experimental
Text Embedding and Embedding
AQA
See the examples to explore the capabilities of these model variations.
[*] A token is equivalent to about 4 characters for Gemini models. 100 tokens are about 60-80 English words.

Model version name patterns#

Gemini models are available in either preview, stable, or experimental versions. In your code, you can use one of the following model name formats to specify which model and version you want to use.
Latest stable: Points to the most recent stable version released for the specified model generation and variation.
To specify the latest stable version, use the following pattern: <model>-<generation>-<variation>. For example, gemini-2.0-flash.
Stable: Points to a specific stable model. Stable models usually don't change. Most production apps should use a specific stable model.
To specify a stable version, use the following pattern: <model>-<generation>-<variation>-<version>. For example, gemini-2.0-flash-001.
Preview: Points to a preview model which may not be suitable for production use, come with more restrictive rate limits, but may have billing enabled.
To specify a preview version, use the following pattern: <model>-<generation>-<variation>-<version>. For example, gemini-2.5-pro-preview-03-25.
Experimental: Points to an experimental model which may not be suitable for production use and come with more restrictive rate limits. We release experimental models to gather feedback and get our latest updates into the hands of developers quickly.
To specify an experimental version, use the following pattern: <model>-<generation>-<variation>-<version>. For example, gemini-2.0-pro-exp-02-05.

Experimental models#

In addition to stable models, the Gemini API offers experimental models which may not be suitable for production use and come with more restrictive rate limits.
We release experimental models to gather feedback, get our latest updates into the hands of developers quickly, and highlight the pace of innovation happening at Google. What we learn from experimental launches informs how we release models more widely. An experimental model can be swapped for another without prior notice. We don't guarantee that an experimental model will become a stable model in the future.

Previous experimental models#

As new versions or stable releases become available, we remove and replace experimental models. You can find the previous experimental models we released in the following section along with the replacement version:
Model codeBase modelReplacement version
gemini-2.0-flash-thinking-exp-01-21Gemini 2.5 Flashgemini-2.5-flash-preview-04-17
gemini-2.0-pro-exp-02-05Gemini 2.0 Pro Experimentalgemini-2.5-pro-preview-03-25
gemini-2.0-flash-expGemini 2.0 Flashgemini-2.0-flash
gemini-exp-1206Gemini 2.0 Progemini-2.0-pro-exp-02-05
gemini-2.0-flash-thinking-exp-1219Gemini 2.0 Flash Thinkinggemini-2.0-flash-thinking-exp-01-21
gemini-exp-1121Geminigemini-exp-1206
gemini-exp-1114Geminigemini-exp-1206
gemini-1.5-pro-exp-0827Gemini 1.5 Progemini-exp-1206
gemini-1.5-pro-exp-0801Gemini 1.5 Progemini-exp-1206
gemini-1.5-flash-8b-exp-0924Gemini 1.5 Flash-8Bgemini-1.5-flash-8b
gemini-1.5-flash-8b-exp-0827Gemini 1.5 Flash-8Bgemini-1.5-flash-8b

Supported languages#

Gemini models are trained to work with the following languages:
Arabic (ar)
Bengali (bn)
Bulgarian (bg)
Chinese simplified and traditional (zh)
Croatian (hr)
Czech (cs)
Danish (da)
Dutch (nl)
English (en)
Estonian (et)
Finnish (fi)
French (fr)
German (de)
Greek (el)
Hebrew (iw)
Hindi (hi)
Hungarian (hu)
Indonesian (id)
Italian (it)
Japanese (ja)
Korean (ko)
Latvian (lv)
Lithuanian (lt)
Norwegian (no)
Polish (pl)
Portuguese (pt)
Romanian (ro)
Russian (ru)
Serbian (sr)
Slovak (sk)
Slovenian (sl)
Spanish (es)
Swahili (sw)
Swedish (sv)
Thai (th)
Turkish (tr)
Ukrainian (uk)
Vietnamese (vi)
Previous
Function Calling with the Gemini API
Next
Pricing
Built with