Gemini APIで使えるモデル

Google AI Studio で生成した API key で使用できるモデルを調べました。

環境変数 `GEMINI_API_KEY` をセットする必要があります。

```sh:準備
pip install google-genai
```
```py
import os
from google import genai
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
print("name|display_name")
print("----|----")
for model in client.models.list():
    name = model.name.removeprefix("models/")
    print(f"{name}|{model.display_name}")
```

:::note warn
取得したすべてのモデルが使用可能かは未確認です。
:::

# 2025/06/22

name|display_name
----|----
embedding-gecko-001|Embedding Gecko
gemini-1.0-pro-vision-latest|Gemini 1.0 Pro Vision
gemini-pro-vision|Gemini 1.0 Pro Vision
gemini-1.5-pro-latest|Gemini 1.5 Pro Latest
gemini-1.5-pro-002|Gemini 1.5 Pro 002
gemini-1.5-pro|Gemini 1.5 Pro
gemini-1.5-flash-latest|Gemini 1.5 Flash Latest
gemini-1.5-flash|Gemini 1.5 Flash
gemini-1.5-flash-002|Gemini 1.5 Flash 002
gemini-1.5-flash-8b|Gemini 1.5 Flash-8B
gemini-1.5-flash-8b-001|Gemini 1.5 Flash-8B 001
gemini-1.5-flash-8b-latest|Gemini 1.5 Flash-8B Latest
gemini-2.5-pro-exp-03-25|Gemini 2.5 Pro Experimental 03-25
gemini-2.5-pro-preview-03-25|Gemini 2.5 Pro Preview 03-25
gemini-2.5-flash-preview-04-17|Gemini 2.5 Flash Preview 04-17
gemini-2.5-flash-preview-05-20|Gemini 2.5 Flash Preview 05-20
gemini-2.5-flash|Gemini 2.5 Flash
gemini-2.5-flash-preview-04-17-thinking|Gemini 2.5 Flash Preview 04-17 for cursor testing
gemini-2.5-flash-lite-preview-06-17|Gemini 2.5 Flash Lite Preview 06-17
gemini-2.5-pro-preview-05-06|Gemini 2.5 Pro Preview 05-06
gemini-2.5-pro-preview-06-05|Gemini 2.5 Pro Preview
gemini-2.5-pro|Gemini 2.5 Pro
gemini-2.0-flash-exp|Gemini 2.0 Flash Experimental
gemini-2.0-flash|Gemini 2.0 Flash
gemini-2.0-flash-001|Gemini 2.0 Flash 001
gemini-2.0-flash-exp-image-generation|Gemini 2.0 Flash (Image Generation) Experimental
gemini-2.0-flash-lite-001|Gemini 2.0 Flash-Lite 001
gemini-2.0-flash-lite|Gemini 2.0 Flash-Lite
gemini-2.0-flash-preview-image-generation|Gemini 2.0 Flash Preview Image Generation
gemini-2.0-flash-lite-preview-02-05|Gemini 2.0 Flash-Lite Preview 02-05
gemini-2.0-flash-lite-preview|Gemini 2.0 Flash-Lite Preview
gemini-2.0-pro-exp|Gemini 2.0 Pro Experimental
gemini-2.0-pro-exp-02-05|Gemini 2.0 Pro Experimental 02-05
gemini-exp-1206|Gemini Experimental 1206
gemini-2.0-flash-thinking-exp-01-21|Gemini 2.5 Flash Preview 04-17
gemini-2.0-flash-thinking-exp|Gemini 2.5 Flash Preview 04-17
gemini-2.0-flash-thinking-exp-1219|Gemini 2.5 Flash Preview 04-17
gemini-2.5-flash-preview-tts|Gemini 2.5 Flash Preview TTS
gemini-2.5-pro-preview-tts|Gemini 2.5 Pro Preview TTS
learnlm-2.0-flash-experimental|LearnLM 2.0 Flash Experimental
gemma-3-1b-it|Gemma 3 1B
gemma-3-4b-it|Gemma 3 4B
gemma-3-12b-it|Gemma 3 12B
gemma-3-27b-it|Gemma 3 27B
gemma-3n-e4b-it|Gemma 3n E4B
embedding-001|Embedding 001
text-embedding-004|Text Embedding 004
gemini-embedding-exp-03-07|Gemini Embedding Experimental 03-07
gemini-embedding-exp|Gemini Embedding Experimental
aqa|Model that performs Attributed Question Answering.
imagen-3.0-generate-002|Imagen 3.0 002 model
veo-2.0-generate-001|Veo 2
gemini-2.5-flash-preview-native-audio-dialog|Gemini 2.5 Flash Preview Native Audio Dialog
gemini-2.5-flash-exp-native-audio-thinking-dialog|Gemini 2.5 Flash Exp Native Audio Thinking Dialog
gemini-2.0-flash-live-001|Gemini 2.0 Flash 001

# 差分

```diff:2025/06/18 と 2025/06/22 の差分
-gemini-2.5-flash-preview-native-audio-dialog-rai-v3|Gemini 2.5 Flash Preview Native Audio Dialog RAI v3
```
```diff:2025/06/17 と 2025/06/18 の差分
+gemini-2.5-flash|Gemini 2.5 Flash
+gemini-2.5-flash-lite-preview-06-17|Gemini 2.5 Flash Lite Preview 06-17
+gemini-2.5-pro|Gemini 2.5 Pro
```
```diff:2025/06/06 と 2025/06/17 の差分
-gemini-1.5-pro-001|Gemini 1.5 Pro 001
-gemini-1.5-flash-001|Gemini 1.5 Flash 001
-gemini-1.5-flash-001-tuning|Gemini 1.5 Flash 001 Tuning
-gemini-1.5-flash-8b-exp-0827|Gemini 1.5 Flash 8B Experimental 0827
-gemini-1.5-flash-8b-exp-0924|Gemini 1.5 Flash 8B Experimental 0924
```
```diff:2025/05/21 と 2025/06/06 の差分
+gemini-2.5-pro-preview-06-05|Gemini 2.5 Pro Preview
+veo-2.0-generate-001|Veo 2
+gemini-2.5-flash-preview-native-audio-dialog-rai-v3|Gemini 2.5 Flash Preview Native Audio Dialog RAI v3
```
```diff:2025/05/16 と 2025/05/21 の差分
-chat-bison-001|PaLM 2 Chat (Legacy)
-text-bison-001|PaLM 2 (Legacy)
+gemini-2.5-flash-preview-05-20|Gemini 2.5 Flash Preview 05-20
+gemini-2.5-flash-preview-tts|Gemini 2.5 Flash Preview TTS
+gemini-2.5-pro-preview-tts|Gemini 2.5 Pro Preview TTS
+gemini-2.5-flash-preview-native-audio-dialog|Gemini 2.5 Flash Preview Native Audio Dialog
+gemini-2.5-flash-exp-native-audio-thinking-dialog|Gemini 2.5 Flash Exp Native Audio Thinking Dialog
+gemma-3n-e4b-it|Gemma 3n E4B
```
```diff:2025/05/09 と 2025/05/16 の差分
-learnlm-1.5-pro-experimental|LearnLM 1.5 Pro Experimental
```
```diff:2025/05/07 と 2025/05/09 の差分
+gemini-2.0-flash-preview-image-generation|Gemini 2.0 Flash Preview Image Generation
```
```diff:2025/05/04 と 2025/05/07 の差分
+gemini-2.5-flash-preview-04-17-thinking|Gemini 2.5 Flash Preview 04-17 for cursor testing
+gemini-2.5-pro-preview-05-06|Gemini 2.5 Pro Preview 05-06
```
```diff:2025/04/19 と 2025/05/04 の差分
-gemini-2.0-flash-thinking-exp|Gemini 2.0 Flash Thinking Experimental 01-21
+gemini-2.0-flash-thinking-exp|Gemini 2.5 Flash Preview 04-17
-gemini-2.0-flash-thinking-exp-1219|Gemini 2.0 Flash Thinking Experimental
+gemini-2.0-flash-thinking-exp-1219|Gemini 2.5 Flash Preview 04-17
-gemini-2.0-flash-thinking-exp-01-21|Gemini 2.0 Flash Thinking Experimental 01-21
+gemini-2.0-flash-thinking-exp-01-21|Gemini 2.5 Flash Preview 04-17
```
```diff:2025/04/10 と 2025/04/19 の差分
+gemini-2.5-flash-preview-04-17|Gemini 2.5 Flash Preview 04-17
+learnlm-2.0-flash-experimental|LearnLM 2.0 Flash Experimental
```
```diff:2025/04/05 と 2025/04/10 の差分
+gemini-2.0-flash-live-001|Gemini 2.0 Flash 001
```
```diff:2025/04/04 と 2025/04/05 の差分
+gemini-2.5-pro-preview-03-25|Gemini 2.5 Pro Preview 03-25
```
```diff:2025/03/31 と 2025/04/04 の差分
+gemma-3-1b-it|Gemma 3 1B
+gemma-3-4b-it|Gemma 3 4B
+gemma-3-12b-it|Gemma 3 12B
```
```diff:2025/03/17 と 2025/03/31 の差分
+gemini-2.5-pro-exp-03-25|Gemini 2.5 Pro Experimental 03-25
```
```diff:2025/03/13 と 2025/03/17 の差分
+gemini-2.0-flash-exp-image-generation|Gemini 2.0 Flash (Image Generation) Experimental
```
```diff:2025/02/28 と 2025/03/13 の差分
+gemma-3-27b-it|Gemma 3 27B
+gemini-embedding-exp|Gemini Embedding Experimental
+gemini-embedding-exp-03-07|Gemini Embedding Experimental 03-07
```
```diff:2025/02/06 と 2025/02/28 の差分
-gemini-1.0-pro-latest|Gemini 1.0 Pro Latest
-gemini-1.0-pro|Gemini 1.0 Pro
-gemini-1.0-pro-001|Gemini 1.0 Pro 001 (Tuning)
-gemini-pro|Gemini 1.0 Pro
-gemini-exp-1206|Gemini 2.0 Pro Experimental
+gemini-2.0-flash-lite|Gemini 2.0 Flash-Lite
+gemini-2.0-flash-lite-001|Gemini 2.0 Flash-Lite 001
+gemini-exp-1206|Gemini Experimental 1206
+imagen-3.0-generate-002|Imagen 3.0 002 model
```
```diff:2025/01/29 と 2025/02/06 の差分
-gemini-1.5-flash-exp-0827|Gemini Experimental 1206
-gemini-1.5-pro-exp-0801|Gemini Experimental 1206
-gemini-1.5-pro-exp-0827|Gemini Experimental 1206
-gemini-exp-1114|Gemini Experimental 1206
-gemini-exp-1121|Gemini Experimental 1206
-gemini-exp-1206|Gemini Experimental 1206
+gemini-2.0-flash-lite-preview|Gemini 2.0 Flash-Lite Preview
+gemini-2.0-flash-lite-preview-02-05|Gemini 2.0 Flash-Lite Preview 02-05
+gemini-2.0-flash|Gemini 2.0 Flash
+gemini-2.0-flash-001|Gemini 2.0 Flash 001
+gemini-2.0-pro-exp|Gemini 2.0 Pro Experimental
+gemini-2.0-pro-exp-02-05|Gemini 2.0 Pro Experimental 02-05
+gemini-exp-1206|Gemini 2.0 Pro Experimental
```
```diff:2024/12/20 と 2025/01/29 の差分
-gemini-2.0-flash-thinking-exp|Gemini 2.0 Flash Thinking Experimental
+gemini-2.0-flash-thinking-exp|Gemini 2.0 Flash Thinking Experimental 01-21
+gemini-2.0-flash-thinking-exp-01-21|Gemini 2.0 Flash Thinking Experimental 01-21
```
```diff:2024/12/19 と 2024/12/20 の差分
-gemini-exp-1114|Gemini Experimental 1121
+gemini-exp-1114|Gemini Experimental 1206
-gemini-exp-1121|Gemini Experimental 1121
+gemini-exp-1121|Gemini Experimental 1206
+gemini-2.0-flash-thinking-exp|Gemini 2.0 Flash Thinking Experimental
+gemini-2.0-flash-thinking-exp-1219|Gemini 2.0 Flash Thinking Experimental
```
```diff:2024/12/12 と 2024/12/19 の差分
-gemini-1.5-pro-exp-0801|Gemini 1.5 Pro Experimental 0801
+gemini-1.5-pro-exp-0801|Gemini Experimental 1206
```
```diff:2024/12/07 と 2024/12/12 の差分
+gemini-2.0-flash-exp|Gemini 2.0 Flash Experimental
```
```diff:2024/11/22 と 2024/12/07 の差分
-gemini-1.5-flash-exp-0827|Gemini 1.5 Flash Experimental 0827
+gemini-1.5-flash-exp-0827|Gemini Experimental 1206
-gemini-1.5-pro-exp-0827|Gemini 1.5 Pro Experimental 0827
+gemini-1.5-pro-exp-0827|Gemini Experimental 1206
-gemini-exp-1114|Gemini Experimental 1114
+gemini-exp-1114|Gemini Experimental 1121
+gemini-exp-1206|Gemini Experimental 1206
```
```diff:2024/11/11 と 2024/11/22 の差分
+gemini-exp-1114|Gemini Experimental 1114
+gemini-exp-1121|Gemini Experimental 1121
+learnlm-1.5-pro-experimental|LearnLM 1.5 Pro Experimental
```

# 2024/11/11

name|display_name
----|----
chat-bison-001|PaLM 2 Chat (Legacy)
text-bison-001|PaLM 2 (Legacy)
embedding-gecko-001|Embedding Gecko
gemini-1.0-pro-latest|Gemini 1.0 Pro Latest
gemini-1.0-pro|Gemini 1.0 Pro
gemini-pro|Gemini 1.0 Pro
gemini-1.0-pro-001|Gemini 1.0 Pro 001 (Tuning)
gemini-1.0-pro-vision-latest|Gemini 1.0 Pro Vision
gemini-pro-vision|Gemini 1.0 Pro Vision
gemini-1.5-pro-latest|Gemini 1.5 Pro Latest
gemini-1.5-pro-001|Gemini 1.5 Pro 001
gemini-1.5-pro-002|Gemini 1.5 Pro 002
gemini-1.5-pro|Gemini 1.5 Pro
gemini-1.5-pro-exp-0801|Gemini 1.5 Pro Experimental 0801
gemini-1.5-pro-exp-0827|Gemini 1.5 Pro Experimental 0827
gemini-1.5-flash-latest|Gemini 1.5 Flash Latest
gemini-1.5-flash-001|Gemini 1.5 Flash 001
gemini-1.5-flash-001-tuning|Gemini 1.5 Flash 001 Tuning
gemini-1.5-flash|Gemini 1.5 Flash
gemini-1.5-flash-exp-0827|Gemini 1.5 Flash Experimental 0827
gemini-1.5-flash-002|Gemini 1.5 Flash 002
gemini-1.5-flash-8b|Gemini 1.5 Flash-8B
gemini-1.5-flash-8b-001|Gemini 1.5 Flash-8B 001
gemini-1.5-flash-8b-latest|Gemini 1.5 Flash-8B Latest
gemini-1.5-flash-8b-exp-0827|Gemini 1.5 Flash 8B Experimental 0827
gemini-1.5-flash-8b-exp-0924|Gemini 1.5 Flash 8B Experimental 0924
embedding-001|Embedding 001
text-embedding-004|Text Embedding 004
aqa|Model that performs Attributed Question Answering.