В этом руководстве представлен обзор различных вариантов оплаты через API Gemini, объясняется, как включить оплату и отслеживать использование, а также приводятся ответы на часто задаваемые вопросы (FAQ) по вопросам оплаты.
О выставлении счетов и тарифных планах
Оплата за использование API Gemini производится на основе вашей истории платежей.
| Уровень использования | Квалификация | Ограничение по тарифному плану |
|---|---|---|
| Бесплатно | Активный проект или бесплатная пробная версия | Н/Д |
| Уровень 1 | Настройте и привяжите активный платежный аккаунт. | 250 долларов |
| Уровень 2 | Оплата 100 долларов США + 3 дня с момента первой успешной оплаты. | 2000 долларов |
| Уровень 3 | Выплачено 1000 долларов США + 30 дней с момента первой успешной оплаты. | 20 000 - 100 000+ долларов США |
Новые учетные записи начинают работу на бесплатном уровне, который предоставляет доступ к определенным моделям в Gemini API и AI Studio в пределах лимитов бесплатного уровня для этих моделей.
Для развертывания приложений непосредственно из режима сборки можно использовать уровень Google Cloud Starter Tier . Этот уровень позволяет публиковать до 2 полнофункциональных приложений без настройки проекта Google Cloud или учетной записи для выставления счетов. Подробности см. в разделе «Развертывание из Google AI Studio» , а дополнительную информацию см. в документации по уровню Google Cloud Starter Tier .
Чтобы получить доступ к более высоким лимитам трафика, использовать расширенные модели и гарантировать, что ваши запросы и ответы не будут использоваться для улучшения продуктов Google * , вы можете связать платежный аккаунт и предоплату , чтобы перейти на платные тарифы. Затем вы будете переходить на более высокие тарифы в зависимости от суммарных расходов и возраста аккаунта.
Уровни тарифов, лимиты трафика и ограничения на сумму платежа определяются на уровне платежного аккаунта .
* Конфиденциальность данных корпоративного уровня: Дополнительную информацию об использовании данных в платных услугах см. в Условиях предоставления услуг .
Настройте оплату, чтобы получить доступ к платному тарифу.
Вы можете создать проект и настроить оплату или импортировать существующий проект, чтобы перейти на платный уровень в Google AI Studio . Переход с бесплатного уровня на платный означает привязку платежного аккаунта и предоплату , чтобы добавить на свой счет минимум 5 долларов США (или эквивалент в других валютах).
- Перейдите на страницу ключей API AI Studio, страницу проектов или в любое другое место, где вы видите кнопку «Настроить оплату» в AI Studio.
- Новым пользователям по умолчанию будет создан проект и API-ключ .
- Если вам нужен новый ключ, нажмите «Создать ключ API» и следуйте инструкциям в диалоговом окне, чтобы добавить пару «ключ-проект» в таблицу.
- Найдите проект бесплатного уровня, который вы хотите перевести на платный уровень, и нажмите «Настроить выставление счетов» в столбце «Уровень выставления счетов» .
- Если вы никогда раньше не создавали платежный аккаунт Google:
- Вам будет предложено выбрать свою страну, чтобы согласиться с Условиями предоставления услуг.
- Затем заполните или подтвердите свои контактные данные и способ оплаты, чтобы продолжить.
- Если вы ранее настраивали платежные аккаунты Google:
- Вам будет предложено выбрать один из существующих платежных аккаунтов.
- Если вы не хотите использовать существующие учетные записи, нажмите «Добавить новую платежную учетную запись» и заполните или подтвердите свои контактные данные и способ оплаты, чтобы продолжить.
- Далее вы окажетесь в одной из следующих ситуаций:
- Для завершения настройки оплаты (то есть ваш аккаунт будет автоматически привязан к тарифному плану «Предоплата ») вам будет предложено внести предоплату в размере не менее 5 долларов.
- Вам предоставляется выбор между предоплатным и постоплатным тарифными планами для вашего аккаунта.
- В течение переходного периода, до момента внедрения новой системы предоплаты для всех пользователей (начиная с 23 марта 2026 года), абоненту будет назначен тарифный план с постоплатой .
- После внесения предоплаты или выбора постоплатного способа оплаты настройка вашей учетной записи завершена.
Перейдите на следующий платный тарифный план
Если вы уже являетесь абонентом платного тарифа и соответствуете критериям для смены тарифа, вас автоматически переведут на следующий тариф (с учетом времени обработки ).
Проверьте статус выставления счетов.
После привязки платежного аккаунта к вашему проекту вы можете отслеживать его статус на странице выставления счетов AI Studio . В отличие от бесплатного уровня, статус платного уровня является динамическим; хотя ваш уровень использования определяется историей вашего аккаунта, API Gemini будет обрабатывать запросы только при наличии положительного баланса предоплаты .
На странице «Проекты» в столбце «Уровень оплаты» вы увидите уровень оплаты и тарифный план вашего проекта. Любые действия, которые могут потребоваться для отображения статуса оплаты проекта, в столбцах «Уровень оплаты» или «Статус» :
- Если к проекту не привязан платежный аккаунт, выберите опцию " Настроить выставление счетов ".
- Если к проекту привязан платежный аккаунт, но требуется использовать предоплатный тарифный план, необходимо настроить функцию " Настроить предоплату ".
- " Бронирование не производится ", если для покупки брони требуется учетная запись плательщика, но учетная запись для предоплаты не настроена или доступный баланс брони исчерпан.
Нажмите на любое из сообщений, чтобы выполнить необходимые действия.
Мониторинг использования
Вы можете отслеживать использование API Gemini в Google AI Studio в разделе «Панель управления» > «Использование» .
Тарифные планы
Тарифные планы для Gemini API и AI Studio делятся на две категории, определяющие способ оплаты: предоплата и постоплата. Вы можете проверить назначенный вам тарифный план и управлять способами оплаты на странице «Оплата» AI Studio .
Предоплата
В тарифном плане «Предоплата» вы приобретаете кредиты для пополнения своего предоплаченного баланса до начала использования API Gemini, а стоимость использования API списывается с вашего предоплаченного баланса практически в режиме реального времени . Вы можете внести предоплату, пополнив свой счет кредитами или настроив автоматическое пополнение . После покупки кредитов неиспользованные кредиты истекают через 12 месяцев и не подлежат возврату , за исключением случаев перехода на постоплатный тариф .
Когда баланс предоплаченных средств на вашем платежном аккаунте достигнет 0 долларов, все ключи API во всех проектах, связанных с этим аккаунтом, одновременно перестанут работать. Запросы будут завершаться ошибкой HTTP 402 Payment Required, пока вы не пополните баланс. Предоплаченные средства используются только для оплаты использования API Gemini; вы не можете использовать их для оплаты других сервисов Google Cloud.
Новым пользователям по умолчанию предлагается тарифный план «Предоплата». Проектам, созданным до введения тарифных планов «Предоплата» и «Постоплата», может потребоваться обновить платежные данные проекта, прежде чем продолжить использование API Gemini.
Обратите внимание, что предоплата недоступна для счетов с выставлением счетов (или офлайн-счетов) .
Добавить предоплату к существующему аккаунту постоплаты
Если в вашей существующей учетной записи Cloud Billing используется тарифный план с постоплатой , вы можете добавить возможность предоплаты для предварительной покупки кредитов. Эти предоплаченные кредиты позволят вам использовать API Gemini без создания новой учетной записи Cloud Billing.
В процессе настройки добавления предоплаты к существующему аккаунту вам будет показан обязательный экран подтверждения, поясняющий, что выбранный вами аккаунт Cloud Billing будет изменен.
Система должна изменить состояние вашей учетной записи до того, как вы отправите предоплату. Поэтому отмена процесса после подтверждения изменения, но до завершения настройки предоплаты, может привести к временным перебоям в работе сервисов для проектов, уже связанных с этой учетной записью Cloud Billing. Убедитесь, что вы готовы завершить процесс предоплаты, прежде чем подтверждать переход. Если у вас возникнут проблемы, см. раздел «Перебои в работе сервисов после отмены настройки предоплаты» .
Если вы соответствуете условиям и вручную переключаетесь с предоплатного цикла на постоплатный , любой оставшийся баланс предоплаты автоматически возвращается на первоначальный способ оплаты, использованный для предоплаты. Однако, если вы закрываете свою учетную запись Cloud Billing по какой-либо другой причине, любые оставшиеся средства предоплаты аннулируются и не возвращаются.
Купить кредиты
Вы можете вручную приобрести кредиты заранее, до использования API Gemini, чтобы зачислить их на баланс своего предоплаченного счета.
Для покупки кредитов перейдите на страницу оплаты AI Studio и выберите «Купить кредиты» . Минимальная сумма покупки — 5 долларов. Максимальная сумма, которую вы можете оплатить авансом, составляет 5000 долларов.
Автоматическая перезагрузка
Автоматическое пополнение — это дополнительная функция, которая автоматически пополняет баланс вашего предоплаченного счета, когда он становится низким. Это полезно для предотвращения перебоев в обслуживании.
Вы можете настроить автоматическое пополнение счета и отслеживать его статус на странице оплаты AI Studio в разделе « Доступные средства ». Нажмите «Настроить автоматическое пополнение» или «Управление автоматическим пополнением» , чтобы указать способ оплаты, сумму пополнения и минимальный баланс, при котором происходит пополнение.
Ежемесячный лимит автоматического списания средств
Для пользователей предоплаченных тарифов доступен ежемесячный лимит автоматического списания средств, который помогает предотвратить непредвиденные расходы, связанные с частыми автоматическими пополнениями счета. Используйте эту функцию, чтобы установить максимальный лимит для автоматических пополнений счета в течение одного расчетного периода. Как только общая сумма автоматических пополнений в расчетном периоде достигнет этого лимита, система отключит автоматическое пополнение до начала следующего месяца. Разовые платежи, инициированные вами вручную, не учитываются в этом лимите.
Чтобы установить ежемесячный лимит автоматического списания средств при включенной функции автоматического пополнения:
- Перейдите на страницу оплаты в AI Studio .
- Нажмите «Управление автоперезагрузкой» .
- Разверните раздел «Ежемесячный лимит» и введите максимальный ежемесячный лимит для автоматического пополнения счета.
- Нажмите « Сохранить ».
Постоплата
В тарифном плане Postpay на ваш счет Cloud Billing начисляются расходы, и с вас автоматически списывается сумма в конце месяца или когда ваши расходы достигают автоматически установленного лимита расходов в зависимости от вашего уровня учетной записи. Платеж списывается с платежного метода, привязанного к вашей учетной записи Postpay, которым вы можете управлять на странице выставления счетов AI Studio . На странице выставления счетов вы сможете просмотреть свой баланс, сроки оплаты и прошлые платежи, а также совершать платежи и управлять платежными методами.
При настройке выставления счетов для нового проекта, если вы имеете право на постоплатную оплату, в диалоговом окне настройки выставления счетов у вас будет возможность выбрать между предоплатой и постоплатной оплатой.
После переключения учетной записи Cloud Billing на тарифный план Postpay все проекты, связанные с этой учетной записью, также переключаются на тариф Postpay. Вы можете перевести подходящую учетную запись на предоплату, следуя инструкциям в разделе «Переход на предоплату» . Вы также можете перевести проект в учетную запись с другим тарифным планом, чтобы изменить цикл выставления счетов для этого проекта; см. документацию Cloud по управлению выставлением счетов для проектов .
Более подробную информацию о цикле тарификации для абонентов с постоплатной системой можно найти в руководстве по облачной биллинговой системе .
Переход на предоплату
Google AI Studio переводит учетные записи разработчиков с постоплатной системы оплаты на предоплатную для использования API Gemini. Это изменение касается только API Gemini; другие сервисы Google Cloud, связанные с вашей учетной записью, остаются на постоплатной системе.
Чтобы избежать перебоев в обслуживании, переключитесь на предоплату и пополните баланс до даты перехода, указанной в уведомлении о смене тарифа. Для пользователей, использующих только бесплатный тариф, никаких действий предпринимать не нужно.
Чтобы перевести существующий аккаунт Postpay на предоплату:
- Перейдите на страницу оплаты в AI Studio .
- Выберите пункт «Переключиться на предоплату» для своего платежного аккаунта.
- Для пополнения начального баланса приобретите кредиты (минимум 5 долларов).
Чтобы предотвратить перебои в обслуживании после переключения, настройте автоматическое пополнение баланса, когда он станет низким.
Ограничения на расходы
API Gemini поддерживает ежемесячные лимиты расходов как на уровне учетной записи, так и на уровне проекта. Эти ограничения призваны защитить вашу учетную запись от непредвиденных перерасходов, а экосистему — обеспечить доступность сервиса.
Обратите внимание, что ограничения на расходы недоступны для учетных записей с выставленными счетами (или офлайн-аккаунтов) .
Ограничения на расходы по проекту
В AI Studio можно установить собственные лимиты расходов на уровне проекта . Это полезно, если у вас несколько проектов в рамках одного платежного аккаунта, и вы хотите убедиться, что каждый из них имеет доступ к достаточной сумме лимита расходов.
В AI Studio пользователи с ролями редактора, владельца или администратора проекта могут устанавливать лимиты расходов по каждому проекту на странице «Расходы» в разделе «Ежемесячный лимит расходов» > «Изменить лимит расходов» .
Подробную информацию о необходимых разрешениях Google Cloud IAM для просмотра или редактирования лимитов расходов и платежной информации в AI Studio см. в руководстве по устранению неполадок AI Studio .
Если вы перенесете проект на другой платежный аккаунт , установленный вами лимит расходов для этого проекта сохранится, но накопленные расходы будут обнулены до 0 долларов США в новом расчетном цикле.
Длительные задачи, такие как завершение пакетных операций и сеансы агентов, могут привести к превышению лимита расходов по проекту.
В AI Studio обработка платежных данных может занимать до 10 минут, что может привести к задержке. Если обработка платежных данных не завершится до начисления дополнительных платежей, вы можете столкнуться с превышением лимита проекта.
Ограничения расходов по уровням платежных аккаунтов
Для каждого уровня установлен максимальный ежемесячный лимит расходов:
| Уровень использования | Ограничение расходов |
|---|---|
| Бесплатно | Н/Д |
| Уровень 1 | 250 долларов |
| Уровень 2 | 2000 долларов |
| Уровень 3 | 20 000 - 100 000 долларов США |
Для использования API Gemini на уровне платежного аккаунта устанавливаются ежемесячные лимиты. Хотя по умолчанию заданы ограничения, вы можете запросить их увеличение для более интенсивного использования. Общая сумма расходов суммируется по всем связанным проектам, для которых включена услуга API Gemini. После того, как совокупная сумма расходов по аккаунту достигнет лимита, предоставление услуги для всех проектов, связанных с этим платежным аккаунтом, приостанавливается до начала следующего расчетного цикла (1-го числа каждого месяца).
Оцените расходы по вашему платежному счету.
Чтобы проанализировать ваши ежемесячные расходы за прошлый период и определить, повлияют ли новые ограничения на расходы в зависимости от уровня учетной записи на ваши текущие проекты, выполните следующие шаги:
- В консоли Google Cloud перейдите на страницу «Отчеты» вашей учетной записи Cloud Billing .
- Если у вас несколько учетных записей для выставления счетов, в появившемся окне выберите ту учетную запись Cloud Billing, для которой вы хотите просмотреть отчеты о затратах.
- В отчете по умолчанию используется группировка по услугам в столбце «Текущий месяц». В столбце «Услуги » вы увидите Gemini API , а в столбце «Стоимость использования» — общие расходы.
- Чтобы увидеть подробную информацию о затратах, связанных только с использованием API Gemini, установите фильтр « Группировать по SKU» , а фильтр «Сервисы» — на «API Gemini» .
- Настройте фильтр « Диапазон времени по дате использования» на нужный вам диапазон, чтобы оценить ваши исторические расходы за определенный период.
Время обработки
Информация о выставлении счетов и обновления данных не всегда поступают в режиме реального времени.
- Использование кредита : Расходы на использование обычно списываются с вашего баланса в течение нескольких минут.
- Подтверждение платежа : Хотя большинство платежей картой осуществляются мгновенно, обработка некоторых форм оплаты (например, банковских переводов) может занять несколько дней. Возобновление или обновление услуг происходит только после официального подтверждения покупки кредитов.
- Повышение уровня подписки : После успешной оплаты или при выполнении условий повышения уровня подписки , обновление уровня обычно отображается в течение 10 минут.
- Графики разбивки общей стоимости : Обновление графиков, отображающих разбивку общей стоимости на странице «Выставление счетов» и странице « Расходы», может занять до 24 часов.
Ознакомьтесь с руководствами по облачной биллинговой системе, посвященными задержкам цикла выставления счетов и транзакций , чтобы узнать больше о возможных задержках в выставлении счетов.
Возврат средств
Возврат средств по предоплаченным счетам не предусмотрен, за исключением случаев смены типа счета.
Когда предоплаченный счет переключается на постоплатный тип (после выполнения необходимых условий и ручного обновления счета), предоплаченный счет закрывается, а оставшиеся предоплаченные средства автоматически возвращаются на указанный в вашем профиле способ оплаты.
Если вы закроете свой предоплаченный счет по какой-либо причине, кроме перехода на постоплатный тариф, все оставшиеся предоплаченные средства будут аннулированы.
Приобретенные кредиты действительны в течение 1 года. По истечении этого срока кредиты аннулируются и не подлежат восстановлению.
Для абонентов с постоплатной системой оплаты действуют правила возврата средств Google Cloud .
учетные записи облачной оплаты
API Gemini использует учетные записи Cloud Billing для выставления счетов, которые можно настроить непосредственно в AI Studio . AI Studio позволяет отслеживать расходы, анализировать затраты и совершать платежи.
Уровни тарифов, лимиты трафика и ограничения на сумму платежа определяются на уровне платежного аккаунта.
Проекты и ключи API
Все проекты, связанные с учетной записью Cloud Billing, наследуют уровень использования этой учетной записи, а также связанные с ним ограничения скорости и лимиты учетной записи. Если вы переводите проект с одной учетной записи на другую, его уровень, а следовательно, и ограничения скорости и лимиты учетной записи, переключатся на уровень новой учетной записи.
Совокупные расходы (на все продукты Google Cloud) и возраст учетной записи по всем проектам, привязанным к платежному аккаунту, учитываются при определении уровня этого аккаунта.
Вы можете отвязать проект от его платежного аккаунта, чтобы вернуться к бесплатному тарифу.
Ключи API — это учетные данные, генерируемые внутри проекта. У них нет независимых настроек выставления счетов; они наследуют лимиты уровня и статус выставления счетов проекта. Совокупное использование всех ключей в рамках проекта учитывается в лимите расходов этого проекта и в общей сумме расходов платежного аккаунта.
Часто задаваемые вопросы
В следующих разделах приведены ответы на часто задаваемые вопросы.
За что мне выставят счет?
Ценообразование Gemini API основано на следующих факторах:
- Количество введенных токенов
- Вывод количества токенов
- Количество кэшированных токенов
- Срок хранения кэшированного токена
Информацию о ценах см. на странице «Цены» .
Где я могу посмотреть свою квоту?
В AI Studio вы можете просмотреть свою квоту и системные лимиты.
Как мне перейти на более высокий лимит трафика или запросить дополнительную квоту?
Вам автоматически будет предоставлена дополнительная квота, когда ваш аккаунт достигнет требований следующего уровня .
Могу ли я бесплатно использовать API Gemini в странах ЕЭЗ (включая ЕС), Великобритании и Швейцарии?
Да, бесплатный и платный тарифы доступны во многих регионах .
Если я настрою оплату через API Gemini, будет ли с меня взиматься плата за использование Google AI Studio?
Использование AI Studio остается бесплатным, если пользователи не привяжут платный API-ключ для доступа к платным функциям. После привязки платного API-ключа в рамках платного проекта в AI Studio с вас будет взиматься плата за использование AI Studio с использованием этого ключа. Вы можете переключаться между проектами платного и бесплатного уровней по мере необходимости, используя соответствующие API-ключи, привязанные к каждому типу.
Если у меня бесплатный тариф, как мне перейти на более высокий тариф?
Для доступа к более высоким уровням необходимо настроить выставление счетов для вашего проекта. Нажмите «Настроить выставление счетов» в Google AI Studio. Это поможет вам выбрать или создать учетную запись Cloud Billing. Если вам требуется предоплаченная модель оплаты, процесс настройки выставления счетов поможет вам создать предоплаченную учетную запись, связанную с вашей учетной записью Cloud Billing.
Могу ли я использовать 1 миллион токенов на бесплатном уровне?
Бесплатный тарифный план для Gemini API различается в зависимости от выбранной модели. На данный момент вы можете попробовать контекстное окно с 1 миллионом токенов следующими способами:
- В Google AI Studio
- Бесплатные тарифные планы для некоторых моделей.
- С тарифными планами с постоплатой
Могу ли я вернуться к бесплатному тарифу после перехода на более высокий (платный) уровень?
Чтобы перейти на бесплатный уровень, вы можете отключить оплату для каждого из проектов, на который хотите перейти.
Как мне рассчитать количество используемых токенов?
Для подсчета количества токенов используйте метод GenerativeModel.count_tokens . Более подробную информацию о токенах см. в руководстве по токенам .
Если я зарегистрирую свою первую учетную запись Cloud Billing через AI Studio, получу ли я бесплатную пробную версию Google Cloud?
При регистрации вашей первой учетной записи Cloud Billing начинается бесплатный пробный период Google Cloud , и вам предоставляется приветственный бонус в размере 300 долларов США. Однако эти средства нельзя использовать для оплаты использования AI Studio. Вы можете использовать приветственный бонус для оплаты других соответствующих услуг в Google Cloud (обратите внимание, что после того, как эти средства будут израсходованы или истекут (в течение 90 дней), любые дополнительные расходы на использование будут автоматически списываться с вашего установленного способа оплаты).
Могу ли я использовать свой приветственный бонус Google Cloud для работы с API Gemini?
Нет, приветственный бонус Google Cloud или бонус за бесплатную пробную версию нельзя использовать для доступа к Gemini API или AI Studio.
Если вам были начислены приветственные бонусы Google Cloud до того, как они стали недоступны, вы можете потратить оставшиеся бонусы на Gemini API и AI Studio до истечения срока их действия (через 90 дней).
Распространяется ли бесплатная пробная версия Google Cloud на использование API Gemini?
Нет, начиная с марта 2026 года, расходы на использование API Gemini специально исключены из программы бесплатного пробного периода Google Cloud стоимостью 300 долларов .
Как работают кредиты Google Cloud при использовании предоплаты?
Пользователям предоплаченных тарифов сначала необходимо приобрести предоплаченные кредиты, прежде чем можно будет использовать соответствующие кредиты Google Cloud для работы с API Gemini. После того, как у вас появится активный баланс предоплаченных кредитов, кредиты Google Cloud, подходящие для использования API Gemini, будут расходоваться раньше, чем ваш баланс предоплаченных кредитов. Когда баланс предоплаченных кредитов в вашем платежном аккаунте достигнет 0 долларов, использование кредитов Google Cloud прекратится.
Не все кредиты Google Cloud, такие как приветственный кредит Google Cloud , могут быть использованы для оплаты Gemini API и AI Studio.
Как осуществляется выставление счетов?
Оплата за использование API Gemini осуществляется через облачную систему выставления счетов . Подробнее о настройке облачной системы выставления счетов можно узнать в документации по облачной системе .
Взимается ли с меня плата за неудачные запросы?
Если ваш запрос завершится с ошибкой 400 или 500, с вас не будет взиматься плата за использованные токены. Однако запрос все равно будет учитываться в рамках вашей квоты.
Плата за использование GetTokens взимается?
Запросы к API GetTokens не оплачиваются и не учитываются в квоте на вывод данных.
Как обрабатываются мои данные в Google AI Studio, если у меня платный API-аккаунт?
Подробную информацию об обработке данных при включенной облачной оплате см. в Условиях предоставления услуг (см. раздел «Как Google использует ваши данные» в разделе «Платные услуги»). Обратите внимание, что ваши запросы в Google AI Studio обрабатываются в соответствии с теми же условиями «Платных услуг», если хотя бы в одном проекте API включена оплата. Это можно проверить на странице ключа API Gemini, если вы видите какие-либо проекты, помеченные как «Платные» в разделе «План».
Что такое предоплаченная система оплаты и кто обязан ее использовать?
Предоплата позволяет пользователям API Gemini в AI Studio предварительно приобретать кредиты. Начиная с 23 марта 2026 года, новым пользователям AI Studio может потребоваться подключение к предоплатному тарифному плану. В процессе настройки оплаты в AI Studio пользовательский интерфейс проведет вас через весь процесс настройки и укажет, требуется ли предоплата.
Как приобрести предоплаченные кредиты, и есть ли минимальная или максимальная сумма?
Вы можете приобрести кредиты на странице оплаты AI Studio. В процессе покупки интерфейс отобразит минимальную сумму предварительной покупки, необходимую для вашего региона и уровня подписки, а также максимальную сумму, которая может находиться на вашем счету одновременно.
Могу ли я настроить свой предоплаченный аккаунт так, чтобы он автоматически покупал дополнительные кредиты по мере необходимости?
Да, мы рекомендуем настроить автоматическое пополнение баланса в параметрах выставления счетов AI Studio. Для этого необходимо указать «триггерный» баланс (например, «когда мой баланс опустится ниже 30 долларов») и «сумму пополнения» (например, «добавить 100 долларов»).
Можно ли ограничить сумму автоматического пополнения баланса?
Да, пользователи предоплаченных тарифов могут установить ежемесячный лимит автоматического пополнения счета в виджете «Автоматическое пополнение» . Когда общая сумма автоматических пополнений за расчетный период достигнет этого лимита, система отключит автоматическое пополнение до следующего месяца. Покупки кредита вручную не учитываются в этом лимите.
Могу ли я получить возврат средств за неиспользованные кредиты?
Все предоплаченные API-кредиты истекают через 1 год и не подлежат возврату. Ознакомьтесь с политикой возврата средств для предоплаченных аккаунтов .
Истекает ли срок действия моих предоплаченных средств?
Да, срок действия бонусных баллов истекает через 12 месяцев после даты покупки.
Что произойдет, когда баланс моего предоплаченного кредита достигнет 0 долларов?
Все API-сервисы Gemini во всех проектах, оплаченных с помощью этого предоплаченного аккаунта Cloud Billing, будут немедленно отключены, чтобы предотвратить дополнительные расходы. Ваши проекты не будут автоматически переведены на бесплатный уровень.
Для восстановления доступа к сервису на вашем текущем платном уровне необходимо приобрести дополнительные кредиты . После приобретения кредитов вы сможете использовать API Gemini. Обратите внимание, что может возникнуть задержка, пока наши системы обновляют информацию о вашем балансе кредитов.
При желании, чтобы перейти на бесплатный уровень, вы можете отключить оплату для проектов, на которые хотите перейти.
Почему использование моего предоплаченного счета прекратилось, хотя баланс моего предоплаченного счета превышает 0 долларов?
Возможно, вы достигли лимита использования для вашего текущего уровня. Лимиты использования будут автоматически увеличиваться по мере перехода на более высокие уровни. На использование Gemini API AI Studio также может влиять состояние вашей учетной записи Cloud Billing .
Почему баланс моего предоплаченного счета отрицательный?
Из-за сложности наших систем выставления счетов и обработки платежей возможны задержки в отключении использования после того, как вы израсходуете все свои кредиты. Избыточное использование может отображаться как отрицательный баланс кредитов в вашей панели управления AI Studio. В этом случае ваша услуга будет приостановлена, и отрицательный баланс будет вычтен из вашей следующей покупки кредитов.
Чтобы избежать приостановки работы сервиса Gemini API, мы рекомендуем настроить автоматическое пополнение баланса , чтобы автоматически приобретать дополнительные кредиты, когда ваш баланс падает ниже указанного вами значения.
Могу ли я использовать свои предоплаченные средства для других сервисов Google Cloud, например, для платформы Gemini Enterprise Agent Platform?
Нет, предоплаченные средства строго привязаны к использованию API Gemini. Любые другие сервисы Google Cloud, которые вы используете (вычислительные ресурсы, хранилище, платформа Gemini Enterprise Agent), оплачиваются в соответствии со стандартным циклом тарификации облачных сервисов .
Могу ли я перейти с предоплаты на постоплату?
Нет, переход с предоплаченного тарифного плана на постоплатный не поддерживается.
Могу ли я перейти с постоплатного на предоплатный тариф?
Да, вы можете перевести существующий аккаунт Postpay на страницу выставления счетов AI Studio . Инструкции см. в разделе «Переход на предоплату» .
Что произойдет с моими предоплаченными средствами, если я перейду на постоплатный тариф?
При переходе на постоплатный тариф система Cloud Billing закрывает ваш счет для предоплатных платежей, отключает автоматическое пополнение и автоматически возвращает вам все неиспользованные предоплатные средства (с учетом стандартного времени обработки возврата).
Где я могу посмотреть свой текущий баланс предоплаченного счета и историю транзакций?
Все операции по управлению балансом и истории транзакций через API Gemini должны выполняться непосредственно во вкладке «Выставление счетов» в Google AI Studio.
Почему я вижу сообщение "Тип платежного аккаунта неактивен или не поддерживается"?
Платежные операции на странице выставления счетов AI Studio могут быть заблокированы и заменены сообщением «Тип платежного аккаунта неактивен или не поддерживается», если выбранный вами тип платежного аккаунта или статус платежного аккаунта не соответствуют платному тарифу AI Studio.
Проверьте консоль Cloud, чтобы узнать статус вашей учетной записи для оплаты. К неподходящим типам может относиться учетная запись с бесплатной пробной версией ; в этом случае вы можете активировать оплату в AI Studio, чтобы получить право на участие. К неактивным состояниям может относиться учетная запись с закрытой версией ; в этом случае вы можете повторно открыть учетную запись .
Будут ли отображаться расходы на использование API Gemini в консоли Google Cloud?
Да, стоимость API Gemini, а также стоимость любых других сервисов Google Cloud, оплачиваемых через ваш аккаунт Cloud Billing, можно посмотреть на страницах управления расходами в консоли Cloud Billing . Обратите внимание, что управлять балансом предоплаченного кредита можно только в AI Studio.
Почему данные об использовании Gemini API не отображаются в консоли облачного выставления счетов, хотя я вижу их в системе выставления счетов AI Studio вместе с объемом использованных кредитов?
Google Cloud и AI Studio передают данные об использовании в Cloud Billing с различной периодичностью. Из-за сложности наших систем выставления счетов и обработки платежей может наблюдаться задержка между использованием сервисов и появлением информации об использовании и затратах в Cloud Billing. Как правило, подробная информация о затратах становится доступна в течение дня, но иногда это может занять более 24 часов. Подробнее о задержках в выставлении счетов см. в документации Cloud Billing .
Что произойдет, если я пропущу платеж, если буду использовать другие сервисы Google Cloud, стоимость которых рассчитывается по постоплатному тарифу?
Пропуск платежа за другие сервисы Google Cloud может приостановить ваш доступ к Gemini API в AI Studio, независимо от количества доступных вам предоплаченных кредитов . Использование AI Studio осуществляется через учетную запись Google Cloud Billing, которая может использовать как предоплаченные счета для AI Studio, так и постоплатные счета для других облачных сервисов. Проблемы с балансом постоплатного счета приводят к остановке всех сервисов, связанных с этой учетной записью. Использование Gemini API будет приостановлено, если в вашей учетной записи Cloud Billing будут обнаружены такие проблемы, как:
- Просроченный или неоплаченный баланс
- Отклоненный платеж
- Недействительный или просроченный способ оплаты
Для восстановления работы сервиса необходимо устранить проблему с учетной записью Postpay в консоли Google Cloud Billing. После устранения проблемы вы снова получите доступ к своим кредитам и услугам Prepaid Gemini API.
Почему мои проекты были сорваны после отмены предоплаты?
Проблема: Вы запустили процесс добавления возможностей предоплаты к существующему счету для оплаты постоплатой, но закрыли окно или отменили процесс до завершения настройки предоплаты. Другие проекты, связанные с этим счетом, потеряли доступ к API Gemini.
Причина: В процессе перехода инфраструктура для поддержки предоплаты создается в вашем платежном аккаунте сразу после подтверждения. Если вы не выполните шаги предоплаты, конфигурация останется в состоянии «недоступно для оплаты». Поскольку это состояние применяется на уровне платежного аккаунта, оно ограничивает доступ для всех проектов, связанных с этим аккаунтом, которые используют услуги предоплаты.
Решение: Поскольку состояние учетной записи уже изменилось, автоматического способа вернуть его в исходное состояние при прерывании процесса оплаты нет. Для восстановления работы связанных проектов выполните одно из следующих действий:
- Завершите настройку: вернитесь в Google AI Studio, перезапустите процесс настройки оплаты и завершите процесс предоплаты. После обработки платежа тарифный план «Предоплата» станет активным, и услуга будет восстановлена.
- Обратитесь в службу поддержки: Если вы не хотите использовать предоплаченный тарифный план и хотите вернуть свой платежный аккаунт к постоплатному, обратитесь в службу поддержки Cloud Billing, чтобы вручную восстановить состояние своей учетной записи.
Где я могу получить помощь с оплатой счетов?
Чтобы получить помощь по вопросам выставления счетов, см. раздел «Получить поддержку по вопросам выставления счетов в облаке» .
,В этом руководстве представлен обзор различных вариантов оплаты через API Gemini, объясняется, как включить оплату и отслеживать использование, а также приводятся ответы на часто задаваемые вопросы (FAQ) по вопросам оплаты.
О выставлении счетов и тарифных планах
Оплата за использование API Gemini производится на основе вашей истории платежей.
| Уровень использования | Квалификация | Ограничение по тарифному плану |
|---|---|---|
| Бесплатно | Активный проект или бесплатная пробная версия | Н/Д |
| Уровень 1 | Настройте и привяжите активный платежный аккаунт. | 250 долларов |
| Уровень 2 | Оплата 100 долларов США + 3 дня с момента первой успешной оплаты. | 2000 долларов |
| Уровень 3 | Выплачено 1000 долларов США + 30 дней с момента первой успешной оплаты. | 20 000 - 100 000+ долларов США |
Новые учетные записи начинают работу на бесплатном уровне, который предоставляет доступ к определенным моделям в Gemini API и AI Studio в пределах лимитов бесплатного уровня для этих моделей.
Для развертывания приложений непосредственно из режима сборки можно использовать уровень Google Cloud Starter Tier . Этот уровень позволяет публиковать до 2 полнофункциональных приложений без настройки проекта Google Cloud или учетной записи для выставления счетов. Подробности см. в разделе «Развертывание из Google AI Studio» , а дополнительную информацию см. в документации по уровню Google Cloud Starter Tier .
Чтобы получить доступ к более высоким лимитам трафика, использовать расширенные модели и гарантировать, что ваши запросы и ответы не будут использоваться для улучшения продуктов Google * , вы можете связать платежный аккаунт и предоплату , чтобы перейти на платные тарифы. Затем вы будете переходить на более высокие тарифы в зависимости от суммарных расходов и возраста аккаунта.
Уровни тарифов, лимиты трафика и ограничения на сумму платежа определяются на уровне платежного аккаунта .
* Конфиденциальность данных корпоративного уровня: Дополнительную информацию об использовании данных в платных услугах см. в Условиях предоставления услуг .
Настройте оплату, чтобы получить доступ к платному тарифу.
Вы можете создать проект и настроить оплату или импортировать существующий проект, чтобы перейти на платный уровень в Google AI Studio . Переход с бесплатного уровня на платный означает привязку платежного аккаунта и предоплату , чтобы добавить на свой счет минимум 5 долларов США (или эквивалент в других валютах).
- Перейдите на страницу ключей API AI Studio, страницу проектов или в любое другое место, где вы видите кнопку «Настроить оплату» в AI Studio.
- Новым пользователям по умолчанию будет создан проект и API-ключ .
- Если вам нужен новый ключ, нажмите «Создать ключ API» и следуйте инструкциям в диалоговом окне, чтобы добавить пару «ключ-проект» в таблицу.
- Найдите проект бесплатного уровня, который вы хотите перевести на платный уровень, и нажмите «Настроить выставление счетов» в столбце «Уровень выставления счетов» .
- Если вы никогда раньше не создавали платежный аккаунт Google:
- Вам будет предложено выбрать свою страну, чтобы согласиться с Условиями предоставления услуг.
- Затем заполните или подтвердите свои контактные данные и способ оплаты, чтобы продолжить.
- Если вы ранее настраивали платежные аккаунты Google:
- Вам будет предложено выбрать один из существующих платежных аккаунтов.
- Если вы не хотите использовать существующие учетные записи, нажмите «Добавить новую платежную учетную запись» и заполните или подтвердите свои контактные данные и способ оплаты, чтобы продолжить.
- Далее вы окажетесь в одной из следующих ситуаций:
- Для завершения настройки оплаты (то есть ваш аккаунт будет автоматически привязан к тарифному плану «Предоплата ») вам будет предложено внести предоплату в размере не менее 5 долларов.
- Вам предоставляется выбор между предоплатным и постоплатным тарифными планами для вашего аккаунта.
- В течение переходного периода, до момента внедрения новой системы предоплаты для всех пользователей (начиная с 23 марта 2026 года), абоненту будет назначен тарифный план с постоплатой .
- После внесения предоплаты или выбора постоплатного способа оплаты настройка вашей учетной записи завершена.
Перейдите на следующий платный тарифный план
Если вы уже являетесь абонентом платного тарифа и соответствуете критериям для смены тарифа, вас автоматически переведут на следующий тариф (с учетом времени обработки ).
Проверьте статус выставления счетов.
После привязки платежного аккаунта к вашему проекту вы можете отслеживать его статус на странице выставления счетов AI Studio . В отличие от бесплатного уровня, статус платного уровня является динамическим; хотя ваш уровень использования определяется историей вашего аккаунта, API Gemini будет обрабатывать запросы только при наличии положительного баланса предоплаты .
On the Projects page, you'll be able to see your project's tier and billing plan under the Billing Tier column. Any billing status actions you may need to take for a project display in the Billing Tier or Status columns:
- " Set up billing " if the project doesn't have a billing account attached.
- " Set up Prepay " if the project does have a billing account attached, but is required to use a Prepay billing plan that needs to be set up.
- " No credits " if the billing account is required to purchase credits but the Prepay payments account isn't set up or the available credit balance is depleted.
Click any of the messages to proceed with the necessary actions.
Мониторинг использования
You can monitor your usage of the Gemini API in Google AI Studio in Dashboard > Usage .
Тарифные планы
Billing plans for the Gemini API and AI Studio fall into two categories that determine when you pay for usage: Prepay and Postpay. You can check your assigned billing plan and manage payment methods on the AI Studio Billing page.
Предоплата
In the Prepay billing plan, you purchase credits towards your prepay balance in advance of your Gemini API usage, and your API usage costs are deducted from your Prepay credit balance in near real-time . You can prepay by adding credits into your account, or setting up auto-reload . After credits are purchased, unused credits expire after 12 months and are non-refundable , except after switching to a Postpay account .
When your Prepay credit balance on the billing account hits $0, all API keys in all projects linked to that billing account will stop working simultaneously. Requests then fail with an HTTP 402 Payment Required error until you add credits. Prepay credits apply only to Gemini API usage costs; you can't use them to pay for other Google Cloud services.
Новым пользователям по умолчанию предлагается тарифный план «Предоплата». Проектам, созданным до введения тарифных планов «Предоплата» и «Постоплата», может потребоваться обновить платежные данные проекта, прежде чем продолжить использование API Gemini.
Note that Prepay is not available for Invoiced (or Offline) accounts.
Add Prepay to an existing Postpay account
Если в вашей существующей учетной записи Cloud Billing используется тарифный план с постоплатой , вы можете добавить возможность предоплаты для предварительной покупки кредитов. Эти предоплаченные кредиты позволят вам использовать API Gemini без создания новой учетной записи Cloud Billing.
В процессе настройки добавления предоплаты к существующему аккаунту вам будет показан обязательный экран подтверждения, поясняющий, что выбранный вами аккаунт Cloud Billing будет изменен.
The system must modify your account state before you submit your prepayment. Therefore, canceling the process after confirming the modification but before completing the prepayment setup might result in temporary service disruptions for projects already linked to that Cloud Billing account. Ensure you are ready to complete the prepayment process before confirming the transition. If you encounter issues, see Services disrupted after canceling a Prepay setup .
If you are eligible and manually switch from a Prepay cycle to a Postpay cycle, any remaining prepay credit balance is automatically refunded to the original payment method used for the prepayment. However, if you close your Cloud Billing account for any other reason, any remaining prepay credits are forfeited and aren't refunded.
Купить кредиты
You can manually purchase credits in advance of your Gemini API usage to load them into your Prepay account credit balance.
To purchase credits, go to the AI Studio Billing page and select Buy credits . The minimum purchase is $5. The maximum amount of credits you can prepay for is $5,000.
Автоматическая перезагрузка
Auto-reload is an optional feature that automatically tops up your Prepay credit balance when it's running low. This is useful to prevent service interruptions.
You can set up auto reload and see your auto-reload status in the Available credits card on the AI Studio Billing page. Click Setup auto-reload or Manage auto-reload to set your payment method, reload amount, and the minimum balance that triggers a reload payment.
Monthly auto-charge limit
The monthly auto-charge limit is available to Prepay users and helps prevent unexpected costs from frequent automatic credit reloads. Use this feature to set a maximum limit for automatic credit reloads within a single billing cycle. Once the total amount of automatic reloads in a billing cycle reaches this limit, the system disables auto-reload until the start of the next month. One-time payments you initiate manually don't count against this limit.
To set the monthly auto-charge limit when auto-reload is enabled:
- Go to the AI Studio Billing page.
- Click Manage auto-reload .
- Expand the Monthly Limit section and enter the maximum monthly limit for auto-reloads.
- Нажмите « Сохранить ».
Постоплата
In the Postpay billing plan, your Cloud Billing account accrues costs and you are automatically charged at the end of the month, or when your costs reach an automatically assigned spend cap based on your account tier. The payment is charged to the payment method attached to your Postpay payments account, which you can manage on the AI Studio Billing page. On the Billing page you'll be able to view your balance, due dates, and past payments, as well as make payments and manage payment methods.
When setting up billing for a new project, if you are eligible for Postpay, you will have the option to choose between Prepay and Postpay in the billing setup dialogue.
After you switch a Cloud Billing account to use the Postpay billing plan, all projects linked to that billing account are switched to the Postpay plan. You can move an eligible account to Prepay by following the steps in Migrate to prepay . You can also move a project to a billing account with a different billing plan to change the charging cycle for that project; visit the Cloud documentation on managing billing for projects .
You can learn more about the Postpay charging cycle in the Cloud Billing guide .
Переход на предоплату
Google AI Studio is transitioning developer accounts from Postpay to Prepay billing for Gemini API usage. This change applies only to the Gemini API; other Google Cloud services linked to your billing account remain on Postpay.
Switch to Prepay and add credits before the cutover date in your account notice to avoid service interruptions. Accounts that use only Free Tier features do not need to take action.
To switch an existing Postpay account to Prepay:
- Go to the AI Studio Billing page.
- Select Switch to Prepay for your billing account.
- Purchase credits (minimum $5) to load your starting balance.
To prevent service interruptions after switching, configure auto-reload to top up your credit balance when it runs low.
Ограничения на расходы
The Gemini API supports monthly spend caps at both the billing account tier and project levels. These controls are designed to protect your account from unexpected overages, and the ecosystem to ensure service availability.
Note that spend caps are not available for Invoiced (or Offline) accounts.
Ограничения на расходы по проекту
You can set your own project-level spend caps in AI Studio. This is useful if you have multiple projects under the same billing account and want to ensure each has access to enough of the cumulative spending limit.
Accounts with the project editor, owner, or admin roles can set spend caps per project in AI Studio on the Spend page under Monthly spend cap > Edit spend cap .
For details on the specific Google Cloud IAM permissions required to view or edit spend caps and billing information in AI Studio, see the AI Studio troubleshooting guide .
If you move a project to a different billing account , any spend cap you already set for that project will persist, but any accumulated spend will reset to $0 for the new billing cycle.
Long-running tasks like batch mode completions and agent sessions may incur overages beyond your project spend cap.
Billing data processing times can be delayed in AI Studio, up to around 10 minutes. You may experience overages beyond your project cap if billing data hasn't processed before more charges are accrued.
Ограничения расходов по уровням платежных аккаунтов
Each tier has a maximum monthly spend limit:
| Уровень использования | Ограничение расходов |
|---|---|
| Бесплатно | Н/Д |
| Уровень 1 | 250 долларов |
| Уровень 2 | 2000 долларов |
| Уровень 3 | 20 000 - 100 000 долларов США |
Monthly usage caps are enforced for the Gemini API at the billing account level. While default limits are preset, you can request an increase to accommodate higher usage. Total spend is aggregated across all linked projects that have the Gemini API service enabled. After the cumulative account total reaches the tier limit, service is paused for all projects linked to that billing account until the start of the next billing cycle (the 1st of each month).
Evaluate your billing account spend
To evaluate your historical monthly spending to determine if the new Billing Account tier spend caps will impact your ongoing projects, follow these steps:
- In the Google Cloud console, view your Cloud Billing account Reports page.
- If you have more than one billing account, at the prompt, choose the Cloud Billing account for which you'd like to view cost reports.
- The report defaults to "Group by Service" in the "Current month". You will see Gemini API in the Service column and total spend in the Usage cost column of the table.
- To see granular costs limited to Gemini API usage, set the Group by filter to group by SKU , and the Services filter to Gemini API .
- Adjust the Time range by usage date filter to your desired range to evaluate your historical spend in a period.
Время обработки
Billing signals and updates don't always happen in real time.
- Credit usage : Usage costs are typically drawn down from your balance within minutes.
- Payment confirmation : While most card payments are instant, some forms of payment (like bank transfers) may take several days to clear. Services only resume or upgrade after the purchase of credits is officially confirmed.
- Tier upgrades : After a successful payment, or when you meet the upgrade criteria , tier upgrades usually reflect within 10 minutes.
- Total Cost breakdown graphs : The graphs showing your total cost breakdown on both the Billing page and the Spend page can take up to 24 hours to update.
Read the Cloud Billing guides on charging cycle and transaction latencies to learn more about potential billing delays.
Возврат средств
Refunds aren't allowed for Prepay billing accounts, except when switching account types.
When a Prepay account switches to the Postpay account type (after you meet the criteria and manually upgrade your account), the Prepay account is closed and any remaining prepaid credits are automatically refunded to the payment method on file.
If you close your Prepay account for any reason other than upgrading to Postpay, any remaining prepaid credits are forfeited.
Purchased credits expire after 1 year. After expiration, credits are forfeited and can't be retrieved.
Postpay accounts follow the Google Cloud refund policy .
учетные записи облачной оплаты
The Gemini API uses Cloud Billing accounts for billing services, which you can set up directly in AI Studio . You can use AI Studio to track spending, understand costs, and make payments.
Tiers, rate limits, and billing account caps are all determined at the billing account level.
Проекты и ключи API
All projects linked to a Cloud Billing account inherit the billing account's usage tier and associated rate limits and account caps. If you change a project from one billing account to another, its tier, and subsequently rate limits and account caps, will switch to the tier of the new billing account.
Cumulative spend (towards all Google Cloud products) and account age across all projects tied to a billing account counts towards that billing account's tier qualifications .
You can unlink a project from its billing account to return to the free tier.
API keys are credentials generated inside a project. They have no independent billing settings; they inherit the tier limits and billing status of the project. The cumulative usage from all keys within a project counts toward that project's spend cap and the billing account's total spend.
Часто задаваемые вопросы
The following sections provide answers to frequently asked questions.
What am I billed for?
Gemini API pricing is based on the following:
- Input token count
- Output token count
- Cached token count
- Cached token storage duration
For pricing information, see the Pricing page .
Where can I view my quota?
You can view your quota and system limits in AI Studio .
How do I move to a higher rate limit tier, or request more quota?
You will automatically be granted more quota when your account reaches the next tier requirements .
Can I use the Gemini API for free in EEA (including EU), the UK, and CH?
Yes, we make the free tier and paid tier available in many regions .
If I set up billing with the Gemini API, will I be charged for my Google AI Studio usage?
AI Studio usage remains free of charge unless users link a paid API key for access to paid features. Once you link a paid API key as part of a paid project in AI Studio, you will be charged for AI Studio usage for that key. You can switch between Paid Tier projects and Free Tier projects as needed by using the respective API keys linked to each type.
If I'm on the Free Tier, how do I upgrade to higher tiers?
To access higher tiers, you must set up billing on your project. Click Set up billing in Google AI Studio. This will walk you through selecting or creating a Cloud Billing account. If you are required to be on the prepaid billing model, the Set up billing process will guide you through the process to create your Prepay account that is linked to your Cloud Billing account.
Can I use 1M tokens in the free tier?
The free tier for Gemini API differs based on the model selected. For now, you can try the 1M token context window in the following ways:
- In Google AI Studio
- With free-of-charge plans for select models
- With postpaid plans
Can I revert back to Free Tier after I've upgraded to higher (paid) tiers?
To downgrade to the Free Tier, you can disable billing on each of your projects that you want to downgrade.
How can I calculate the number of tokens I'm using?
Use the GenerativeModel.count_tokens method to count the number of tokens. Refer to the Tokens guide to learn more about tokens.
If I sign up for my first Cloud Billing account through AI Studio, will I still get a Google Cloud Free Trial?
When you sign up for your first ever Cloud Billing account, your Google Cloud Free Trial starts and you are granted a $300 Welcome credit . However, those credits can't be used to pay for AI Studio usage. You can use the Welcome credit to pay for other eligible services within Google Cloud (note that once those credits are consumed or expire (within 90 days), any additional usage costs are automatically billed to your established form of payment).
Can I use my Google Cloud Welcome credit with the Gemini API?
No, the Google Cloud Welcome credit or free trial credit can't be used towards the Gemini API or AI Studio.
If you were granted a Google Cloud welcome credit before they became ineligible, you are allowed to spend your remaining credits on the Gemini API and AI Studio up until the credits expire (after 90 days).
Does the Google Cloud Free Trial apply to Gemini API usage?
No, starting March 2026, Gemini API usage costs are specifically excluded from the $300 Google Cloud Free Trial program.
How do Google Cloud credits work with Prepay?
Prepay users must first purchase Prepaid credits before any eligible Google Cloud credits can be applied to Gemini API usage. Once you have an active Prepay credit balance, Google Cloud credits that are eligible for the Gemini API are consumed before your Prepay credit balance. When your Prepay credit balance on the billing account hits $0, Google Cloud credits will no longer be consumed.
Not all Google Cloud credits, such as the Google Cloud Welcome credit , can be used towards Gemini API and AI Studio.
Как осуществляется выставление счетов?
Billing for the Gemini API is handled by the Cloud billing system. Learn about the in-product Cloud Billing setup in the Cloud Billing documentation .
Am I charged for failed requests?
If your request fails with a 400 or 500 error, you won't be charged for the tokens used. However, the request will still count against your quota.
Is GetTokens billed?
Requests to the GetTokens API are not billed, and they don't count against inference quota.
How is my Google AI Studio data handled if I have a paid API account?
Refer to the Terms of service for details on how data is handled when Cloud billing is enabled (see "How Google Uses Your Data" under "Paid Services"). Note that your Google AI Studio prompts are treated under the same "Paid Services" terms so long as at least 1 API project has billing enabled, which you can validate on the Gemini API key page if you see any projects marked as "Paid" under "Plan".
What is Prepaid billing and who is required to use the prepaid billing model?
Prepaid billing allows users of Gemini API in AI Studio to pre-purchase credits. Starting Mar 23, 2026, new users to AI Studio might be required to be on the Prepaid billing plan. During the AI Studio Set up Billing process, the UI will guide you through the billing set up flow and will indicate if you are required to prepay.
How do I purchase Prepay credits, and is there a minimum amount or maximum?
You can purchase credits on the AI Studio Billing page. During the purchase process, the UI will provide the minimum pre-purchase amount that is required for your region and tier level, as well as a maximum amount that can be in your account at one time.
Can I configure my Prepay account to automatically purchase more credits as needed?
Yes, we recommend that you configure auto-reload in the AI Studio Billing settings. You specify a "trigger" credit balance (eg, "when my balance falls below $30") and a "reload value" (eg, "add $100").
Can I limit the amount of automatic reload charges?
Yes, Prepay users can set a Monthly Auto-Charge Limit within the Auto-Reload widget. When the total amount of automatic reloads in a billing cycle reaches this limit, the system disables auto-reload until the next month. Manual credit purchases do not count toward this limit.
Can I get a refund for my unused credits?
All Prepaid API credits expire after 1 year and cannot be refunded. Read the refund policy for Prepay accounts .
Do my prepaid credits expire?
Yes, credits expire 12 months after their purchase date.
What happens when my prepaid credit balance hits $0?
All Gemini API services in all projects paid for by that Cloud Billing Prepay account will stop immediately to prevent incurring more charges. Your projects aren't automatically downgraded to the Free Tier.
To restore service at your current Paid Tier level, you must purchase additional credits . After you've purchased credits, you should be able to use the Gemini API. Note that there might be a delay while our systems update to reflect your credit balance.
Optionally, to downgrade to the Free Tier, you can disable billing on the projects you want to downgrade.
Why did my usage stop even though my Prepay credit balance is greater than $0?
You may have hit the usage limit for your current tier. Usage limits will increase automatically as you progress to higher tiers. Your Gemini API AI Studio usage can also be impacted due to the status of your Cloud Billing account .
Why is my Prepay account credit balance negative?
Due to the complexity of our billing and processing systems, there might be delays in our ability to cut off usage after you consume all of your credits. This excess usage might appear as a negative credit balance in your AI Studio billing dashboard. If this happens, your service is paused, and your negative balance will be deducted from your next credit purchase.
To avoid a pause in your Gemini API service, we recommend setting up auto-reload to automatically purchase more credits when your credit balance falls below a value you specify.
Can I use my Prepay credits for other Google Cloud services, like Gemini Enterprise Agent Platform?
No, Prepay credits are strictly locked to Gemini API usage. Any other Google Cloud services you use (Compute, Storage, Gemini Enterprise Agent Platform) are billed using the standard Cloud charging cycle .
Can I switch from Prepay to Postpay billing?
No, switching from a Prepay billing plan to a Postpay billing plan is not supported.
Can I switch from Postpay to Prepay billing?
Yes, you can transition an existing Postpay account on the AI Studio Billing page. See Migrate to prepay for instructions.
What happens to my Prepaid credits if I switch to Postpay?
When you upgrade to Postpay , Cloud Billing closes your Prepay payments account, turns off auto-reload , and automatically refunds any unused Prepay credits to you (subject to standard refund processing time).
Where can I see my current Prepay credit balance and transaction history?
All balance management and transaction history for the Gemini API must be done directly within the Google AI Studio Billing tab.
Why am I seeing "The billing account type is inactive or unsupported"?
Payments interactions on the AI Studio Billing page may be blocked and replaced with the message "The billing account type is inactive or unsupported" if your selected billing account type or billing account status is not eligible for the Paid Tier in AI Studio.
Check the Cloud Console to see your billing account's status. One ineligible type could be Free trial account , in which case you can activate billing in AI Studio to become eligible. One inactive state could be Closed , in which case you can reopen the account .
Will my Gemini API usage costs show up in the Google Cloud console?
Yes, Gemini API costs, alongside costs associated with any other Google Cloud services that are paid for by your Cloud Billing account, are viewable on the Cost management pages in the Cloud Billing console . Note that you can only manage your Prepay credit balance in AI Studio.
Почему данные об использовании Gemini API не отображаются в консоли облачного выставления счетов, хотя я вижу их в системе выставления счетов AI Studio вместе с объемом использованных кредитов?
Google Cloud and AI Studio report usage data to Cloud Billing at varying intervals. Due to the complexity of our billing and processing systems, you might see a delay between your use of services, and the usage and costs being available to view in Cloud Billing. Typically, your cost details are available within a day, but can sometimes take more than 24 hours. Learn more about delayed billing in the Cloud Billing documentation .
Что произойдет, если я пропущу платеж, если буду использовать другие сервисы Google Cloud, стоимость которых рассчитывается по постоплатному тарифу?
Missing a payment for other Google Cloud services can suspend your Gemini API access in AI Studio, regardless of how many Prepaid credits you have available . AI Studio usage is powered by a Google Cloud Billing account, which can share both Prepay billing for AI Studio and Postpay billing for other Cloud services. An issue with your Postpay balance halts all services tied to that account. Your Gemini API usage will be suspended if your Cloud Billing account is flagged for issues such as:
- Просроченный или неоплаченный баланс
- Отклоненный платеж
- Недействительный или просроченный способ оплаты
To restore service, you must resolve the Postpay account issue in the Google Cloud Billing console. Once you resolve the issue, you will regain access to your Prepaid Gemini API credits and services.
Почему мои проекты были сорваны после отмены предоплаты?
Issue: You started the flow to add Prepay capabilities to an existing Postpay billing account, but closed the window or canceled the process before completing the prepayment setup. Other projects linked to that billing account lost access to the Gemini API.
Cause: During the transition flow, the infrastructure to support Prepay is created on your billing account immediately after you accept the confirmation dialog. If you don't complete the prepayment steps, the configuration remains in an unchargeable state. Because this state applies at the billing account level, it restricts access for all projects linked to that billing account that rely on Prepay services.
Resolution: Because the account state has already changed, there is no automatic way to revert the state if you abandon the payment flow. To restore service to your linked projects, do one of the following:
- Complete the setup: Return to Google AI Studio, restart the billing setup flow, and complete the prepayment process. After the payment is processed, the Prepay billing plan becomes active and the service is restored.
- Contact Support: If you don't want to use the Prepay billing plan and want to revert your billing account back to Postpay, contact Cloud Billing Support to manually reset your account state.
Где я могу получить помощь с оплатой счетов?
To get help with billing, see Get Cloud billing support .
,This guide provides an overview of different Gemini API billing options, explains how to enable billing and monitor usage, and provides answers to frequently asked questions (FAQs) about billing.
О выставлении счетов и тарифных планах
Оплата за использование API Gemini производится на основе вашей истории платежей.
| Уровень использования | Квалификация | Ограничение по тарифному плану |
|---|---|---|
| Бесплатно | Active project or free trial | Н/Д |
| Уровень 1 | Настройте и привяжите активный платежный аккаунт. | 250 долларов |
| Уровень 2 | Оплата 100 долларов США + 3 дня с момента первой успешной оплаты. | 2000 долларов |
| Уровень 3 | Выплачено 1000 долларов США + 30 дней с момента первой успешной оплаты. | 20 000 - 100 000+ долларов США |
New accounts begin on the Free Tier, which allows access to certain models in the Gemini API and AI Studio, up to the models' free tier rate limits .
To deploy your applications directly from Build mode, you can use the Google Cloud Starter Tier . This tier lets you publish up to 2 full stack applications without setting up a Google Cloud project or billing account. See Deploying from Google AI Studio for details and refer to the Google Cloud Starter Tier documentation for more information.
To access higher rate limits, use advanced models, and ensure your prompts and responses are not used to improve Google products * , you can link a billing account and Prepay to move to the Paid Tiers. Then, you'll move through higher tiers based on cumulative spend and account age.
Tiers, rate limits, and billing account caps are all determined at the billing account level.
* Enterprise-grade data privacy: For more information on data use for paid services, see the Terms of Service .
Настройте оплату, чтобы получить доступ к платному тарифу.
You can create a project and set up billing, or import an existing project, to upgrade to the Paid Tier in Google AI Studio . Upgrading from the Free Tier to the Paid Tier means linking a billing account and prepaying to add a minimum of $5 (or equivalent in other currencies) of credits to your account.
- Go to the AI Studio API keys page, Projects page, or anywhere you see Set up billing button in AI Studio.
- New users will have a project and API key created for them by default.
- If you need a new key, click Create API key and follow the dialog to add a key-project pair to the table.
- Find the Free Tier project you want to upgrade to the Paid Tier, and click Set up billing under the Billing Tier column.
- Если вы никогда раньше не создавали платежный аккаунт Google:
- Вам будет предложено выбрать свою страну, чтобы согласиться с Условиями предоставления услуг.
- Затем заполните или подтвердите свои контактные данные и способ оплаты, чтобы продолжить.
- Если вы ранее настраивали платежные аккаунты Google:
- Вам будет предложено выбрать один из существующих платежных аккаунтов.
- If you don't want to use any of your existing accounts, click Add new billing account and fill in or confirm your contact information and payment method to continue.
- Далее вы окажетесь в одной из следующих ситуаций:
- Asked to prepay a minimum of $5 to complete billing setup (meaning your account is auto-assigned to the Prepay billing plan),
- Given the choice between Prepay and Postpay billing plans for your account.
- Assigned to a Postpay billing plan for an intermediary period until the new Prepay system propagates to all users (starting March 23, 2026).
- После внесения предоплаты или выбора постоплатного способа оплаты настройка вашей учетной записи завершена.
Перейдите на следующий платный тарифный план
If you're already on a paid tier and meet the criteria for a plan change, you will be automatically upgraded to the next tier (subject to processing times ).
Проверьте статус выставления счетов.
After you have linked a billing account to your project, you can monitor its status on the AI Studio Billing page . Unlike the free tier, paid tier status is dynamic; while your usage tier is determined by your account history, the Gemini API will only serve requests if you have a positive Prepay credit balance.
On the Projects page, you'll be able to see your project's tier and billing plan under the Billing Tier column. Any billing status actions you may need to take for a project display in the Billing Tier or Status columns:
- " Set up billing " if the project doesn't have a billing account attached.
- " Set up Prepay " if the project does have a billing account attached, but is required to use a Prepay billing plan that needs to be set up.
- " No credits " if the billing account is required to purchase credits but the Prepay payments account isn't set up or the available credit balance is depleted.
Click any of the messages to proceed with the necessary actions.
Мониторинг использования
You can monitor your usage of the Gemini API in Google AI Studio in Dashboard > Usage .
Тарифные планы
Billing plans for the Gemini API and AI Studio fall into two categories that determine when you pay for usage: Prepay and Postpay. You can check your assigned billing plan and manage payment methods on the AI Studio Billing page.
Предоплата
In the Prepay billing plan, you purchase credits towards your prepay balance in advance of your Gemini API usage, and your API usage costs are deducted from your Prepay credit balance in near real-time . You can prepay by adding credits into your account, or setting up auto-reload . After credits are purchased, unused credits expire after 12 months and are non-refundable , except after switching to a Postpay account .
When your Prepay credit balance on the billing account hits $0, all API keys in all projects linked to that billing account will stop working simultaneously. Requests then fail with an HTTP 402 Payment Required error until you add credits. Prepay credits apply only to Gemini API usage costs; you can't use them to pay for other Google Cloud services.
Новым пользователям по умолчанию предлагается тарифный план «Предоплата». Проектам, созданным до введения тарифных планов «Предоплата» и «Постоплата», может потребоваться обновить платежные данные проекта, прежде чем продолжить использование API Gemini.
Note that Prepay is not available for Invoiced (or Offline) accounts.
Add Prepay to an existing Postpay account
Если в вашей существующей учетной записи Cloud Billing используется тарифный план с постоплатой , вы можете добавить возможность предоплаты для предварительной покупки кредитов. Эти предоплаченные кредиты позволят вам использовать API Gemini без создания новой учетной записи Cloud Billing.
В процессе настройки добавления предоплаты к существующему аккаунту вам будет показан обязательный экран подтверждения, поясняющий, что выбранный вами аккаунт Cloud Billing будет изменен.
The system must modify your account state before you submit your prepayment. Therefore, canceling the process after confirming the modification but before completing the prepayment setup might result in temporary service disruptions for projects already linked to that Cloud Billing account. Ensure you are ready to complete the prepayment process before confirming the transition. If you encounter issues, see Services disrupted after canceling a Prepay setup .
If you are eligible and manually switch from a Prepay cycle to a Postpay cycle, any remaining prepay credit balance is automatically refunded to the original payment method used for the prepayment. However, if you close your Cloud Billing account for any other reason, any remaining prepay credits are forfeited and aren't refunded.
Купить кредиты
You can manually purchase credits in advance of your Gemini API usage to load them into your Prepay account credit balance.
To purchase credits, go to the AI Studio Billing page and select Buy credits . The minimum purchase is $5. The maximum amount of credits you can prepay for is $5,000.
Автоматическая перезагрузка
Auto-reload is an optional feature that automatically tops up your Prepay credit balance when it's running low. This is useful to prevent service interruptions.
You can set up auto reload and see your auto-reload status in the Available credits card on the AI Studio Billing page. Click Setup auto-reload or Manage auto-reload to set your payment method, reload amount, and the minimum balance that triggers a reload payment.
Monthly auto-charge limit
The monthly auto-charge limit is available to Prepay users and helps prevent unexpected costs from frequent automatic credit reloads. Use this feature to set a maximum limit for automatic credit reloads within a single billing cycle. Once the total amount of automatic reloads in a billing cycle reaches this limit, the system disables auto-reload until the start of the next month. One-time payments you initiate manually don't count against this limit.
To set the monthly auto-charge limit when auto-reload is enabled:
- Go to the AI Studio Billing page.
- Click Manage auto-reload .
- Expand the Monthly Limit section and enter the maximum monthly limit for auto-reloads.
- Нажмите « Сохранить ».
Постоплата
In the Postpay billing plan, your Cloud Billing account accrues costs and you are automatically charged at the end of the month, or when your costs reach an automatically assigned spend cap based on your account tier. The payment is charged to the payment method attached to your Postpay payments account, which you can manage on the AI Studio Billing page. On the Billing page you'll be able to view your balance, due dates, and past payments, as well as make payments and manage payment methods.
When setting up billing for a new project, if you are eligible for Postpay, you will have the option to choose between Prepay and Postpay in the billing setup dialogue.
After you switch a Cloud Billing account to use the Postpay billing plan, all projects linked to that billing account are switched to the Postpay plan. You can move an eligible account to Prepay by following the steps in Migrate to prepay . You can also move a project to a billing account with a different billing plan to change the charging cycle for that project; visit the Cloud documentation on managing billing for projects .
You can learn more about the Postpay charging cycle in the Cloud Billing guide .
Переход на предоплату
Google AI Studio is transitioning developer accounts from Postpay to Prepay billing for Gemini API usage. This change applies only to the Gemini API; other Google Cloud services linked to your billing account remain on Postpay.
Switch to Prepay and add credits before the cutover date in your account notice to avoid service interruptions. Accounts that use only Free Tier features do not need to take action.
To switch an existing Postpay account to Prepay:
- Go to the AI Studio Billing page.
- Select Switch to Prepay for your billing account.
- Purchase credits (minimum $5) to load your starting balance.
To prevent service interruptions after switching, configure auto-reload to top up your credit balance when it runs low.
Ограничения на расходы
The Gemini API supports monthly spend caps at both the billing account tier and project levels. These controls are designed to protect your account from unexpected overages, and the ecosystem to ensure service availability.
Note that spend caps are not available for Invoiced (or Offline) accounts.
Ограничения на расходы по проекту
You can set your own project-level spend caps in AI Studio. This is useful if you have multiple projects under the same billing account and want to ensure each has access to enough of the cumulative spending limit.
Accounts with the project editor, owner, or admin roles can set spend caps per project in AI Studio on the Spend page under Monthly spend cap > Edit spend cap .
For details on the specific Google Cloud IAM permissions required to view or edit spend caps and billing information in AI Studio, see the AI Studio troubleshooting guide .
If you move a project to a different billing account , any spend cap you already set for that project will persist, but any accumulated spend will reset to $0 for the new billing cycle.
Long-running tasks like batch mode completions and agent sessions may incur overages beyond your project spend cap.
Billing data processing times can be delayed in AI Studio, up to around 10 minutes. You may experience overages beyond your project cap if billing data hasn't processed before more charges are accrued.
Ограничения расходов по уровням платежных аккаунтов
Each tier has a maximum monthly spend limit:
| Уровень использования | Ограничение расходов |
|---|---|
| Бесплатно | Н/Д |
| Уровень 1 | 250 долларов |
| Уровень 2 | 2000 долларов |
| Уровень 3 | 20 000 - 100 000 долларов США |
Monthly usage caps are enforced for the Gemini API at the billing account level. While default limits are preset, you can request an increase to accommodate higher usage. Total spend is aggregated across all linked projects that have the Gemini API service enabled. After the cumulative account total reaches the tier limit, service is paused for all projects linked to that billing account until the start of the next billing cycle (the 1st of each month).
Evaluate your billing account spend
To evaluate your historical monthly spending to determine if the new Billing Account tier spend caps will impact your ongoing projects, follow these steps:
- In the Google Cloud console, view your Cloud Billing account Reports page.
- If you have more than one billing account, at the prompt, choose the Cloud Billing account for which you'd like to view cost reports.
- The report defaults to "Group by Service" in the "Current month". You will see Gemini API in the Service column and total spend in the Usage cost column of the table.
- To see granular costs limited to Gemini API usage, set the Group by filter to group by SKU , and the Services filter to Gemini API .
- Adjust the Time range by usage date filter to your desired range to evaluate your historical spend in a period.
Время обработки
Billing signals and updates don't always happen in real time.
- Credit usage : Usage costs are typically drawn down from your balance within minutes.
- Payment confirmation : While most card payments are instant, some forms of payment (like bank transfers) may take several days to clear. Services only resume or upgrade after the purchase of credits is officially confirmed.
- Tier upgrades : After a successful payment, or when you meet the upgrade criteria , tier upgrades usually reflect within 10 minutes.
- Total Cost breakdown graphs : The graphs showing your total cost breakdown on both the Billing page and the Spend page can take up to 24 hours to update.
Read the Cloud Billing guides on charging cycle and transaction latencies to learn more about potential billing delays.
Возврат средств
Refunds aren't allowed for Prepay billing accounts, except when switching account types.
When a Prepay account switches to the Postpay account type (after you meet the criteria and manually upgrade your account), the Prepay account is closed and any remaining prepaid credits are automatically refunded to the payment method on file.
If you close your Prepay account for any reason other than upgrading to Postpay, any remaining prepaid credits are forfeited.
Purchased credits expire after 1 year. After expiration, credits are forfeited and can't be retrieved.
Postpay accounts follow the Google Cloud refund policy .
учетные записи облачной оплаты
The Gemini API uses Cloud Billing accounts for billing services, which you can set up directly in AI Studio . You can use AI Studio to track spending, understand costs, and make payments.
Tiers, rate limits, and billing account caps are all determined at the billing account level.
Проекты и ключи API
All projects linked to a Cloud Billing account inherit the billing account's usage tier and associated rate limits and account caps. If you change a project from one billing account to another, its tier, and subsequently rate limits and account caps, will switch to the tier of the new billing account.
Cumulative spend (towards all Google Cloud products) and account age across all projects tied to a billing account counts towards that billing account's tier qualifications .
You can unlink a project from its billing account to return to the free tier.
API keys are credentials generated inside a project. They have no independent billing settings; they inherit the tier limits and billing status of the project. The cumulative usage from all keys within a project counts toward that project's spend cap and the billing account's total spend.
Часто задаваемые вопросы
The following sections provide answers to frequently asked questions.
What am I billed for?
Gemini API pricing is based on the following:
- Input token count
- Output token count
- Cached token count
- Cached token storage duration
For pricing information, see the Pricing page .
Where can I view my quota?
You can view your quota and system limits in AI Studio .
How do I move to a higher rate limit tier, or request more quota?
You will automatically be granted more quota when your account reaches the next tier requirements .
Can I use the Gemini API for free in EEA (including EU), the UK, and CH?
Yes, we make the free tier and paid tier available in many regions .
If I set up billing with the Gemini API, will I be charged for my Google AI Studio usage?
AI Studio usage remains free of charge unless users link a paid API key for access to paid features. Once you link a paid API key as part of a paid project in AI Studio, you will be charged for AI Studio usage for that key. You can switch between Paid Tier projects and Free Tier projects as needed by using the respective API keys linked to each type.
If I'm on the Free Tier, how do I upgrade to higher tiers?
To access higher tiers, you must set up billing on your project. Click Set up billing in Google AI Studio. This will walk you through selecting or creating a Cloud Billing account. If you are required to be on the prepaid billing model, the Set up billing process will guide you through the process to create your Prepay account that is linked to your Cloud Billing account.
Can I use 1M tokens in the free tier?
The free tier for Gemini API differs based on the model selected. For now, you can try the 1M token context window in the following ways:
- In Google AI Studio
- With free-of-charge plans for select models
- With postpaid plans
Can I revert back to Free Tier after I've upgraded to higher (paid) tiers?
To downgrade to the Free Tier, you can disable billing on each of your projects that you want to downgrade.
How can I calculate the number of tokens I'm using?
Use the GenerativeModel.count_tokens method to count the number of tokens. Refer to the Tokens guide to learn more about tokens.
If I sign up for my first Cloud Billing account through AI Studio, will I still get a Google Cloud Free Trial?
When you sign up for your first ever Cloud Billing account, your Google Cloud Free Trial starts and you are granted a $300 Welcome credit . However, those credits can't be used to pay for AI Studio usage. You can use the Welcome credit to pay for other eligible services within Google Cloud (note that once those credits are consumed or expire (within 90 days), any additional usage costs are automatically billed to your established form of payment).
Can I use my Google Cloud Welcome credit with the Gemini API?
No, the Google Cloud Welcome credit or free trial credit can't be used towards the Gemini API or AI Studio.
If you were granted a Google Cloud welcome credit before they became ineligible, you are allowed to spend your remaining credits on the Gemini API and AI Studio up until the credits expire (after 90 days).
Does the Google Cloud Free Trial apply to Gemini API usage?
No, starting March 2026, Gemini API usage costs are specifically excluded from the $300 Google Cloud Free Trial program.
How do Google Cloud credits work with Prepay?
Prepay users must first purchase Prepaid credits before any eligible Google Cloud credits can be applied to Gemini API usage. Once you have an active Prepay credit balance, Google Cloud credits that are eligible for the Gemini API are consumed before your Prepay credit balance. When your Prepay credit balance on the billing account hits $0, Google Cloud credits will no longer be consumed.
Not all Google Cloud credits, such as the Google Cloud Welcome credit , can be used towards Gemini API and AI Studio.
Как осуществляется выставление счетов?
Billing for the Gemini API is handled by the Cloud billing system. Learn about the in-product Cloud Billing setup in the Cloud Billing documentation .
Am I charged for failed requests?
If your request fails with a 400 or 500 error, you won't be charged for the tokens used. However, the request will still count against your quota.
Is GetTokens billed?
Requests to the GetTokens API are not billed, and they don't count against inference quota.
How is my Google AI Studio data handled if I have a paid API account?
Refer to the Terms of service for details on how data is handled when Cloud billing is enabled (see "How Google Uses Your Data" under "Paid Services"). Note that your Google AI Studio prompts are treated under the same "Paid Services" terms so long as at least 1 API project has billing enabled, which you can validate on the Gemini API key page if you see any projects marked as "Paid" under "Plan".
What is Prepaid billing and who is required to use the prepaid billing model?
Prepaid billing allows users of Gemini API in AI Studio to pre-purchase credits. Starting Mar 23, 2026, new users to AI Studio might be required to be on the Prepaid billing plan. During the AI Studio Set up Billing process, the UI will guide you through the billing set up flow and will indicate if you are required to prepay.
How do I purchase Prepay credits, and is there a minimum amount or maximum?
You can purchase credits on the AI Studio Billing page. During the purchase process, the UI will provide the minimum pre-purchase amount that is required for your region and tier level, as well as a maximum amount that can be in your account at one time.
Can I configure my Prepay account to automatically purchase more credits as needed?
Yes, we recommend that you configure auto-reload in the AI Studio Billing settings. You specify a "trigger" credit balance (eg, "when my balance falls below $30") and a "reload value" (eg, "add $100").
Can I limit the amount of automatic reload charges?
Yes, Prepay users can set a Monthly Auto-Charge Limit within the Auto-Reload widget. When the total amount of automatic reloads in a billing cycle reaches this limit, the system disables auto-reload until the next month. Manual credit purchases do not count toward this limit.
Can I get a refund for my unused credits?
All Prepaid API credits expire after 1 year and cannot be refunded. Read the refund policy for Prepay accounts .
Do my prepaid credits expire?
Yes, credits expire 12 months after their purchase date.
What happens when my prepaid credit balance hits $0?
All Gemini API services in all projects paid for by that Cloud Billing Prepay account will stop immediately to prevent incurring more charges. Your projects aren't automatically downgraded to the Free Tier.
To restore service at your current Paid Tier level, you must purchase additional credits . After you've purchased credits, you should be able to use the Gemini API. Note that there might be a delay while our systems update to reflect your credit balance.
Optionally, to downgrade to the Free Tier, you can disable billing on the projects you want to downgrade.
Why did my usage stop even though my Prepay credit balance is greater than $0?
You may have hit the usage limit for your current tier. Usage limits will increase automatically as you progress to higher tiers. Your Gemini API AI Studio usage can also be impacted due to the status of your Cloud Billing account .
Why is my Prepay account credit balance negative?
Due to the complexity of our billing and processing systems, there might be delays in our ability to cut off usage after you consume all of your credits. This excess usage might appear as a negative credit balance in your AI Studio billing dashboard. If this happens, your service is paused, and your negative balance will be deducted from your next credit purchase.
To avoid a pause in your Gemini API service, we recommend setting up auto-reload to automatically purchase more credits when your credit balance falls below a value you specify.
Can I use my Prepay credits for other Google Cloud services, like Gemini Enterprise Agent Platform?
No, Prepay credits are strictly locked to Gemini API usage. Any other Google Cloud services you use (Compute, Storage, Gemini Enterprise Agent Platform) are billed using the standard Cloud charging cycle .
Can I switch from Prepay to Postpay billing?
No, switching from a Prepay billing plan to a Postpay billing plan is not supported.
Can I switch from Postpay to Prepay billing?
Yes, you can transition an existing Postpay account on the AI Studio Billing page. See Migrate to prepay for instructions.
What happens to my Prepaid credits if I switch to Postpay?
When you upgrade to Postpay , Cloud Billing closes your Prepay payments account, turns off auto-reload , and automatically refunds any unused Prepay credits to you (subject to standard refund processing time).
Where can I see my current Prepay credit balance and transaction history?
All balance management and transaction history for the Gemini API must be done directly within the Google AI Studio Billing tab.
Why am I seeing "The billing account type is inactive or unsupported"?
Payments interactions on the AI Studio Billing page may be blocked and replaced with the message "The billing account type is inactive or unsupported" if your selected billing account type or billing account status is not eligible for the Paid Tier in AI Studio.
Check the Cloud Console to see your billing account's status. One ineligible type could be Free trial account , in which case you can activate billing in AI Studio to become eligible. One inactive state could be Closed , in which case you can reopen the account .
Will my Gemini API usage costs show up in the Google Cloud console?
Yes, Gemini API costs, alongside costs associated with any other Google Cloud services that are paid for by your Cloud Billing account, are viewable on the Cost management pages in the Cloud Billing console . Note that you can only manage your Prepay credit balance in AI Studio.
Почему данные об использовании Gemini API не отображаются в консоли облачного выставления счетов, хотя я вижу их в системе выставления счетов AI Studio вместе с объемом использованных кредитов?
Google Cloud and AI Studio report usage data to Cloud Billing at varying intervals. Due to the complexity of our billing and processing systems, you might see a delay between your use of services, and the usage and costs being available to view in Cloud Billing. Typically, your cost details are available within a day, but can sometimes take more than 24 hours. Learn more about delayed billing in the Cloud Billing documentation .
Что произойдет, если я пропущу платеж, если буду использовать другие сервисы Google Cloud, стоимость которых рассчитывается по постоплатному тарифу?
Missing a payment for other Google Cloud services can suspend your Gemini API access in AI Studio, regardless of how many Prepaid credits you have available . AI Studio usage is powered by a Google Cloud Billing account, which can share both Prepay billing for AI Studio and Postpay billing for other Cloud services. An issue with your Postpay balance halts all services tied to that account. Your Gemini API usage will be suspended if your Cloud Billing account is flagged for issues such as:
- Просроченный или неоплаченный баланс
- Отклоненный платеж
- Недействительный или просроченный способ оплаты
To restore service, you must resolve the Postpay account issue in the Google Cloud Billing console. Once you resolve the issue, you will regain access to your Prepaid Gemini API credits and services.
Почему мои проекты были сорваны после отмены предоплаты?
Issue: You started the flow to add Prepay capabilities to an existing Postpay billing account, but closed the window or canceled the process before completing the prepayment setup. Other projects linked to that billing account lost access to the Gemini API.
Cause: During the transition flow, the infrastructure to support Prepay is created on your billing account immediately after you accept the confirmation dialog. If you don't complete the prepayment steps, the configuration remains in an unchargeable state. Because this state applies at the billing account level, it restricts access for all projects linked to that billing account that rely on Prepay services.
Resolution: Because the account state has already changed, there is no automatic way to revert the state if you abandon the payment flow. To restore service to your linked projects, do one of the following:
- Complete the setup: Return to Google AI Studio, restart the billing setup flow, and complete the prepayment process. After the payment is processed, the Prepay billing plan becomes active and the service is restored.
- Contact Support: If you don't want to use the Prepay billing plan and want to revert your billing account back to Postpay, contact Cloud Billing Support to manually reset your account state.
Где я могу получить помощь с оплатой счетов?
To get help with billing, see Get Cloud billing support .
,This guide provides an overview of different Gemini API billing options, explains how to enable billing and monitor usage, and provides answers to frequently asked questions (FAQs) about billing.
О выставлении счетов и тарифных планах
Оплата за использование API Gemini производится на основе вашей истории платежей.
| Уровень использования | Квалификация | Ограничение по тарифному плану |
|---|---|---|
| Бесплатно | Active project or free trial | Н/Д |
| Уровень 1 | Настройте и привяжите активный платежный аккаунт. | 250 долларов |
| Уровень 2 | Оплата 100 долларов США + 3 дня с момента первой успешной оплаты. | 2000 долларов |
| Уровень 3 | Выплачено 1000 долларов США + 30 дней с момента первой успешной оплаты. | 20 000 - 100 000+ долларов США |
New accounts begin on the Free Tier, which allows access to certain models in the Gemini API and AI Studio, up to the models' free tier rate limits .
To deploy your applications directly from Build mode, you can use the Google Cloud Starter Tier . This tier lets you publish up to 2 full stack applications without setting up a Google Cloud project or billing account. See Deploying from Google AI Studio for details and refer to the Google Cloud Starter Tier documentation for more information.
To access higher rate limits, use advanced models, and ensure your prompts and responses are not used to improve Google products * , you can link a billing account and Prepay to move to the Paid Tiers. Then, you'll move through higher tiers based on cumulative spend and account age.
Tiers, rate limits, and billing account caps are all determined at the billing account level.
* Enterprise-grade data privacy: For more information on data use for paid services, see the Terms of Service .
Настройте оплату, чтобы получить доступ к платному тарифу.
You can create a project and set up billing, or import an existing project, to upgrade to the Paid Tier in Google AI Studio . Upgrading from the Free Tier to the Paid Tier means linking a billing account and prepaying to add a minimum of $5 (or equivalent in other currencies) of credits to your account.
- Go to the AI Studio API keys page, Projects page, or anywhere you see Set up billing button in AI Studio.
- New users will have a project and API key created for them by default.
- If you need a new key, click Create API key and follow the dialog to add a key-project pair to the table.
- Find the Free Tier project you want to upgrade to the Paid Tier, and click Set up billing under the Billing Tier column.
- Если вы никогда раньше не создавали платежный аккаунт Google:
- Вам будет предложено выбрать свою страну, чтобы согласиться с Условиями предоставления услуг.
- Затем заполните или подтвердите свои контактные данные и способ оплаты, чтобы продолжить.
- Если вы ранее настраивали платежные аккаунты Google:
- Вам будет предложено выбрать один из существующих платежных аккаунтов.
- If you don't want to use any of your existing accounts, click Add new billing account and fill in or confirm your contact information and payment method to continue.
- Далее вы окажетесь в одной из следующих ситуаций:
- Asked to prepay a minimum of $5 to complete billing setup (meaning your account is auto-assigned to the Prepay billing plan),
- Given the choice between Prepay and Postpay billing plans for your account.
- Assigned to a Postpay billing plan for an intermediary period until the new Prepay system propagates to all users (starting March 23, 2026).
- После внесения предоплаты или выбора постоплатного способа оплаты настройка вашей учетной записи завершена.
Перейдите на следующий платный тарифный план
If you're already on a paid tier and meet the criteria for a plan change, you will be automatically upgraded to the next tier (subject to processing times ).
Проверьте статус выставления счетов.
After you have linked a billing account to your project, you can monitor its status on the AI Studio Billing page . Unlike the free tier, paid tier status is dynamic; while your usage tier is determined by your account history, the Gemini API will only serve requests if you have a positive Prepay credit balance.
On the Projects page, you'll be able to see your project's tier and billing plan under the Billing Tier column. Any billing status actions you may need to take for a project display in the Billing Tier or Status columns:
- " Set up billing " if the project doesn't have a billing account attached.
- " Set up Prepay " if the project does have a billing account attached, but is required to use a Prepay billing plan that needs to be set up.
- " No credits " if the billing account is required to purchase credits but the Prepay payments account isn't set up or the available credit balance is depleted.
Click any of the messages to proceed with the necessary actions.
Мониторинг использования
You can monitor your usage of the Gemini API in Google AI Studio in Dashboard > Usage .
Тарифные планы
Billing plans for the Gemini API and AI Studio fall into two categories that determine when you pay for usage: Prepay and Postpay. You can check your assigned billing plan and manage payment methods on the AI Studio Billing page.
Предоплата
In the Prepay billing plan, you purchase credits towards your prepay balance in advance of your Gemini API usage, and your API usage costs are deducted from your Prepay credit balance in near real-time . You can prepay by adding credits into your account, or setting up auto-reload . After credits are purchased, unused credits expire after 12 months and are non-refundable , except after switching to a Postpay account .
When your Prepay credit balance on the billing account hits $0, all API keys in all projects linked to that billing account will stop working simultaneously. Requests then fail with an HTTP 402 Payment Required error until you add credits. Prepay credits apply only to Gemini API usage costs; you can't use them to pay for other Google Cloud services.
Новым пользователям по умолчанию предлагается тарифный план «Предоплата». Проектам, созданным до введения тарифных планов «Предоплата» и «Постоплата», может потребоваться обновить платежные данные проекта, прежде чем продолжить использование API Gemini.
Note that Prepay is not available for Invoiced (or Offline) accounts.
Add Prepay to an existing Postpay account
Если в вашей существующей учетной записи Cloud Billing используется тарифный план с постоплатой , вы можете добавить возможность предоплаты для предварительной покупки кредитов. Эти предоплаченные кредиты позволят вам использовать API Gemini без создания новой учетной записи Cloud Billing.
В процессе настройки добавления предоплаты к существующему аккаунту вам будет показан обязательный экран подтверждения, поясняющий, что выбранный вами аккаунт Cloud Billing будет изменен.
The system must modify your account state before you submit your prepayment. Therefore, canceling the process after confirming the modification but before completing the prepayment setup might result in temporary service disruptions for projects already linked to that Cloud Billing account. Ensure you are ready to complete the prepayment process before confirming the transition. If you encounter issues, see Services disrupted after canceling a Prepay setup .
If you are eligible and manually switch from a Prepay cycle to a Postpay cycle, any remaining prepay credit balance is automatically refunded to the original payment method used for the prepayment. However, if you close your Cloud Billing account for any other reason, any remaining prepay credits are forfeited and aren't refunded.
Купить кредиты
You can manually purchase credits in advance of your Gemini API usage to load them into your Prepay account credit balance.
To purchase credits, go to the AI Studio Billing page and select Buy credits . The minimum purchase is $5. The maximum amount of credits you can prepay for is $5,000.
Автоматическая перезагрузка
Auto-reload is an optional feature that automatically tops up your Prepay credit balance when it's running low. This is useful to prevent service interruptions.
You can set up auto reload and see your auto-reload status in the Available credits card on the AI Studio Billing page. Click Setup auto-reload or Manage auto-reload to set your payment method, reload amount, and the minimum balance that triggers a reload payment.
Monthly auto-charge limit
The monthly auto-charge limit is available to Prepay users and helps prevent unexpected costs from frequent automatic credit reloads. Use this feature to set a maximum limit for automatic credit reloads within a single billing cycle. Once the total amount of automatic reloads in a billing cycle reaches this limit, the system disables auto-reload until the start of the next month. One-time payments you initiate manually don't count against this limit.
To set the monthly auto-charge limit when auto-reload is enabled:
- Go to the AI Studio Billing page.
- Click Manage auto-reload .
- Expand the Monthly Limit section and enter the maximum monthly limit for auto-reloads.
- Нажмите « Сохранить ».
Постоплата
In the Postpay billing plan, your Cloud Billing account accrues costs and you are automatically charged at the end of the month, or when your costs reach an automatically assigned spend cap based on your account tier. The payment is charged to the payment method attached to your Postpay payments account, which you can manage on the AI Studio Billing page. On the Billing page you'll be able to view your balance, due dates, and past payments, as well as make payments and manage payment methods.
When setting up billing for a new project, if you are eligible for Postpay, you will have the option to choose between Prepay and Postpay in the billing setup dialogue.
After you switch a Cloud Billing account to use the Postpay billing plan, all projects linked to that billing account are switched to the Postpay plan. You can move an eligible account to Prepay by following the steps in Migrate to prepay . You can also move a project to a billing account with a different billing plan to change the charging cycle for that project; visit the Cloud documentation on managing billing for projects .
You can learn more about the Postpay charging cycle in the Cloud Billing guide .
Переход на предоплату
Google AI Studio is transitioning developer accounts from Postpay to Prepay billing for Gemini API usage. This change applies only to the Gemini API; other Google Cloud services linked to your billing account remain on Postpay.
Switch to Prepay and add credits before the cutover date in your account notice to avoid service interruptions. Accounts that use only Free Tier features do not need to take action.
To switch an existing Postpay account to Prepay:
- Go to the AI Studio Billing page.
- Select Switch to Prepay for your billing account.
- Purchase credits (minimum $5) to load your starting balance.
To prevent service interruptions after switching, configure auto-reload to top up your credit balance when it runs low.
Ограничения на расходы
The Gemini API supports monthly spend caps at both the billing account tier and project levels. These controls are designed to protect your account from unexpected overages, and the ecosystem to ensure service availability.
Note that spend caps are not available for Invoiced (or Offline) accounts.
Ограничения на расходы по проекту
You can set your own project-level spend caps in AI Studio. This is useful if you have multiple projects under the same billing account and want to ensure each has access to enough of the cumulative spending limit.
Accounts with the project editor, owner, or admin roles can set spend caps per project in AI Studio on the Spend page under Monthly spend cap > Edit spend cap .
For details on the specific Google Cloud IAM permissions required to view or edit spend caps and billing information in AI Studio, see the AI Studio troubleshooting guide .
If you move a project to a different billing account , any spend cap you already set for that project will persist, but any accumulated spend will reset to $0 for the new billing cycle.
Long-running tasks like batch mode completions and agent sessions may incur overages beyond your project spend cap.
Billing data processing times can be delayed in AI Studio, up to around 10 minutes. You may experience overages beyond your project cap if billing data hasn't processed before more charges are accrued.
Ограничения расходов по уровням платежных аккаунтов
Each tier has a maximum monthly spend limit:
| Уровень использования | Ограничение расходов |
|---|---|
| Бесплатно | Н/Д |
| Уровень 1 | 250 долларов |
| Уровень 2 | 2000 долларов |
| Уровень 3 | 20 000 - 100 000 долларов США |
Monthly usage caps are enforced for the Gemini API at the billing account level. While default limits are preset, you can request an increase to accommodate higher usage. Total spend is aggregated across all linked projects that have the Gemini API service enabled. After the cumulative account total reaches the tier limit, service is paused for all projects linked to that billing account until the start of the next billing cycle (the 1st of each month).
Evaluate your billing account spend
To evaluate your historical monthly spending to determine if the new Billing Account tier spend caps will impact your ongoing projects, follow these steps:
- In the Google Cloud console, view your Cloud Billing account Reports page.
- If you have more than one billing account, at the prompt, choose the Cloud Billing account for which you'd like to view cost reports.
- The report defaults to "Group by Service" in the "Current month". You will see Gemini API in the Service column and total spend in the Usage cost column of the table.
- To see granular costs limited to Gemini API usage, set the Group by filter to group by SKU , and the Services filter to Gemini API .
- Adjust the Time range by usage date filter to your desired range to evaluate your historical spend in a period.
Время обработки
Billing signals and updates don't always happen in real time.
- Credit usage : Usage costs are typically drawn down from your balance within minutes.
- Payment confirmation : While most card payments are instant, some forms of payment (like bank transfers) may take several days to clear. Services only resume or upgrade after the purchase of credits is officially confirmed.
- Tier upgrades : After a successful payment, or when you meet the upgrade criteria , tier upgrades usually reflect within 10 minutes.
- Total Cost breakdown graphs : The graphs showing your total cost breakdown on both the Billing page and the Spend page can take up to 24 hours to update.
Read the Cloud Billing guides on charging cycle and transaction latencies to learn more about potential billing delays.
Возврат средств
Refunds aren't allowed for Prepay billing accounts, except when switching account types.
When a Prepay account switches to the Postpay account type (after you meet the criteria and manually upgrade your account), the Prepay account is closed and any remaining prepaid credits are automatically refunded to the payment method on file.
If you close your Prepay account for any reason other than upgrading to Postpay, any remaining prepaid credits are forfeited.
Purchased credits expire after 1 year. After expiration, credits are forfeited and can't be retrieved.
Postpay accounts follow the Google Cloud refund policy .
учетные записи облачной оплаты
The Gemini API uses Cloud Billing accounts for billing services, which you can set up directly in AI Studio . You can use AI Studio to track spending, understand costs, and make payments.
Tiers, rate limits, and billing account caps are all determined at the billing account level.
Проекты и ключи API
All projects linked to a Cloud Billing account inherit the billing account's usage tier and associated rate limits and account caps. If you change a project from one billing account to another, its tier, and subsequently rate limits and account caps, will switch to the tier of the new billing account.
Cumulative spend (towards all Google Cloud products) and account age across all projects tied to a billing account counts towards that billing account's tier qualifications .
You can unlink a project from its billing account to return to the free tier.
API keys are credentials generated inside a project. They have no independent billing settings; they inherit the tier limits and billing status of the project. The cumulative usage from all keys within a project counts toward that project's spend cap and the billing account's total spend.
Часто задаваемые вопросы
The following sections provide answers to frequently asked questions.
What am I billed for?
Gemini API pricing is based on the following:
- Input token count
- Output token count
- Cached token count
- Cached token storage duration
For pricing information, see the Pricing page .
Where can I view my quota?
You can view your quota and system limits in AI Studio .
How do I move to a higher rate limit tier, or request more quota?
You will automatically be granted more quota when your account reaches the next tier requirements .
Can I use the Gemini API for free in EEA (including EU), the UK, and CH?
Yes, we make the free tier and paid tier available in many regions .
If I set up billing with the Gemini API, will I be charged for my Google AI Studio usage?
AI Studio usage remains free of charge unless users link a paid API key for access to paid features. Once you link a paid API key as part of a paid project in AI Studio, you will be charged for AI Studio usage for that key. You can switch between Paid Tier projects and Free Tier projects as needed by using the respective API keys linked to each type.
If I'm on the Free Tier, how do I upgrade to higher tiers?
To access higher tiers, you must set up billing on your project. Click Set up billing in Google AI Studio. This will walk you through selecting or creating a Cloud Billing account. If you are required to be on the prepaid billing model, the Set up billing process will guide you through the process to create your Prepay account that is linked to your Cloud Billing account.
Can I use 1M tokens in the free tier?
The free tier for Gemini API differs based on the model selected. For now, you can try the 1M token context window in the following ways:
- In Google AI Studio
- With free-of-charge plans for select models
- With postpaid plans
Can I revert back to Free Tier after I've upgraded to higher (paid) tiers?
To downgrade to the Free Tier, you can disable billing on each of your projects that you want to downgrade.
How can I calculate the number of tokens I'm using?
Use the GenerativeModel.count_tokens method to count the number of tokens. Refer to the Tokens guide to learn more about tokens.
If I sign up for my first Cloud Billing account through AI Studio, will I still get a Google Cloud Free Trial?
When you sign up for your first ever Cloud Billing account, your Google Cloud Free Trial starts and you are granted a $300 Welcome credit . However, those credits can't be used to pay for AI Studio usage. You can use the Welcome credit to pay for other eligible services within Google Cloud (note that once those credits are consumed or expire (within 90 days), any additional usage costs are automatically billed to your established form of payment).
Can I use my Google Cloud Welcome credit with the Gemini API?
No, the Google Cloud Welcome credit or free trial credit can't be used towards the Gemini API or AI Studio.
If you were granted a Google Cloud welcome credit before they became ineligible, you are allowed to spend your remaining credits on the Gemini API and AI Studio up until the credits expire (after 90 days).
Does the Google Cloud Free Trial apply to Gemini API usage?
No, starting March 2026, Gemini API usage costs are specifically excluded from the $300 Google Cloud Free Trial program.
How do Google Cloud credits work with Prepay?
Prepay users must first purchase Prepaid credits before any eligible Google Cloud credits can be applied to Gemini API usage. Once you have an active Prepay credit balance, Google Cloud credits that are eligible for the Gemini API are consumed before your Prepay credit balance. When your Prepay credit balance on the billing account hits $0, Google Cloud credits will no longer be consumed.
Not all Google Cloud credits, such as the Google Cloud Welcome credit , can be used towards Gemini API and AI Studio.
Как осуществляется выставление счетов?
Billing for the Gemini API is handled by the Cloud billing system. Learn about the in-product Cloud Billing setup in the Cloud Billing documentation .
Am I charged for failed requests?
If your request fails with a 400 or 500 error, you won't be charged for the tokens used. However, the request will still count against your quota.
Is GetTokens billed?
Requests to the GetTokens API are not billed, and they don't count against inference quota.
How is my Google AI Studio data handled if I have a paid API account?
Refer to the Terms of service for details on how data is handled when Cloud billing is enabled (see "How Google Uses Your Data" under "Paid Services"). Note that your Google AI Studio prompts are treated under the same "Paid Services" terms so long as at least 1 API project has billing enabled, which you can validate on the Gemini API key page if you see any projects marked as "Paid" under "Plan".
What is Prepaid billing and who is required to use the prepaid billing model?
Prepaid billing allows users of Gemini API in AI Studio to pre-purchase credits. Starting Mar 23, 2026, new users to AI Studio might be required to be on the Prepaid billing plan. During the AI Studio Set up Billing process, the UI will guide you through the billing set up flow and will indicate if you are required to prepay.
How do I purchase Prepay credits, and is there a minimum amount or maximum?
You can purchase credits on the AI Studio Billing page. During the purchase process, the UI will provide the minimum pre-purchase amount that is required for your region and tier level, as well as a maximum amount that can be in your account at one time.
Can I configure my Prepay account to automatically purchase more credits as needed?
Yes, we recommend that you configure auto-reload in the AI Studio Billing settings. You specify a "trigger" credit balance (eg, "when my balance falls below $30") and a "reload value" (eg, "add $100").
Can I limit the amount of automatic reload charges?
Yes, Prepay users can set a Monthly Auto-Charge Limit within the Auto-Reload widget. When the total amount of automatic reloads in a billing cycle reaches this limit, the system disables auto-reload until the next month. Manual credit purchases do not count toward this limit.
Can I get a refund for my unused credits?
All Prepaid API credits expire after 1 year and cannot be refunded. Read the refund policy for Prepay accounts .
Do my prepaid credits expire?
Yes, credits expire 12 months after their purchase date.
What happens when my prepaid credit balance hits $0?
All Gemini API services in all projects paid for by that Cloud Billing Prepay account will stop immediately to prevent incurring more charges. Your projects aren't automatically downgraded to the Free Tier.
To restore service at your current Paid Tier level, you must purchase additional credits . After you've purchased credits, you should be able to use the Gemini API. Note that there might be a delay while our systems update to reflect your credit balance.
Optionally, to downgrade to the Free Tier, you can disable billing on the projects you want to downgrade.
Why did my usage stop even though my Prepay credit balance is greater than $0?
You may have hit the usage limit for your current tier. Usage limits will increase automatically as you progress to higher tiers. Your Gemini API AI Studio usage can also be impacted due to the status of your Cloud Billing account .
Why is my Prepay account credit balance negative?
Due to the complexity of our billing and processing systems, there might be delays in our ability to cut off usage after you consume all of your credits. This excess usage might appear as a negative credit balance in your AI Studio billing dashboard. If this happens, your service is paused, and your negative balance will be deducted from your next credit purchase.
To avoid a pause in your Gemini API service, we recommend setting up auto-reload to automatically purchase more credits when your credit balance falls below a value you specify.
Can I use my Prepay credits for other Google Cloud services, like Gemini Enterprise Agent Platform?
No, Prepay credits are strictly locked to Gemini API usage. Any other Google Cloud services you use (Compute, Storage, Gemini Enterprise Agent Platform) are billed using the standard Cloud charging cycle .
Can I switch from Prepay to Postpay billing?
No, switching from a Prepay billing plan to a Postpay billing plan is not supported.
Can I switch from Postpay to Prepay billing?
Yes, you can transition an existing Postpay account on the AI Studio Billing page. See Migrate to prepay for instructions.
What happens to my Prepaid credits if I switch to Postpay?
When you upgrade to Postpay , Cloud Billing closes your Prepay payments account, turns off auto-reload , and automatically refunds any unused Prepay credits to you (subject to standard refund processing time).
Where can I see my current Prepay credit balance and transaction history?
All balance management and transaction history for the Gemini API must be done directly within the Google AI Studio Billing tab.
Why am I seeing "The billing account type is inactive or unsupported"?
Payments interactions on the AI Studio Billing page may be blocked and replaced with the message "The billing account type is inactive or unsupported" if your selected billing account type or billing account status is not eligible for the Paid Tier in AI Studio.
Check the Cloud Console to see your billing account's status. One ineligible type could be Free trial account , in which case you can activate billing in AI Studio to become eligible. One inactive state could be Closed , in which case you can reopen the account .
Will my Gemini API usage costs show up in the Google Cloud console?
Yes, Gemini API costs, alongside costs associated with any other Google Cloud services that are paid for by your Cloud Billing account, are viewable on the Cost management pages in the Cloud Billing console . Note that you can only manage your Prepay credit balance in AI Studio.
Почему данные об использовании Gemini API не отображаются в консоли облачного выставления счетов, хотя я вижу их в системе выставления счетов AI Studio вместе с объемом использованных кредитов?
Google Cloud and AI Studio report usage data to Cloud Billing at varying intervals. Due to the complexity of our billing and processing systems, you might see a delay between your use of services, and the usage and costs being available to view in Cloud Billing. Typically, your cost details are available within a day, but can sometimes take more than 24 hours. Learn more about delayed billing in the Cloud Billing documentation .
Что произойдет, если я пропущу платеж, если буду использовать другие сервисы Google Cloud, стоимость которых рассчитывается по постоплатному тарифу?
Missing a payment for other Google Cloud services can suspend your Gemini API access in AI Studio, regardless of how many Prepaid credits you have available . AI Studio usage is powered by a Google Cloud Billing account, which can share both Prepay billing for AI Studio and Postpay billing for other Cloud services. An issue with your Postpay balance halts all services tied to that account. Your Gemini API usage will be suspended if your Cloud Billing account is flagged for issues such as:
- Просроченный или неоплаченный баланс
- Отклоненный платеж
- Недействительный или просроченный способ оплаты
To restore service, you must resolve the Postpay account issue in the Google Cloud Billing console. Once you resolve the issue, you will regain access to your Prepaid Gemini API credits and services.
Почему мои проекты были сорваны после отмены предоплаты?
Issue: You started the flow to add Prepay capabilities to an existing Postpay billing account, but closed the window or canceled the process before completing the prepayment setup. Other projects linked to that billing account lost access to the Gemini API.
Cause: During the transition flow, the infrastructure to support Prepay is created on your billing account immediately after you accept the confirmation dialog. If you don't complete the prepayment steps, the configuration remains in an unchargeable state. Because this state applies at the billing account level, it restricts access for all projects linked to that billing account that rely on Prepay services.
Resolution: Because the account state has already changed, there is no automatic way to revert the state if you abandon the payment flow. To restore service to your linked projects, do one of the following:
- Complete the setup: Return to Google AI Studio, restart the billing setup flow, and complete the prepayment process. After the payment is processed, the Prepay billing plan becomes active and the service is restored.
- Contact Support: If you don't want to use the Prepay billing plan and want to revert your billing account back to Postpay, contact Cloud Billing Support to manually reset your account state.
Где я могу получить помощь с оплатой счетов?
To get help with billing, see Get Cloud billing support .