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.
| Plan | Price | Monthly calls | Rate limit | Overage |
|---|---|---|---|---|
| Explorer | $0 | 1,000 calls per month | 10 requests per minute | Paused at the limit, no overage |
| Builder | $79/month | 25,000 calls per month | 5 requests per second | $0.004 per call |
| Operator | $299/month | 150,000 calls per month | 20 requests per second | $0.0025 per call |
| Fleet License | from $1,500/month | Custom volume | 100 requests per second by default | Set 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/usagePOST /v1/usage/spending-capPOST /v1/keys/rotatePOST /v1/billing-portalGET /v1/openapi.jsonGET /v1/changelogGET /v1- CORS preflights
- MCP
initialize,ping,tools/listand notifications
Some rejected requests are not counted either:
400bad request401missing or invalid key402subscription inactive403not in plan429both 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.
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed in the current rate window |
X-RateLimit-Remaining | Requests left in the current rate window |
X-RateLimit-Reset | Unix seconds when the current window ends |
X-Usage-Used | Calls used this month, including this one |
X-Usage-Included | Calls included per month, or unlimited |
Retry-After | Seconds to wait; on 429 only |
X-Request-Id | Identifier 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."
}
}
| Field | Meaning |
|---|---|
error.code | Machine-readable error code; see the table below |
error.message | Human-readable explanation of what went wrong |
error.plan | Present on not_in_plan, naming your plan |
error.retry_after | Present on 429, matching the Retry-After header |
Error codes
| Code | HTTP | Meaning | What to do |
|---|---|---|---|
bad_request | 400 | Unknown or repeated parameter, value out of range, bad JSON or bad cursor | Fix the request; the message names the problem |
missing_key | 401 | No API key on the request | Send your key in the Authorization header |
invalid_key | 401 | Key malformed or not recognized | Check the key for copy errors; email support if it is lost |
key_revoked | 401 | Key was revoked or rotated | Use your newest key |
subscription_inactive | 402 | Account is past due or canceled | Past due: pay the open invoice through POST /v1/billing-portal. Canceled: subscribe again at airpixels.com/api |
not_in_plan | 403 | Dataset or feature not in your plan; error.plan names your plan | Upgrade, or call only what your plan includes |
not_found | 404 | Unknown endpoint or airframe id | Find ids with GET /v1/airframes?q=... |
method_not_allowed | 405 | Wrong HTTP method | Use a method from the Allow header |
rate_limited | 429 | Over the per-key rate limit | Wait Retry-After seconds |
quota_exceeded | 429 | Explorer monthly quota reached, or spending cap hit | Wait for the reset in Retry-After, raise or remove the cap, or upgrade |
internal | 500 | Server error; the message includes the request id | Retry, and email support with the request id if it persists |
not_configured | 501 | Billing portal not yet available | Email 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.