Roar AI
Get started
Google

Gemini API

Access Google’s Gemini models through Roar AI for multimodal applications, long documents, software development and AI agents.

Compare model pricing, manage usage and reach over 200 AI models from one account.

These are API prices for building with Gemini models, billed by what you use. They are not the price of a Gemini plan.

Gemini API models and pricing

Compare every Gemini model’s input and output rates, context window, and its cached, batch and priority rates where it has them.

ModelInput / 1MOutput / 1MContextBest forProcessed in
$4$201.05MHard reasoning, agents and scienceGlobal
Cached input$0.20—Repeat a long prompt prefix and those tokens bill at this rate. Automatic.
Batch$2$10Results within 24 hours, for work nobody is waiting on.
Priority$7.20$36Faster service, for something a person is sitting in front of.
Everything about Gemini 4 Carbon
$4$201.05MFinance, legal and research workGlobal
Cached input$0.20—Repeat a long prompt prefix and those tokens bill at this rate. Automatic.
Batch$2$10Results within 24 hours, for work nobody is waiting on.
Priority$7.20$36Faster service, for something a person is sitting in front of.
Everything about Gemini 4 Argon
$3$151.05MFinance, legal and long documentsGlobal
Cached input$0.15—Repeat a long prompt prefix and those tokens bill at this rate. Automatic.
Batch$1.50$7.50Results within 24 hours, for work nobody is waiting on.
Priority$5.40$27Faster service, for something a person is sitting in front of.
Everything about Gemini 4 Neon
$2$121.05MVideo, audio and long PDFsGlobal
Cached input$0.20—Repeat a long prompt prefix and those tokens bill at this rate. Automatic.
Batch$1$6Results within 24 hours, for work nobody is waiting on.
Long requests$4$18Above 200,000 input tokens, the whole request is billed at these rates.
Everything about Gemini 3.1 Pro
$1.50$7.501.05MFast agents and high-volume workGlobal
Batch$0.75$3.75Results within 24 hours, for work nobody is waiting on.
Everything about Gemini 4 Hydrogen
$0.75$3.751.05MCoding agents at a mid-range priceGlobal
Cached input$0.075—Repeat a long prompt prefix and those tokens bill at this rate. Automatic.
Batch$0.375$1.875Results within 24 hours, for work nobody is waiting on.
Everything about Gemini 3.8 Flash

Per million tokens, in US dollars, unless a row names another unit. API usage is separate from consumer Gemini subscriptions. Compare them for your own usage with the token calculator.

Which Gemini model should you use?

Gemini models differ in reasoning, speed, context length and cost. Choose by what your application reads and how hard the task is.

The hardest reasoning, agent and science work, where Argon falls short.

Finance, legal and long-document work, where the answer can wait for the thinking.

Long finance, legal and research work, where a wrong answer costs more than no answer.

Fast agents that take many steps, or carry out a plan a larger Gemini wrote.

Near-flagship coding at Flash speed, and large volumes of video, audio and PDFs.

Questions across video, audio, images and long PDFs at once, and abstract reasoning and science problems.

Why access Gemini through Roar AI?

Roar AI is one platform for calling and managing AI models from Google, Anthropic, OpenAI, DeepSeek and other labs.

OpenAI-compatible API

Call Gemini with the OpenAI SDK or plain HTTP, through the same address and key as every other model on Roar AI.

One account across AI labs

Use Gemini alongside Claude, GPT, DeepSeek and others without setting up an account with each.

Published rates

Compare token, cached, batch and priority rates before you choose a model.

Usage and billing in one place

Follow usage across models, apps and teams, on one monthly invoice.

The right model for each job

Use a faster Gemini model for routine work and a stronger one where accuracy matters, and compare other labs’ models where they fit better.

How to use the Gemini API

Getting started takes three steps:

  1. Create a Roar AI account and generate an API key.
  2. Point your SDK at the Roar AI API address.
  3. Choose a Gemini model and make your first request.

Roar AI serves Gemini through its OpenAI-compatible API, so you can use the OpenAI SDK or send requests over HTTP. It does not serve Google’s own Gen AI SDK format.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.roar-ai.com/v1",
    api_key=os.environ["ROAR_API_KEY"],
)

reply = client.chat.completions.create(
    model="gemini-3.8-flash",
    messages=[{"role": "user", "content": "Summarise this contract in plain English."}],
)
print(reply.choices[0].message.content)

Read the API documentation.

How Gemini API pricing works

Gemini models are billed by the tokens they process. Images, audio and video are counted in tokens differently from text, so analysing a video does not cost the same as a text prompt of similar length.

Prompt caching lowers the cost of instructions or reference material you send repeatedly, and batch processing costs less for work that can wait. Some models also offer a priority tier, listed in the table.

For long documents, measure the tokens real documents use rather than assuming every request needs the largest context window, and send only the parts that matter where you can.

Gemini API vs the Gemini app

The Gemini app is for people talking to Google’s AI assistant. The Gemini API is for using the models inside your own software, workflows and services.

A paid Gemini subscription is not needed to use Gemini models through Roar AI, and API usage is billed separately.

Where are Gemini API requests processed?

Gemini models are processed on international infrastructure. Your requests enter through the Roar AI gateway nearest you; the rest of the way, the route is the one we chose for each model, and it stays the same from call to call.

Frequently asked questions

Can I use the Gemini API through Roar AI?

Yes. Every Gemini model listed on this page is available through Roar AI’s API, on the same key as every other model on the platform.

How is Gemini usage billed?

At the published rate per model, on one monthly invoice together with any other models your team uses. The rate does not move with what a provider charges us.

Do I need a separate account with Google?

No. One Roar AI key reaches every Gemini model listed here, so there is no separate Google account to set up.

Where are Gemini requests processed?

Gemini models are processed on international infrastructure. Your requests enter through the Roar AI gateway nearest you.

How do I get a Gemini API key through Roar AI?

Create a Roar AI account and generate an API key from your dashboard, then use it with the Roar AI address and a Gemini model ID. The key is issued by Roar AI, not Google.

How much does the Gemini API cost?

It depends on the model, the tokens you use and any pricing tier. The table on this page shows Roar AI’s current rates for every Gemini model.

What is the cheapest Gemini model?

The Flash models are the ones to compare for high-volume work. Check the table against your own mix of input and output rather than assuming one model is cheapest for every task.

Can I use the Google Gen AI SDK?

Not today. Roar AI serves Gemini through its OpenAI-compatible API, so use the OpenAI SDK or plain HTTP requests with a Gemini model ID.

Does Gemini read images, audio, video and PDFs?

Many Gemini models accept these inputs, but formats and limits depend on the model. Check the model’s own page and the API documentation before sending files.

Is the Gemini API free?

Gemini usage through Roar AI is billed at the published rates. A free tier Google offers directly does not apply to Roar AI usage.

Can I switch between Gemini and other labs’ models?

Yes. The same Roar AI key reaches every model, so switching is a change to the model name, allowing for differences in parameters and capabilities.

Start building with Gemini

Use Gemini for reasoning, coding and multimodal work, with published rates and usage in one place.