Gemini 4 Neon API Costs for Structured JSON Extraction
Estimate Gemini 4 Neon extraction costs using explicit token, cache, validation, and retry assumptions, with a reproducible Google and OneMux price comparison.
Summary · TL;DR
An illustrative 100,000-document extraction workload costs $1,893 at the cited Google Standard token rates or $713.661 at the OneMux catalogue rates before retries. At the same assumed token usage, 10,000 retries raise those estimates to $2,082.30 and $785.0271, respectively.
Key Takeaways
- Compare prices per million tokens and distinguish ordinary input, cached input, and output that includes thinking.
- A valid JSON schema response is not necessarily a correct extraction; budget for both validation and content checks.
- The illustrative workload costs $18.93 per 1,000 accepted documents at Google Standard rates before retries, versus $7.13661 at the published OneMux rates.
- OneMux's published input and output price ratio is 0.377; actual savings depend on billing conditions, usage, cache treatment, and retries.
On this page (11)
The estimate in brief
For a structured extraction workload of 100,000 documents, assume each document uses 4,000 input tokens, of which 200 are billed as cached input, and 500 output tokens including thinking. At the prices below, the estimate is $1,893 with Google Standard or $713.661 with OneMux, before retries and other charges. These are illustrative calculations, not measured usage or quotes.
The decision is not just which input price is lower. Measure the cost per accepted extraction, including failed attempts, and check extracted values as well as JSON structure. OneMux publishes this guide and is one of the API providers compared.
Gemini 4 Neon prices and units
The OneMux catalogue snapshot was captured on November 24, 2026, at 08:40 UTC. The amounts below are US dollars per 1 million tokens. The official prices are the Google Standard rates described in Ofox’s Gemini 4 Neon pricing guide; the OneMux figures are the published catalogue snapshot, not a live quote.
| Price component | Google Standard | OneMux published price | OneMux-to-official ratio |
|---|---|---|---|
| Ordinary input | $3.00 | $1.131 | 0.377 |
| Output, including thinking | $15.00 | $5.655 | 0.377 |
| Cache read | $0.15 | $0.05655 | 0.377, calculated from listed prices |
The published overall price ratio is 0.377, equivalent to a 62.3% lower listed input and output rate. That comparison is not a guarantee of a 62.3% lower invoice: cache treatment, tier eligibility, token counts, retries, and other charges can differ. Check the current OneMux Gemini 4 Neon model page and applicable billing terms before budgeting.
The catalogue also lists cache-write prices of $0.15 official and $0.05655 OneMux per million tokens. The Ofox guide instead describes Google Neon as using implicit caching, with ordinary input charged when the cache is populated and no separate cache-storage charge. These descriptions should not be assumed interchangeable: confirm how the chosen route bills cache writes. The example below uses only the stated cache-read price and assumes all remaining input is ordinary input.
Ofox also reports Google Batch and Flex token rates at half of Standard and Priority rates at 1.8 times Standard. Those are separate Google service tiers, not assumptions about OneMux routing or availability. Verify current tier conditions and whether the workload qualifies before using them.
A reproducible extraction budget
Suppose a pipeline extracts invoice fields into JSON. It sends a document, instructions, and a schema with each attempt, then checks the response before accepting it.
| Assumption | Amount per attempt |
|---|---|
| Total input, including schema and instructions | 4,000 tokens |
| Input billed as cached, included in the total above | 200 tokens |
| Ordinary input | 3,800 tokens |
| Output, including thinking | 500 tokens |
| Search, file-search, and other tool charges | Not used |
These token counts are deliberately hypothetical. In particular, 200 cached tokens is an accounting assumption, not a promise that a short shared prefix will qualify for implicit caching. Use reported usage to replace it.
Google Standard: cost per attempt
| Component | Calculation | Cost |
|---|---|---|
| Ordinary input | 3,800 tokens at $3 per million | $0.0114 |
| Cached input | 200 tokens at $0.15 per million | $0.00003 |
| Output including thinking | 500 tokens at $15 per million | $0.0075 |
| Total | Sum of the three components | $0.01893 |
At one successful attempt per document, 100,000 attempts cost $1,893, or $18.93 per 1,000 accepted documents.
OneMux: same token counts
| Component | Calculation | Cost |
|---|---|---|
| Ordinary input | 3,800 tokens at $1.131 per million | $0.0042978 |
| Cached input | 200 tokens at $0.05655 per million | $0.00001131 |
| Output including thinking | 500 tokens at $5.655 per million | $0.0028275 |
| Total | Sum of the three components | $0.00713661 |
At 100,000 attempts, the estimate is $713.661, or $7.13661 per 1,000 accepted documents. This is a rate comparison using identical assumed usage; it does not establish that both routes will produce identical usage or results.
Add validation failures and retries
Now assume 10,000 of the initial attempts fail acceptance, each is retried once at the same token usage, and every retry succeeds. That is 110,000 attempts for 100,000 accepted documents.
| Route | Initial 100,000 attempts | 10,000 retry attempts | Total | Per 1,000 accepted |
|---|---|---|---|---|
| Google Standard | $1,893 | $189.30 | $2,082.30 | $20.823 |
| OneMux | $713.661 | $71.3661 | $785.0271 | $7.850271 |
Real retries may be longer or shorter, and some may fail again. These examples exclude taxes, tool charges, downstream validation infrastructure, and any charges whose treatment has not been established. A timed-out request should not automatically be recorded as free; reconcile uncertain attempts against usage and billing records.
Validate the JSON—and the extraction
Schema validation is an acceptance gate, not proof that the document was read correctly. For an invoice, define required fields and types—for example, an invoice number as a string, a currency code as a string, and a total as a number or null. Specify whether unexpected fields are allowed and how missing values should be represented.
Use this sequence when building the estimate:
- Check endpoint support. Confirm that the selected API endpoint and model route support the structured-output or schema parameters you intend to send. OneMux provides an OpenAI-compatible API, but compatibility for a particular schema feature depends on documented endpoint and parameter support; this integration has not been tested for this article.
- Parse and validate. Reject malformed JSON, missing required fields, incorrect types, and forbidden extra fields according to your schema. Also record truncation or incomplete responses separately.
- Apply business checks. A valid numeric total can still be wrong. Check currency, totals, and document-specific constraints; use a labelled sample or human review to assess extraction accuracy.
- Record every attempt. Keep document ID, route and tier, total input, actual cached input, output including thinking where reported, validation outcome, and retry outcome. Do not count cached input twice.
- Recalculate from accepted results. Divide the total recorded cost of all attempts by the number of accepted documents. Include failed attempts and any separately billed tools.
For planning, run a representative sample across document lengths and layouts, then use observed token distributions and failure rates rather than the single average above. Compare thinking settings only after checking acceptance quality: the Ofox guide reports that thinking tokens are billed as output and that task costs vary with thinking level. Its third-party benchmark figures are not measurements of this invoice workflow.
Where the estimate can go wrong
- Cache hits are assumed, not guaranteed. Shared instructions or schemas do not establish a billed cache hit. Use the provider’s usage records and confirm cache-write treatment.
- Visible JSON is not all output. Thinking tokens can increase output charges even when the returned object is small.
- Schema-valid can still be wrong. Track content accuracy separately from parse and schema pass rates.
- A retry percentage is not enough by itself. Record how many additional attempts occur and their actual token usage; escalation or repeated failures can change the result.
- Rates can change. The dated snapshot is a starting point. Consult current OneMux pricing and the chosen provider’s current tier terms before committing a budget.
Conclusion
For JSON extraction, budget in dollars per accepted document, not just dollars per million tokens. Start with the illustrative arithmetic, then replace its token and retry assumptions with observed usage and validation results. Keep Google Standard, alternative service tiers, and OneMux route conditions separate so that the comparison remains meaningful.
Sources
- Ofox: Gemini 4 Neon API pricing and task-cost analysis — source for the reported Google Standard and service-tier rates, thinking-token billing, and implicit-cache discussion.
- OneMux published catalogue snapshot, captured November 24, 2026, at 08:40 UTC — source for the dated OneMux prices and published price ratio shown above.
Published price snapshot
Captured 2026-11-24T08:40:08.983Z from the OneMux published catalogue. Prices retain website billing units; this is not a live benchmark. Tiered, cached or time-based billing may differ. Unknown values are not zero.
| Model | Official input | Official output | OneMux input | OneMux output | Published price ratio |
|---|---|---|---|---|---|
| Gemini 4 Neon | $3 | $15 | $1.131 | $5.655 | 0.377 |
Current OneMux prices. Compare workload costs only when input/output and billing units match; see each model page for tier conditions.
FAQ
How much does Gemini 4 Neon cost for 100,000 JSON extractions?
Under the article’s assumptions—4,000 input tokens including 200 cached tokens and 500 output tokens including thinking per attempt—the estimate is $1,893 at Google Standard rates or $713.661 at the dated OneMux catalogue rates, before retries and other charges.
Are thinking tokens included in Gemini 4 Neon output costs?
The cited Ofox pricing guide reports that thinking tokens are billed as output. Include them when estimating output usage rather than counting only the visible JSON.
Does valid JSON mean an extraction is accurate?
No. JSON parsing and schema validation establish structural compliance, not whether the extracted values match the source document. Apply business checks and evaluate accuracy separately.
Related articles
Guides
Gemini 3.1 Flash Image API costs for structured extraction
Estimate the token cost of extracting structured data from images, including validation failures and retries, with reproducible assumptions.
Guides
Qwen4 Max API Cost Guide for JSON Schema Extraction
Estimate Qwen4 Max extraction costs per document and per 100,000 documents, including retries, cache assumptions, and JSON schema validation.
Guides
GPT Image 2.6 Sunburst API costs for structured extraction: a planning guide
Estimate an image-to-JSON workload with explicit token assumptions, schema validation, retries, and pricing limitations.
Guides
GPT Image 2.6 Flare API cost estimates for schema-validated extraction
Build a reproducible API budget for structured extraction, while separating documented image-token rates from unknown extraction and OneMux prices.