Skip to content
MUI’s hosted AI Assistant backend shuts down at the end of 2026.Switch in two lines →
  • Products
    • AG Grid AI Toolkit Early accessThe model and the server behind the toolkit.
    • MUI X Data Grid StableThe backend for the Premium AI Assistant.
    • TanStack Table Public alphaA plugin that applies each answer to your table.
    • AG Studio Early accessA hosted backend for its assistant, not built yet.
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
Sign inStart a 7-day trial
Menu
  • Products
    • AG Grid AI Toolkit Early access
    • MUI X Data Grid Stable
    • TanStack Table Public alpha
    • AG Studio Early access
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
  • Sign in

Product

  • How it works
  • Accuracy
  • Pricing
  • Data and security

Grids

  • AG Grid AI ToolkitEarly access
  • MUI X Data Grid PremiumStable
  • TanStack TablePublic alpha
  • AG StudioEarly access

Docs

  • Quickstart: server route
  • Browser keys
  • Guide: when MUI’s service retires

Company

  • Contact
  • Terms
  • Privacy

Not affiliated with or endorsed by MUI or AG Grid. MUI and AG Grid are trademarks of their respective owners.

© 2026 Gridsay

Docs pages
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core
On this page

On this page

  1. Starter limits
  2. Change the limits
  3. Allowed origins
  4. What a user sees over a limit
  5. Next
Skip to the article
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core

Per-user limits

On this page

  1. Starter limits
  2. Change the limits
  3. Allowed origins
  4. What a user sees over a limit
  5. Next

A publishable key can limit how many questions each of your users asks a minute, an hour, a day and a month, and how many all of them ask together. Limits count questions, not credits, and sit inside your organization's credits: a user limit never raises them. Limits need a verified user, so they apply to publishable keys only; with a secret key, apply your own in your route.

Starter limits#

What a new publishable key starts with depends on where you create it:

Created inEach user may ask
SetupEach user may askAt most 10 questions a minute, 50 a day and 300 a month. One rule, for every user
API keysEach user may askNo per-user limit. Only your organization's credits apply

In Setup, Create another key copies the first key's settings, limits included. Either way you can change the limits at any time.

Change the limits#

Owners and admins open Auth and limits, choose the key, and edit Limits. Members can read them. Choose Save limits: the change applies from the next question, and counts already made in the current minute, hour, day or month stay.

Each user holds rules, checked from the top. The first rule that matches a user sets that user's limits; a rule is a limit for each matching user, not one shared allowance. Limit every user adds a rule with no condition. Once you have conditional rules, it becomes Limit everyone else, the catch-all at the end. Without a catch-all, users no rule matches have no per-user limit. You can save up to 50 rules.

FieldMeaning
Per minute, Per hour, Per dayMeaningQuestions in the current UTC minute, hour or day. Empty means no limit; otherwise a whole number of at least 1
Per monthMeaningQuestions in the current UTC calendar month. This is not your billing period
Per month, from a claim (optional)MeaningA claim holding the user's monthly allowance, such as ai_quota. A whole number of 0 or more replaces Per month for that user; anything else falls back to it
Message to the user (optional)MeaningUp to 300 characters, shown in place of ours when the user reaches any of this rule's limits, for example to point at your upgrade page

Add a rule with a condition tests one claim: from the token with JWT and OIDC, or from the attributes your server sent with session tokens or the identity webhook. Dots reach nested claims, as in subscription.plan.

TestMatches when the claimExample Value
isMatches when the claimequals the valueExample Valuepro
is one ofMatches when the claimequals one of the valuesExample Valuepro, team
starts withMatches when the claimstarts with the value, ignoring caseExample Valueteam_
ends withMatches when the claimends with the value, ignoring caseExample Value@example.com
is at leastMatches when the claimis a number at least the valueExample Value10
is at mostMatches when the claimis a number at most the valueExample Value100
is presentMatches when the claimexistsExample Value
is absentMatches when the claimdoes not existExample Value

is and is one of compare text, numbers and true or false as typed: 10 matches the number 10, and true the value true; put quotes around a value, as in "10", to match text. On a claim named email, or ending in .email, they ignore case.

All users together is one more allowance shared by everyone using the key, on top of each user's.

The minute and hour counts are kept per server and start again if it restarts; the day and month counts are stored.

Allowed origins#

A publishable key answers only questions sent from its Allowed origins, which you set when you create the key or with Edit on API keys. The browser's Origin header must match one entry exactly; with no entries, the key refuses everything.

  • https://app.example.com matches that origin only.
  • http://localhost:3000 matches that development origin and port only.
  • https://*.example.com matches any subdomain of example.com, at any depth, over https, but not https://example.com itself.
  • https://*.example.com:8443 matches the same, on port 8443 only.

Enter the scheme and any port, with no path. From any other site, your user sees "The assistant is not available on this site." (403 origin_not_allowed).

What a user sees over a limit#

The question is refused before it reaches the assistant, with status 429 and code rate_limited, a Retry-After header and retryAfter in seconds. It is not charged and does not count. The user reads your rule's message if it has one, or ours:

WindowOur message
Minute or hourOur messageThe assistant is busy. Try again in N seconds.
DayOur messageThe assistant has reached today's limit. Try again tomorrow.
MonthOur messageThe assistant has reached this month's limit. Try again next month.

An All users together limit always shows our message. The response's detail names the limit that was reached:

JSON
{  "ok": false,  "statusCode": 429,  "code": "rate_limited",  "message": "The assistant has reached today's limit. Try again tomorrow.",  "detail": "The user day limit (50) was reached. Retry after 3600 seconds, or change limits at /app/auth. Refused before the model; no Usage log row.",  "retryAfter": 3600}

A question counts once it passes your limits, and stays counted when the assistant was called, even if the answer then fails and is not charged. Your organization's credits can stop a question too, with 402: see Limits.

Next#

  • Browser keys
  • Limits
  • Errors