Request fees vs bandwidth
Small responses stay request-bound, big JSON or media payloads tip the bill toward egress.
Home / Dev & AI / API & Backend Cost / GraphQL Cost Calculator
API & Backend Cost
Estimate what a GraphQL API costs to run. Enter query volume, per-query pricing and average response size, and see compute fees, bandwidth and growth.
Estimated monthly cost
$0
Request fees vs bandwidth
Small responses stay request-bound, big JSON or media payloads tip the bill toward egress.
Cost as traffic grows
What this endpoint costs if monthly volume doubles, 5x or 10x.
GraphQL lets a client fetch exactly the data it needs in a single query, which cuts the number of round trips compared with REST. The trade off is that each query does more work on the server, resolving multiple fields and often hitting several data sources, so per query compute cost is higher even though there are fewer requests.
This GraphQL cost calculator prices your query volume at a per million rate and adds bandwidth from the response size. Because one rich GraphQL query can replace several REST calls, the right comparison is total cost per user action, not per request, and this tool helps you see that.
For 3,000,000 GraphQL queries a month at $2 per million with 60 KB responses at $0.09 per GB, query cost is 3 × $2 = $6 and bandwidth is 180 GB × $0.09 = $16.20, for about $22.20 a month.
It scales with query volume and the compute each query needs. Fewer, richer queries than REST but more work each. Enter your numbers above for a monthly estimate.
It can be, because one query replaces several REST calls, lowering total request volume and bandwidth. But heavy queries cost more compute, so compare total cost per user action.
A technique that assigns a cost score to each field in a query and rejects queries above a limit, preventing expensive or abusive requests from overloading the server.
Enforce query depth and cost limits, cache resolvers and common responses, use persisted queries, and paginate large lists to cap response size.
They are 2026 planning estimates. Confirm your compute and egress rates for accuracy.