--- url: "https://ai.google.dev/gemini-api/docs/api-versions" titulek: "API versions explained | Gemini API | Google AI for Developers" h1: "API versions explained" popis: "" jazyk: "en" kanonicka: "https://ai.google.dev/gemini-api/docs/api-versions" drobecky: ["Gemini API", "API versions explained"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 06:15:13" znaku: 4572 slov: 511 kodovani: "iso-8859-2" sha256: "a64700f7b829252ab53336ba7273f0c0d275c772d581ed1cfd7fb4f1fdaf7f58" --- API versions explained This document provides a high-level overview of the differences between the `v1` and `v1beta` versions of the Gemini API. **v1**: Stable version of the API. Features in the stable version are fully supported over the lifetime of the major version. If there are any breaking changes, a new major version of the API will be created and the existing version will be deprecated after a reasonable period of time. Non-breaking changes may be introduced to the API without changing the major version. The **Interactions API** and its core features are generally available in `v1`. **v1beta**: This version includes early features and capabilities that are actively being developed. While features in `v1beta` may be subject to changes as we refine them based on feedback, it lets you try new capabilities before they are promoted to stable. Capability and feature support The following table details the availability of capabilities across `v1` (GA) and `v1beta` (Beta). Core API capabilities and tools apply to both the Interactions API and `generateContent` unless specified otherwise: Feature v1 v1beta **Core API capabilities** [Interactions API](/gemini-api/docs/get-started) [Function Calling](/gemini-api/docs/function-calling) [Structured Output](/gemini-api/docs/structured-output) [Thinking / Reasoning](/gemini-api/docs/thinking) [System Instructions](/gemini-api/docs/system-instructions) [Audio Output (Speech Config)](/gemini-api/docs/audio) [Service Tier (Priority / Flex)](/gemini-api/docs/priority-inference) **Tools** [Code Execution Tool](/gemini-api/docs/code-execution) [Google Search Grounding](/gemini-api/docs/google-search) [Google Maps Grounding](/gemini-api/docs/maps-grounding) [URL Context Tool](/gemini-api/docs/url-context) [File Search Tool](/gemini-api/docs/file-search) [Computer Use Tool](/gemini-api/docs/computer-use) [MCP Servers Tool](/gemini-api/docs/function-calling#mcp) **Realtime APIs** [Live API (WebSockets)](/gemini-api/docs/live-api) [Live Music API](/gemini-api/docs/realtime-music-generation) [Ephemeral Tokens (Live API)](/gemini-api/docs/live-api/ephemeral-tokens) **Platform APIs** [Models API](/gemini-api/docs/models) [Files Service Route](/gemini-api/docs/files) [File Search Stores Route](/gemini-api/docs/file-search) [Agents API](/gemini-api/docs/agents) [Webhooks API](/gemini-api/docs/webhooks) [Context Caching](/gemini-api/docs/caching) - Supported Configure API version in an SDK The Gemini API SDKs default to `v1beta`, but you can explicitly specify versions by setting the API version as shown in the following code sample: Python`from google import genai client = genai.Client(http_options={'api_version': 'v1'}) interaction = client.interactions.create( model='gemini-3.8-flash', input="Explain how AI works", ) print(interaction.output_text)` JavaScript`import { GoogleGenAI } from "@google/genai"; const ai = new GoogleGenAI({ httpOptions: { apiVersion: "v1" }, }); async function main() { const interaction = await ai.interactions.create({ model: "gemini-3.8-flash", input: "Explain how AI works", }); console.log(interaction.output_text); } await main();` Java`import com.google.genai.Client; import com.google.genai.gaos.models.interactions.CreateModelInteraction; import com.google.genai.gaos.models.interactions.InteractionsInput; import com.google.genai.gaos.models.interactions.Model; import com.google.genai.gaos.models.operations.CreateInteractionRequestBody; import com.google.genai.types.HttpOptions; Client client = Client.builder() .httpOptions(HttpOptions.builder().apiVersion("v1").build()) .build(); CreateModelInteraction req = CreateModelInteraction.builder() .model(Model.of("gemini-3.6-flash")) .input(InteractionsInput.of("Explain how AI works")) .build(); var interaction = client.interactions.create(CreateInteractionRequestBody.of(req)).interaction().get(); System.out.println(interaction.outputText().orElse(""));` REST`curl -X POST "https://generativelanguage.googleapis.com/v1/interactions" \ -H "x-goog-api-key: $GEMINI_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "model": "gemini-3.8-flash", "input": "Explain how AI works", }'` Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2026-09-08 UTC.