Plans & SupportPlans, Limits & Errors

Plans, Limits & Errors

Choose a plan, see exactly what counts against your quota, and diagnose any error the API returns.

Plans

Four plans cover everything from a side project to a fleet integration.

PlanPriceMonthly callsRate limitOverage
Explorer$01,000 calls per month10 requests per minutePaused at the limit, no overage
Builder$79/month25,000 calls per month5 requests per second$0.004 per call
Operator$299/month150,000 calls per month20 requests per second$0.0025 per call
Fleet Licensefrom $1,500/monthCustom volume100 requests per second by defaultSet by your contract

Fleet License volume, rate limit and overage are set per contract. For a use not listed, email support@airpixels.com.

Annual billing

Annual billing gives you two months free: pay for ten months and get twelve. Billing details, invoices and card changes are handled in the Stripe Billing Portal, which you reach with POST /v1/billing-portal. See Account and usage.

What counts as a call

One REST request or one MCP tools/call is one call. Each call returns up to 100 records, whatever it returns.

Some requests are free and never counted:

  • GET /v1/usage
  • POST /v1/usage/spending-cap
  • POST /v1/keys/rotate
  • POST /v1/billing-portal
  • GET /v1/openapi.json
  • GET /v1/changelog
  • GET /v1
  • CORS preflights
  • MCP initialize, ping, tools/list and notifications

Some rejected requests are not counted either:

  • 400 bad request
  • 401 missing or invalid key
  • 402 subscription inactive
  • 403 not in plan
  • 429 both kinds, rate limited and quota exceeded

Requests that run are counted, including a 404 for an unknown airframe id.

Quota and rate windows

Your quota is per account and shared by all its keys. It runs per calendar month in UTC, not the Stripe billing period, and resets at 00:00 UTC on the 1st. GET /v1/usage returns resets_at so you can schedule around the reset.

Rate limits are per key, in fixed windows aligned to the clock. Builder, Operator and Fleet windows are one second; the Explorer window is one minute. Going over the limit returns 429 rate_limited with a Retry-After of 1 second on per-second plans, or up to 60 on Explorer. Rate-limited requests do not count toward the quota.

Checks run in a fixed order and the first failure wins: parameters, key, account status, plan, rate window, quota. A request with a bad parameter fails on the parameter check even if the key is also over its rate limit. Over MCP, the key is checked first.

Going over the quota

Explorer stops at 1,000 calls with 429 quota_exceeded. The Retry-After header gives the seconds until the reset.

Builder and Operator keep working. Each call above the included amount bills at the plan's per-call price on your next Stripe invoice, and usage is reported to Stripe once a day. To stop at a budget, set a spending cap with POST /v1/usage/spending-cap. See Account and usage.

Fleet License overage is set by the contract. There is no automatic stop unless the contract sets one.

Past-due grace

A failed payment makes the account past_due, and the account keeps working for 7 days from the first failure. After that window, metered calls return 402 subscription_inactive until the invoice is paid. The account is active again the moment the invoice clears. Canceled accounts get 402 on metered calls.

Usage, key rotation and the billing portal keep working in every account status, so you can always inspect usage, rotate a key or reach the portal.

Rate limits and retries

Retry with exponential backoff seeded from Retry-After, and add jitter so your retries do not all land in the same window. A 429 body looks like this:

{
  "error": {
    "code": "rate_limited",
    "message": "Rate limit exceeded for this key. Retry after 1 second.",
    "retry_after": 1
  }
}

Read the header and sleep before retrying:

retry_after=$(curl -s -o /dev/null -D - https://api.airpixels.com/v1/airframes \
  -H "Authorization: Bearer $AP_KEY" \
  | awk -F': ' 'tolower($1)=="retry-after"{print $2}' | tr -d '\r')
sleep "${retry_after:-1}"

Retry-After is also available in error.retry_after, so a client that parses the JSON body does not need to read headers.

Response headers

Every response carries headers you can use to pace your client and report problems.

HeaderMeaning
X-RateLimit-LimitRequests allowed in the current rate window
X-RateLimit-RemainingRequests left in the current rate window
X-RateLimit-ResetUnix seconds when the current window ends
X-Usage-UsedCalls used this month, including this one
X-Usage-IncludedCalls included per month, or unlimited
Retry-AfterSeconds to wait; on 429 only
X-Request-IdIdentifier for this request; quote it to support

Error response body

Every error returns the same shape:

{
  "error": {
    "code": "bad_request",
    "message": "wind_mph must be between 0 and 30 mph."
  }
}
FieldMeaning
error.codeMachine-readable error code; see the table below
error.messageHuman-readable explanation of what went wrong
error.planPresent on not_in_plan, naming your plan
error.retry_afterPresent on 429, matching the Retry-After header

Error codes

CodeHTTPMeaningWhat to do
bad_request400Unknown or repeated parameter, value out of range, bad JSON or bad cursorFix the request; the message names the problem
missing_key401No API key on the requestSend your key in the Authorization header
invalid_key401Key malformed or not recognizedCheck the key for copy errors; email support if it is lost
key_revoked401Key was revoked or rotatedUse your newest key
subscription_inactive402Account is past due or canceledPast due: pay the open invoice through POST /v1/billing-portal. Canceled: subscribe again at airpixels.com/api
not_in_plan403Dataset or feature not in your plan; error.plan names your planUpgrade, or call only what your plan includes
not_found404Unknown endpoint or airframe idFind ids with GET /v1/airframes?q=...
method_not_allowed405Wrong HTTP methodUse a method from the Allow header
rate_limited429Over the per-key rate limitWait Retry-After seconds
quota_exceeded429Explorer monthly quota reached, or spending cap hitWait for the reset in Retry-After, raise or remove the cap, or upgrade
internal500Server error; the message includes the request idRetry, and email support with the request id if it persists
not_configured501Billing portal not yet availableEmail support

Over MCP

Over MCP, plan, quota, rate-limit and not-found errors come back as tool results with isError: true. Key errors and invalid arguments are JSON-RPC errors instead. See MCP for the full mapping.

Plans vs the planner subscription

Data API plans are billed separately from the Air Pixels app tiers. A subscription at Subscription tiers does not include API calls, and an API plan does not include the planner.