Gemini API

Gemini API through llmbox: Gemini 4 Argon and Hydrogen, the Gemini Flash line, image generation and Veo video with one API key — no Google AI Studio key, one shared balance, pay as you go.

13
Google models behind one key
−77%
below direct rates

Google models and pricing

ModelTypeInput · 1MOutput · 1M
Gemini 3.1 Flash Litegoogle/gemini-3.1-flash-liteText$0.10$0.40
Gemini 3.7 Flashgoogle/gemini-3.7-flashText$0.225$1.125
Gemini 3.8 Flashgoogle/gemini-3.8-flashText$0.225$1.125
Gemini 3.6 Flashgoogle/gemini-3.6-flashText$0.25$1.215
Gemini 3.1 Pro Previewgoogle/gemini-3.1-pro-previewText$0.30$1.70
Gemini 4 Hydrogengoogle/gemini-4-hydrogenText$0.344$1.72
Gemini 4 Argongoogle/gemini-4-argonText$0.459$2.295
Gemini 3.1 Progoogle/gemini-3.1-proText$0.60$2.45
Gemini 3.1 Flash Imagegoogle/gemini-3.1-flash-imageImages$0.03 per image
Gemini 3 Pro Imagegoogle/gemini-3-pro-imageImages$0.04 per image
Veo 3.1 Litegoogle/veo-3.1-liteVideofrom $0.03 per second
Veo 3.1 Fastgoogle/veo-3.1-fastVideofrom $0.05 per second
Veo 3.1google/veo-3.1Videofrom $0.25 per second

Text model prices are per 1M tokens. Reasoning counts as output tokens.

About the Google API

Gemini API models on llmbox

llmbox gives you Google's Gemini models with one key and one base URL, alongside models from other vendors. You don't need a Google account, an AI Studio key or a Google Cloud project, and usage across all models is deducted from a single prepaid balance as you go. Every request appears in the request log with its status and cost, so comparing Gemini with other vendors on the same workload is straightforward.

The catalog covers three areas: text, images and video.

  • Gemini 4 Argon — Google's flagship reasoning model for complex code, agents, math and science;
  • Gemini 4 Hydrogen — a fast Gemini 4 generation model for everyday coding and agents, Google's recommended upgrade from 3.8 Flash;
  • Gemini 3.8 Flash — the newest Flash model, which Google describes as the most intelligent in the line, for agents and high-volume product workloads;
  • Gemini 3.6 Flash — the previous Flash generation, for code generation and fast agent loops;
  • Gemini 3.1 Pro — the Pro tier of Gemini 3, reasoning at the high level by default;
  • Gemini 3.1 Flash Lite — a lightweight text model for classification, data extraction and short answers;
  • Gemini 3 Pro Image — the larger image model, for complex scenes and work with reference images;
  • Gemini 3.1 Flash Image — an image model for fast, high-volume tasks;
  • Veo 3.1 — the full Veo 3.1 model, with sound, for final versions;
  • Veo 3.1 Fast — the same capabilities, sound included, for iterations and series;
  • Veo 3.1 Lite — short videos from a prompt or an image in high volume.

According to Google's documentation, Gemini 4 Argon, 4 Hydrogen, 3.8 Flash, 3.6 Flash and 3.1 Pro have a 1,048,576-token context window and return up to 65,536 tokens per response. The table also lists Gemini 3.5 Flash and Gemini 3.7 Flash — Google has deprecated them and recommends moving to 3.6 Flash and 3.8 Flash — and the Gemini 3.1 Pro Preview version. The current list and rates are in the table on this page, and every model has its own page with pricing, a sample request and answers to common questions.

What you get

Access works the same way for every vendor on llmbox:

  • one API key for every model in the catalog;
  • an OpenAI-compatible API, plus the Responses API for Gemini 4 Argon, 4 Hydrogen and 3.8 Flash;
  • one prepaid balance that covers usage across all models;
  • a request log with the status, tokens and cost of every call;
  • separate keys per project, each with its own spend limit.

Text, image and Veo models are all available with one key, even though their request formats differ. That helps when a product has several steps: Flash Lite writes a product description and an image model draws an illustration for it — all paid from the same balance.

How to connect

  1. Create an API key in the API keys section of your dashboard. You can copy it later with the Show key button.
  2. Give your client the key and the llmbox base URL from the Quickstart.
  3. Pick a model, for example google/gemini-3.8-flash, and send your first request.

Topping up is described in Balance and pricing. Don't ship the key in browser or mobile code: it can be extracted from a client app. If requests start in a front end, route them through your own server.

Which Gemini model to choose

Gemini model names read as generation plus tier. A higher number means a newer model. The Pro tier and the Argon flagship are built for reasoning depth, Hydrogen and Flash for speed and cost at high request volume, and Flash Lite for the simplest, highest-volume tasks.

TaskStart withCompare with
Agents and coding assistants in Codex CLI, Cursor, OpenCodeGemini 4 HydrogenGemini 3.8 Flash
An agent where a larger model plans and a fast one executes the stepsGemini 4 Argon + Gemini 4 HydrogenGemini 3.8 Flash
The hardest reasoning, math, large code changesGemini 4 ArgonGemini 3.1 Pro
Fast code generation in short iterationsGemini 3.6 FlashGemini 3.8 Flash
Analytics and answers over long documentsGemini 3.1 ProGemini 4 Argon
Classification, field extraction, short answersGemini 3.1 Flash LiteGemini 3.8 Flash
Images: fast and in volumeGemini 3.1 Flash ImageGemini 3 Pro Image
Images: complex scenes and referencesGemini 3 Pro ImageGemini 3.1 Flash Image
A final video with soundVeo 3.1Veo 3.1 Fast
Video series with sound, variantsVeo 3.1 FastVeo 3.1
Many short videosVeo 3.1 Litevideo models

A practical approach: start with the smallest model that fits, test it on real data, and move up only where results fall short. The key stays the same when you switch models, and the request log makes it easy to compare what the same workflow costs on different models.

Reasoning

Gemini text models reason before they answer. Per Google's documentation, Gemini 4 Argon and 3.8 Flash have three levels — low, medium and high, with medium as the default; Gemini 4 Hydrogen adds a fourth, xhigh; Gemini 3.1 Pro runs at high by default. Keep the high levels for tasks where the model has to plan and check its own work; on simple agent steps a low level helps cut spend, since reasoning tokens count as output.

Typical use cases

  • a support agent that calls your functions and returns JSON that conforms to a schema — Gemini 3.8 Flash;
  • a coding assistant in Codex CLI or Cursor — Gemini 4 Hydrogen, with Gemini 4 Argon for the hardest tasks;
  • labeling and classifying a stream of reviews, requests and tickets — Gemini 3.1 Flash Lite;
  • pulling invoice details out of documents and screenshots — Gemini 3.8 Flash with image input;
  • illustrations, covers and product-card visuals — Gemini image models;
  • an ad with dialogue and sound effects — Veo 3.1, drafts for it — Veo 3.1 Fast;
  • short vertical clips for social media and animated product photos — Veo 3.1 Lite.

Image and video generation take noticeable time, so run them in the background. Save finished files to your own storage so you can show them to users without generating them again.

SDKs and tools

The official OpenAI libraries for Python and Node work, as does a plain HTTP client. Gemini 4 Argon, 4 Hydrogen and 3.8 Flash plug into Codex CLI, Cursor and OpenCode; Gemini 3.1 Flash Lite into Cursor and OpenCode. Image and video models don't plug into these tools — call them from your own code. Ready-made settings are in Integrations.

What's available through llmbox

Gemini 4 Argon, 4 Hydrogen and 3.8 Flash support reasoning, calling your own functions, JSON-schema output, streaming, caching of a repeated prompt prefix and image input. Each other model's page shows which features it has. Request formats are covered in Chat Completions, Images and Video.

Pricing and balance

You pay from a prepaid balance as you go — no subscriptions and no mandatory monthly payments. Text models are billed per input and output token at rates per 1M tokens, image models per generated image, and Veo models per second of finished video according to the rate table on the model's page.

Your balance is shown in the Balance section of your dashboard. Spend by day and by model is in the Usage section, and every request with its cost is in the Logs section.

Keys and spend control

You can have several keys: one for production, one for testing, one per service. Each key gets its own spend limit; once it's reached, requests with that key stop while other keys keep working. A compromised key is revoked in the dashboard — then issue a new one and update it in your app's environment.

Request data

Messages, prompts and reference images are processed by Google's model — it can't answer without them. If your data contains personal information or confidential material, take that into account when you design the workflow.

Getting started

  1. Pick a model in the table above and open its page — it lists the rates, a sample request and the use cases the model fits.
  2. Create a key in the dashboard and set up your client as described in How to connect.
  3. Send test requests with a few typical inputs from your workload.
  4. Open the request log: status, tokens and cost per call show whether the model fits or whether to compare it with its neighbor in the table.

FAQ

Which Gemini models are available?

Text models Gemini 4 Argon, Gemini 4 Hydrogen, Gemini 3.8 Flash, Gemini 3.6 Flash, Gemini 3.1 Pro and Gemini 3.1 Flash Lite; image models Gemini 3 Pro Image and Gemini 3.1 Flash Image; and the video models Veo 3.1, Veo 3.1 Fast and Veo 3.1 Lite. The table also lists Gemini 3.7 Flash, Gemini 3.5 Flash and Gemini 3.1 Pro Preview; the current list with rates is there too.

Do I need a Gemini API key?

No. You don't need a Google AI Studio key or a Google Cloud account: create an llmbox key in the API keys section of your dashboard and pass it instead of a Gemini key. The same key works with every other model in the catalog, including other vendors.

How is Gemini API pricing calculated?

Text models are billed per input and output token at rates per 1M tokens; reasoning tokens count as output, and Gemini 3.8 Flash also has a separate cache-read rate. Image models are billed per generated image, and Veo models per second of finished video according to the rate table on the model's page.

Is this a subscription?

No. You pay from a prepaid balance as you go: there is no subscription and no monthly fee, and only actual usage is deducted.

How do I top up my balance?

Open the Balance section of your dashboard and add the amount you need in US dollars. The same balance pays for Gemini and for every other model in the catalog.

Can I use Gemini in Codex CLI, Cursor or OpenCode?

Yes. Gemini 4 Argon, Gemini 4 Hydrogen and Gemini 3.8 Flash are available in the Responses API for Codex CLI and in Chat Completions for Cursor and OpenCode. Gemini 3.1 Flash Lite works with Cursor and OpenCode. Setup steps are in the Integrations section of the docs.

What model name do I pass to the API?

The model ID shown on the model page. Google model IDs carry the google/ prefix, for example google/gemini-3.8-flash or google/gemini-4-argon. Each ID is listed in the table on this page and on the model's own page, next to a sample request.

Can I cap spend for one project?

Yes. Create a separate key for the project and set a spend limit on it in your dashboard. Once the limit is reached, that key stops accepting requests while your other keys keep working.

Other vendors