How Much Does an AI Application Actually Cost?
It's simple to compare 1M Gemini, Claude, or ChatGPT tokens, but much harder to estimate the cost of an AI application used in production. AI in production can mean, among other things:
- LLM (generative AI)
- Grounding, other external tools, guardrails, and observability
- Semantic search, vector indexes, feature stores
- Document parsing, reranking
- Hosting, data ingestion, and querying
In the first half of 2026, the cost of some LLM models continued to drop, thanks to new cost-optimization techniques. At the same time, frontier (SOTA) models and agentic applications drove up total costs for the applications that use them. The cost per token can decrease even as total investment increases.
The cost that matters for business is the cost of the functional application with all its services and resources. In 2026, as competitors adopt AI, legacy applications are continuously upgraded, resulting in higher total cost and massive capital expenditure. As Gartner puts it:
"The improved predictability of ROI must occur before AI can truly be scaled up by the enterprise." (Source: Gartner)
Note: Prices in this article were verified on August 7, 2026. The article will be updated periodically going forward.
1. LLM Prices Moved in Both Directions
It's often said that "AI models are getting cheaper," and this is true for fast, compact models. But in parallel, premium models and agentic execution drove up costs significantly in 2026.
In the first half of 2026, three things happened simultaneously:
- the minimum threshold for text processing stayed low
- the performance available at intermediate tiers increased
- SOTA models and advanced reasoning raised the cost ceiling
Costs per 1M Tokens
The table below estimates the cost of a request (or several requests, depending on the provider) of 1 million input tokens and 200,000 output tokens, using standard rates, without caching or batching and without a long-context surcharge.
Capabilities between models are not equivalent, which is exactly why the wide cost range for the same volume is worth noting.
| Cloud and Model | Input / 1M | Output / 1M | Cost for 1M input, 200k output |
|---|---|---|---|
| Google Gemini 2.5 Flash-Lite | $0.10 | $0.40 | $0.18 |
| Google Gemini 2.5 Flash | $0.30 | $2.50 | $0.80 |
| Google Gemini 2.5 Pro | $1.25 | $10.00 | $3.25 |
| AWS Bedrock: Claude Haiku 4.5 | $1.00 | $5.00 | $2.00 |
| AWS Bedrock: Claude Sonnet 4.5 | $3.00 | $15.00 | $6.00 |
| Azure: GPT-5.2 Global | $1.75 | $14.00 | $4.55 |
| Azure: GPT-5.5 Global | $5.00 | $30.00 | $11.00 |
| Azure: GPT-5.5 Pro | $30.00 | $180.00 | $66.00 |
On Google Cloud, Gemini 2.5 prices range between $0.10/$0.40 for Flash-Lite and $1.25/$10 for Pro. Flex and Batch can cut standard rates by roughly 50%, and cached input is billed at a much lower rate than fully processed input. (Source: Google Cloud)
AWS even estimates that cached input can cost up to 90% less, and moving simple tasks from Sonnet to Haiku can cut costs by roughly two-thirds. Batch inference is available for some models at 50% of the on-demand price, and Intelligent Prompt Routing is billed at $1 per 1,000 requests and can reduce the model cost by up to 30% on AWS for supported combinations. (Source: Amazon Web Services)
Pricing, Optimization, and SOTA
Google released Gemini 3.1 Flash-Lite and Gemini 3.5 Flash in May. The latter is positioned as a model with intelligence close to the Pro tier, but at Flash-level cost and speed. The published standard price for Gemini 3.5 Flash is $1.50 for input and $9 for output, per million tokens. (Source: Google Cloud Documentation)
AWS put visibly more emphasis on optimizing LLM usage. In January, Bedrock extended prompt caching from five minutes to one hour for certain Claude models, enabling context reuse across longer conversations and agentic workflows. (Source: Amazon Web Services)
Azure illustrates why price evolution doesn't necessarily mean getting cheaper. GPT-5.2 had a global price of $1.75 for input and $14 for output. But GPT-5.5 climbed to $5 and $30, and the Pro variant to $30 and $180. The additional tiers buy SOTA capabilities. (Source: Microsoft Azure)
Execution Quality Versus Task Cost
For these reasons, in 2026 it became popular to classify requests and use the premium (SOTA) model only when the superior result justifies the cost (routing).
Why Routing? The Cheapest Model per Token Doesn't Always Lead to Optimal Cost
CHEAP MODEL
│
├── correct zero-shot answer ──────────────────> low cost
│
└── incorrect answer
│
├── retry
├── model switch
├── engineer intervention
└── task redone ──────────────────────────> high total cost
SOTA MODEL
│
├── simple request ────────────────────────────> unjustified cost
│
└── complex request solved correctly ──> justified cost 2. AI Workflow Costs Beyond Tokens
The cost of the language model (LLM) is broadly calculated as follows:
LLM Cost =
uncached input tokens x input rate
+ cached tokens x cache rate
+ billable output tokens x output rate
+ reasoning tokens
The cost of the AI application, however, is:
AI Application Cost =
LLM Cost
+ search and retrieval
+ index and storage
+ grounding
+ tool calls
+ guardrails
+ observability and logging
+ retries and errors
+ application infrastructure
More importantly, retries are one of the most overlooked sources of cost, especially in agentic AI. AI application cost must identify the points at which an AI flow can fail and must be mandatorily retried. In emerging agentic applications, a retry can mean dozens or hundreds of repeated billable steps.
The cost of an AI application that works correctly is calculated per deliverable:
- cost / accepted response
- cost / processed order
- cost / validated document
- cost / approved recommendation
- cost / resolved incident
Google Cloud: Grounding Can Cost More Than the Model
Let's assume a Gemini 2.5 Flash request uses 2,000 input tokens and produces 500 output tokens.
The LLM cost is approximately:
2,000 / 1,000,000 x $0.30
+
500 / 1,000,000 x $2.50
=
$0.00185
If you want to use grounding (searching Google for current information that substantially improves answer quality), you can no longer calculate just the token price.
After exceeding the available free quota, grounding for Gemini 2.5 costs $35 per 1,000 grounded prompts, or roughly $0.035 for a single one. So the grounding service will cost nearly 19 times more than token processing. For Gemini 3 models, Google charges $14 per 1,000 queries for grounding after the first 5,000 per month. And in this case too, a single user request can involve multiple billable searches. (Source: Google Cloud)
AWS: RAG Can Cost More Than the Model Itself
AWS published an example for a 50 GB knowledge base with 100,000 monthly searches.
- With standard retrieval, the cost is $250 for index storage and $100 for searches, totaling $350 / month.
- With agentic retrieval and an average of two internal searches per call, the same volume reaches: $250 for index storage + $400 for agentic calls + $200 for underlying searches. Totaling $850 / month.
These are the costs before calling the model that generates the final answer, which is billed separately. (Source: Amazon Web Services)
Bedrock Guardrails (AWS's AI safety filters) also use their own distinct cost units, including text units, image processing, and input vs. output metering. For example, text content filters are billed at $0.15 per 1,000 text units, and contextual grounding checks at $0.10 / text unit. (Source: Amazon Web Services)
Azure: An Example of Dozens of Cost Variables for a Single Service
Foundry IQ is the evolution of Azure AI Search, building a managed knowledge base for the whole company for use with agentic AI. As such, it aggregates a wide range of AI-related technologies, resulting in very detailed pricing before you even reach the LLM cost. Dedicated plans are billed, among other things, by the hour, based on Search Units, replicas and partitions, and the use of special features like Semantic Ranker, agentic retrieval, or access to external sources.
Azure will also offer Serverless, i.e. usage-based models with the scale-to-zero savings feature (shutting down when not in use), but, as with other clouds, actual prices depend on region, tier, and commercial agreement. (Source: Microsoft Azure)
We listed 12 cost variables in two paragraphs, which is why we recommend configuring services in Azure's calculator or the other clouds' calculators.
Official Pricing Calculators
Also investigate the pages of the specific AI services you want directly, since some add-ons or new models aren't always in the official calculators.
3. Complex AI Products Are Not Priced in Tokens
Artificial intelligence also includes recommendation systems, e-commerce search, forecasting, computer vision, fraud detection, and OCR, which make up a large share of real-world AI use.
But predictive AI uses different billing units than LLMs. When you use a cloud OCR service, you pay per page or image, not per token as when transcribing with an LLM (with the inherent risk of hallucinations for an LLM).
Google AI Commerce Search
AI Commerce Search (formerly Google Retail / Google Vertex AI Search for Commerce) offers search and personalized recommendations for online stores and for B2B applications, as we detailed in AI Guide 1 for Sales.
Google manages the infrastructure, storage, and algorithms, acting as a recommendation engine into which the company uploads its data, while Google's experience feeds top-tier features back into the company's own applications.
AI Commerce Search Costs
Search and browsing are billed at $2.50 per 1,000 requests.
For recommendations, the first 20 million monthly predictions cost $0.27 per 1,000, the next ones up to 300 million cost $0.18, and volume above 300 million costs $0.10.
Training and tuning cost $2.50 per node-hour, and there is no separate charge per LLM token. (Source: Google Cloud)
Google Example for a Retailer with 10 Million Predictions per Month
| Component | Monthly Cost |
|---|---|
| 10 million predictions | $2,700 |
| 150 node-hours of training | $375 |
| 30 node-hours of tuning | $75 |
| Total | $3,150 |
Predictions account for approximately 85.7% of the cost, while training and tuning account for 14.3%. (Source: Google Cloud)
Amazon Personalize
For the competing solution Amazon Personalize v2, AWS charges:
- $0.05 per GB of ingested data;
- $0.002 per 1,000 interactions used for training;
- $0.15 per 1,000 recommendation requests.
In an official example with 200 GB of data, eight training runs, and approx. 12.3 million monthly requests, the cost is $2,016.80. Of this amount, approximately 91.6% is inference, 7.9% is training, and 0.5% is data ingestion.
However, a minimum threshold of one request / second also applies for real-time campaigns. A low-traffic service can be billed for the minimum capacity even if it doesn't use it (Source: Amazon Web Services). Other types of recommendation systems are billed per hour and based on the number of users.
Google Agent Search and Enterprise Search
This product, which enables search and assistant applications (like chatbots) over data, shows how several technologies combine into a managed variant:
| Feature | Price |
|---|---|
| Standard Search | $1.50 / 1,000 queries |
| Enterprise Search with simple generative answers | $4 / 1,000 |
| Advanced generative answers | $4 / 1,000 extra |
| Index storage (in general) | $5 / GB / month |
(Source: Google Cloud)
So, even if the LLM cost can be exactly zero, a sophisticated AI product still has a considerable cost. Services are generally billed in usage units, not tokens, which provides predictability but increases complexity.
Cost Units for Different Types of AI
LLM / CHAT
input tokens + output tokens + cache + reasoning
RAG / SEARCH
queries + retrieval + index GB + reranking + grounding
RECOMMENDATIONS
predictions + users + minimum TPS + training + tuning
DOCUMENT AI
pages + images + characters + structured extraction
AGENTIC AI
all of the above + tool calls + retries + guardrails + tracing / observability
Conclusion: Investment and Optimization Move in Parallel
We found a Gartner study from May 2026 estimating that global AI-related spending will reach over $2.5 trillion in 2026, nearly +50% compared to 2025. Of this amount, the financial category "AI Models" is tiny, only $32.6 billion.
| Category | 2026 | % |
|---|---|---|
| AI Infrastructure | $1,431.5 billion | 55.1% |
| AI Services | $585.5 billion | 22.6% |
| AI Software | $453.2 billion | 17.5% |
| AI Models | $32.6 billion | 1.3% |
| Other categories (AI cyber, data) | $92.8 billion | 3.6% |
| Total | $2,595.7 billion | 100% |
Gartner actually measures provider investment in infrastructure and software products where AI is embedded, while AI Models represent only about 1.3% of the broader AI market. (Source: Gartner)
Synergy Research Group states that in the second quarter of 2026, the cloud market grew 43% year-over-year, while GenAI-dedicated cloud services grew 165%. The technology is improving and accelerating services that don't carry the explicit GenAI label:
"AI technology has lit a fire under the cloud market and is now driving unprecedented growth." (Source: Synergy Research Group)
So, beyond the cost of the AI technologies themselves, the infrastructure needed to adapt to them (e.g. a data warehouse like BigQuery) leads to rising costs that are investments.
For actual running costs, prices dropped in 2026 for compact models and through optimization mechanisms. But SOTA models and agentic systems raised the price ceiling. Planning must start from the type of application being developed:
- Simple chatbot: the LLM can be the main expense
- RAG: retrieval, indexing, and grounding can exceed the model
- Recommendation system: predictions and retraining can dominate the cost
- Agentic AI: retries, tools (tool calls), and rules make up a large part of the expenses
For this reason, architecture matters. After choosing the cloud (Google Cloud, AWS, or Azure), you need to decide, for any AI application, what flows it has, which models it uses for which tasks, and what other cost optimizations can be made.
Do you have an AI project? OPTI can build an optimal cost model for the performance you need.