Skip to content

Usage-Based API Pricing Without Bill Shock

Pay-as-you-go pricing is fair: a weekend project pays nothing, and a busy app pays for what it uses. Its reputation comes from the other cases, the bot that hammered an endpoint all night, the retry loop nobody noticed, the five-figure invoice that arrived before the alert did.

ObjectsGrid charges per API request, and we built the billing so that a surprise bill can't happen. Here is how.

The price

The first 50,000 API requests each month are free. After that, each request costs $0.0001. There are no plans, seats or subscriptions.

Requests in a month You pay
48,000 $0
100,000 $5
1,000,000 $95
10,000,000 $995

A GraphQL request counts once, however many objects and fields it returns. See Pricing.

A hard cap, not an alert

Most clouds give you a budget alert: an email that you are over, while the meter keeps running. ObjectsGrid gives you a spending cap, the Organization Account's monthlyQuota: the number of requests a month you are willing to pay for.

  • It is 100,000 requests by default, so a new account pays at most $5 a month until you decide otherwise.
  • You are never billed above it. When it is reached, requests are refused with 429 Too Many Requests until the next month, and refused requests are free.
  • Only your administrators change it, and ObjectsGrid never lowers it. An administrator can always sign in and raise it, even when the cap is reached, and requests are accepted again right away.

You choose the trade-off: an app that stops at a known cost, or a higher cap for a launch week.

You don't pay for failures

A request is billed when it got you what you asked for, a 2xx, or a 4xx you caused, such as a validation error or a 404. Everything else is free, and so is asking whether something changed:

Request Billed
A read that hasn't changed (304 Not Modified) free
Failed sign-in or authorization (401, 403) free
Refused by the rate limit or the cap (429) free
Server errors (500 and above) free
Token requests: sign-in, refresh, anonymous tokens free

So nobody can run up your bill with bad credentials: a stolen client id or a scanner trying tokens costs you nothing. And our errors are on us.

You always know where you stand

Every response, GraphQL included, says how much of this month's cap you have used:

X-ObjectsGrid-Quota-Limit: 100000
X-ObjectsGrid-Quota-Used: 81234

Before the cap is reached, ObjectsGrid emails your administrators and billing contact at 80, 85, 90 and 95%, and once more at 100%. Your systems can get the same notices as webhook events, MonthlyQuotaApproaching and MonthlyQuotaReached, for example to raise the cap automatically during a sale. Administrators can read this month's usage and every past month's bill from the API. See Usage and limits.

Keep the meter slow

A few habits keep the number of requests, and the bill, down:

  • Ask GraphQL for everything a screen needs in one request. A product page with its brand, offers and reviews is one billable request, not four.
  • Batch your writes. Create up to 100 objects in one batch request, and send frontend log events in batches of up to 1,000.
  • Cache what rarely changes, such as enums, catalogs and your apps' configuration, and refresh it when a webhook says it changed. If you poll, send the ETag you hold in If-None-Match: while nothing changed, the answer is 304 Not Modified, and it's free. See configuration and feature flags.
  • Reuse access tokens for their hour rather than asking for one per request. Token requests are free, but the round trip isn't.

Predictable by design

Usage-based pricing should feel like a utility bill you set the limit on, not a gamble. With a free tier for building, a cap you choose, nothing billed for failures and the meter in every response, the worst month is the one you agreed to in advance.

Start for free with the quick start.