Gemini API vs Ollama local runtime
Gemini APIby GooglePaid fromNot statedAccessHTTP, SDKAgentsNot agent-friendlyAPI QA score[SCORE]View API
Ollama local runtimeby OllamaPaid fromNot statedAccessHTTP, SDK, CLIAgentsNot statedAPI QA score[SCORE]View API
Fact by fact
11 different10 stated by only one1 the same on both
The basics
What it isGemini API: Gemini models by API key: text, vision, audio in; tools for Search and Maps grounding, code execution, file search; batchOllama local runtime: Free software that runs open models on the buyer's own machine and serves them on a local HTTP API at localhost:11434
AccessGemini API: HTTP, SDKOllama local runtime: HTTP, SDK, CLI
Still on saleGemini API: YesOllama local runtime: Yes
What they work on
Price
PricesGemini API: Ollama local runtime: Not stated
- Grounding with Google Search (Gemini 3 and newer)$14 per 1,000 requests
Buying and paying
Agent gets a key aloneGemini API: Nokey created in AI StudioOllama local runtime: Yesno credential needed locally
First call without a keyGemini API: Not statedOllama local runtime: Yes'Cloud requests need an API key. Local requests do not.'
Agent can payGemini API: NoOllama local runtime: Not stated
Payment railsGemini API: credits, otherprepaid and pay-as-you-go via Google billingOllama local runtime: none
Payment protocolsGemini API: noneno protocol named in the batch paymentRails cellOllama local runtime: noneno x402, MPP, ACP or AP2 on pages read
Subscription requiredGemini API: Noprepaid or pay as you goOllama local runtime: No
Smallest purchase (USD)Gemini API: Not statedOllama local runtime: From $0
Price published as dataGemini API: Not statedOllama local runtime: Noprices only in the HTML page
Pay per callGemini API: Yesper token, per grounded requestOllama local runtime: Not stated
Reading and signing up
Public pricesGemini API: Yesper model, per 1M tokens, on aistudio.google.com/docs/pricingOllama local runtime: Yesplan prices on the public pricing page
Self-serve sign-upGemini API: YesGoogle account and AI StudioOllama local runtime: Yesdownload; no account needed for local use
Free useGemini API: YesFree tier with free tokens on some modelsOllama local runtime: Yes'Run models locally' included in the $0 plan
OpenAPIGemini API: Not statedOllama local runtime: Yeshttps://docs.ollama.com/openapi.yaml
OpenAPI versionGemini API: Not statedOllama local runtime: 3.1.0
Docs without loginGemini API: YesOllama local runtime: YesAPI reference readable without an account
llms.txtGemini API: Not statedOllama local runtime: Yesdocs.ollama.com/llms.txt
Docs as MarkdownGemini API: Not statedOllama local runtime: YesAccept: text/markdown returns text/markdown on docs.ollama.com
Jobs both do
Open a job to see every API that does it.

