Plan limits
What each Cruxy plan allows: models, context window, usage share for the API, uploads, storage, and projects, and when each allowance resets.
Your Cruxy plan sets what the gateway allows a key to do: which tiers it can
call, how much context a turn can carry, how much usage the API may draw, and
how many files it can upload and store. GET /api/v1/limits reports your plan
and the live headroom against each allowance; this page is the table it reads
from. Prices are on getcruxy.com/pricing.
The table
| Free | Core | Advanced | Pro | Max | |
|---|---|---|---|---|---|
| Tiers | saga | epos, saga, and auto | epos, saga, canto, and auto | epos, saga, canto, and auto | epos, saga, canto, and auto |
| Context window | 256K | 1M | 1M | 1M | 1M |
| Usage | Limited | 1/4 of Advanced | The baseline | 4x Advanced | 8x Advanced |
| API | Not included | Up to 25% of the plan's usage | Up to 25% of the plan's usage | Up to 25% of the plan's usage | Up to 25% of the plan's usage |
| File uploads a month | 100 | 2,000 | 5,000 | 20,000 | Unlimited, within fair use |
| Image uploads a month | 50 | 1,000 | 2,500 | 10,000 | Unlimited, within fair use |
| Files and images per message | 10 of each | 20 of each | 20 of each | 50 of each | Unlimited |
| Storage | 1 GB | 10 GB | 25 GB | 100 GB | 500 GB |
| Largest file | 25 MB | 50 MB | 100 MB | 100 MB | 100 MB |
| Projects | Up to 3 | Unlimited | Unlimited | Unlimited | Unlimited |
| Cruxy Code | saga | saga | canto | canto | canto |
Sizes are decimal: 25 MB is 25,000,000 bytes. A Pro subscription from the beta
reads pro_legacy on GET /api/v1/limits and has Pro's row. An enterprise
account has no row and is held to the deployment's ceilings alone.
Tiers and context
A Free account calls saga. Core adds epos and auto; Advanced, Pro, and
Max add canto. A chat request that names a tier outside the plan is 403
model_not_in_plan, carrying model and plan, before anything is billed;
waiting does not help, so do not retry it. auto routes only among the plan's
tiers, so on Free it is always served saga. GET /api/v1/limits lists the
plan's tiers as models. Choosing a tier
compares the three, and Auto routing explains
auto.
The context window is the plan's: a turn on Free carries up to 256,000 tokens,
and a turn on a paid plan up to 1,000,000, the smaller of the tier's own
window and the plan's. Input past it is 400 context_overflow, whose limit
is that number; see Errors and retries.
GET /api/v1/limits reports both as context_window.
Usage and the API's share
Every plan has a usage pool, token_pool on GET /api/v1/limits. Core is a
quarter of Advanced, Pro four times it, and Max eight times it. Everything a
plan does draws on the one pool: the web app, Cruxy Code, and the API.
The API is included on every paid plan. Developer API keys together may use
25% of the plan's monthly units, in the account's month: api_share on
GET /api/v1/limits reports the share with cap, used, remaining, and
resets_at. Past it, a developer-key request on chat, embeddings, or rerank is
429 api_share_exhausted, in the shape of budget_exhausted, until
reset_at. A signed-in credential is never counted toward the share and never
refused by it. A developer key may also have 4 chat requests in flight at once,
reported as rate_limits.chat.max_concurrent_per_key; one more is 429
rate_limited with reason: concurrency.
A developer API key on a Free account is refused with 403 plan_required; a
signed-in credential works on every plan. See
Get your API key.
When an allowance resets
- Every 12 hours. Every plan has a trailing 12-hour window beside its
month,
token_pool.burst, which trickles back continuously. - On your own monthly date. A paid plan's month is its billing period. A Free account's month runs from the day of the month it was created, at the time it was created, in UTC; a day a month does not have is that month's last day. No allowance runs on the calendar month.
Every monthly figure on GET /api/v1/limits, token_pool.monthly,
api_share, files, and images, carries the starts_at and resets_at of
that month, and every
429 that refuses for a spent allowance carries the same instant as
reset_at. An upgrade applies to the month in progress; a downgrade applies at
the next one.
Uploads and storage
POST /api/v1/files holds every upload to the plan's row:
- Files and images a month are counted apart, by the file's detected media
type:
image/*is an image, anything else a file. One stored upload is one; a deleted or expired file stays counted. One past the allowance is429file_limit_reachedorimage_limit_reached, refused before a byte is stored, withlimit,used, andreset_at. A retry under the sameIdempotency-Keyand content counts once. - The largest file is
413payload_too_largepast the plan's size, withlimitin bytes. - Storage is
413storage_quota_exceededpast the plan's pool, withlimitandused, counted as files plus their extracted text per organization and user. A pool lowered under what an account holds refuses new uploads and deletes nothing.
One chat request may name up to the plan's count of files and of images in
file_ids. A Free account may create up to 3 projects. A cap only ever refuses
creating more: nothing you have is deleted or hidden when you move to a smaller
plan.
Read every plan
GET /api/v1/limits/plans returns this table for every plan on sale, in the
order the pricing page lists them, the same for every caller and read from the
tables the gateway enforces on, so a client that offers an upgrade holds no
copy of it. Each entry carries plan, models (the tiers it includes, by the
ids your Cruxy-Version names them), context_window, usage_multiple (the
plan's monthly allowance over Advanced's: 0.25 on Core, 1 on Advanced, 4
on Pro, 8 on Max, null on Free), and plan_limits in the shape below. It
says nothing about your own plan or usage; read GET /api/v1/limits for that.
It is authenticated, rate-limited on its own bucket, and not billed.
curl https://api.cruxy.ai/api/v1/limits/plans \
-H "Authorization: Bearer $CRUXY_API_KEY"const res = await fetch('https://api.cruxy.ai/api/v1/limits/plans', {
headers: { Authorization: `Bearer ${process.env.CRUXY_API_KEY}` },
})
if (!res.ok) throw new Error(`plans request failed: ${res.status}`)
const { plans } = await res.json()
for (const p of plans) {
// usage_multiple is null on free; a null count in plan_limits is unlimited.
console.log(
`${p.plan}: ${p.models.join(', ')}, ${p.context_window} tokens,`,
`${p.usage_multiple ?? 'limited'}x Advanced, ${p.plan_limits.files_per_month ?? 'unlimited'} files a month`,
)
}Read your plan's row
plan_limits on GET /api/v1/limits is your plan's row, so your code never
holds a copy of this table. A count that is null has no fixed cap.
curl https://api.cruxy.ai/api/v1/limits \
-H "Authorization: Bearer $CRUXY_API_KEY"const res = await fetch('https://api.cruxy.ai/api/v1/limits', {
headers: { Authorization: `Bearer ${process.env.CRUXY_API_KEY}` },
})
if (!res.ok) throw new Error(`limits request failed: ${res.status}`)
const limits = await res.json()
console.log(`plan ${limits.tier}: ${limits.models.join(', ')}`)
console.log(`context window: ${limits.context_window.plan} tokens`)
const row = limits.plan_limits
if (row) {
// null means no fixed cap on this plan.
console.log(`files a month: ${row.files_per_month ?? 'unlimited'}`)
console.log(`largest file: ${row.max_file_bytes} bytes`)
}
if (limits.files) {
console.log(`files: ${limits.files.used} of ${limits.files.cap}, resets ${limits.files.resets_at}`)
}
if (limits.storage) {
console.log(`storage: ${limits.storage.remaining} bytes left`)
}
if (limits.api_share) {
// Developer keys together: 25% of the plan's month.
console.log(`API share: ${limits.api_share.remaining} of ${limits.api_share.cap} units left`)
}Next steps
- Rate limits and budgets: every block on
GET /api/v1/limits, the month so far fromGET /api/v1/limits/month, and the429codes. - Get your API key: the two kinds of key, and which plans the API needs.
- Errors and retries: which refusals to retry, and when.