Updated 26 March 2026

Hidden API Gateway Costs

The headline per-million-requests price is only the beginning. These six cost categories routinely cause API gateway bills to run 2x to 4x higher than initial estimates. Understand them before you choose a provider.

Real-world cost breakdown at 50M requests/month (10 KB avg payload)

Request charges
AWS: $175CF: $15
Data transfer
AWS: $47CF: $0
WAF (optional)
AWS: $30CF: Included
Caching (0.5 GB)
AWS: $20CF: $0
Support (Business)
AWS: $27CF: $20
Total estimate
AWS: $299CF: $35
T

Data Transfer Fees

high impact

Data transfer is the most commonly overlooked API gateway cost. Providers charge for outbound traffic to the internet, typically $0.07 to $0.09 per GB. At scale this dominates the bill.

Real example

100M requests per month with 20 KB average response = 2,000 GB outbound = $180/month in data transfer on AWS, on top of request charges.

How to reduce this cost

Minimise payload sizes through field selection and compression. Enable gzip/brotli response compression at the gateway level. Use pagination to reduce response sizes.

Pricing per provider
AWS API Gateway
$0.09/GB
Azure APIM
$0.087/GB
Google Apigee
$0.08/GB
Kong Konnect
$0.07/GB
Cloudflare
Free
Traefik Hub
$0.06/GB
S

WAF and Security Add-ons

medium impact

Web Application Firewall protection is often a separate charge on managed gateways. If you are running a public API, you almost certainly need WAF to protect against injection attacks, DDoS, and bot abuse.

Real example

AWS WAF charges $5/month per web ACL plus $1/million requests processed. On 50M requests that is $55 in WAF fees added to your gateway bill.

How to reduce this cost

Evaluate whether the cloud-native WAF is more cost-effective than a third-party WAF service. Cloudflare's WAF is included in the Pro plan at a flat fee, which often undercuts per-request WAF pricing at volume.

Pricing per provider
AWS API Gateway
$0.60/1M req + $5/ACL/mo
Azure APIM
$0.50/1M req
Google Apigee
$0.40/1M req
Kong Konnect
$0.30/1M req
Cloudflare
Included in Pro
Traefik Hub
$0.25/1M req
C

Response Caching Costs

medium impact

Caching frequently-requested responses at the gateway reduces backend load and latency. However, dedicated cache capacity is charged per GB per hour on most platforms, creating a persistent monthly cost.

Real example

AWS API Gateway stage cache at 0.5 GB cache capacity costs $0.028/hour = $20.16/month. A 6.1 GB cache costs $175/month, charged even during zero-traffic periods.

How to reduce this cost

Use cache capacity only for genuinely high-traffic endpoints. Set appropriate TTLs to avoid stale data. Consider Cloudflare's edge caching (free) or Redis at the backend layer as alternatives.

Pricing per provider
AWS API Gateway
$0.028/GB/hour
Azure APIM
Included in tier
Google Apigee
$0.02/GB/hour
Kong Konnect
$0.015/GB/month
Cloudflare
Free (edge cache)
Traefik Hub
$0.01/GB/month
D

Custom Domain and SSL

low impact

Mapping a custom domain (api.yourcompany.com) to an API gateway requires TLS certificate provisioning and DNS configuration. Most providers handle this automatically but some charge for it.

Real example

Most providers include custom domains in the base price. AWS API Gateway charges nothing extra for custom domains but requires ACM certificate setup. Some enterprise tiers include advanced features like SNI and mutual TLS validation.

How to reduce this cost

Use ACM (AWS) or the provider's built-in certificate manager for free TLS. Avoid third-party certificate management unless you have specific compliance requirements.

Pricing per provider
AWS API Gateway
Free
Azure APIM
Free
Google Apigee
Free
Kong Konnect
Free
Cloudflare
Free
Traefik Hub
Free
W

WebSocket Connection Fees

low impact

WebSocket APIs incur separate pricing from REST/HTTP APIs. You pay for connection minutes and for messages sent in both directions, which can add up for real-time applications with long-lived connections.

Real example

AWS API Gateway WebSocket: $0.25 per million connection minutes + $1.00 per million messages. A chat app with 1,000 concurrent users connected for 8 hours/day sends 5M messages/month: $5 in messages + $12 in connection fees.

How to reduce this cost

For WebSocket workloads at scale, consider Cloudflare Durable Objects or a dedicated real-time service like Ably or Pusher, which often offer simpler per-connection pricing.

Pricing per provider
AWS API Gateway
$1.00/1M messages
Azure APIM
$1.20/1M messages
Google Apigee
Not supported
Kong Konnect
$0.80/1M messages
Cloudflare
$0.15/1M messages
Traefik Hub
$0.50/1M messages
P

Support Plan Costs

medium impact

Production API gateways typically require at minimum a developer support plan for SLA-backed response times on issues. Cloud provider support plans start at $29/month but enterprise plans can exceed $15,000/month.

Real example

AWS Business Support plan: the greater of $100/month or 10% of monthly charges. At $2,000/month in gateway costs, that is $200/month in support fees, a 10% uplift that is easy to miss in budget planning.

How to reduce this cost

Factor support costs into your total cost of ownership analysis. Self-hosted gateways have zero cloud support costs but shift the burden to internal engineering teams.

Pricing per provider
AWS API Gateway
3-10% of AWS bill
Azure APIM
From $29/month
Google Apigee
From $150/month
Kong Konnect
Included in Plus+
Cloudflare
From $200/month
Traefik Hub
From $499/month (Business)

Always model total cost of ownership

Build a spreadsheet with all six cost categories before choosing a provider. At 100M requests/month the spread between the cheapest and most expensive total bill can exceed $500/month. Use the cost calculator on the home page to model your specific usage pattern.