7522 lines
No EOL
234 KiB
HTML
7522 lines
No EOL
234 KiB
HTML
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!doctype html>
|
||
<html
|
||
lang="en"
|
||
dir="ltr">
|
||
<head>
|
||
<meta name="google-signin-client-id" content="157101835696-ooapojlodmuabs2do2vuhhnf90bccmoi.apps.googleusercontent.com"><meta name="google-signin-scope"
|
||
content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award https://www.googleapis.com/auth/devprofiles.full_control.firstparty"><meta property="og:site_name" content="Google AI for Developers">
|
||
<meta property="og:type" content="website"><meta name="theme-color" content="#1967d2"><meta charset="utf-8">
|
||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
||
|
||
<link rel="manifest" href="/_pwa/googledevai/manifest.json"
|
||
crossorigin="use-credentials">
|
||
<link rel="preconnect" href="//www.gstatic.com" crossorigin>
|
||
<link rel="preconnect" href="//fonts.googleapis.com" crossorigin>
|
||
<link rel="preconnect" href="//www.google-analytics.com" crossorigin><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700|Inter:400,500|Inter+Tight:300,500,600&display=swap">
|
||
<link rel="stylesheet"
|
||
href="//fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined&display=block"><link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/googledevai/css/app.css">
|
||
|
||
<link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/googledevai/css/dark-theme.css" disabled>
|
||
<link rel="shortcut icon" href="https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/googledevai/images/favicon-new.png">
|
||
<link rel="apple-touch-icon" href="https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/googledevai/images/touchicon-180-new.png"><link rel="canonical" href="https://ai.google.dev/gemini-api/docs/pricing"><link rel="search" type="application/opensearchdescription+xml"
|
||
title="Google AI for Developers" href="https://ai.google.dev/s/opensearch.xml">
|
||
<link rel="alternate" hreflang="en"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing" /><link rel="alternate" hreflang="x-default" href="https://ai.google.dev/gemini-api/docs/pricing" /><link rel="alternate" hreflang="ar"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=ar" /><link rel="alternate" hreflang="bn"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=bn" /><link rel="alternate" hreflang="zh-Hans"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=zh-cn" /><link rel="alternate" hreflang="zh-Hant"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=zh-tw" /><link rel="alternate" hreflang="fa"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=fa" /><link rel="alternate" hreflang="fr"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=fr" /><link rel="alternate" hreflang="de"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=de" /><link rel="alternate" hreflang="he"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=he" /><link rel="alternate" hreflang="hi"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=hi" /><link rel="alternate" hreflang="id"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=id" /><link rel="alternate" hreflang="it"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=it" /><link rel="alternate" hreflang="ja"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=ja" /><link rel="alternate" hreflang="ko"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=ko" /><link rel="alternate" hreflang="pl"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=pl" /><link rel="alternate" hreflang="pt-BR"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=pt-br" /><link rel="alternate" hreflang="ru"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=ru" /><link rel="alternate" hreflang="es-419"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=es-419" /><link rel="alternate" hreflang="th"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=th" /><link rel="alternate" hreflang="tr"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=tr" /><link rel="alternate" hreflang="vi"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=vi" /><link rel="alternate" hreflang="sq"
|
||
href="https://ai.google.dev/gemini-api/docs/pricing?hl=sq" /><title>Gemini Developer API pricing | Gemini API | Google AI for Developers</title>
|
||
|
||
<meta property="og:title" content="Gemini Developer API pricing | Gemini API | Google AI for Developers"><meta name="description" content="Gemini Developer API Pricing">
|
||
<meta property="og:description" content="Gemini Developer API Pricing"><meta property="og:url" content="https://ai.google.dev/gemini-api/docs/pricing"><meta property="og:image" content="https://ai.google.dev/static/site-assets/images/share-gemini-api-2026-07.png">
|
||
<meta property="og:image:width" content="1200">
|
||
<meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image"><script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "Article",
|
||
|
||
"headline": "Gemini Developer API pricing"
|
||
}
|
||
</script><script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "BreadcrumbList",
|
||
"itemListElement": [{
|
||
"@type": "ListItem",
|
||
"position": 1,
|
||
"name": "Gemini API",
|
||
"item": "https://ai.google.dev/gemini-api"
|
||
},{
|
||
"@type": "ListItem",
|
||
"position": 2,
|
||
"name": "Gemini Developer API pricing",
|
||
"item": "https://ai.google.dev/gemini-api/docs/pricing"
|
||
}]
|
||
}
|
||
</script>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</head>
|
||
<body class="gemini-api color-scheme--light"
|
||
template="page"
|
||
theme="googledevai-theme"
|
||
type="article"
|
||
|
||
appearance
|
||
|
||
layout="docs"
|
||
|
||
|
||
|
||
|
||
|
||
display-toc
|
||
pending>
|
||
|
||
<devsite-progress type="indeterminate" id="app-progress"></devsite-progress>
|
||
|
||
|
||
<a href="#main-content" class="skip-link button">
|
||
|
||
Skip to main content
|
||
</a>
|
||
<section class="devsite-wrapper">
|
||
<devsite-cookie-notification-bar></devsite-cookie-notification-bar>
|
||
<devsite-header role="banner" keep-tabs-visible>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="devsite-header--inner" data-nosnippet>
|
||
<div class="devsite-top-logo-row-wrapper-wrapper">
|
||
<div class="devsite-top-logo-row-wrapper">
|
||
<div class="devsite-top-logo-row">
|
||
<button type="button" id="devsite-hamburger-menu"
|
||
class="devsite-header-icon-button button-flat material-icons gc-analytics-event"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Navigation menu button"
|
||
visually-hidden
|
||
aria-label="Open menu">
|
||
</button>
|
||
|
||
<div class="devsite-product-name-wrapper">
|
||
|
||
<a href="/" class="devsite-site-logo-link gc-analytics-event"
|
||
data-category="Site-Wide Custom Events" data-label="Site logo" track-type="globalNav"
|
||
track-name="geminiAPI" track-metadata-position="nav"
|
||
track-metadata-eventDetail="nav">
|
||
|
||
<picture>
|
||
|
||
<source srcset="https://ai.google.dev/_static/googledevai/images/gemini-api-logo-dark-theme.svg"
|
||
media="(prefers-color-scheme: dark)"
|
||
class="devsite-dark-theme">
|
||
|
||
<img src="https://ai.google.dev/_static/googledevai/images/gemini-api-logo.svg" class="devsite-site-logo" alt="Gemini API">
|
||
</picture>
|
||
|
||
</a>
|
||
|
||
|
||
|
||
|
||
|
||
<span class="devsite-product-name">
|
||
<ul class="devsite-breadcrumb-list"
|
||
>
|
||
|
||
<li class="devsite-breadcrumb-item
|
||
">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
</div>
|
||
<div class="devsite-top-logo-row-middle">
|
||
<div class="devsite-header-upper-tabs">
|
||
|
||
</div>
|
||
|
||
<devsite-search
|
||
enable-signin
|
||
enable-search
|
||
enable-suggestions
|
||
enable-query-completion
|
||
|
||
enable-search-summaries
|
||
project-name="Gemini API"
|
||
tenant-name="Google AI for Developers"
|
||
project-scope="/gemini-api"
|
||
url-scoped="https://ai.google.dev/s/results/gemini-api"
|
||
|
||
|
||
|
||
>
|
||
<form class="devsite-search-form" action="https://ai.google.dev/s/results" method="GET">
|
||
<div class="devsite-search-container">
|
||
<button type="button"
|
||
search-open
|
||
class="devsite-search-button devsite-header-icon-button button-flat material-icons"
|
||
|
||
aria-label="Open search"></button>
|
||
<div class="devsite-searchbox">
|
||
<input
|
||
aria-activedescendant=""
|
||
aria-autocomplete="list"
|
||
|
||
aria-label="Search"
|
||
aria-expanded="false"
|
||
aria-haspopup="listbox"
|
||
autocomplete="off"
|
||
class="devsite-search-field devsite-search-query"
|
||
name="q"
|
||
|
||
placeholder="Search"
|
||
role="combobox"
|
||
type="text"
|
||
value=""
|
||
>
|
||
<div class="devsite-search-image material-icons" aria-hidden="true">
|
||
|
||
<svg class="devsite-search-ai-image" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<g clip-path="url(#clip0_6641_386)">
|
||
<path d="M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14167 15.375 4.875 14.125C3.625 12.8583 3 11.3167 3 9.5C3 7.68333 3.625 6.15 4.875 4.9C6.14167 3.63333 7.68333 3 9.5 3C10.0167 3 10.5167 3.05833 11 3.175C11.4833 3.275 11.9417 3.43333 12.375 3.65L10.825 5.2C10.6083 5.13333 10.3917 5.08333 10.175 5.05C9.95833 5.01667 9.73333 5 9.5 5C8.25 5 7.18333 5.44167 6.3 6.325C5.43333 7.19167 5 8.25 5 9.5C5 10.75 5.43333 11.8167 6.3 12.7C7.18333 13.5667 8.25 14 9.5 14C10.6667 14 11.6667 13.625 12.5 12.875C13.35 12.1083 13.8417 11.15 13.975 10H15.975C15.925 10.6333 15.7833 11.2333 15.55 11.8C15.3333 12.3667 15.05 12.8667 14.7 13.3L21 19.6L19.6 21ZM17.5 12C17.5 10.4667 16.9667 9.16667 15.9 8.1C14.8333 7.03333 13.5333 6.5 12 6.5C13.5333 6.5 14.8333 5.96667 15.9 4.9C16.9667 3.83333 17.5 2.53333 17.5 0.999999C17.5 2.53333 18.0333 3.83333 19.1 4.9C20.1667 5.96667 21.4667 6.5 23 6.5C21.4667 6.5 20.1667 7.03333 19.1 8.1C18.0333 9.16667 17.5 10.4667 17.5 12Z" fill="#5F6368"/>
|
||
</g>
|
||
<defs>
|
||
<clipPath id="clip0_6641_386">
|
||
<rect width="24" height="24" fill="white"/>
|
||
</clipPath>
|
||
</defs>
|
||
</svg>
|
||
|
||
</div>
|
||
<div class="devsite-search-shortcut-icon-container" aria-hidden="true">
|
||
<kbd class="devsite-search-shortcut-icon">/</kbd>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
<button type="button"
|
||
search-close
|
||
class="devsite-search-button devsite-header-icon-button button-flat material-icons"
|
||
|
||
aria-label="Close search"></button>
|
||
</devsite-search>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<devsite-appearance-selector></devsite-appearance-selector>
|
||
|
||
|
||
<devsite-language-selector>
|
||
<ul role="presentation">
|
||
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="en"
|
||
>English</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="de"
|
||
>Deutsch</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="es_419"
|
||
>Español – América Latina</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="fr"
|
||
>Français</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="id"
|
||
>Indonesia</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="it"
|
||
>Italiano</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="pl"
|
||
>Polski</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="pt_br"
|
||
>Português – Brasil</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="sq"
|
||
>Shqip</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="vi"
|
||
>Tiếng Việt</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="tr"
|
||
>Türkçe</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ru"
|
||
>Русский</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="he"
|
||
>עברית</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ar"
|
||
>العربيّة</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="fa"
|
||
>فارسی</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="hi"
|
||
>हिंदी</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="bn"
|
||
>বাংলা</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="th"
|
||
>ภาษาไทย</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="zh_cn"
|
||
>中文 – 简体</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="zh_tw"
|
||
>中文 – 繁體</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ja"
|
||
>日本語</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ko"
|
||
>한국어</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</devsite-language-selector>
|
||
|
||
|
||
|
||
<a class="devsite-header-link devsite-top-button button gc-analytics-event "
|
||
href="https://aistudio.google.com/apikey"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Site header link: Get API key"
|
||
|
||
|
||
target="_blank"
|
||
|
||
>
|
||
Get API key
|
||
</a>
|
||
|
||
<a class="devsite-header-link devsite-top-button button gc-analytics-event "
|
||
href="https://github.com/google-gemini/cookbook"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Site header link: Cookbook"
|
||
|
||
|
||
target="_blank"
|
||
|
||
>
|
||
Cookbook
|
||
</a>
|
||
|
||
<a class="devsite-header-link devsite-top-button button gc-analytics-event "
|
||
href="https://discuss.ai.google.dev/c/gemini-api/"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Site header link: Community"
|
||
|
||
|
||
target="_blank"
|
||
|
||
>
|
||
Community
|
||
</a>
|
||
|
||
|
||
|
||
|
||
|
||
<devsite-user
|
||
|
||
|
||
enable-profiles
|
||
|
||
|
||
id="devsite-user">
|
||
|
||
|
||
<span class="button devsite-top-button" aria-hidden="true" visually-hidden>Sign in</span>
|
||
|
||
</devsite-user>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="devsite-collapsible-section
|
||
">
|
||
<div class="devsite-header-background">
|
||
|
||
|
||
|
||
|
||
<div class="devsite-doc-set-nav-row">
|
||
|
||
|
||
|
||
|
||
<devsite-tabs class="lower-tabs">
|
||
|
||
<nav class="devsite-tabs-wrapper" aria-label="Lower tabs">
|
||
|
||
|
||
<tab class="devsite-active">
|
||
|
||
<a href="https://ai.google.dev/gemini-api/docs"
|
||
class="devsite-tabs-content gc-analytics-event "
|
||
track-metadata-eventdetail="https://ai.google.dev/gemini-api/docs"
|
||
|
||
track-type="nav"
|
||
track-metadata-position="nav - docs"
|
||
track-metadata-module="primary nav"
|
||
aria-label="Docs, selected"
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Tab: Docs"
|
||
|
||
track-name="docs"
|
||
|
||
>
|
||
Docs
|
||
|
||
</a>
|
||
|
||
|
||
</tab>
|
||
|
||
|
||
|
||
<tab >
|
||
|
||
<a href="https://ai.google.dev/api"
|
||
class="devsite-tabs-content gc-analytics-event "
|
||
track-metadata-eventdetail="https://ai.google.dev/api"
|
||
|
||
track-type="nav"
|
||
track-metadata-position="nav - api reference"
|
||
track-metadata-module="primary nav"
|
||
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Tab: API reference"
|
||
|
||
track-name="api reference"
|
||
|
||
>
|
||
API reference
|
||
|
||
</a>
|
||
|
||
|
||
</tab>
|
||
|
||
|
||
</nav>
|
||
|
||
</devsite-tabs>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</devsite-header>
|
||
<devsite-book-nav scrollbars >
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="devsite-book-nav-filter"
|
||
hidden>
|
||
<span class="filter-list-icon material-icons" aria-hidden="true"></span>
|
||
<input type="text"
|
||
placeholder="Filter"
|
||
|
||
aria-label="Type to filter"
|
||
role="searchbox">
|
||
|
||
<span class="filter-clear-button hidden"
|
||
data-title="Clear filter"
|
||
aria-label="Clear filter"
|
||
role="button"
|
||
tabindex="0"></span>
|
||
</div>
|
||
|
||
<nav class="devsite-book-nav devsite-nav nocontent" data-nosnippet
|
||
aria-label="Side menu">
|
||
<div class="devsite-mobile-header">
|
||
<button type="button"
|
||
id="devsite-close-nav"
|
||
class="devsite-header-icon-button button-flat material-icons gc-analytics-event"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Close navigation"
|
||
aria-label="Close navigation">
|
||
</button>
|
||
<div class="devsite-product-name-wrapper">
|
||
|
||
<a href="/" class="devsite-site-logo-link gc-analytics-event"
|
||
data-category="Site-Wide Custom Events" data-label="Site logo" track-type="globalNav"
|
||
track-name="geminiAPI" track-metadata-position="nav"
|
||
track-metadata-eventDetail="nav">
|
||
|
||
<picture>
|
||
|
||
<source srcset="https://ai.google.dev/_static/googledevai/images/gemini-api-logo-dark-theme.svg"
|
||
media="(prefers-color-scheme: dark)"
|
||
class="devsite-dark-theme">
|
||
|
||
<img src="https://ai.google.dev/_static/googledevai/images/gemini-api-logo.svg" class="devsite-site-logo" alt="Gemini API">
|
||
</picture>
|
||
|
||
</a>
|
||
|
||
|
||
|
||
<span class="devsite-product-name">
|
||
|
||
|
||
<ul class="devsite-breadcrumb-list"
|
||
>
|
||
|
||
<li class="devsite-breadcrumb-item
|
||
">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
</span>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="devsite-book-nav-wrapper">
|
||
<div class="devsite-mobile-nav-top">
|
||
|
||
<ul class="devsite-nav-list">
|
||
|
||
<li class="devsite-nav-item">
|
||
|
||
|
||
<a href="/gemini-api/docs"
|
||
|
||
class="devsite-nav-title gc-analytics-event
|
||
|
||
devsite-nav-active"
|
||
|
||
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Tab: Gemini API"
|
||
|
||
track-name="gemini api"
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Responsive Tab: Gemini API"
|
||
track-type="globalNav"
|
||
track-metadata-eventDetail="globalMenu"
|
||
track-metadata-position="nav">
|
||
|
||
<span class="devsite-nav-text" tooltip >
|
||
Gemini API
|
||
</span>
|
||
|
||
|
||
</a>
|
||
|
||
|
||
|
||
|
||
<ul class="devsite-nav-responsive-tabs">
|
||
|
||
|
||
|
||
|
||
<li class="devsite-nav-item">
|
||
|
||
|
||
<a href="/gemini-api/docs"
|
||
|
||
class="devsite-nav-title gc-analytics-event
|
||
|
||
devsite-nav-active"
|
||
|
||
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Tab: Docs"
|
||
|
||
track-name="docs"
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Responsive Tab: Docs"
|
||
track-type="globalNav"
|
||
track-metadata-eventDetail="globalMenu"
|
||
track-metadata-position="nav">
|
||
|
||
<span class="devsite-nav-text" tooltip menu="_book">
|
||
Docs
|
||
</span>
|
||
|
||
|
||
</a>
|
||
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
<li class="devsite-nav-item">
|
||
|
||
|
||
<a href="/api"
|
||
|
||
class="devsite-nav-title gc-analytics-event
|
||
|
||
"
|
||
|
||
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Tab: API reference"
|
||
|
||
track-name="api reference"
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Responsive Tab: API reference"
|
||
track-type="globalNav"
|
||
track-metadata-eventDetail="globalMenu"
|
||
track-metadata-position="nav">
|
||
|
||
<span class="devsite-nav-text" tooltip >
|
||
API reference
|
||
</span>
|
||
|
||
|
||
</a>
|
||
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
<li class="devsite-nav-item">
|
||
|
||
|
||
<a href="https://aistudio.google.com/apikey"
|
||
|
||
class="devsite-nav-title gc-analytics-event "
|
||
|
||
|
||
|
||
|
||
target="_blank"
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Responsive Tab: Get API key"
|
||
track-type="navMenu"
|
||
track-metadata-eventDetail="globalMenu"
|
||
track-metadata-position="nav">
|
||
|
||
<span class="devsite-nav-text" tooltip >
|
||
Get API key
|
||
</span>
|
||
|
||
|
||
</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
<li class="devsite-nav-item">
|
||
|
||
|
||
<a href="https://github.com/google-gemini/cookbook"
|
||
|
||
class="devsite-nav-title gc-analytics-event "
|
||
|
||
|
||
|
||
|
||
target="_blank"
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Responsive Tab: Cookbook"
|
||
track-type="navMenu"
|
||
track-metadata-eventDetail="globalMenu"
|
||
track-metadata-position="nav">
|
||
|
||
<span class="devsite-nav-text" tooltip >
|
||
Cookbook
|
||
</span>
|
||
|
||
|
||
</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
|
||
<li class="devsite-nav-item">
|
||
|
||
|
||
<a href="https://discuss.ai.google.dev/c/gemini-api/"
|
||
|
||
class="devsite-nav-title gc-analytics-event "
|
||
|
||
|
||
|
||
|
||
target="_blank"
|
||
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Responsive Tab: Community"
|
||
track-type="navMenu"
|
||
track-metadata-eventDetail="globalMenu"
|
||
track-metadata-position="nav">
|
||
|
||
<span class="devsite-nav-text" tooltip >
|
||
Community
|
||
</span>
|
||
|
||
|
||
</a>
|
||
|
||
|
||
</li>
|
||
|
||
|
||
|
||
</ul>
|
||
|
||
</div>
|
||
|
||
<div class="devsite-mobile-nav-bottom">
|
||
|
||
|
||
<ul class="devsite-nav-list" menu="_book">
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Get started</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Overview</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/get-started"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Get Started</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/api-key"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>API keys</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/pricing"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Pricing</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/coding-agents"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Coding agent setup</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Models</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/models"
|
||
class="devsite-nav-title"
|
||
|
||
alt-paths=" /gemini-api/docs/models/gemini-3.1-flash-image /gemini-api/docs/models/gemini-3.1-flash-lite-image /gemini-api/docs/models/gemini-3.1-pro-preview /gemini-api/docs/models/gemini-3-pro-preview /gemini-api/docs/models/gemini-3-pro-image /gemini-api/docs/models/gemini-3.6-flash /gemini-api/docs/models/gemini-3.5-flash /gemini-api/docs/models/gemini-3.5-live-translate-preview /gemini-api/docs/models/gemini-3-flash-preview /gemini-api/docs/models/gemini-3.1-flash-tts-preview /gemini-api/docs/models/veo-3.1-lite-generate-preview /gemini-api/docs/models/gemini-3.1-flash-live-preview /gemini-api/docs/models/gemini-3.5-flash-lite /gemini-api/docs/models/gemini-3.1-flash-lite /gemini-api/docs/models/gemini-3.1-flash-lite-preview /gemini-api/docs/models/gemini-2.5-flash /gemini-api/docs/models/gemini-2.5-flash-preview-09-2025 /gemini-api/docs/models/gemini-2.5-flash-image /gemini-api/docs/models/gemini-2.5-flash-native-audio-preview-12-2025 /gemini-api/docs/models/gemini-2.5-flash-preview-tts /gemini-api/docs/models/gemini-2.5-flash-lite /gemini-api/docs/models/gemini-2.5-flash-lite-preview-09-2025 /gemini-api/docs/models/gemini-2.5-pro /gemini-api/docs/models/gemini-2.5-pro-preview-tts /gemini-api/docs/models/gemini-2.5-computer-use-preview-10-2025 /gemini-api/docs/models/gemini-2.0-flash /gemini-api/docs/models/gemini-2.0-flash-lite /gemini-api/docs/models/imagen /gemini-api/docs/models/veo-3.1-generate-preview /gemini-api/docs/models/veo-2.0-generate-001 /gemini-api/docs/models/gemini-embedding-001 /gemini-api/docs/models/gemini-embedding-2 /gemini-api/docs/models/gemini-robotics-er-1.5-preview /gemini-api/docs/models/gemini-robotics-er-2-preview /gemini-api/docs/models/gemini-robotics-er-2-streaming-preview /gemini-api/docs/models/gemini-robotics-er-1.6-preview /gemini-api/docs/models/deep-research-pro-preview-12-2025 /gemini-api/docs/models/deep-research-preview-04-2026 /gemini-api/docs/models/deep-research-max-preview-04-2026 /gemini-api/docs/models/antigravity-preview-05-2026 /gemini-api/docs/models/lyria-realtime-exp /gemini-api/docs/models/lyria-3-clip-preview /gemini-api/docs/models/lyria-3-pro-preview /gemini-api/docs/models/gemini-omni-flash "><span class="devsite-nav-text" tooltip>All models</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/latest-model"
|
||
class="devsite-nav-title"
|
||
|
||
alt-paths=" /gemini-api/docs/whats-new-gemini-3.5 "><span class="devsite-nav-text" tooltip>Latest Gemini models</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/image-generation"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Nano Banana</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/veo"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Veo</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/omni"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Gemini Omni Flash</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/music-generation"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Lyria 3</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/realtime-music-generation"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Lyria RealTime</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/imagen"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Imagen</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/speech-generation"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Text-to-speech</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/live-api"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Live</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/live-translate"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Live Translate</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/embeddings"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Embeddings</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Robotics</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/robotics-overview"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/robotics-spatial"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Spatial reasoning</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li><li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/robotics-agentic"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Agentic vision</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li><li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/robotics-orchestration"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Task orchestration</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li><li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/robotics-streaming"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Robotics with streaming</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li><li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/robotics-video-progress"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Video understanding</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Core capabilities</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/text-generation"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Text</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Image</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/image-generation"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Image generation 🍌</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/image-understanding"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Image understanding</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Video</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/video"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Video overview</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/video-understanding"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Video understanding</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/document-processing"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Documents</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Speech and audio</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/speech-generation"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Speech generation</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/audio"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Audio understanding</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Thinking</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/thinking"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Thinking</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/thought-signatures"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Thought signatures</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/structured-output"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Structured outputs</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/function-calling"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Function calling</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/long-context"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Long context</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Agents</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/agents"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Overview</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/managed-agents-quickstart"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Quickstart</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/antigravity-agent"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Antigravity Agent</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/custom-agents"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Building managed agents</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/agent-environment"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Environments</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/agent-hooks"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Hooks</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/deep-research"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Deep Research Agent</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Tools</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/tools"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Overview</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/google-search"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Google Search</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/maps-grounding"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Google Maps</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/code-execution"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Code execution</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/url-context"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>URL context</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/computer-use"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Computer Use</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/file-search"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>File Search</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/tool-combination"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Combine Tools and Function calling</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Live API</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/live-api"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Overview</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Get started</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/get-started-sdk"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Get started using the GenAI SDK</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/get-started-websocket"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Get started using raw WebSockets</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/capabilities"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Capabilities</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/live-translate"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Live Translation</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/tools"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Tool use</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/session-management"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Session management</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/live-api/ephemeral-tokens"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Ephemeral tokens</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/live-api/best-practices"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Best practices</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Optimization</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/optimization"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Overview</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/batch-api"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Batch API</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/webhooks"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Webhooks</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/flex-inference"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Flex inference</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-preview"><a href="/gemini-api/docs/priority-inference"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Priority inference</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="preview"
|
||
data-title="Preview"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/caching"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Context caching</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Guides</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/interactions-overview"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Interactions API</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/streaming"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Streaming</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/background-execution"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Background execution</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>File input</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/file-input-methods"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Input methods</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/files"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Files API</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/openai"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>OpenAI compatibility</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/media-resolution"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Media resolution</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/tokens"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Token counting</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/prompting-strategies"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Prompt engineering</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Logs and datasets</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/logs-datasets"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Get started with logs</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/logs-policy"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Data logging and sharing</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Safety</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/safety-settings"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Safety settings</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/safety-guidance"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Safety guidance</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Frameworks</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/langgraph-example"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>LangChain & LangGraph</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/crewai-example"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>CrewAI</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/llama-index"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>LlamaIndex</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/vercel-ai-sdk-example"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Vercel AI SDK</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/temporal-example"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Temporal</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Resources</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/changelog"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Release notes</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/deprecations"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Deprecations</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/libraries"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Libraries</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Migration</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/migrate"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Migrate to Gen AI SDK</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/migrate-to-interactions"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Migrate to Interactions API</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/interactions-breaking-changes-may-2026"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Interactions breaking changes (May 2026)</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/rate-limits"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Rate limits</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/billing"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Billing info</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/troubleshooting"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>API troubleshooting</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/api-errors"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>API errors</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-external"><a href="https://aistudio.google.com/status"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Status</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="external"
|
||
data-title="External"
|
||
aria-hidden="true"></span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/partner-integration"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Partner and library integrations</span></a></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Google AI Studio</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/ai-studio-quickstart"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Quickstart</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/google-ai-plans"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Google AI Plans</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/aistudio-build-mode"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Vibe code in Build mode</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/aistudio-fullstack"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Developing Full-Stack Apps</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/aistudio-android"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Build Android Apps</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/aistudio-deploying"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Deploying your app</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/aistudio-agents"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Agents in AI Studio Playground</span></a></li><li class="devsite-nav-item
|
||
devsite-nav-experimental"><a href="/gemini-api/docs/learnlm"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Try out LearnLM</span><span class="devsite-nav-icon material-icons"
|
||
data-icon="experimental"
|
||
data-title="Experimental!"
|
||
aria-hidden="true"></span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/troubleshoot-ai-studio"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Troubleshooting</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/workspace"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Access for Workspace users</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-expandable"><div class="devsite-expandable-nav">
|
||
<a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button">
|
||
<span class="devsite-nav-text" tooltip>Google Cloud Platform</span>
|
||
</div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/gemini-api/docs/migrate-to-cloud"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Gemini Enterprise Agent Platform Gemini API</span></a></li><li class="devsite-nav-item"><a href="/gemini-api/docs/oauth"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>OAuth authentication</span></a></li></ul></div></li>
|
||
|
||
<li class="devsite-nav-item
|
||
devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path">
|
||
<span class="devsite-nav-text" tooltip>Policies</span>
|
||
</div></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/terms"
|
||
class="devsite-nav-title"
|
||
|
||
alt-paths=" /gemini-api/docs/zdr "><span class="devsite-nav-text" tooltip>Terms of service</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/available-regions"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Available regions</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/usage-policies"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Abuse monitoring</span></a></li>
|
||
|
||
<li class="devsite-nav-item"><a href="/gemini-api/docs/feedback-policies"
|
||
class="devsite-nav-title"
|
||
><span class="devsite-nav-text" tooltip>Feedback information</span></a></li>
|
||
</ul>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</nav>
|
||
|
||
</devsite-book-nav>
|
||
|
||
<section id="gc-wrapper">
|
||
<main role="main" id="main-content" class="devsite-main-content"
|
||
|
||
has-book-nav
|
||
has-sidebar
|
||
>
|
||
<div class="devsite-sidebar">
|
||
<div class="devsite-sidebar-content">
|
||
|
||
<devsite-toc class="devsite-nav"
|
||
role="navigation"
|
||
aria-label="On this page"
|
||
depth="2"
|
||
scrollbars
|
||
data-nosnippet
|
||
></devsite-toc>
|
||
<devsite-recommendations-sidebar class="nocontent devsite-nav" data-nosnippet>
|
||
</devsite-recommendations-sidebar>
|
||
</div>
|
||
</div>
|
||
<devsite-content>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<article class="devsite-article"><style>
|
||
/* Styles inlined from /site-assets/css/style.css */
|
||
body[theme="googledevai-theme"] {
|
||
--devsite-background-0: var(--devsite-background-1);
|
||
--devsite-button-border: 1px solid #747775;
|
||
--devsite-button-border-radius: 20rem;
|
||
--devsite-button-font: 500 14px/36px 'Google Sans Text', Roboto, sans-serif;
|
||
--devsite-code-font-family: 'Google Sans Mono', Roboto Mono, monospace;
|
||
--devsite-primary-font-family: 'Google Sans Text', Roboto, sans-serif;
|
||
--devsite-table-heading-font: 500 14px/20px 'Google Sans Text', Roboto, sans-serif;
|
||
--googledevai-border-color: #c4c7c5;
|
||
--googledevai-blue-light: #d7e6ff;
|
||
--googledevai-blue-dark: #2e64de;
|
||
--googledevai-cyan-light: #c7e4ff;
|
||
--googledevai-cyan-dark: #3c8fe3;
|
||
--googledevai-purple-light: #dce2ff;
|
||
--googledevai-purple-dark: #987be9;
|
||
--googledevai-purple: #ac87eb;
|
||
--googledevai-red: #ee4d5d;
|
||
--googledevai-secondary-text: #001d35;
|
||
--googledevai-button-gradient-light: linear-gradient(90deg, var(--googledevai-blue-light), var(--googledevai-cyan-light), var(--googledevai-purple-light));
|
||
--googledevai-button-gradient-dark: linear-gradient(90deg, var(--googledevai-blue), var(--googledevai-cyan), var(--googledevai-purple));
|
||
}
|
||
|
||
body[theme="googledevai-theme"]:not([type="reference"]){
|
||
--googledevai-page-width: 1100px;
|
||
}
|
||
|
||
body[layout=docs][theme="googledevai-theme"]:not([type="reference"]) .devsite-main-content,
|
||
body[layout=docs][theme="googledevai-theme"]:not([type="reference"]) .devsite-main-content[has-book-nav][has-sidebar] {
|
||
grid-template-columns: minmax(269px, 1fr) minmax(752px, var(--googledevai-page-width)) minmax(160px, 1fr);
|
||
grid-gap: 3rem;
|
||
}
|
||
|
||
body[layout=docs][theme="googledevai-theme"] devsite-content {
|
||
max-width: var(--googledevai-page-width);
|
||
}
|
||
|
||
body[layout=docs][theme="googledevai-theme"] .devsite-article {
|
||
box-shadow: unset;
|
||
}
|
||
|
||
body[theme="googledevai-theme"] {
|
||
--googledevai-header-gradient: linear-gradient(90deg, var(--googledevai-blue) 50%, var(--googledevai-cyan), var(--googledevai-purple), var(--googledevai-red));
|
||
}
|
||
|
||
body[theme="googledevai-theme"].color-scheme--dark {
|
||
--googledevai-header-gradient: linear-gradient(90deg, var(--googledevai-blue) 75%, var(--googledevai-cyan), var(--googledevai-purple));
|
||
--googledevai-border-color: #444746;
|
||
}
|
||
|
||
/* Ensure that full-bleed pages get the full width. */
|
||
body[theme="googledevai-theme"][layout="full"] .devsite-main-content {
|
||
max-width: none;
|
||
padding: 0;
|
||
}
|
||
|
||
/* And ensure that any site banners/ACL warnings/etc don't get hidden on
|
||
* full-bleed pages. */
|
||
body[theme="googledevai-theme"][layout="full"] .devsite-banner {
|
||
margin: 0;
|
||
}
|
||
|
||
tab:has(> a.hidden-tab) {
|
||
display: none;
|
||
}
|
||
|
||
body[theme="googledevai-theme"] devsite-toc > .devsite-nav-list {
|
||
border-inline-start: unset;
|
||
}
|
||
|
||
/* Banner notice */
|
||
[layout=docs] .devsite-banner:first-of-type {
|
||
background: var(--googledevai-cyan-light);
|
||
border-radius: 10px;
|
||
color: var(--googledevai-secondary-text);
|
||
margin: -2.5rem -0.25rem 2.5rem;
|
||
display: flex;
|
||
}
|
||
|
||
/* Banner notice smaller screens */
|
||
@media (max-width: 840px) {
|
||
[layout=docs] .devsite-banner:first-of-type {
|
||
margin: -0.25rem -0.25rem 2.5rem;
|
||
}
|
||
}
|
||
|
||
/* Asides */
|
||
.devsite-article-body>aside:not([class*=attempt]) {
|
||
border-radius: 2px;
|
||
}
|
||
|
||
/* Tables */
|
||
table:not(.tfo-notebook-buttons) {
|
||
border: 1px solid var(--googledevai-border-color);
|
||
border-collapse: unset;
|
||
border-radius: 9px;
|
||
margin: auto;
|
||
width: 100%;
|
||
}
|
||
|
||
.gemini-api-model-table tr:not(:last-child) td:not(:first-child),
|
||
.gemini-api-model-table tr:not(:last-child) th,
|
||
th,
|
||
table:not(.gemini-api-model-table):not(.tfo-notebook-buttons) tr:not(:last-child) td {
|
||
border-bottom: 1px solid var(--googledevai-border-color);
|
||
}
|
||
|
||
th,
|
||
td {
|
||
background: transparent;
|
||
padding: 1rem;
|
||
}
|
||
|
||
/* Notebooks */
|
||
devsite-code .tfo-notebook-code-cell-output {
|
||
max-height: 300px;
|
||
overflow: auto;
|
||
background: rgba(237, 247, 255, 1); /* blue bg to distinguish from input code cells */
|
||
}
|
||
|
||
devsite-code .tfo-notebook-code-cell-output + .devsite-code-buttons-container button {
|
||
background: rgba(237, 247, 255, .7); /* blue bg to distinguish from input code cells */
|
||
}
|
||
|
||
.color-scheme--dark devsite-code .tfo-notebook-code-cell-output {
|
||
background: rgba(var(--devsite-background-2), 1);
|
||
}
|
||
|
||
.color-scheme--dark devsite-code .tfo-notebook-code-cell-output + .devsite-code-buttons-container button {
|
||
background: rgba(var(--devsite-background-2), .7);
|
||
}
|
||
|
||
devsite-code[dark-code] .tfo-notebook-code-cell-output {
|
||
background: rgba(64, 78, 103, 1); /* medium slate */
|
||
}
|
||
|
||
devsite-code[dark-code] .tfo-notebook-code-cell-output + .devsite-code-buttons-container button {
|
||
background: rgba(64, 78, 103, .7); /* medium slate */
|
||
}
|
||
|
||
.devsite-article-body>devsite-code {
|
||
--devsite-code-buttons-container-right: 0;
|
||
--devsite-code-margin: 0 0;
|
||
--devsite-code-padding-block: 14px;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.devsite-article-body>.beta:not([class*=attempt]),
|
||
.devsite-article-body>.caution:not([class*=attempt]),
|
||
.devsite-article-body>.deprecated:not([class*=attempt]),
|
||
.devsite-article-body>.dogfood:not([class*=attempt]),
|
||
.devsite-article-body>.experimental:not([class*=attempt]),
|
||
.devsite-article-body>.key-point:not([class*=attempt]),
|
||
.devsite-article-body>.key-term:not([class*=attempt]),
|
||
.devsite-article-body>.note:not([class*=attempt]),
|
||
.devsite-article-body>.objective:not([class*=attempt]),
|
||
.devsite-article-body>.preview:not([class*=attempt]),
|
||
.devsite-article-body>.special:not([class*=attempt]),
|
||
.devsite-article-body>.success:not([class*=attempt]),
|
||
.devsite-article-body>.tip:not([class*=attempt]),
|
||
.devsite-article-body>.warning:not([class*=attempt]),
|
||
.devsite-article-body>aside:not([class*=attempt]) {
|
||
--devsite-notice-margin: 0 0;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
/* override default table styles for notebook buttons */
|
||
.devsite-table-wrapper .tfo-notebook-buttons {
|
||
display: block;
|
||
width: auto;
|
||
}
|
||
|
||
.tfo-notebook-buttons td {
|
||
display: inline-block;
|
||
padding: 0 16px 16px 0;
|
||
}
|
||
|
||
/* from DevSite's buttons.scss */
|
||
.tfo-notebook-buttons a,
|
||
.tfo-notebook-buttons :link,
|
||
.tfo-notebook-buttons :visited {
|
||
-moz-appearance: none;
|
||
-webkit-appearance: none;
|
||
-webkit-box-align: center;
|
||
-ms-flex-align: center;
|
||
align-items: center;
|
||
align-self: var(--devsite-button-align-self);
|
||
background: var(--devsite-button-background, var(--devsite-background-1));
|
||
border: var(--devsite-button-border, 0);
|
||
border-radius: var(--devsite-button-border-radius, 2px);
|
||
box-sizing: border-box;
|
||
color: var(--devsite-button-color);
|
||
cursor: pointer;
|
||
display: -webkit-box;
|
||
display: -ms-flexbox;
|
||
display: flex;
|
||
font: var(--devsite-button-font, 500 14px/36px var(--devsite-primary-font-family));
|
||
height: var(--devsite-button-height, 36px);
|
||
letter-spacing: var(--devsite-button-letter-spacing, 0);
|
||
line-height: var(--devsite-button-line-height, 36px);
|
||
margin: var(--devsite-button-margin, 0);
|
||
margin-inline-end: var(--devsite-button-margin-x-end);
|
||
max-width: var(--devsite-button-max-width, none);
|
||
min-width: 36px;
|
||
outline: 0;
|
||
overflow: hidden;
|
||
padding: var(--devsite-button-with-icon-padding, 0 16px);
|
||
text-align: center;
|
||
text-decoration: none;
|
||
text-overflow: ellipsis;
|
||
text-transform: var(--devsite-button-text-transform, uppercase);
|
||
transition:
|
||
background-color .2s,
|
||
border .2s;
|
||
vertical-align: middle;
|
||
white-space: nowrap;
|
||
width: var(--devsite-button-width, auto);
|
||
}
|
||
|
||
.tfo-notebook-buttons a:hover,
|
||
.tfo-notebook-buttons a:focus {
|
||
background: var(--devsite-button-background-hover);
|
||
border: var(--devsite-button-border-hover, 0);
|
||
color: var(--devsite-button-color-hover, var(--devsite-button-color));
|
||
text-decoration: var(--devsite-button-text-decoration-hover, none);
|
||
}
|
||
|
||
.tfo-notebook-buttons a:active {
|
||
background: var(--devsite-button-background-active);
|
||
border: var(--devsite-button-border-active, 0);
|
||
transform: var(--devsite-button-transform-active, none);
|
||
}
|
||
|
||
.tfo-notebook-buttons tr {
|
||
background: 0;
|
||
border: 0;
|
||
}
|
||
|
||
/* on rendered notebook page,
|
||
remove link to webpage since we're already here */
|
||
.tfo-notebook-buttons:not(.tfo-api) td:first-child {
|
||
display: none;
|
||
}
|
||
|
||
.tfo-notebook-buttons td > a > img {
|
||
margin: 0 8px 0 -4px;
|
||
height: 20px;
|
||
}
|
||
|
||
[appearance='dark'] .tfo-notebook-buttons td > a > img {
|
||
filter: invert(1);
|
||
}
|
||
|
||
@media (prefers-color-scheme: dark) {
|
||
[appearance='device'] .tfo-notebook-buttons td > a > img {
|
||
filter: invert(1);
|
||
}
|
||
.sub-heading {
|
||
background-color: #333;
|
||
color: #bdbdbd;
|
||
}
|
||
}
|
||
|
||
[appearance='dark'] .sub-heading {
|
||
background-color: #333;
|
||
color: #bdbdbd;
|
||
}
|
||
|
||
.sub-heading {
|
||
background-color: #f2f2f2;
|
||
color: #5f6368;
|
||
}
|
||
|
||
@media screen and (max-width: 600px) {
|
||
.tfo-notebook-buttons td {
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
devsite-nav-buttons button {
|
||
margin-left: 0;
|
||
margin-top: 5px;
|
||
}
|
||
|
||
code {
|
||
border-radius: 6px
|
||
}
|
||
|
||
devsite-book-nav .devsite-nav-list>.devsite-nav-heading:not(.devsite-nav-divider) {
|
||
border-top: 0;
|
||
padding-bottom: 0.9rem;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
/*
|
||
* TODO(b/439059414): Remove this workaround in favor of a project-level
|
||
* body_class when possible.
|
||
*/
|
||
.ais-theme-marker {
|
||
display: none;
|
||
}
|
||
|
||
/*
|
||
* Gemini API body class.
|
||
* https://source.corp.google.com/piper///depot/google3/third_party/devsite/googledevai/en/gemini-api/_project.yaml;l=7
|
||
*/
|
||
.gemini-api devsite-thumb-rating[position="header"],
|
||
.gemini-api devsite-feedback[position="header"] {
|
||
/* Hide the thumb rating and feedback widgets at the top of the page. */
|
||
display: none;
|
||
}
|
||
|
||
/*
|
||
* Shaded table styles look like a .pricing-table but are more flexible around
|
||
* content sizes in each column.
|
||
*/
|
||
.shaded-table {
|
||
border-collapse: separate;
|
||
border-spacing: 0;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.shaded-table th {
|
||
background-color: #f2f2f2;
|
||
text-align: left;
|
||
padding: 8px;
|
||
}
|
||
|
||
/* These should use theme colours for light too, so we don't
|
||
* need an override. */
|
||
.color-scheme--dark .shaded-table th {
|
||
background-color: var(--devsite-ref-palette--grey800);
|
||
}
|
||
|
||
.shaded-table td {
|
||
padding: 8px;
|
||
}
|
||
|
||
.shaded-table th:first-child {
|
||
border-top-left-radius: 8px;
|
||
}
|
||
|
||
.shaded-table th:last-child {
|
||
border-top-right-radius: 8px;
|
||
}
|
||
|
||
.shaded-table tr:last-child td:first-child {
|
||
border-bottom-left-radius: 8px;
|
||
}
|
||
|
||
.shaded-table tr:last-child td:last-child {
|
||
border-bottom-right-radius: 8px;
|
||
}
|
||
|
||
.devsite-nav {
|
||
font-size: var(--devsite-nav-font-size, 14px);
|
||
}
|
||
|
||
.devsite-nav-item {
|
||
line-height: var(--devsite-nav-item-line-height, 20px);
|
||
}
|
||
|
||
.devsite-book-nav-bg, devsite-book-nav {
|
||
width: 210px;
|
||
scrollbar-width: thin;
|
||
}
|
||
|
||
/* Hide the old toggle button immediately */
|
||
.devsite-expandable-nav > .devsite-nav-toggle {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Ion setup: Default State (Chevron Right) */
|
||
.devsite-expandable-nav > .devsite-nav-title::after {
|
||
font-family: 'Material Icons';
|
||
font-weight: normal;
|
||
font-style: normal;
|
||
font-size: 18px;
|
||
line-height: 1;
|
||
color: #888;
|
||
/* Default: Chevron Right */
|
||
content: "\e5cc";
|
||
flex-shrink: 0;
|
||
margin-left: 8px;
|
||
}
|
||
|
||
/* Down state logic */
|
||
.devsite-expandable-nav.expanded > .devsite-nav-title::after,
|
||
.devsite-expandable-nav:has(.devsite-nav-active) > .devsite-nav-title::after,
|
||
.devsite-expandable-nav > .devsite-nav-title[aria-expanded="true"]::after {
|
||
content: "\e313";
|
||
}
|
||
|
||
/* Close state logic */
|
||
.devsite-expandable-nav > .devsite-nav-title[aria-expanded="false"]::after {
|
||
content: "\e5cc" !important;
|
||
}
|
||
|
||
/* Hovercard styling */
|
||
.gemini-api .heading:has(devsite-gemini-api-hovercard-button) {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.gemini-api .heading:has(devsite-gemini-api-hovercard-button) h1 {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
devsite-gemini-api-hovercard,
|
||
devsite-gemini-api-hovercard-button {
|
||
/* Render above any code blocks on the page */
|
||
z-index: 1;
|
||
}
|
||
|
||
.devsite-nav-icon[data-icon="beta"], .devsite-nav-icon[data-icon="preview"],
|
||
.devsite-nav-icon[data-icon="experimental"] {
|
||
margin: -5px 0 -1px 4px;
|
||
}
|
||
</style><style>
|
||
/* Styles inlined from /site-assets/css/overview.css */
|
||
.button-primary {
|
||
border-radius: 0.375rem;
|
||
}
|
||
|
||
.code-snippet {
|
||
background-color: #f5f5f5;
|
||
padding: 1rem;
|
||
border-radius: 4px;
|
||
overflow: auto;
|
||
}
|
||
|
||
.code-snippet code {
|
||
font-family: monospace;
|
||
}
|
||
|
||
.quickstart {
|
||
align-items: center;
|
||
display: flex;
|
||
flex-direction: row;
|
||
padding-bottom: 1rem;
|
||
}
|
||
|
||
.quickstart p {
|
||
margin: 0;
|
||
}
|
||
|
||
.quickstart-blurb {
|
||
margin-left: 1rem;
|
||
padding-left: 1rem;
|
||
border-left: 2px solid var(--googledevai-border-color);
|
||
}
|
||
|
||
.gemini-api-card-overview {
|
||
background: var(--devsite-background-1);
|
||
border: 1px solid var(--googledevai-border-color);
|
||
border-radius: 8px;
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||
color: var(--devsite-primary-text-color);
|
||
padding: 1rem;
|
||
text-decoration: none;
|
||
transition: box-shadow 0.3s ease-in-out;
|
||
}
|
||
|
||
.gemini-api-card-overview:active,
|
||
.gemini-api-card-overview:focus {
|
||
text-decoration: none;
|
||
border-color: var(--devsite-primary-color);
|
||
}
|
||
|
||
.gemini-api-card-overview:hover {
|
||
box-shadow: var(--gemini-api-elevation-3dp);
|
||
}
|
||
|
||
.gemini-api-card-title {
|
||
align-items: center;
|
||
display: flex;
|
||
font-size: 1rem;
|
||
height: auto; /* Override the setting for now in models.css */
|
||
margin: 0 0 0.75rem 0;
|
||
}
|
||
|
||
.gemini-api-card-overview .google-symbols {
|
||
font-size: 18px;
|
||
}
|
||
|
||
.gemini-api-card-overview .google-symbols.spark {
|
||
font-size: 16px;
|
||
}
|
||
|
||
.gemini-api-card-overview .ais-logo {
|
||
height: 16px;
|
||
user-select: none;
|
||
}
|
||
|
||
.gemini-api-card-overview .ais-logo,
|
||
.gemini-api-card-overview .google-symbols,
|
||
.gemini-api-card-overview .nano-banana {
|
||
margin-right: 0.5rem;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.gemini-api-card-overview.with-links {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.gemini-api-card-description {
|
||
margin: 0;
|
||
height: auto; /* Override the setting for now in models.css */
|
||
}
|
||
|
||
.gemini-api-card-description-cta {
|
||
color: var(--devsite-link-color);
|
||
margin: 1rem 0 0 0;
|
||
}
|
||
|
||
.blue-bold-card {
|
||
display: flex;
|
||
flex-direction: row;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.icon-background {
|
||
display: flex;
|
||
border-radius: 8px;
|
||
padding: 0.5rem;
|
||
background-color: rgb(from var(--devsite-link-background) r g b / 40%);
|
||
}
|
||
|
||
.icon-background .google-symbols {
|
||
margin: 0;
|
||
}
|
||
|
||
/* Add this to prevent the button from getting squashed on any screen size */
|
||
.quickstart .button-primary {
|
||
flex-shrink: 0; /* Critical: Never let this element shrink */
|
||
white-space: nowrap; /* Critical: Keep text on one line */
|
||
min-width: max-content; /* Ensure it takes up as much space as the text needs */
|
||
}
|
||
|
||
|
||
@media only screen and (min-width: 625px) {
|
||
.gemini-api-recommended {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 1.5rem;
|
||
}
|
||
}
|
||
|
||
@media only screen and (max-width: 625px) {
|
||
/* 1. Standard Card Resets for Mobile */
|
||
.gemini-api-card-overview {
|
||
display: block;
|
||
margin: 1rem 0;
|
||
}
|
||
|
||
.gemini-api-card-title {
|
||
margin: 0 0 0.25rem 0;
|
||
}
|
||
|
||
.blue-bold-card {
|
||
display: flex;
|
||
}
|
||
|
||
/* 2. Quickstart Split Layout (Text -> Button -> Text) */
|
||
.quickstart {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 1rem;
|
||
}
|
||
|
||
/* "Unwrap" the text container so we can reorder paragraphs individually */
|
||
.quickstart-blurb {
|
||
display: contents;
|
||
}
|
||
|
||
/* Order 1: The first paragraph ("Follow our Quickstart...") */
|
||
.quickstart-blurb p:first-child {
|
||
order: 1;
|
||
}
|
||
|
||
/* Order 2: The Button */
|
||
.quickstart .button-primary {
|
||
order: 2;
|
||
}
|
||
|
||
/* Order 3: The second paragraph ("For most models...") */
|
||
.quickstart-blurb p:last-child {
|
||
order: 3;
|
||
}
|
||
}
|
||
|
||
/* Resources Footer Section */
|
||
.gemini-api-header-with-cta {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 1rem;
|
||
}
|
||
|
||
.gemini-api-header-with-cta h2 {
|
||
margin: 0;
|
||
}
|
||
|
||
.gemini-api-cta-link {
|
||
font-size: 0.9rem;
|
||
font-weight: 500;
|
||
text-decoration: none;
|
||
color: #5f6368;
|
||
}
|
||
|
||
.gemini-api-cta-link:hover {
|
||
text-decoration: underline;
|
||
color: var(--devsite-link-color);
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-cta-link {
|
||
color: #9aa0a6;
|
||
}
|
||
|
||
.gemini-api-resources-footer {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 1.5rem;
|
||
margin: 4rem 0 2rem;
|
||
padding-top: 0;
|
||
}
|
||
|
||
.gemini-api-resource-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
text-align: center;
|
||
text-decoration: none;
|
||
color: inherit;
|
||
padding: 0 1rem;
|
||
transition: opacity 0.2s ease-in-out;
|
||
}
|
||
|
||
.gemini-api-resource-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
text-align: center;
|
||
text-decoration: none;
|
||
color: inherit;
|
||
padding: 1rem;
|
||
border-radius: 8px;
|
||
transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
||
}
|
||
|
||
.gemini-api-resource-item:hover {
|
||
text-decoration: none;
|
||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
||
background-color: var(--devsite-background-1);
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-resource-item:hover {
|
||
background-color: #1f1f1f;
|
||
box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
.gemini-api-resource-item .icon-container {
|
||
margin-bottom: 1rem;
|
||
color: var(--devsite-primary-text-color);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 24px;
|
||
}
|
||
|
||
.gemini-api-resource-item .google-symbols {
|
||
font-size: 24px;
|
||
}
|
||
|
||
.gemini-api-resource-item .ais-logo {
|
||
height: 24px;
|
||
width: auto;
|
||
}
|
||
|
||
.gemini-api-resource-item .resource-title {
|
||
font-family: "Google Sans", Roboto, sans-serif;
|
||
font-weight: 600;
|
||
font-size: 1rem;
|
||
margin-bottom: 0.5rem;
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
.gemini-api-resource-item .resource-description {
|
||
font-size: 0.875rem;
|
||
color: #5f6368;
|
||
line-height: 1.5;
|
||
margin: 0;
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-resource-item .resource-description {
|
||
color: #9aa0a6;
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
.gemini-api-resources-footer {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 2rem;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.gemini-api-resources-footer {
|
||
grid-template-columns: 1fr;
|
||
gap: 2rem;
|
||
}
|
||
}
|
||
</style><style>
|
||
/* Styles inlined from /site-assets/css/models.css */
|
||
:root {
|
||
--gemini-api-table-font-color: #3c4043;
|
||
--gemini-api-model-font: 'Google Sans Text', Roboto, sans-serif;
|
||
--gemini-api-card-width: 17rem;
|
||
--gemini-api-elevation-1dp: 0 1px 1px 0 rgba(0, 0, 0, 0.14),
|
||
0 2px 1px -1px rgba(0, 0, 0, 0.12),
|
||
0 1px 3px 0 rgba(0, 0, 0, 0.2);
|
||
--gemini-api-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
|
||
0 3px 3px -2px rgba(0, 0, 0, 0.12),
|
||
0 1px 8px 0 rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
body[theme="googledevai-theme"] {
|
||
--googledevai-button-gradient: var(--googledevai-button-gradient-light);
|
||
}
|
||
|
||
body[theme="googledevai-theme"].color-scheme--dark {
|
||
--googledevai-button-gradient: var(--googledevai-button-gradient-dark);
|
||
}
|
||
|
||
.google-symbols {
|
||
background: -webkit-linear-gradient(45deg, var(--googledevai-blue), var(--googledevai-purple));
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
user-select: none;
|
||
vertical-align: bottom;
|
||
}
|
||
|
||
|
||
/* Cards */
|
||
@media only screen and (min-width: 625px) {
|
||
.gemini-api-recommended {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr); /* Three equal-width columns */
|
||
grid-column-gap: 3rem; /* Keep the gap between columns */
|
||
}
|
||
}
|
||
|
||
.gemini-api-recommended {
|
||
width: 100%; /* Take full width of parent */
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.gemini-api-card {
|
||
background: var(--devsite-background-1);
|
||
border: 1px solid var(--googledevai-border-color);
|
||
border-radius: 9px;
|
||
box-shadow: var(--gemini-api-elevation-1dp);
|
||
height: 23rem;
|
||
margin: 1rem .5rem;
|
||
padding: 1rem;
|
||
transition: box-shadow 0.3s ease-in-out;
|
||
width: var(--gemini-api-card-width);
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-card {
|
||
background: #131314;
|
||
border-color: #444746;
|
||
}
|
||
|
||
.gemini-api-card:hover {
|
||
box-shadow: var(--gemini-api-elevation-3dp);
|
||
}
|
||
|
||
.gemini-api-card a:empty {
|
||
display: block;
|
||
position: relative;
|
||
height: 23rem;
|
||
width: var(--gemini-api-card-width);
|
||
top: -22.8rem;
|
||
left: -1rem;
|
||
}
|
||
|
||
.gemini-api-card a:empty:focus {
|
||
border: 2px solid var(--devsite-primary-color);
|
||
border-radius: 9px;
|
||
}
|
||
|
||
.gemini-api-card-title {
|
||
font-family: "Google Sans", Roboto, sans-serif;
|
||
font-size: 1.3rem;
|
||
font-weight: 500;
|
||
height: 1.5rem;
|
||
margin-bottom: 2.5rem;
|
||
line-height: 1.3rem;
|
||
}
|
||
|
||
.gemini-api-card-description {
|
||
font-size: .9rem;
|
||
height: 7.5rem;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: normal;
|
||
}
|
||
|
||
.gemini-api-card-bulletpoints {
|
||
color: #757575;
|
||
font-size: .8rem;
|
||
height: 8.2rem;
|
||
margin-left: 1rem;
|
||
padding: 0;
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-card-bulletpoints {
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
.gemini-api-card-description,
|
||
.gemini-api-card-bulletpoints {
|
||
font-family: var(--gemini-api-model-font);
|
||
}
|
||
|
||
.gemini-api-card-bulletpoints li {
|
||
line-height: 1rem;
|
||
margin: .3rem 0;
|
||
}
|
||
|
||
/* Tables */
|
||
.gemini-api-model-table,
|
||
.gemini-api-model-table th {
|
||
color: var(--gemini-api-table-font-color);
|
||
font: .95rem var(--gemini-api-model-font);
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-model-table,
|
||
.color-scheme--dark .gemini-api-model-table th {
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
.gemini-api-model-table th {
|
||
font-weight: 500;
|
||
}
|
||
|
||
.gemini-api-model-table td:first-child {
|
||
max-width: 0;
|
||
}
|
||
|
||
.gemini-api-model-table-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
|
||
grid-gap: 1rem .5rem;
|
||
}
|
||
|
||
.gemini-api-model-table section {
|
||
display: inline-grid;
|
||
}
|
||
|
||
.gemini-api-model-table p {
|
||
margin: 0 0 .5rem;
|
||
}
|
||
|
||
.gemini-api-model-table li {
|
||
margin: 0;
|
||
}
|
||
|
||
.gemini-api-model-table ul {
|
||
margin-top: .5rem;
|
||
}
|
||
|
||
.gemini-api-model-table .google-symbols {
|
||
margin-right: .7rem;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.gemini-api-supported,
|
||
.gemini-api-not-supported,
|
||
.gemini-api-experimental,
|
||
.gemini-api-new {
|
||
border-radius: 8px;
|
||
display: inline-block;
|
||
font-size: .9rem;
|
||
font-weight: 500;
|
||
line-height: 1rem;
|
||
padding: .3rem 0.5em;
|
||
}
|
||
|
||
.gemini-api-supported {
|
||
background: #e6f4ea; /* GM3 Green 50 */
|
||
color: #177d37; /* GM3 Green 700 */
|
||
}
|
||
|
||
.gemini-api-not-supported {
|
||
background: #fce8e6; /* GM3 Red 50 */
|
||
color: #c5221f; /* GM3 Red 700 */
|
||
}
|
||
|
||
.gemini-api-experimental {
|
||
background: #e8def8;
|
||
color: #4a4458;
|
||
}
|
||
|
||
.gemini-api-new {
|
||
background: #c2e7ff; /* GM3 Blue 100 */
|
||
color: #001d35; /* GM3 Blue 900 */
|
||
margin-left: 0.5rem;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-supported {
|
||
background: #177d37; /* GM3 Green 700 */
|
||
color: #e6f4ea; /* GM3 Green 50 */
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-not-supported {
|
||
background: #c5221f; /* GM3 Red 700 */
|
||
color: #fce8e6; /* GM3 Red 50 */
|
||
}
|
||
|
||
.color-scheme--dark .gemini-api-new {
|
||
background: #004a77; /* GM3 Blue 800 */
|
||
color: #c2e7ff; /* GM3 Blue 100 */
|
||
}
|
||
|
||
/* Buttons */
|
||
.gemini-api-model-button {
|
||
background: var(--googledevai-button-gradient);
|
||
background-size: 300% 300%;
|
||
border-radius: 20rem;
|
||
color: #001d35;
|
||
font-family: var(--gemini-api-model-font);
|
||
font-size: .9rem;
|
||
font-weight: 500;
|
||
padding: .6rem 1rem;
|
||
text-align: center;
|
||
text-decoration: none;
|
||
transition: filter .2s ease-in-out,
|
||
box-shadow .2s ease-in-out;
|
||
}
|
||
|
||
.gemini-api-model-button:hover{
|
||
animation: gradient 5s ease infinite;
|
||
filter: brightness(.98);
|
||
box-shadow: var(--gemini-api-elevation-1dp);
|
||
}
|
||
|
||
.gemini-api-model-button:focus {
|
||
filter: brightness(.95);
|
||
outline: #00639b solid 3px;
|
||
outline-offset: 2px;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.gemini-api-model-button::before {
|
||
content: 'spark';
|
||
font-family: 'Google Symbols';
|
||
padding-right: 0.5rem;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
@keyframes gradient {
|
||
0% {
|
||
background-position: 0% 50%;
|
||
}
|
||
50% {
|
||
background-position: 100% 50%;
|
||
}
|
||
100% {
|
||
background-position: 0% 50%;
|
||
}
|
||
}
|
||
|
||
.model-card {
|
||
display: flex;
|
||
background-color: #ffffff;
|
||
border: 1px solid #e0e0e0;
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
margin-bottom: 1.5rem;
|
||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
||
transition: box-shadow 0.3s ease;
|
||
}
|
||
|
||
.color-scheme--dark .model-card {
|
||
background-color: #3c4043;
|
||
}
|
||
|
||
.model-card:hover {
|
||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.card-content {
|
||
padding: 2.5rem;
|
||
flex: 1;
|
||
}
|
||
|
||
.sub-heading-model {
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
margin: 0 0 0.5rem 0;
|
||
}
|
||
|
||
.color-scheme--dark .sub-heading-model {
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
.card-content h2 {
|
||
font-size: 2rem;
|
||
font-weight: 500;
|
||
margin: 0 0 1rem 0;
|
||
}
|
||
|
||
.description {
|
||
font-size: 1rem;
|
||
line-height: 1.6;
|
||
color: #3c4043;
|
||
margin: 0 0 1.5rem 0;
|
||
}
|
||
|
||
.color-scheme--dark .description {
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
.card-content a:not(.gemini-api-model-button) {
|
||
color: #1a73e8;
|
||
text-decoration: none;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.card-content a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.model-card {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.card-content {
|
||
padding: 1.5rem;
|
||
}
|
||
|
||
h1 {
|
||
font-size: 2rem;
|
||
}
|
||
|
||
.card-content h2 {
|
||
font-size: 1.5rem;
|
||
}
|
||
}
|
||
|
||
|
||
/* --- COMPACT MODEL GRID (2 Columns) --- */
|
||
|
||
/* Grid container to create the two-column layout */
|
||
.gemini-model-grid-compact {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr); /* Two equal columns */
|
||
grid-column-gap: 2rem;
|
||
grid-row-gap: 1.5rem;
|
||
margin: 2rem 0;
|
||
}
|
||
|
||
/* Individual row styling with stretched-link support */
|
||
.gemini-model-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 1rem;
|
||
position: relative; /* Essential for containing the stretched link */
|
||
padding: 0.75rem;
|
||
border-radius: 12px;
|
||
transition: background-color 0.2s ease;
|
||
}
|
||
|
||
/* Row hover effect to indicate clickability */
|
||
.gemini-model-row:hover {
|
||
background-color: rgba(0, 0, 0, 0.04);
|
||
}
|
||
|
||
.color-scheme--dark .gemini-model-row:hover {
|
||
background-color: rgba(255, 255, 255, 0.05);
|
||
}
|
||
|
||
/* The small square icon card with gradient background */
|
||
.gemini-icon-card-small {
|
||
flex-shrink: 0;
|
||
width: 56px;
|
||
height: 56px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: var(--googledevai-button-gradient-light); /* [cite: 77] */
|
||
border-radius: 12px;
|
||
box-shadow: var(--gemini-api-elevation-1dp); /* [cite: 120] */
|
||
z-index: 2; /* Keeps icon above the clickable link layer */
|
||
}
|
||
|
||
.color-scheme--dark .gemini-icon-card-small {
|
||
background: var(--googledevai-button-gradient-dark); /* [cite: 77] */
|
||
}
|
||
|
||
/* Icon styling */
|
||
.gemini-icon-card-small .google-symbols {
|
||
font-size: 20px;
|
||
color: #001d35; /* Dark text for contrast against gradient */
|
||
-webkit-text-fill-color: initial; /* Override transparent fill [cite: 123] */
|
||
}
|
||
|
||
/* Text details container */
|
||
.gemini-model-details {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.gemini-model-name {
|
||
font-family: var(--gemini-api-model-font); /* [cite: 119] */
|
||
font-weight: 600;
|
||
font-size: 1.1rem;
|
||
margin: 0 0 2px 0;
|
||
}
|
||
|
||
/* Stretched Link Logic */
|
||
.gemini-model-name a {
|
||
text-decoration: none;
|
||
color: inherit;
|
||
}
|
||
|
||
.gemini-model-name a::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
z-index: 1; /* Expands click area to the entire .gemini-model-row */
|
||
}
|
||
|
||
/* Style for optional status text (e.g., experimental, preview) */
|
||
.gemini-model-name .model-status,
|
||
.title-large h3 .model-status {
|
||
color: #757576; /* Gray meeting minimum 4.5:1 contrast ratio */
|
||
font-style: italic;
|
||
margin-left: 0.4rem;
|
||
}
|
||
|
||
/* Dark mode adjustment to ensure it stays "light" relative to the background */
|
||
.color-scheme--dark .gemini-model-name .model-status {
|
||
color: #70757a;
|
||
}
|
||
|
||
.gemini-model-desc {
|
||
font-family: var(--gemini-api-model-font); /* [cite: 133] */
|
||
font-size: 0.85rem;
|
||
line-height: 1.3;
|
||
color: #5f6368;
|
||
margin: 0;
|
||
}
|
||
|
||
.color-scheme--dark .gemini-model-desc {
|
||
color: var(--devsite-primary-text-color); /* [cite: 54] */
|
||
}
|
||
|
||
/* --- CENTERED MODEL GRID (3 Cards) --- */
|
||
|
||
.gemini-centered-model-grid {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
gap: 1.5rem;
|
||
margin: 2rem 0;
|
||
}
|
||
|
||
.gemini-card-centered {
|
||
background: var(--devsite-background-1); /* [cite: 53] */
|
||
border: 1px solid var(--googledevai-border-color); /* [cite: 76] */
|
||
border-radius: 8px;
|
||
padding: 1.5rem;
|
||
text-align: center;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
text-decoration: none;
|
||
transition: box-shadow 0.3s ease-in-out; /* [cite: 54] */
|
||
flex: 0 1 calc(33.333% - 1rem);
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.gemini-card-centered:hover {
|
||
box-shadow: var(--gemini-api-elevation-3dp); /* [cite: 121] */
|
||
}
|
||
|
||
.gemini-card-centered:active,
|
||
.gemini-card-centered:focus {
|
||
text-decoration: none;
|
||
}
|
||
|
||
.gemini-card-centered .title-large {
|
||
font-family: var(--devsite-primary-font-family); /* [cite: 75] */
|
||
font-size: 1.5rem;
|
||
font-weight: 500;
|
||
color: var(--devsite-primary-text-color);
|
||
margin: 0.5rem 0 1rem 0;
|
||
display: flex;
|
||
justify-content: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
/* Prevents the double-bananas from stacking */
|
||
.gemini-card-centered .title-large span.nano-banana {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.gemini-card-centered .description-centered {
|
||
font-family: var(--gemini-api-model-font); /* [cite: 133] */
|
||
font-size: 0.95rem;
|
||
line-height: 1.5;
|
||
color: #3c4043;
|
||
margin: 0;
|
||
}
|
||
|
||
.color-scheme--dark .gemini-card-centered .description-centered {
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
/* --- RESPONSIVE BREAKPOINTS --- */
|
||
|
||
@media (max-width: 840px) {
|
||
.gemini-card-centered {
|
||
flex-basis: 100%;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.gemini-model-grid-compact {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* Ensure H3 tags within the model row don't use default large heading styles */
|
||
.gemini-model-details h3.gemini-model-name {
|
||
font-family: var(--gemini-api-model-font);
|
||
font-weight: 600;
|
||
font-size: 1.1rem;
|
||
margin: 0 0 0 0;
|
||
border: none; /* Removes default devsite heading borders if any */
|
||
padding: 0;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
/* Maintain clickability for the heading */
|
||
.gemini-model-details h3.gemini-model-name a {
|
||
text-decoration: none;
|
||
color: inherit;
|
||
}
|
||
|
||
/* Normalizes the H3 within centered cards to match your existing design */
|
||
.gemini-card-centered .title-large h3 {
|
||
font-family: inherit;
|
||
font-size: inherit;
|
||
font-weight: inherit;
|
||
color: inherit;
|
||
margin: 0;
|
||
display: inline; /* Keeps it on the same line as the icon */
|
||
border: none;
|
||
padding: 0;
|
||
}
|
||
|
||
.status-subtext {
|
||
font-family: var(--gemini-api-model-font);
|
||
font-style: italic;
|
||
color: #757576; /* Gray meeting minimum 4.5:1 contrast ratio */
|
||
text-align: center;
|
||
margin: 0.25rem 0 0 0; /* Minimal top margin to stay close to description */
|
||
}
|
||
|
||
/* Dark mode adjustment */
|
||
.color-scheme--dark .status-subtext {
|
||
color: #70757a;
|
||
}
|
||
</style><style>
|
||
/* Styles inlined from /site-assets/css/pricing.css */
|
||
/* Pricing table styles */
|
||
|
||
.pricing-table {
|
||
border-collapse: separate;
|
||
border-spacing: 0;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.pricing-table th {
|
||
background-color: #f2f2f2;
|
||
text-align: left;
|
||
padding: 8px;
|
||
}
|
||
|
||
/* Set the second and after (of three total) columns to 35% width. */
|
||
.pricing-table th:nth-child(n+2) {
|
||
width: 35%;
|
||
}
|
||
|
||
/* These should use theme colours for light too, so we don't
|
||
* need an override. */
|
||
.color-scheme--dark .pricing-table th {
|
||
background-color: var(--devsite-ref-palette--grey800);
|
||
}
|
||
|
||
.pricing-table td {
|
||
padding: 8px;
|
||
}
|
||
|
||
.free-tier {
|
||
background-color: none;
|
||
}
|
||
|
||
.paid-tier {
|
||
background-color: #eff5ff;
|
||
}
|
||
|
||
.color-scheme--dark .paid-tier {
|
||
background-color: var(--devsite-background-5);
|
||
}
|
||
|
||
.pricing-table th:first-child {
|
||
border-top-left-radius: 8px;
|
||
}
|
||
|
||
.pricing-table th:last-child {
|
||
border-top-right-radius: 8px;
|
||
}
|
||
|
||
.pricing-table tr:last-child td:first-child {
|
||
border-bottom-left-radius: 8px;
|
||
}
|
||
|
||
.pricing-table tr:last-child td:last-child {
|
||
border-bottom-right-radius: 8px;
|
||
}
|
||
|
||
.pricing-container {
|
||
max-width: 1100px;
|
||
width: 100%;
|
||
}
|
||
|
||
.pricing-cards {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||
gap: 2rem;
|
||
justify-content: center;
|
||
}
|
||
|
||
.pricing-card {
|
||
background-color: #ffffff;
|
||
border-radius: 16px;
|
||
border: 1px solid #dadce0;
|
||
padding: 2.5rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
transition: all 0.3s ease;
|
||
position: relative;
|
||
}
|
||
|
||
.color-scheme--dark .pricing-card {
|
||
background-color: var(--devsite-ref-palette--grey800);
|
||
}
|
||
|
||
.plan-name {
|
||
font-size: 1.75rem;
|
||
font-weight: 700;
|
||
margin: 0 0 0.5rem 0;
|
||
}
|
||
|
||
.plan-description {
|
||
font-size: 1rem;
|
||
color: #5f6368;
|
||
margin: 0 0 2.5rem 0;
|
||
line-height: 1.5;
|
||
min-height: 80px;
|
||
}
|
||
|
||
.color-scheme--dark .plan-description {
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
.plan-description a {
|
||
color: #1a73e8;
|
||
text-decoration: none;
|
||
}
|
||
.plan-description a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.features {
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0 0 2rem 0;
|
||
}
|
||
|
||
.features li {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
margin-bottom: 1.25rem;
|
||
font-size: 1rem;
|
||
line-height: 1.5;
|
||
color: #3c4043;
|
||
}
|
||
|
||
.features li.feature-description {
|
||
display: block;
|
||
color: #5f6368;
|
||
}
|
||
|
||
.features li a {
|
||
color: #1a73e8;
|
||
text-decoration: none;
|
||
margin-left: 4px;
|
||
}
|
||
|
||
.features li .material-symbols-outlined {
|
||
font-size: 24px;
|
||
margin-right: 0.75rem;
|
||
color: #3c4043;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.color-scheme--dark .features li,
|
||
.features li .material-symbols-outlined {
|
||
color: var(--devsite-primary-text-color);
|
||
}
|
||
|
||
.cta-button {
|
||
display: inline-block;
|
||
text-align: center;
|
||
text-decoration: none;
|
||
width: 100%;
|
||
padding: 0.75rem 1rem;
|
||
border-radius: 8px;
|
||
font-size: 1rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: background-color 0.2s ease;
|
||
box-sizing: border-box;
|
||
border: 1px solid #dadce0;
|
||
background-color: #fff;
|
||
color: #1a73e8;
|
||
margin-top: auto;
|
||
}
|
||
|
||
.cta-button:hover {
|
||
background-color: rgba(66, 133, 244, 0.05);
|
||
}
|
||
|
||
.pricing-card.recommended {
|
||
border: 2px solid #1a73e8;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.pricing-card.recommended::before {
|
||
position: absolute;
|
||
top: 22px;
|
||
right: -32px;
|
||
width: 120px;
|
||
height: 30px;
|
||
background-color: #1a73e8;
|
||
color: white;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
transform: rotate(45deg);
|
||
z-index: 1;
|
||
}
|
||
|
||
.heading-group {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.heading-group h2 {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.heading-group em {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.row-gray {
|
||
background-color: #f2f2f2; /* Light gray */
|
||
color: #666666;
|
||
font-style: italic;
|
||
}
|
||
|
||
.row-gray code {
|
||
font-style: italic;
|
||
}
|
||
|
||
</style>
|
||
|
||
|
||
|
||
<div class="devsite-banner devsite-banner-announcement nocontent" data-nosnippet
|
||
|
||
|
||
background="google-blue"
|
||
|
||
>
|
||
<div class="devsite-banner-message">
|
||
<div class="devsite-banner-message-text">
|
||
The <a href="/gemini-api/docs/interactions-overview" style="color: black;">Interactions API</a> is now generally available. We recommend using this API for access to all the latest features and models.
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<div class="devsite-article-meta nocontent" role="navigation" data-nosnippet>
|
||
|
||
|
||
<ul class="devsite-breadcrumb-list"
|
||
|
||
aria-label="Breadcrumb">
|
||
|
||
<li class="devsite-breadcrumb-item
|
||
">
|
||
|
||
|
||
|
||
|
||
|
||
<a href="https://ai.google.dev/"
|
||
|
||
class="devsite-breadcrumb-link gc-analytics-event"
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Breadcrumbs"
|
||
|
||
data-value="1"
|
||
|
||
track-type="globalNav"
|
||
|
||
track-name="breadcrumb"
|
||
|
||
track-metadata-position="1"
|
||
|
||
track-metadata-eventdetail=""
|
||
|
||
>
|
||
|
||
Home
|
||
|
||
</a>
|
||
|
||
|
||
|
||
</li>
|
||
|
||
<li class="devsite-breadcrumb-item
|
||
">
|
||
|
||
|
||
<div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div>
|
||
|
||
|
||
|
||
|
||
|
||
<a href="https://ai.google.dev/gemini-api"
|
||
|
||
class="devsite-breadcrumb-link gc-analytics-event"
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Breadcrumbs"
|
||
|
||
data-value="2"
|
||
|
||
track-type="globalNav"
|
||
|
||
track-name="breadcrumb"
|
||
|
||
track-metadata-position="2"
|
||
|
||
track-metadata-eventdetail="Gemini API"
|
||
|
||
>
|
||
|
||
Gemini API
|
||
|
||
</a>
|
||
|
||
|
||
|
||
</li>
|
||
|
||
<li class="devsite-breadcrumb-item
|
||
">
|
||
|
||
|
||
<div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div>
|
||
|
||
|
||
|
||
|
||
|
||
<a href="https://ai.google.dev/gemini-api/docs"
|
||
|
||
class="devsite-breadcrumb-link gc-analytics-event"
|
||
|
||
data-category="Site-Wide Custom Events"
|
||
|
||
data-label="Breadcrumbs"
|
||
|
||
data-value="3"
|
||
|
||
track-type="globalNav"
|
||
|
||
track-name="breadcrumb"
|
||
|
||
track-metadata-position="3"
|
||
|
||
track-metadata-eventdetail=""
|
||
|
||
>
|
||
|
||
Docs
|
||
|
||
</a>
|
||
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
<devsite-gemini-api-switcher class="nocontent"></devsite-gemini-api-switcher>
|
||
</div>
|
||
|
||
<h1 class="devsite-page-title" tabindex="-1">
|
||
Gemini Developer API pricing<devsite-actions hidden data-nosnippet>
|
||
<devsite-llm-tools></devsite-llm-tools></devsite-actions>
|
||
|
||
|
||
</h1>
|
||
<div class="devsite-page-title-meta"><devsite-view-release-notes></devsite-view-release-notes></div>
|
||
|
||
|
||
<devsite-toc class="devsite-nav"
|
||
depth="2"
|
||
devsite-toc-embedded
|
||
>
|
||
</devsite-toc>
|
||
|
||
|
||
<div class="devsite-article-body clearfix
|
||
">
|
||
|
||
|
||
|
||
|
||
<p>
|
||
</p>
|
||
|
||
<p>
|
||
|
||
</p>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<p>Start building free of charge with generous limits, then scale up with
|
||
prepaid then pay-as-you-go pricing for your production ready applications.</p>
|
||
|
||
<div class="pricing-container">
|
||
<div class="pricing-cards">
|
||
<div class="pricing-card">
|
||
<h3 class="plan-name hide-from-toc" id="free" data-text="Free" tabindex="-1">Free</h3>
|
||
<p class="plan-description">For developers and small projects getting started with the Gemini API.</p>
|
||
<ul class="features">
|
||
<li><span class="material-symbols-outlined">check_circle</span>Limited access to certain models</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Free input & output tokens</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Google AI Studio access</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Content used to improve our products<a href="https://ai.google.dev/gemini-api/terms">*</a></li>
|
||
</ul>
|
||
<a href="https://aistudio.google.com" class="cta-button btn-secondary">Get started for Free</a>
|
||
</div>
|
||
<div class="pricing-card recommended">
|
||
<h3 class="plan-name hide-from-toc" id="paid" data-text="Paid" tabindex="-1">Paid</h3>
|
||
<p class="plan-description">For production applications that require higher volumes and advanced features.</p>
|
||
<ul class="features">
|
||
<li><span class="material-symbols-outlined">check_circle</span>Higher rate limits for production deployments</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Access to Context caching</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Batch API (50% cost reduction)</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Access to Google's most advanced models</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span><span>Content <strong>not</strong> used to improve our products</span><a href="https://ai.google.dev/gemini-api/terms">*</a></li>
|
||
</ul>
|
||
<a href="https://aistudio.google.com/api-keys" class="cta-button btn-secondary">Upgrade to Paid</a>
|
||
</div>
|
||
<div class="pricing-card">
|
||
<h3 class="plan-name hide-from-toc" id="enterprise" data-text="Enterprise" tabindex="-1">Enterprise</h3>
|
||
<p class="plan-description">For large-scale deployments with custom needs for security, support, and compliance, powered by <a href="https://cloud.google.com/gemini-enterprise-agent-platform">Gemini Enterprise Agent Platform</a>.</p>
|
||
<ul class="features">
|
||
<li><span class="material-symbols-outlined">check_circle</span>All features in Paid, plus optional access to:</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Dedicated support channels</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Advanced security & compliance</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Provisioned throughput</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>Volume-based discounts (based on usage)</li>
|
||
<li><span class="material-symbols-outlined">check_circle</span>ML ops, model garden and more</li>
|
||
</ul>
|
||
<a href="https://cloud.google.com/contact" class="cta-button btn-secondary">Contact Sales</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.6-flash" data-text="Gemini 3.6 Flash" tabindex="-1">Gemini 3.6 Flash</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.6-flash</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-3.6-flash" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our most intelligent model built for speed, combining frontier intelligence with
|
||
superior search and grounding.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$7.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.15<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$3.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.075<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$3.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.075<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.70</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$13.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.27<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.5-flash" data-text="Gemini 3.5 Flash" tabindex="-1">Gemini 3.5 Flash</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.5-flash</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-3.5-flash" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our most intelligent model built for speed, combining frontier intelligence with
|
||
superior search and grounding.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_1" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$9.00</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.15<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_1" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$4.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.075<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_1" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$4.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.08<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_1" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.70</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$16.20</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.27<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.5-live-translate-preview" data-text="Gemini 3.5 Live Translate" tabindex="-1">Gemini 3.5 Live Translate</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.5-live-translate-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.5-live-translate-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our low-latency, real-time speech to speech translation model that supports 70+ languages.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_2" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$3.50 or $0.0053/min<sup>*</sup> (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$21.00 or $0.0315/min<sup>*</sup> (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> Billing is based on total input and output audio token consumption, calculated at a rate of 25 tokens per second of audio, equating to an effective price of approximately $0.0368 per minute.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.5-flash-lite" data-text="Gemini 3.5 Flash-Lite" tabindex="-1">Gemini 3.5 Flash-Lite</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.5-flash-lite</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.5-flash-lite" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our most cost-efficient GA model, optimized for high-volume agentic tasks,
|
||
translation, and simple data processing.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_3" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.30 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.03<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_2" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.15 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.25</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.02<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_2" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.15 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.25</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.02<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_2" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.54 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$4.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.05<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.1-flash-lite" data-text="Gemini 3.1 Flash-Lite" tabindex="-1">Gemini 3.1 Flash-Lite</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.1-flash-lite</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.1-flash-lite" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our most cost-efficient model, optimized for high-volume agentic tasks,
|
||
translation, and simple data processing.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_4" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.25 (text / image / video)<br>$0.50 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.025 (text / image / video)<br>$0.05 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_3" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.125 (text / image / video)<br>$0.25 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.0125 (text / image / video)<br>$0.025 (audio)<br>$0.50 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_3" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.125 (text / image / video)<br>$0.25 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.75</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.0125 (text / image / video)<br>$0.025 (audio)<br>$0.50 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_3" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.45 (text / image / video)<br>$0.90 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.70</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.045 (text / image / video)<br>$0.09 (audio)<br>$1.80 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-omni-flash-preview" data-text="Gemini Omni Flash Preview" tabindex="-1">Gemini Omni Flash Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-omni-flash-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-omni-flash-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our next-generation video generation and editing model, available to developers on the paid tier of the Gemini API.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_5" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.50 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$9.00 (text)<br>$17.50 (video)<sup>*</sup></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> Billing is based on total output token consumption, calculated at a rate of 5,792 tokens per second of 720p video. Under Standard pricing, this equates to an effective price of approximately $0.10 per second.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.1-pro-preview" data-text="Gemini 3.1 Pro Preview" tabindex="-1">Gemini 3.1 Pro Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.1-pro-preview</code> and <code translate="no" dir="ltr">gemini-3.1-pro-preview-customtools</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.1-pro-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>The latest performance, intelligence, and usability improvements to the best
|
||
model family in the world for multimodal understanding,
|
||
agentic capabilities, and vibe-coding.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_6" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$2.00, prompts <= 200k tokens<br>$4.00, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$12.00, prompts <= 200k tokens<br>$18.00, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.20, prompts <= 200k tokens<br>$0.40, prompts > 200k<br>$4.50 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_4" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.00, prompts <= 200k tokens<br>$2.00, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$6.00, prompts <= 200k tokens<br>$9.00, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td><em>Same as Standard</em><br>
|
||
$0.20, prompts <= 200k tokens<br>$0.40, prompts > 200k<br>$4.50 / 1,000,000 tokens per hour (storage price)
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_4" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.00, prompts <= 200k tokens<br>$2.00, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$6.00, prompts <= 200k tokens<br>$9.00, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td><em>Same as Standard</em><br>
|
||
$0.20, prompts <= 200k tokens<br>$0.40, prompts > 200k<br>$4.50 / 1,000,000 tokens per hour (storage price)
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_4" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$3.60, prompts <= 200k tokens<br>$7.20, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$21.60, prompts <= 200k tokens<br>$32.40, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.36, prompts <= 200k tokens<br>$0.72, prompts > 200k<br>$8.10 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.1-flash-live-preview" data-text="Gemini 3.1 Flash Live Preview" tabindex="-1">Gemini 3.1 Flash Live Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.1-flash-live-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.1-flash-live-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our low-latency, audio-to-audio model optimized for real-time dialogue with
|
||
acoustic nuance detection, numeric precision, and multimodal awareness.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.75 (text)<br>$3.00 or $0.005/min (audio)<br>$1.00 or $0.002/min (image/video)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$4.50 (text)<br>$12.00 or $0.018/min (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Supported</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<p><sup>*</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.1-flash-image" data-text="Gemini 3.1 Flash Image (Nano Banana 2) 🍌" tabindex="-1">Gemini 3.1 Flash Image (Nano Banana 2) 🍌</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.1-flash-image</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.1-flash-image" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Designed for speed and efficiency, the Gemini 3.1 Flash Image generation model is
|
||
effective for quick, interactive responses and high throughput.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_7" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.50 (text/image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$3 (text and thinking)<br>
|
||
$60.00 (images)<br>
|
||
Equivalent to $0.045 per 0.5K image<sup>*</sup><br>
|
||
$0.067 per 1K image<sup>*</sup>,
|
||
$0.101 per 2K image<sup>*</sup>,
|
||
and $0.151 per 4K image<sup>*</sup>.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Web and Image Search<sup>**</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests for text and image-based grounding.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_5" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.25 (text, image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$1.50 (text and thinking)<br>
|
||
$30.00 (images)<br>
|
||
Equivalent to $0.022 per 0.5K image<sup>*</sup><br>
|
||
$0.034 per 1K image<sup>*</sup>,<br>
|
||
$0.050 per 2K image<sup>*</sup>,<br>
|
||
and $0.076 per 4K image<sup>*</sup>.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> Image output is priced at $60 per 1,000,000 tokens.
|
||
Output images at 0.5K (512px) consume 747 tokens and are equivalent to $0.045 per
|
||
image. Output images at 1K (1024x1024px) consume 1120 tokens and are equivalent
|
||
to $0.067 per image. Output images at 2K (2048x2048px) consume 1680 tokens and
|
||
are equivalent to $0.101 per image. Output images at 4K (4096x4096px) consume
|
||
2520 tokens and are equivalent to $0.151 per image.</p>
|
||
|
||
<p><sup>**</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed. Retrieved context (text or images) provided by Grounding with Google
|
||
Search is not charged as input tokens.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.1-flash-lite-image" data-text="Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) 🍌" tabindex="-1">Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite) 🍌</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.1-flash-lite-image</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.1-flash-lite-image" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Designed as the efficiency specialist of the image generation family, the Gemini 3.1
|
||
Flash Lite Image model is designed for ultra-low latency and cost-effective image
|
||
generation and editing.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_8" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.25 (text/image/video)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$1.50 (text and thinking)<br>
|
||
$30.00 (images)<br>
|
||
Equivalent to $0.0336 per 1K resolution image<sup>*</sup>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_6" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.125 (text/image/video)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$0.75 (text and thinking)<br>
|
||
$15.00 (images)<br>
|
||
Equivalent to $0.0168 per 1K resolution image<sup>*</sup>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> Image output is priced at $30 per 1,000,000 tokens. Output images at 1K (1024x1024px) consume 1120 tokens and are equivalent to $0.0336 per image.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3.1-flash-tts-preview" data-text="Gemini 3.1 Flash TTS Preview" tabindex="-1">Gemini 3.1 Flash TTS Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3.1-flash-tts-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3.1-flash-tts-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our 3.1 Flash Text-to-Speech audio model optimized for price-performant,
|
||
low-latency, controllable speech generation.</p>
|
||
|
||
<p>Preview models may change before becoming stable and have more restrictive rate
|
||
limits.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_9" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.00 (text)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Free of charge</td>
|
||
<td>$20.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_7" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.50 (text)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$10.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> Audio tokens correspond to 25 tokens per second of audio.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3-flash-preview" data-text="Gemini 3 Flash Preview" tabindex="-1">Gemini 3 Flash Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3-flash-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-3-flash-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our most intelligent model built for speed, combining frontier intelligence with
|
||
superior search and grounding.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_10" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.50 (text / image / video)<br>$1.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$3.00</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.05 (text / image / video)<br>$0.10 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_8" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.25 (text / image / video)<br>$0.50 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$1.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td><em>Same as Standard</em><br>
|
||
$0.05 (text / image / video)<br>
|
||
$0.10 (audio)<br>
|
||
$1.00 / 1,000,000 tokens per hour (storage price)
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_5" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.25 (text / image / video)<br>$0.50 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$1.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td><em>Same as Standard</em><br>
|
||
$0.05 (text / image / video)<br>
|
||
$0.10 (audio)<br>
|
||
$1.00 / 1,000,000 tokens per hour (storage price)
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 requests per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_5" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.90 (text / image / video)<br>$1.80 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$5.40</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.09 (text / image / video)<br>$0.18 (audio)<br>$1.80 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>*</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>5,000 prompts per month (free, shared across Gemini 3), then $14 / 1,000 search queries</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-3-pro-image" data-text="Gemini 3 Pro Image (Nano Banana Pro) 🍌" tabindex="-1">Gemini 3 Pro Image (Nano Banana Pro) 🍌</h2>
|
||
<em><code translate="no" dir="ltr">gemini-3-pro-image</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/prompts/new_chat?model=gemini-3-pro-image" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our native image generation model, optimized for speed, flexibility, and
|
||
contextual understanding. <strong>Text input and output</strong> is priced the same as
|
||
<a href="#gemini-3.1-pro-preview">Gemini 3.1 Pro</a>.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_11" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$2.00 (text/image),<br>
|
||
equivalent to $0.0011 per image<sup>*</sup></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$12.00 (text and thinking)<br>
|
||
$120.00 (images)<br>
|
||
Equivalent to $0.134 per 1K/2K image<sup>**</sup><br>
|
||
and $0.24 per 4K image<sup>**</sup>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>***</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_9" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.00 (text),<br>$0.0006 (image)<sup>*</sup></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$6.00 (text and thinking)<br>
|
||
$0.067 per 1K/2K image<sup>**</sup><br>
|
||
$0.12 per 4K image<sup>**</sup>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_6" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.00 (text),<br>$0.0006 (image)<sup>*</sup></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$6.00 (text and thinking)<br>
|
||
$0.067 per 1K/2K image<sup>**</sup><br>
|
||
$0.12 per 4K image<sup>**</sup>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_6" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$3.60 (text/image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$21.60 (text and thinking)<br>
|
||
$216.00 (images)
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search<sup>***</sup></td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p><sup>*</sup> Image input is set at 560 tokens or $0.0011 per image.</p>
|
||
|
||
<p><sup>**</sup> Image output is priced at $120 per 1,000,000 tokens. Output
|
||
images from 1024x1024px (1K) and up to 2048x2048px (2K) consume 1120 tokens and
|
||
are equivalent to $0.134 per image. Output images up to 4096x4096px (4K) consume
|
||
2000 tokens and are equivalent to $0.24 per image.</p>
|
||
|
||
<p><sup>***</sup> A customer-submitted request to Gemini may result in one or more
|
||
queries to Google Search. You will be charged for each individual search query
|
||
performed.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-pro" data-text="Gemini 2.5 Pro" tabindex="-1">Gemini 2.5 Pro</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-pro</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-2.5-pro" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our state-of-the-art multipurpose model, which excels at coding and complex
|
||
reasoning tasks.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_12" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.25, prompts <= 200k tokens<br>$2.50, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$10.00, prompts <= 200k tokens<br>$15.00, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.125, prompts <= 200k tokens<br>$0.25, prompts > 200k<br>$4.50 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>10,000 RPD (free), then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_10" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.625, prompts <= 200k tokens<br>$1.25, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$5.00, prompts <= 200k tokens<br>$7.50, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.125, prompts <= 200k tokens<br>$0.25, prompts > 200k<br>$4.50 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_7" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.625, prompts <= 200k tokens<br>$1.25, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$5.00, prompts <= 200k tokens<br>$7.50, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.125, prompts <= 200k tokens<br>$0.25, prompts > 200k<br>$4.50 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_7" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.25, prompts <= 200k tokens<br>$4.50, prompts > 200k tokens</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$18.00, prompts <= 200k tokens<br>$27.00, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.225, prompts <= 200k tokens<br>$0.45, prompts > 200k<br>$8.10 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>10,000 RPD (free), then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-flash" data-text="Gemini 2.5 Flash" tabindex="-1">Gemini 2.5 Flash</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-flash</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-2.5-flash" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our first hybrid reasoning model which supports a 1M token context window and
|
||
has thinking budgets.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_13" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.30 (text / image / video)<br>$1.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.03 (text / image / video)<br>$0.1 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Free of charge, up to 500 RPD (limit shared with Flash-Lite RPD)</td>
|
||
<td>1,500 RPD (free, limit shared with Flash-Lite RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>500 RPD</td>
|
||
<td>1,500 RPD (free), then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_11" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.15 (text / image / video)<br>$0.50 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$1.25</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.03 (text / image / video)<br>$0.1 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free, limit shared with Flash-Lite RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_8" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.15 (text / image / video)<br>$0.50 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$1.25</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.03 (text / image / video)<br>$0.1 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free, limit shared with Flash-Lite RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_8" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.54 (text / image / video)<br>$1.80 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$4.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.054 (text / image / video)<br>$0.18 (audio)<br>$1.80 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Free of charge, up to 500 RPD (limit shared with Flash-Lite RPD)</td>
|
||
<td>1,500 RPD (free, limit shared with Flash-Lite RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>500 RPD</td>
|
||
<td>1,500 RPD (free), then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-flash-lite" data-text="Gemini 2.5 Flash-Lite" tabindex="-1">Gemini 2.5 Flash-Lite</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-flash-lite</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-2.5-flash-lite" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our smallest and most cost effective model, built for at scale usage.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_14" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price (text, image, video)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.10 (text / image / video)<br>$0.30 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.40</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.01 (text / image / video)<br>$0.03 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Free of charge, up to 500 RPD (limit shared with Flash RPD)</td>
|
||
<td>1,500 RPD (free, limit shared with Flash RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>500 RPD</td>
|
||
<td>1,500 RPD (free), then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_12" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price (text, image, video)</td>
|
||
<td>Not available</td>
|
||
<td>$0.05 (text / image / video)<br>$0.15 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$0.20</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.01 (text / image / video)<br>$0.03 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free, limit shared with Flash RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_9" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price (text, image, video)</td>
|
||
<td>Not available</td>
|
||
<td>$0.05 (text / image / video)<br>$0.15 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$0.20</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.01 (text / image / video)<br>$0.03 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free, limit shared with Flash RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_9" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price (text, image, video)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.18 (text / image / video)<br>$0.54 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.72</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.018 (text / image / video)<br>$0.054 (audio)<br>$1.80 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Free of charge, up to 500 RPD (limit shared with Flash RPD)</td>
|
||
<td>1,500 RPD (free, limit shared with Flash RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>500 RPD</td>
|
||
<td>1,500 RPD (free), then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-flash-lite-preview" data-text="Gemini 2.5 Flash-Lite Preview" tabindex="-1">Gemini 2.5 Flash-Lite Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-flash-lite-preview-09-2025</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-2.5-flash-lite-preview-09-2025" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>The latest model based on Gemini 2.5 Flash lite optimized for cost-efficiency,
|
||
high throughput and high quality.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_15" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price (text, image, video)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.10 (text / image / video)<br>$0.30 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.40</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.01 (text / image / video)<br>$0.03 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Free of charge, up to 500 RPD (limit shared with Flash RPD)</td>
|
||
<td>1,500 RPD (free, limit shared with Flash RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_13" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price (text, image, video)</td>
|
||
<td>Not available</td>
|
||
<td>$0.05 (text / image / video)<br>$0.15 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$0.20</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.01 (text / image / video)<br>$0.03 (audio)<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free, limit shared with Flash RPD), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-flash-native-audio" data-text="Gemini 2.5 Flash Native Audio (Live API)" tabindex="-1">Gemini 2.5 Flash Native Audio (Live API)</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-flash-native-audio-preview-12-2025</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/app/live#gemini-2.5-flash-native-audio-preview-12-2025" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our <a href="/gemini-api/docs/live">Live API</a> native audio models optimized for higher
|
||
quality audio outputs with better pacing, voice naturalness, verbosity, and
|
||
mood.</p>
|
||
|
||
<p>Preview models may change before becoming stable and have more restrictive rate
|
||
limits.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.50 (text)<br>$3.00 (audio / video)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.00 (text)<br>$12.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-flash-image" data-text="Gemini 2.5 Flash Image (Nano Banana) 🍌" tabindex="-1">Gemini 2.5 Flash Image (Nano Banana) 🍌</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-flash-image</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-2.5-flash-image" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our native image generation model, optimized for speed, flexibility, and
|
||
contextual understanding. Text input and output is priced the same as
|
||
<a href="#gemini-2.5-flash">2.5 Flash</a>.</p>
|
||
|
||
<p>Preview models may change before becoming stable and have more restrictive rate
|
||
limits.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_16" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.30 (text / image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$0.039 per image*</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_14" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.15 (text / image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$0.0195 per image*</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="flex_10" data-text="Flex" tabindex="-1">Flex</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.15 (text / image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$0.0195 per image*</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="priority_10" data-text="Priority" tabindex="-1">Priority</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.54 (text / image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$0.0702 per image*</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p>[*] Image output is priced at $30 per 1,000,000 tokens. Output images up to
|
||
1024x1024px consume 1290 tokens and are equivalent to $0.039 per image.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-flash-preview-tts" data-text="Gemini 2.5 Flash Preview TTS" tabindex="-1">Gemini 2.5 Flash Preview TTS</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-flash-preview-tts</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/generate-speech" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our 2.5 Flash text-to-speech audio model optimized for price-performant,
|
||
low-latency, controllable speech generation.</p>
|
||
|
||
<p>Preview models may change before becoming stable and have more restrictive rate
|
||
limits.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_17" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.50 (text)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Free of charge</td>
|
||
<td>$10.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_15" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.25 (text)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$5.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-pro-preview-tts" data-text="Gemini 2.5 Pro Preview TTS" tabindex="-1">Gemini 2.5 Pro Preview TTS</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-pro-preview-tts</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/generate-speech" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our 2.5 Pro text-to-speech audio model optimized for powerful, low-latency
|
||
speech generation for more natural outputs and easier to steer prompts.</p>
|
||
|
||
<p>Preview models may change before becoming stable and have more restrictive rate
|
||
limits.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_18" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.00 (text)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$20.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_16" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.50 (text)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$10.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.0-flash" data-text="Gemini 2.0 Flash" tabindex="-1">Gemini 2.0 Flash</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.0-flash</code></em>
|
||
</div>
|
||
</div>
|
||
|
||
<aside class="warning">
|
||
<b>Warning:</b> Gemini 2.0 Flash is <a href="/gemini-api/docs/deprecations">deprecated</a> and has been shut down June 1, 2026. Migrate to <a href="/gemini-api/docs/models">a newer model</a> to avoid service disruption.
|
||
</aside>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_19" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.10 (text / image / video)<br>$0.70 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.40</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.025 / 1,000,000 tokens (text/image/video)<br>$0.175 / 1,000,000 tokens (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching (storage)</td>
|
||
<td>Not available</td>
|
||
<td>$1.00 / 1,000,000 tokens per hour</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Image generation pricing</td>
|
||
<td>Not available (<a href="/gemini-api/docs/deprecations#gemini-2.0-models">shut down</a>)</td>
|
||
<td>Not available (<a href="/gemini-api/docs/deprecations#gemini-2.0-models">shut down</a>)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Tuning price</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Free of charge, up to 500 RPD</td>
|
||
<td>1,500 RPD (free), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>500 RPD</td>
|
||
<td>1,500 RPD (free), then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_17" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.05 (text / image / video)<br>$0.35 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$0.20</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.025 / 1,000,000 tokens (text/image/video)<br>$0.175 / 1,000,000 tokens (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching (storage)</td>
|
||
<td>Not available</td>
|
||
<td>$1.00 / 1,000,000 tokens per hour</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Image generation pricing</td>
|
||
<td>Not available (<a href="/gemini-api/docs/deprecations#gemini-2.0-models">shut down</a>)</td>
|
||
<td>Not available (<a href="/gemini-api/docs/deprecations#gemini-2.0-models">shut down</a>)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Tuning price</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>1,500 RPD (free), then $35 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Maps</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<p>[*] Image output is priced at $30 per 1,000,000 tokens. Output images up to
|
||
1024x1024px consume 1290 tokens and are equivalent to $0.039 per image.</p>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.0-flash-lite" data-text="Gemini 2.0 Flash-Lite" tabindex="-1">Gemini 2.0 Flash-Lite</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.0-flash-lite</code></em>
|
||
</div>
|
||
</div>
|
||
|
||
<aside class="warning">
|
||
<b>Warning:</b> Gemini 2.0 Flash-Lite is <a href="/gemini-api/docs/deprecations">deprecated</a> and has been shut down June 1, 2026. Migrate to <a href="/gemini-api/docs/models">a newer model</a> to avoid service disruption.
|
||
</aside>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_20" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.075</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.30</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching (storage)</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Tuning price</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_18" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.0375</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$0.15</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching (storage)</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Tuning price</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="imagen-4" data-text="Imagen 4" tabindex="-1">Imagen 4</h2>
|
||
<em><code translate="no" dir="ltr">imagen-4.0-generate-001</code>, <code translate="no" dir="ltr">imagen-4.0-ultra-generate-001</code>, <code translate="no" dir="ltr">imagen-4.0-fast-generate-001</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com/generate-image" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<aside class="warning">
|
||
<b>Warning:</b> Imagen 4 models (`imagen-4.0-generate-001`, `imagen-4.0-ultra-generate-001`, `imagen-4.0-fast-generate-001`) are <a href="/gemini-api/docs/deprecations">deprecated</a> and will be shut down on August 17, 2026; migrate to <a href="/gemini-api/docs/pricing#gemini-2.5-flash">Gemini 2.5 Flash Image</a> to avoid service disruption.
|
||
</aside>
|
||
|
||
<p>Our latest image generation model, with significantly better text rendering and
|
||
better overall image quality.</p>
|
||
|
||
<p>Preview models may change before becoming stable and have more restrictive rate
|
||
limits.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per Image in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Imagen 4 Fast image price</td>
|
||
<td>Not available</td>
|
||
<td>$0.02</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Imagen 4 Standard image price</td>
|
||
<td>Not available</td>
|
||
<td>$0.04</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Imagen 4 Ultra image price</td>
|
||
<td>Not available</td>
|
||
<td>$0.06</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="veo-3.1" data-text="Veo 3.1" tabindex="-1">Veo 3.1</h2>
|
||
<em><code translate="no" dir="ltr">veo-3.1-generate-preview</code>, <code translate="no" dir="ltr">veo-3.1-fast-generate-preview</code>, <code translate="no" dir="ltr">veo-3.1-lite-generate-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://deepmind.google/models/veo/" class="button button-primary ais">Try Veo 3.1</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our latest video generation model, available to developers on the
|
||
paid tier of the Gemini API.</p>
|
||
|
||
<p>Preview models may change before becoming stable and have more restrictive rate
|
||
limits.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per second in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Veo 3.1 Standard video with audio price (default)</td>
|
||
<td>Not available</td>
|
||
<td>$0.40 (720p and 1080p)<br>$0.60 (4k)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Veo 3.1 Fast video with audio price (default)</td>
|
||
<td>Not available</td>
|
||
<td>$0.10 (720p)<br>$0.12 (1080p)<br>$0.30 (4k)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Veo 3.1 Lite video with audio price (default)</td>
|
||
<td>Not available</td>
|
||
<td>$0.05 (720p)<br>$0.08 (1080p)<br>(4k output not supported)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<aside class="note"><strong>Note:</strong><span> In some cases, an audio processing issue may prevent a video from being
|
||
generated. You will only be charged if your video is successfully generated.</span></aside>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="veo-3" data-text="Veo 3" tabindex="-1">Veo 3</h2>
|
||
<em><code translate="no" dir="ltr">veo-3.0-generate-001</code>, <code translate="no" dir="ltr">veo-3.0-fast-generate-001</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://deepmind.google/models/veo/" class="button button-primary ais">Try Veo 3</a>
|
||
</p>
|
||
</div>
|
||
|
||
<aside class="warning">
|
||
<b>Warning:</b> Veo 3 models (`veo-3.0-generate-001`, `veo-3.0-fast-generate-001`) are <a href="/gemini-api/docs/deprecations">deprecated</a> and will be shut down on June 30, 2026; migrate to <a href="/gemini-api/docs/pricing#veo-3.1">Veo 3.1 Preview</a> or the GA models available through the <a href="https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/veo/3-1-generate">Gemini Enterprise Agent Platform</a> to avoid service disruption.
|
||
</aside>
|
||
|
||
<p>Our stable video generation model, available to developers on the
|
||
paid tier of the Gemini API.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per second in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Veo 3 Standard video with audio price (default)</td>
|
||
<td>Not available</td>
|
||
<td>$0.40</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Veo 3 Fast video with audio price (default)</td>
|
||
<td>Not available</td>
|
||
<td>$0.10 (720p)<br>$0.12 (1080p)<br>$0.30 (4k)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<aside class="note"><strong>Note:</strong><span> In some cases, an audio processing issue may prevent a video from being
|
||
generated. You will only be charged if your video is successfully generated.</span></aside>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="veo-2" data-text="Veo 2" tabindex="-1">Veo 2</h2>
|
||
<em><code translate="no" dir="ltr">veo-2.0-generate-001</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="/gemini-api/docs/video" class="button button-primary ais">Try the API</a>
|
||
</p>
|
||
</div>
|
||
|
||
<aside class="warning">
|
||
<b>Warning:</b> Veo 2 (`veo-2.0-generate-001`) is <a href="/gemini-api/docs/deprecations">deprecated</a> and will be shut down on June 30, 2026; migrate to <a href="/gemini-api/docs/pricing#veo-3.1">Veo 3.1 Preview</a> or the GA models available through the <a href="https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/veo/3-1-generate">Gemini Enterprise Agent Platform</a> to avoid service disruption.
|
||
</aside>
|
||
|
||
<p>Our state-of-the-art video generation model, available to developers on the
|
||
paid tier of the Gemini API.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per second in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Video price</td>
|
||
<td>Not available</td>
|
||
<td>$0.35</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="lyria-3" data-text="Lyria 3" tabindex="-1">Lyria 3</h2>
|
||
<em><code translate="no" dir="ltr">lyria-3-clip-preview</code> and <code translate="no" dir="ltr">lyria-3-pro-preview</code></em>
|
||
</div>
|
||
</div>
|
||
|
||
<p>Google's family of music generation models. Preview models may change
|
||
before becoming stable and have more restrictive rate limits.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per request in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Lyria 3 Clip Preview (30s)</td>
|
||
<td>Not available</td>
|
||
<td>$0.04 per song</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Lyria 3 Pro Preview (Full Song)</td>
|
||
<td>Not available</td>
|
||
<td>$0.08 per song</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-embedding-2" data-text="Gemini Embedding 2" tabindex="-1">Gemini Embedding 2</h2>
|
||
<em><code translate="no" dir="ltr">gemini-embedding-2</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="/gemini-api/docs/embeddings" class="button button-primary ais">Try the API</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our first multimodal embedding model, mapping text, images, video, audio, and
|
||
PDFs into a unified embedding space.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_21" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Text input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.20</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Image input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.45 ($0.00012 per image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Audio input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$6.50 ($0.00016 per second)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Video input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$12.00 ($0.00079 per frame)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_19" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Text input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.10</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Image input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.225 ($0.00006 per image)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Audio input price</td>
|
||
<td>Not available</td>
|
||
<td>$3.25 ($0.00008 per second)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Video input price</td>
|
||
<td>Not available</td>
|
||
<td>$6.00 ($0.000395 per frame)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-embedding" data-text="Gemini Embedding" tabindex="-1">Gemini Embedding</h2>
|
||
<em><code translate="no" dir="ltr">gemini-embedding-001</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="/gemini-api/docs/embeddings" class="button button-primary ais">Try the API</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Our Gemini Embeddings model for text-only use cases, available to developers on the free and paid tiers of the Gemini API.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_22" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$0.15</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_20" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.075</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-robotics-er-2" data-text="Gemini Robotics ER 2 Preview" tabindex="-1">Gemini Robotics ER 2 Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-robotics-er-2-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-robotics-er-2-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Gemini Robotics ER 2, short for Gemini Robotics Embodied Reasoning 2, is a
|
||
vision-language model endpoint that enables robots to understand their environments
|
||
precisely, supporting agentic orchestration of robots, video progress
|
||
understanding, multi-robot collaboration, and advanced spatial reasoning.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_23" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.00 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$10.00</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.20<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_21" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.00 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$5.00</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Not available</td>
|
||
<td>$0.10<br>$1.00 / 1,000,000 tokens per hour (storage price)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-robotics-er-2-streaming" data-text="Gemini Robotics ER 2 Streaming Preview" tabindex="-1">Gemini Robotics ER 2 Streaming Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-robotics-er-2-streaming-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-robotics-er-2-streaming-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Gemini Robotics ER 2 Streaming is a vision-language model endpoint for robotics
|
||
optimized for real-time text streaming using the Live API. It accepts text,
|
||
image, video, and audio input and supports bidirectional streaming with
|
||
function calling.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_24" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$2.00 (text / image / video / audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Free of charge</td>
|
||
<td>$10.00</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-robotics-er" data-text="Gemini Robotics ER 1.6 Preview" tabindex="-1">Gemini Robotics ER 1.6 Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-robotics-er-1.6-preview</code></em>
|
||
</div>
|
||
<p>
|
||
<a href="https://aistudio.google.com?model=gemini-robotics-er-1.6-preview" class="button button-primary ais">Try it in Google AI Studio</a>
|
||
</p>
|
||
</div>
|
||
|
||
<p>Gemini Robotics ER, short for Gemini Robotics-Embodied Reasoning, is a thinking
|
||
model that enhances robots' abilities to understand and interact with the
|
||
physical world.</p>
|
||
<div><devsite-selector data-ds-scope="code-sample">
|
||
<section><h3 id="standard_25" data-text="Standard" tabindex="-1">Standard</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>$1.00 (text / image / video)<br>$2.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Free of charge</td>
|
||
<td>$5.00</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
<section><h3 id="batch_22" data-text="Batch" tabindex="-1">Batch</h3><table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$0.50 (text / image / video)<br>$1.00 (audio)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price (including thinking tokens)</td>
|
||
<td>Not available</td>
|
||
<td>$2.50</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>5,000 free search requests per month (shared across all Gemini 3.x models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></section>
|
||
</devsite-selector></div>
|
||
<div class="models-section">
|
||
<div class="heading-group">
|
||
<h2 id="gemini-2.5-computer-use-preview-10-2025" data-text="Gemini 2.5 Computer Use Preview" tabindex="-1">Gemini 2.5 Computer Use Preview</h2>
|
||
<em><code translate="no" dir="ltr">gemini-2.5-computer-use-preview-10-2025</code></em>
|
||
</div>
|
||
</div>
|
||
|
||
<p>Our Computer Use model optimized for building browser control agents that
|
||
automate tasks.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Not available</td>
|
||
<td>$1.25, prompts <= 200k tokens<br>$2.50, prompts > 200k token</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Not available</td>
|
||
<td>$10.00, prompts <= 200k tokens<br>$15.00, prompts > 200k</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<div class="models-section">
|
||
<h2 id="gemma-4" data-text="Gemma 4" tabindex="-1">Gemma 4</h2>
|
||
</div>
|
||
|
||
<p>Our lightweight, state-of the art, open model built from the same technology
|
||
that powers our Gemini models.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>Input price</td>
|
||
<td>Free of charge</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Output price</td>
|
||
<td>Free of charge</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching price</td>
|
||
<td>Free of charge</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Context caching (storage)</td>
|
||
<td>Free of charge</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Tuning price</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Grounding with Google Search</td>
|
||
<td>Not available</td>
|
||
<td>Not available</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Used to improve our products</td>
|
||
<td><a href="/gemini-api/terms">Yes</a></td>
|
||
<td><a href="/gemini-api/terms">No</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<h2 id="pricing-for-tools" data-text="Pricing for tools" tabindex="-1">Pricing for tools</h2>
|
||
|
||
<p>Tools are priced at their own rates, applied to the model using them.
|
||
Check the <a href="/gemini-api/docs/models">Models</a> page for which tools are available
|
||
to each model.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Free Tier</th>
|
||
<th scope="col">Paid Tier, per 1M tokens in USD</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/google-search#pricing">Google Search</a></td>
|
||
<td>500 RPD free (limit shared for Flash and Flash-Lite).<br>Not available for Pro.</td>
|
||
<td>Gemini 2.5 models:<br>
|
||
1,500 RPD free (limit shared for Flash and Flash-Lite).<br>Then $35 / 1,000 grounded prompts<br><br>
|
||
Gemini 3 models:<br>
|
||
5,000 free search requests per month (shared across all Gemini models), then $14 per 1,000 requests.</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/maps-grounding#pricing_and_rate_limits">Google Maps</a></td>
|
||
<td>500 RPD<br>Not available for Pro.</td>
|
||
<td>1,500 RPD free (limit shared for Flash and Flash-Lite)<br>10,000 RPD free for Pro.<br>Then $25 / 1,000 grounded prompts</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/code-execution#billing">Code execution</a></td>
|
||
<td>Free of charge</td>
|
||
<td>
|
||
Code execution is billed at the standard token rates for the selected model.
|
||
Costs are determined solely by the tool's usage, no charges are accrued
|
||
for the session runtime. The generated code and execution results are billed as
|
||
<strong>Output tokens</strong> when created, and as
|
||
<strong>Input tokens</strong> when the model uses them as part of its
|
||
iterative reasoning process.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/url-context#limitations">URL context</a></td>
|
||
<td>Free of charge</td>
|
||
<td>Charged as input tokens per model pricing.</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/computer-use">Computer use</a></td>
|
||
<td>Not available</td>
|
||
<td>Charged as regular tokens per model pricing (e.g., standard <a href="#gemini-3.6-flash">Gemini 3.5 Flash</a> pricing). See the <a href="#gemini-2.5-computer-use-preview-10-2025">Gemini 2.5 Computer Use Preview</a> pricing table for legacy model rates.</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/file-search#pricing">File search</a></td>
|
||
<td>Free of charge</td>
|
||
<td>Charged for <a href="#gemini-embedding">embeddings</a> at $0.15 / 1M tokens.<br>Retrieved document tokens charged as regular tokens per model pricing.</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/models/gemini-3.1-pro-preview">Custom Tools endpoint (Gemini 3.1 Pro Preview)</a></td>
|
||
<td>Not available</td>
|
||
<td>Same as <a href="#gemini-3.1-pro-preview">Gemini 3.1 Pro Preview</a> pricing</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<h2 id="pricing-for-agents" data-text="Pricing for agents" tabindex="-1">Pricing for agents</h2>
|
||
|
||
<p>Agent usage costs are calculated based on the underlying token
|
||
consumption and usage of the tools.</p>
|
||
|
||
<table class="pricing-table">
|
||
<colgroup>
|
||
<col>
|
||
<col class="free-tier">
|
||
<col class="paid-tier">
|
||
</colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th scope="col">Model</th>
|
||
<th scope="col">Tools</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/deep-research">Gemini Deep Research Agent</a></td>
|
||
<td>All model inference is charged at standard Gemini list rates,
|
||
including input, output, and intermediate input / reasoning tokens generated
|
||
during agentic loops.
|
||
</td>
|
||
<td>Tool usage fees apply per existing pricing
|
||
structure, maintaining standard distinctions for Search Grounding (retrieved
|
||
tokens excluded) versus Url_context / File Search (retrieved tokens included in
|
||
all other tools).
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/agents">Managed agents in Gemini API</a></td>
|
||
<td>All model inference is charged at standard Gemini list rates,
|
||
including input, output, and intermediate input / reasoning tokens generated
|
||
during agentic loops. (See <a href="/gemini-api/docs/agents#pricing">pricing details</a>).
|
||
</td>
|
||
<td>Environment compute (CPU, memory, sandbox execution) is not billed during the preview period.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><a href="/gemini-api/docs/antigravity-agent">Antigravity Agent</a></td>
|
||
<td>All model inference is charged at standard Gemini list rates,
|
||
including input, output, and intermediate input / reasoning tokens generated
|
||
during agentic loops. (See <a href="/gemini-api/docs/agents#pricing">pricing details</a>).
|
||
</td>
|
||
<td>Environment compute (CPU, memory, sandbox execution) is not billed during the preview period.
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<h2 id="notes" data-text="Notes" tabindex="-1">Notes</h2>
|
||
|
||
<ul>
|
||
<li><strong>Document token billing:</strong> Tokens for the <code translate="no" dir="ltr">DOCUMENT</code> modality (for example, PDFs) are billed at the image token rate. In API responses, these tokens appear under the <code translate="no" dir="ltr">DOCUMENT</code> modality within <code translate="no" dir="ltr">promptTokensDetails</code>.</li>
|
||
<li>Google AI Studio usage is free of charge in all <a href="/gemini-api/docs/available-regions">available regions</a>. See <a href="/gemini-api/docs/billing">Billing FAQs</a> for details.</li>
|
||
<li>Prices may differ from the prices listed here and the prices offered on
|
||
Gemini Enterprise Agent Platform. For Gemini Enterprise Agent Platform prices, see the <a href="https://cloud.google.com/products/gemini-enterprise-agent-platform">Gemini Enterprise Agent Platform pricing page</a>.</li>
|
||
<li>If you are using <a href="/gemini-api/docs/grounding">dynamic retrieval</a> to
|
||
optimize costs, only requests that contain at least one grounding support URL
|
||
from the web in their response are charged for Grounding with Google Search.
|
||
Costs for Gemini always apply. Rate limits are subject to change.</li>
|
||
</ul>
|
||
<link href="https://fonts.googleapis.com/css2?family=Google+Symbols:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet" data-page-link>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="devsite-floating-action-buttons"></div></article>
|
||
|
||
|
||
<devsite-content-footer class="nocontent" data-nosnippet>
|
||
<p>Except as otherwise noted, the content of this page is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 License</a>, and code samples are licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0 License</a>. For details, see the <a href="https://developers.google.com/site-policies">Google Developers Site Policies</a>. Java is a registered trademark of Oracle and/or its affiliates.</p>
|
||
<p>Last updated 2026-08-05 UTC.</p>
|
||
</devsite-content-footer>
|
||
|
||
|
||
<devsite-notification
|
||
>
|
||
</devsite-notification>
|
||
|
||
|
||
|
||
<div class="devsite-content-data">
|
||
|
||
|
||
<template class="devsite-content-data-template">
|
||
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-05 UTC."],[],[]]
|
||
</template>
|
||
|
||
</div>
|
||
|
||
</devsite-content>
|
||
</main>
|
||
<devsite-footer-promos class="devsite-footer">
|
||
|
||
|
||
|
||
</devsite-footer-promos>
|
||
<devsite-footer-linkboxes class="devsite-footer">
|
||
|
||
|
||
<nav class="devsite-footer-linkboxes nocontent"
|
||
aria-label="Footer links"
|
||
data-nosnippet>
|
||
|
||
</nav>
|
||
|
||
</devsite-footer-linkboxes>
|
||
<devsite-footer-utility class="devsite-footer">
|
||
|
||
|
||
|
||
<div class="devsite-footer-utility nocontent" data-nosnippet>
|
||
|
||
|
||
|
||
<nav class="devsite-footer-utility-links" aria-label="Utility links">
|
||
|
||
<ul class="devsite-footer-utility-list">
|
||
|
||
<li class="devsite-footer-utility-item
|
||
">
|
||
|
||
|
||
<a class="devsite-footer-utility-link gc-analytics-event"
|
||
href="//policies.google.com/terms"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Footer Terms link"
|
||
>
|
||
Terms
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="devsite-footer-utility-item
|
||
">
|
||
|
||
|
||
<a class="devsite-footer-utility-link gc-analytics-event"
|
||
href="//policies.google.com/privacy"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Footer Privacy link"
|
||
>
|
||
Privacy
|
||
</a>
|
||
|
||
</li>
|
||
|
||
<li class="devsite-footer-utility-item
|
||
glue-cookie-notification-bar-control">
|
||
|
||
|
||
<a class="devsite-footer-utility-link gc-analytics-event"
|
||
href="#"
|
||
data-category="Site-Wide Custom Events"
|
||
data-label="Footer Manage cookies link"
|
||
|
||
aria-hidden="true"
|
||
>
|
||
Manage cookies
|
||
</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
|
||
<devsite-language-selector>
|
||
<ul role="presentation">
|
||
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="en"
|
||
>English</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="de"
|
||
>Deutsch</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="es_419"
|
||
>Español – América Latina</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="fr"
|
||
>Français</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="id"
|
||
>Indonesia</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="it"
|
||
>Italiano</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="pl"
|
||
>Polski</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="pt_br"
|
||
>Português – Brasil</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="sq"
|
||
>Shqip</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="vi"
|
||
>Tiếng Việt</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="tr"
|
||
>Türkçe</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ru"
|
||
>Русский</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="he"
|
||
>עברית</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ar"
|
||
>العربيّة</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="fa"
|
||
>فارسی</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="hi"
|
||
>हिंदी</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="bn"
|
||
>বাংলা</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="th"
|
||
>ภาษาไทย</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="zh_cn"
|
||
>中文 – 简体</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="zh_tw"
|
||
>中文 – 繁體</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ja"
|
||
>日本語</a>
|
||
</li>
|
||
|
||
<li role="presentation">
|
||
<a role="menuitem" lang="ko"
|
||
>한국어</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</devsite-language-selector>
|
||
|
||
</nav>
|
||
</div>
|
||
|
||
</devsite-footer-utility>
|
||
<devsite-panel>
|
||
|
||
</devsite-panel>
|
||
|
||
</section>
|
||
</section>
|
||
<devsite-sitemask></devsite-sitemask>
|
||
<devsite-snackbar></devsite-snackbar>
|
||
<devsite-tooltip ></devsite-tooltip>
|
||
<devsite-heading-link></devsite-heading-link>
|
||
<devsite-analytics>
|
||
|
||
<script type="application/json" analytics>[]</script>
|
||
<script type="application/json" tag-management>{"at": "True", "ga4": [], "ga4p": [], "gtm": [{"id": "GTM-TC2MQKS8", "purpose": 0}], "parameters": {"internalUser": "False", "language": {"machineTranslated": "False", "requested": "en", "served": "en"}, "pageType": "article", "projectName": "Gemini API", "signedIn": "False", "tenant": "googledevai", "recommendations": {"sourcePage": "", "sourceType": 0, "sourceRank": 0, "sourceIdenticalDescriptions": 0, "sourceTitleWords": 0, "sourceDescriptionWords": 0, "experiment": ""}, "experiment": {"ids": ""}}}</script>
|
||
|
||
</devsite-analytics>
|
||
|
||
<devsite-badger></devsite-badger>
|
||
|
||
|
||
|
||
|
||
<script nonce="o33fzbvrOC3cmLg8Q75cbjYIsqblrp">
|
||
|
||
(function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i;
|
||
t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0];
|
||
E.parentNode.insertBefore(t,E);})(window, document, 'script',
|
||
'https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/googledevai/js/app_loader.js', '[59,"en",null,"/js/devsite_app_module.js","https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687","https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/googledevai","https://googledevai-dot-devsite-v2-prod-3p.appspot.com",null,null,["/_pwa/googledevai/manifest.json","https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/images/video-placeholder.svg","https://www.gstatic.com/devrel-devsite/prod/v25f01968170374b7bd062a383d0367da1beee7ed413abaee67eec4296f4ba687/googledevai/images/favicon-new.png","/_static/googledevai/images/gemini-api-logo.svg","https://fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700|Inter:400,500|Inter+Tight:300,500,600&display=swap"],1,null,[1,6,8,12,14,17,21,25,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,112,113,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,147,148,149,151,152,156,157,158,159,161,163,164,168,169,170,179,180,182,183,186,191,193,196],"AIzaSyCNm9YxQumEXwGJgTDjxoxXK6m1F-9720Q","AIzaSyCc76DZePGtoyUjqKrLdsMGk_ry7sljLbY","ai.google.dev","AIzaSyB9bqgQ2t11WJsOX8qNsCQ6U-w91mmqF-I","AIzaSyAdYnStPdzjcJJtQ0mvIaeaMKj7_t6J_Fg",null,null,null,["MiscFeatureFlags__enable_llms_txt","Profiles__enable_recognition_badges","DevPro__enable_payments_first_batch","Profiles__enable_callout_notifications","BookNav__enable_tenant_cache_key","AIStudioInteractionsToggle__interactions_are_default","Cloud__enable_legacy_calculator_redirect","MiscFeatureFlags__enable_explain_this_code","Profiles__enable_release_notes_notifications","Profiles__enable_join_program_group_endpoint","Cloud__cache_serialized_dynamic_content","Profiles__enable_developer_profile_benefits_ui_redesign","MiscFeatureFlags__enable_firebase_utm","DevPro__enable_g1_integration","MiscFeatureFlags__enable_variable_operator_index_yaml","Profiles__enable_user_type","Concierge__enable_actions_menu","Analytics__enable_devpro_interaction_logging","CloudShell__cloud_code_overflow_menu","Profiles__enable_purchase_prompts","MiscFeatureFlags__remove_cross_domain_tracking_params","DevPro__enable_embed_profile_creation","DevPro__enable_enterprise","EngEduTelemetry__enable_engedu_telemetry","Profiles__require_profile_eligibility_for_signin","Search__enable_page_map","Profiles__enable_developer_profile_pages_as_content","DevPro__enable_developer_subscriptions","Profiles__enable_awarding_url","Profiles__enable_developer_profiles_callout","Cloud__enable_cloudx_experiment_ids","TpcFeatures__proxy_prod_host","Cloud__enable_cloud_shell_fte_user_flow","MiscFeatureFlags__enable_variable_operator","Profiles__enable_auto_apply_credits","Cloud__fast_free_trial","DevPro__enable_credits_banner","Profiles__enable_page_saving","Cloud__enable_free_trial_server_call","DevPro__enable_google_one_card","Profiles__enable_dashboard_curated_recommendations","Search__enable_suggestions_from_borg","Profiles__enable_targeted_hero","MiscFeatureFlags__fix_lower_breadcrumbs","MiscFeatureFlags__enable_appearance_cookies","DevPro__enable_vertex_credit_card","Experiments__reqs_query_experiments","Profiles__enable_playlist_community_acl","OnSwitch__enable","Profiles__enable_completecodelab_endpoint","Concierge__enable_remove_info_panel_tags","DevPro__enable_devsite_captcha","DevPro__enable_firebase_workspaces_card","Profiles__enable_public_developer_profiles","DevPro__enable_google_payments_buyflow","Profiles__enable_complete_playlist_endpoint","Search__enable_ai_search_summaries_for_all","Profiles__enable_stripe_subscription_management","Cloud__enable_cloud_shell","Profiles__enable_completequiz_endpoint","Concierge__enable_devsite_llm_tools","DevPro__enable_g1_ineligible_redirect","SignIn__enable_l1_signup_flow","Analytics__enable_clearcut_logging","MiscFeatureFlags__enable_project_variables","Concierge__enable_pushui","Search__enable_ai_eligibility_checks","DevPro__remove_eu_tax_intake_form","Profiles__enable_profile_collections","DevPro__enable_nvidia_credits_card","Cloud__enable_cloud_dlp_service","MiscFeatureFlags__enable_view_transitions","Search__enable_dynamic_content_confidential_banner","DevPro__enable_devpro_offers","MiscFeatureFlags__developers_footer_image","MiscFeatureFlags__enable_explicit_template_dependencies","DevPro__enable_free_benefits","DevPro__enable_code_assist","MiscFeatureFlags__developers_footer_dark_image","CloudShell__cloud_shell_button","TpcFeatures__enable_unmirrored_page_left_nav","MiscFeatureFlags__enable_framebox_badge_methods","MiscFeatureFlags__gdp_dashboard_reskin_enabled","DevPro__enable_cloud_innovators_plus"],null,null,"AIzaSyA58TaKli1DculwmAmbpzLVGuWc8eCQgQc","https://developerscontentserving-pa.googleapis.com","AIzaSyDWBU60w0P9hEkr29kkksYs8Z7gvZ8u_wc","https://developerscontentsearch-pa.googleapis.com",2,4,null,"https://developerprofiles-pa.googleapis.com",[59,"googledevai","Google AI for Developers","ai.google.dev",null,"googledevai-dot-devsite-v2-prod-3p.appspot.com",null,null,[null,1,null,null,null,null,null,null,null,null,null,[1],null,null,null,null,null,null,[1],null,null,null,null,[1],[1,1,null,1,1],null,null,null,null,null,[1]],null,[73,null,null,null,null,null,"/images/lockup-new.svg","/images/touchicon-180-new.png",null,null,null,null,1,1,null,null,null,null,null,null,null,2,null,null,null,"/images/lockup-dark-theme-new.svg",[]],[],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[44,2,4,6,7,12,14,15,17,18,20,21,22,23,28,29,32,37,39,40,43],null,[[],[1,1],null,1],[[null,null,null,null,null,["GTM-TC2MQKS8"],null,null,null,null,null,[["GTM-TC2MQKS8",1]],1]],null,4,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[]],1,null,1,1,"https://developerscontentinsights-pa.googleapis.com","AIzaSyC11xEGtFhkmSh_iF6l_itbxnFz2GrIBOg","AIzaSyAXJ10nRF73mmdSDINgkCNX5bbd2KPcWm8","https://developers.googleapis.com",["https://aistudio.google.com"],null,"AIzaSyCjP0KOnHfv8mwe38sfzZJMOnqE3HvrD4A",null,null,"https://developers.googleapis.com"]')
|
||
|
||
</script>
|
||
|
||
<devsite-a11y-announce></devsite-a11y-announce>
|
||
</body>
|
||
</html> |