Request Cost Calculator
Price one API request end to end: compute, database calls, storage requests, logs, AI tokens and data out.
Each one fills in the fields below for a typical request of that kind. You can change any of them.
Compute
Database calls (DynamoDB on-demand)
Storage requests (S3 Standard)
Logs and data out
AI model calls
Cache
- Per request
- $0.00000338
- A month
- $337.89
- Largest part
- Compute, 36%
List prices, no free tier taken off.
Each part of the request
| Part | Per million | A month | Share |
|---|---|---|---|
| Compute(largest)Lambda, x86. 120 ms at 512 MB is 0.06 GB-seconds at $0.0000166667, plus $0.20 per million requests. | $1.20 | $120.00 | 36% |
| Database callsDynamoDB on-demand. 2 read and 1 write request units, at $0.1250 and $0.6250 per million. | $0.88 | $87.50 | 26% |
| Storage requestsS3 Standard. 0 GET and 0 PUT, at $0.0004 and $0.0050 per 1,000. | $0.00 | $0.00 | 0% |
| LogsCloudWatch Logs, Lambda (vended, tiered). 93.1323 GB a month at the vended log rate, from $0.50 a GB. | $0.47 | $46.57 | 14% |
| AI model callsNone. No AI call. | $0.00 | $0.00 | 0% |
| Data out to the internetAWS data transfer out. 931.3226 GB a month, tiered, from $0.09 a GB. | $0.84 | $83.82 | 25% |
When the cache pays for itself
What this model assumes
Show
- No free tier. Lambda, Cloud Run, DynamoDB, Firestore, logs and data transfer each give a monthly allowance. It is shared by everything in the account, so this page leaves it out and shows what one more request costs. A small service may pay less.
- List prices, one Region. Public on-demand prices for the Region chosen, with no discount, Savings Plan or committed use. Cache nodes are priced in US East (N. Virginia) on AWS and Iowa on Google Cloud; enter your own monthly cost elsewhere.
- Compute is busy time. Lambda bills each request’s time. Cloud Run request-based billing bills an instance while it serves, so requests served at once share it; the page assumes the instance is that busy. A Fargate task’s hourly cost is spread over the requests it serves. Idle time, minimum instances and cold starts are not counted.
- Logs and data out are tiered. Their month’s volume is priced on the provider’s tiers, then divided by the requests. Lambda logs are CloudWatch vended logs; Fargate logs are standard ingestion. A KB is 1,000 bytes and a GB is 2^30 bytes.
- AI calls. Cached input tokens are priced at the model’s cache read price. Writing the cache, batch discounts and tools the model calls are not counted.
- A cache hit skips only what you tick: the database calls, the AI call or both. Compute, logs and data out stay the same.
- Not included: API Gateway, load balancers and CDN, data held in storage or a database, backups, and traffic between zones or regions.
Rates used and their sourcesShow
- AWS Lambda duration and requests, 11 Regions, source, read 21 Nov 2026
- Amazon DynamoDB on-demand read and write request units, 11 Regions, source, read 21 Nov 2026
- AWS Fargate vCPU and memory, x86 and Arm, 11 Regions, source, read 21 Nov 2026
- Firestore Standard edition document reads, writes and deletes, every location, source, read 21 Nov 2026
- Memorystore for Valkey nodes, Iowa (us-central1), source, read 21 Nov 2026
- ElastiCache nodes, reserved-node discounts and Serverless (Valkey), US East, source, read 13 Oct 2026
- Amazon S3 Standard GET and PUT requests, source, read 7 Nov 2026
- AWS data transfer out to the internet, source, read 4 Nov 2026
- Amazon CloudWatch Logs, 11 Regions, source, read 8 Nov 2026
- Google Cloud Logging storage and retention, source, read 8 Nov 2026
- Cloud Run CPU, memory and requests (both billing models), source, read 7 Nov 2026
- Google Cloud Premium Tier internet egress (Cloud Run rate table), source, read 7 Nov 2026
- Cloud Storage Class A and Class B operations, source, read 1 Nov 2026
- AI model token prices, each from its vendor's page, source, read 30 Oct 2026
Prices verified 13 Oct 2026. Public list prices in USD for 11 AWS Regions, 45 Cloud Run regions, before any discount you have negotiated.
Not sure which endpoints drive the bill?
Cloud Cost Audit: We trace the bill back to services and endpoints, and price the design changes worth making. From $1,500, fixed. Nothing paid upfront.
Questions
How much does one API request cost?
The page's example, a JSON API on Lambda and DynamoDB in US East, costs about $3.38 per million requests: $338 a month at 100 million. Compute is the largest part, 36% of it. These are list prices with no free tier taken off, so they are what one more request costs.
Which part of a request costs the most?
It depends on the request. In the four examples here, compute leads the JSON API, the image upload and the webhook; the AI model call leads the chat endpoint. Without a model call the leader changes with the design, so price each part rather than guess.
When does a cache pay for itself?
When the cost a hit avoids, times the hits, is more than the cache costs. In the example one cache.t4g.small node costs $18.69 a month and a hit skips $0.88 per million requests of DynamoDB calls, so it pays above a 21% hit rate at 100 million requests a month. At a million requests a month the same cache never pays, even if every request hits. Pick what a hit skips, the database or the AI call, and the page works out the break-even.
How much does an AI model call add to a request?
In the chat example, one Claude Sonnet 5.5 call with 3,000 tokens in, 60% of them cached, and 400 out costs $6,580.00 per million requests, 99.8% of the request. Compute is next, at $10.20 per million. Shorter prompts, a larger cached share and a cheaper model move this part most.
Why does this page leave out free tiers?
Free tiers are left out on purpose. Lambda, Cloud Run, DynamoDB, Firestore and data transfer each give a monthly allowance, but it is shared by every workload in the account and is used up quickly at scale. Leaving it out shows what one more request costs, which is what a design decision changes. A small service may pay less than this page shows.
What does this page not include?
API Gateway, load balancers and CDN, data held in storage or a database, backups, AI prompt cache writes and batch discounts, idle or minimum instances, cold starts, and traffic between zones or regions. Add them on their own calculators if your request uses them.
Can a script or an AI agent use this calculator?
Yes. GET https://tools.finitizer.com/request-cost-calculator/api takes the same parameters as this page, with no account or key, and answers with JSON or a markdown table from the same engine. catalog=options lists the regions, cache nodes and AI models. Anything it cannot use is an error rather than a default.
Related tools
Lambda Cost & Memory Tuning Calculator
The cheapest memory setting, and the fastest one that costs the same.
OpenCloud Run Cost Calculator
Two billing models, and how busy your instances are picks the winner.
OpenLLM Token Cost Calculator
Compare monthly AI spend on Claude, GPT, Gemini and more before the invoice arrives.
OpenMore tools for: Compute and utilization, Databases and caching, Network and data transfer, AI and model usage
One request priced. Your bill has them all.
Finitizer reads your AWS and Google Cloud billing data every day and shows which services and endpoints drive the bill, so you can see what each design change saved.
See how Finitizer works