About Gemini
Gemini is Google's family of multimodal models for reasoning, coding, analysis, and tool-assisted work. The general-purpose Gemini API models covered here accept text and, depending on version, images, audio, video, and PDFs; their output is text. Google lists specialized image and video generators separately, including Nano Banana and Veo. See Google's Gemini API model list for current endpoints and capabilities.
As of October 2026, Gemini 4 Argon is Google's stable flagship for complex reasoning and long-running work. It has a shared 1M-token budget for input, thinking, and output, with long decode up to 1M output tokens through background execution. Gemini 3.8 Flash is the current stable Flash model; Gemini 3.6 Flash and Gemini 3.5 Flash-Lite remain available for different speed and workload needs. Compare limits and lifecycle status on the versions page.
Gemini 3.1 Pro and Gemini 3 Flash are previews. The Gemini 2.5 API models are still served to users who have used them before, while Google recommends newer models for new projects. Gemini 2.0 endpoints shut down in June 2026, and Gemini 1.5 endpoints shut down in September 2025. Google also publishes model-specific deprecation dates, so check its API model list before starting a new integration.
How to prompt Gemini
- 01
State the task and deliverable
Say what you want done, who the result is for, and what the finished answer should contain. Put essential constraints near the start.
- 02
Separate prompt sections
Use consistent headings or tags for the task, context, examples, constraints, and output format. Define any terms that could be read in more than one way.
- 03
Show examples for exact patterns
For repeated classifications, phrasing, or formatting, include a few representative input and output examples. Keep the examples consistent.
- 04
Choose a supported thinking level
For models with configurable thinking, select a documented level for the task. Check the model page first; available levels differ by version.
- 05
Ground recent facts
Use Google Search grounding for obscure or time-sensitive questions. For analysis of a fixed source, attach that source and ask the model to distinguish evidence from inference.
- 06
Give media a specific job
Name what to inspect in each image, audio file, or video. For one image, put the text prompt before the image; for one video, put the text prompt after it.
Anatomy of a great prompt
<task>{{task}}</task>
<context>{{context}}</context>
<constraints>
{{constraints}}
</constraints>
<output_format>{{output_format}}</output_format>