Skip to content
inetGeek

OpenAI vs Google Gemini API

SEPT 2026 audit

A comparison of OpenAI and Google Gemini API built from values read directly from each provider's own documentation, with the source recorded against every figure.

Reviewed by Palash BagchiUpdated 23 criteria comparedSources last checked

The short answer

Choose OpenAI if…

Work that fits inside the short-context rate, where the cheapest tier is $0.20 per million input tokens and the batch tier halves everything above it.

Editorial · Palash Bagchi · approved

Choose Google Gemini API if…

Getting to a working prototype without a card, then staying on the cheapest frontier-adjacent rates in this set — $0.75 per million input tokens is well under half what Anthropic and OpenAI charge for their top models.

Editorial · Palash Bagchi · approved

Consider something else if…

  • OpenAI: Long prompts cross into the long-context rate and roughly double the bill, which is a cliff the flat-rate vendors do not have.
  • Google Gemini API: The rates are dated: they roughly double on 1 January 2027, free-tier content is used to improve Google's products, and rate limits are not published anywhere you can read before signing up.

14 sourced criteria separate them — see where, with sources, below.

No affiliate links, sponsored placements or paid rankings appear on this site. Ordering follows the sourced data and the stated criteria.

01.

At a glance.

CriterionOpenAIGoogle Gemini API
Pricing
Pricing modelPer million tokens, with a second rate above the short-context threshold — long-context input and output cost roughly double. Batch, Flex, Fast and standard tiers are priced separately, and regional processing adds a 10% uplift on models released from March 2026.Per million tokens, with dated price changes published in advance — the current Gemini 3.x rates are explicitly promotional through 31 December 2026 and roughly double on 1 January 2027. A free tier exists, and its content is used to improve Google's products where the paid tier's is not.
Infrastructure
RegionsTen data-residency regions: US, Europe (EEA + Switzerland), Australia, Canada, Japan, India, Singapore, South Korea, United Kingdom, United Arab Emirates. Regional processing (inference) only in US, EU and UAE; the rest are storage-only.Google publishes availability as a country list rather than deployment regions: the Gemini API and Google AI Studio are listed as available in 230 countries and territories, counted from the page's own list, which publishes no total. Country and territory availability for access, not a choice of data region.
Inference
Input price, top model
$10 per million input tokens for gpt-6-astra at short context.
$0.75 per million input tokens for Gemini 3.8 Flash through 31 December 2026, then $1.50. Gemini 3.1 Pro, still preview, is $2.00 for prompts up to 200k tokens and $4.00 above.
Output price, top model
$50 per million output tokens for gpt-6-astra at short context.
$3.75 per million output tokens for Gemini 3.8 Flash through 31 December 2026, then $7.50. Thinking tokens are billed as output.
Input price, cheapest model
$0.10 per million input tokens for gpt-6-luna at short context.
$0.30 per million input tokens for Gemini 3.5 Flash-Lite, with output at $2.50.
Context window
1,050,000 tokens on gpt-6-astra.
1,048,576 tokens for Gemini 3.8 Flash. Read from the Vertex AI model card: the Gemini API docs build their model cards client-side and publish no figure a fetch can read.
Max output tokens
128,000 tokens on gpt-6-astra.
65,536 tokens for Gemini 3.8 Flash, and Google counts thinking tokens as output.
Prompt cachingSupported — Cached input is a tenth of the input rate; cache writes are priced above it.Supported
Batch discount50% off input and output through the Batch API: gpt-6-astra falls from $10.00/$50.00 to $5.00/$25.00 at short context.50% off through the Batch API, which is a paid-tier feature.
Rate limitsOrg- and project-level limits in RPM, RPD, TPM, TPD and IPM that vary by model; usage tiers graduate automatically as API spend rises.Tied to a usage tier — Free, then Tier 1/2/3 unlocked by cumulative spend — and enforced as requests per minute, input tokens per minute and requests per day. Google publishes no numbers in the docs: limits are viewed in AI Studio and are stated not to be guaranteed.
Compliance
ISO 27001
ISO/IEC 27001:2022 certified, alongside 27017, 27018 and 27701; the certificate scope names the API, ChatGPT Enterprise and ChatGPT Edu.
Google commits to maintain ISO/IEC 27001:2013 certification for the Processor Services, which include Gemini API Paid Services. Contractual commitment in the DPA the Gemini API terms incorporate, not a Gemini-specific ISO certificate.
GDPR / data residency
Per-project data residency stores customer content at rest in a chosen region; non-US regions need abuse-monitoring approval and a Modified Retention amendment.
Processed under Google's Data Processing Addendum on the paid tier; abuse-detection logs may be stored or cached in any country where Google has facilities. Scope: the logs Google keeps for Paid Services to detect Prohibited Use Policy violations.
Encryption at restData protection controls include encryption of your data in transit and at rest, per the applicable ChatGPT Enterprise or API organization settings. Stated in OpenAI's Codex HIPAA configuration guide; no separate API-docs statement.Google security policies mandate encryption at rest for all user data; personal data is encrypted at the storage level, generally using AES256. From the processor DPA that the Gemini API Additional Terms incorporate for Paid Services.
Role-based access control
Role-based access control with preset and custom roles, groups syncable from an identity provider via SCIM, scoped at organization or project level.
The only IAM role published for the Gemini API is a service agent role for GCS reads; the reference states there are no IAM permissions for the service.
Dedicated infrastructureScale Tier offers more predictable capacity on eligible models for enterprise pay-as-you-go traffic; Reserved Tier covers GPT-5.6 and later models.Provisioned throughput is offered as optional access on the Enterprise tier, which the pricing page says is powered by Gemini Enterprise Agent Platform.

Only criteria both providers publish appear here; a tinted cell marks a real difference. Criteria only one of them documents are listed below, and an absence there means we found no source — not that the feature is missing. How we source this.

The small bar above a value is inetGeek's own lean toward that side — computed from the same facts shown, never a number the provider published. See the picker below "The short answer" to weigh only the criteria you care about.

02.

Where they differ.

Pricing model

OpenAI
Per million tokens, with a second rate above the short-context threshold — long-context input and output cost roughly double. Batch, Flex, Fast and standard tiers are priced separately, and regional processing adds a 10% uplift on models released from March 2026.
Google Gemini API
Per million tokens, with dated price changes published in advance — the current Gemini 3.x rates are explicitly promotional through 31 December 2026 and roughly double on 1 January 2027. A free tier exists, and its content is used to improve Google's products where the paid tier's is not.
Sources (2) →
  • Pricing — OpenAI API docs ↗

    “Prices per 1M tokens. [...] Regional processing (data residency) endpoints are charged a 10% uplift for models released on or after March 5, 2026 [...] Priority processing was renamed Fast mode on July 30, 2026.”

    Read 2026-09-06 · official pricing · Report a correction

  • Gemini Developer API Pricing ↗

    “Paid Tier, per 1M tokens in USD [...] $0.75 through December 31, 2026. $1.50 starting January 1, 2027. [...] Used to improve our products | Yes | No”

    Read 2026-09-06 · official pricing · Report a correction

Regions

OpenAI
Ten data-residency regions: US, Europe (EEA + Switzerland), Australia, Canada, Japan, India, Singapore, South Korea, United Kingdom, United Arab Emirates. Regional processing (inference) only in US, EU and UAE; the rest are storage-only.
Google Gemini API
Google publishes availability as a country list rather than deployment regions: the Gemini API and Google AI Studio are listed as available in 230 countries and territories, counted from the page's own list, which publishes no total. Country and territory availability for access, not a choice of data region.
Sources (2) →

Input price, top model

OpenAI
$10 per million input tokens for gpt-6-astra at short context.
Google Gemini API
$0.75 per million input tokens for Gemini 3.8 Flash through 31 December 2026, then $1.50. Gemini 3.1 Pro, still preview, is $2.00 for prompts up to 200k tokens and $4.00 above.
Sources (2) →
  • Pricing — OpenAI Platform ↗

    “Short context Long context Model Input Cached input Cache writes Output Input Cached input Cache writes Output gpt-6-astra $10.00 $1.00 $12.50 $50.00 $20.00 $2.00 $25.00 $75.00”

    Read 2026-09-14 · official pricing · Report a correction

  • Gemini Developer API Pricing ↗

    “Gemini 3.8 Flash [...] Input price | Free of charge | $0.75 through December 31, 2026. $1.50 starting January 1, 2027. [...] Gemini 3.1 Pro Preview [...] Input price | Not available | $2.00, prompts <= 200k tokens $4.00, prompts > 200k tokens”

    Read 2026-09-06 · official pricing · Report a correction

Output price, top model

OpenAI
$50 per million output tokens for gpt-6-astra at short context.
Google Gemini API
$3.75 per million output tokens for Gemini 3.8 Flash through 31 December 2026, then $7.50. Thinking tokens are billed as output.
Sources (2) →

Input price, cheapest model

OpenAI
$0.10 per million input tokens for gpt-6-luna at short context.
Google Gemini API
$0.30 per million input tokens for Gemini 3.5 Flash-Lite, with output at $2.50.
Sources (2) →

Context window

OpenAI

1,050,000 tokens on gpt-6-astra.

Google Gemini API

1,048,576 tokens for Gemini 3.8 Flash. Read from the Vertex AI model card: the Gemini API docs build their model cards client-side and publish no figure a fetch can read.

Sources (2) →

Max output tokens

OpenAI

128,000 tokens on gpt-6-astra.

Google Gemini API

65,536 tokens for Gemini 3.8 Flash, and Google counts thinking tokens as output.

Sources (2) →

Batch discount

OpenAI
50% off input and output through the Batch API: gpt-6-astra falls from $10.00/$50.00 to $5.00/$25.00 at short context.
Google Gemini API
50% off through the Batch API, which is a paid-tier feature.
Sources (2) →

Rate limits

OpenAI
Org- and project-level limits in RPM, RPD, TPM, TPD and IPM that vary by model; usage tiers graduate automatically as API spend rises.
Google Gemini API
Tied to a usage tier — Free, then Tier 1/2/3 unlocked by cumulative spend — and enforced as requests per minute, input tokens per minute and requests per day. Google publishes no numbers in the docs: limits are viewed in AI Studio and are stated not to be guaranteed.
Sources (2) →
  • Rate limits - OpenAI API docs ↗

    “Rate limits use metrics such as RPM (requests per minute), RPD (requests per day), TPM (tokens per minute), TPD (tokens per day), IPM (images per minute) [...] Rate limits are defined at the organization level and at the project level, not user level. [...] As your spend on our API goes up, we automatically graduate you to the next usage tier. This usually results in an increase in rate limits across most models.”

    Read 2026-09-13 · official docs · Report a correction

  • Rate limits — Gemini API ↗

    “Rate limits depend on a variety of factors (such as your usage tier) and can be viewed in Google AI Studio. [...] Specified rate limits are not guaranteed and actual capacity may vary. [...] Usage tier | Qualification | Billing tier cap Free | Active project or free trial | N/A Tier 1 | Set up and link an active billing account | $250”

    Read 2026-09-06 · official docs · Report a correction

ISO 27001

OpenAI
ISO/IEC 27001:2022 certified, alongside 27017, 27018 and 27701; the certificate scope names the API, ChatGPT Enterprise and ChatGPT Edu.
Google Gemini API
Google commits to maintain ISO/IEC 27001:2013 certification for the Processor Services, which include Gemini API Paid Services. Contractual commitment in the DPA the Gemini API terms incorporate, not a Gemini-specific ISO certificate.
Sources (2) →
  • OpenAI Trust Portal ↗

    “Our products are also ISO 27001, 27017, 27018, and 27701 certified. [...] for OpenAI's API, ChatGPT Enterprise, and ChatGPT Edu services.”

    Read 2026-09-13 · official site · Report a correction

  • Data Processing Addendum for Products Where Google is a Data Processor ↗

    “means ISO/IEC 27001:2013 certification or a comparable certification for the Processor Services. [...] 7.4 Security Certification. To evaluate and help ensure the continued effectiveness of the Security Measures, Google will maintain the ISO 27001 Certification or other appropriate measures to demonstrate the effectiveness of the Security Measures.”

    Read 2026-09-13 · official site · Report a correction

GDPR / data residency

OpenAI
Per-project data residency stores customer content at rest in a chosen region; non-US regions need abuse-monitoring approval and a Modified Retention amendment.
Google Gemini API
Processed under Google's Data Processing Addendum on the paid tier; abuse-detection logs may be stored or cached in any country where Google has facilities. Scope: the logs Google keeps for Paid Services to detect Prohibited Use Policy violations.
Sources (2) →

Encryption at rest

OpenAI
Data protection controls include encryption of your data in transit and at rest, per the applicable ChatGPT Enterprise or API organization settings. Stated in OpenAI's Codex HIPAA configuration guide; no separate API-docs statement.
Google Gemini API
Google security policies mandate encryption at rest for all user data; personal data is encrypted at the storage level, generally using AES256. From the processor DPA that the Gemini API Additional Terms incorporate for Paid Services.
Sources (2) →

Role-based access control

OpenAI
Role-based access control with preset and custom roles, groups syncable from an identity provider via SCIM, scoped at organization or project level.
Google Gemini API
The only IAM role published for the Gemini API is a service agent role for GCS reads; the reference states there are no IAM permissions for the service.
Sources (2) →

Dedicated infrastructure

OpenAI
Scale Tier offers more predictable capacity on eligible models for enterprise pay-as-you-go traffic; Reserved Tier covers GPT-5.6 and later models.
Google Gemini API
Provisioned throughput is offered as optional access on the Enterprise tier, which the pricing page says is powered by Gemini Enterprise Agent Platform.
Sources (2) →

When these numbers change, hear about it. Sources are re-checked monthly; a repricing goes out as a short note.

Confirm by email; unsubscribe from any issue. Your address goes to Kit and nowhere else — what we do with it.

03.

Documented by only one.

These criteria are published by one provider and not the other. An absence here means we have not found a source, not that the feature is missing — except where we say we read the other provider's own page on a given date and it does not state it. Those rows lean, and the provider can correct them with a link.

Free tierGoogle Gemini API: Yes
Kind of free offerGoogle Gemini API: Free tier
Entry paid planGoogle Gemini API: $5 minimum prepaid credit to move from the Free Tier to the Paid Tier; the minimum credit purchase is $5 and the maximum $5,000. No monthly plan fee — usage is billed per token. Applies to the Prepay billing plan; some accounts are offered or assigned Postpay instead.
SOC 2OpenAI: SOC 2 Type 2 report by an independent third-party auditor covering security, confidentiality, privacy and availability; access requested in the Trust Portal.
HIPAAOpenAI: BAA-eligible endpoints can process PHI once a Business Associate and Healthcare Addendum is executed; live Web Search is not HIPAA eligible.
PCI DSSOpenAI: PCI DSS v4.0.1: compliance maintained for the components of ChatGPT that support delegated payment processing. Stated for ChatGPT delegated payment processing; the API platform is not named in the PCI scope.
Customer-managed keysOpenAI: Enterprise Key Management encrypts customer content with your own KMS keys; BYOK via AWS KMS, Google Cloud or Azure Key Vault.
Private networking / VPCOpenAI: Azure Private Link to regional OpenAI API endpoints; not self-service, and incompatible with IP allowlist controls or mutual TLS.
04.

Questions this comparison answers.

Should I choose OpenAI or Google Gemini API?

Pick OpenAI if Work that fits inside the short-context rate, where the cheapest tier is $0.20 per million input tokens and the batch tier halves everything above it.

Pick Google Gemini API if Getting to a working prototype without a card, then staying on the cheapest frontier-adjacent rates in this set — $0.75 per million input tokens is well under half what Anthropic and OpenAI charge for their top models.

Provider pages

Related comparisons

Comments

Every page here is sourced and dated.