MUI's hosted service for the Data Grid Premium AI Assistant shuts down at the end of 2026, as MUI's pull request mui/mui-x #24037 states. The assistant in the grid stays; it needs another backend. Gridsay takes the same request and returns the same answer, so in most apps two lines of one server route change.
Your grid, its onPrompt and the browser code stay as they are. You still need your own MUI X Premium licence.
backend.mui.com and unstable_gridDefaultPromptResolver. No route yet? Follow the quickstart instead.Put your Gridsay URL, shown beside your key, and the key, in your server's environment:
# Save at your app root, beside package.json. Restart your dev server after saving.GRIDSAY_URL=<your Gridsay URL, from the dashboard>GRIDSAY_SECRET_KEY=<your secret key>In your route, change the address and the key:
Removed: const url = 'https://backend.mui.com/api/v1/datagrid/prompt';Added: const url = `${GRIDSAY_URL}/api/v1/datagrid/prompt`;Removed: 'x-api-key': process.env.MUI_DATAGRID_API_KEY,Added: 'x-api-key': process.env.GRIDSAY_SECRET_KEY,The path stays /api/v1/datagrid/prompt and the header stays x-api-key. Keep everything else your route does: the sign-in check, forwarding the body unchanged, returning the status and body as they came. If your route follows redirects, stop it: a redirect would send your key to another address. The quickstart's route does all of this, if you would rather replace yours.
Ask your own grid:
Each answered or declined question appears on the Usage page. A question refused before it reaches a model, such as with a mistyped key, does not: check its status and code against Refusals and errors.
| Part | With Gridsay |
|---|---|
| The address path | /api/v1/datagrid/prompt |
| The key header | x-api-key, with your Gridsay key |
| The request | The question, the column context as a JSON string, the conversation id, the options |
| An answer | ok: true and data with the filters, sorting, grouping, totals, pivot, chart, selection and conversation id |
| A refusal | ok: false and a message for your user. Gridsay adds code, statusCode and a detail for you |
| Follow-ups | Carried by the conversation id, as before |
Gridsay also returns meta with the tier that answered and your usage. MUI's stock resolver ignores it.
Until MUI's service closes, going back is the same two lines, reversed. Keep your MUI key in your environment until your checks pass in production, then remove it.
The two-line change keeps MUI's stock resolver. Separately, you can swap it for createPromptResolver from @gridsay/mui-x-data-grid, which sends the grid's switches and current view and checks every answer: see Using the helper.
The same as before: the question and your column definitions, with example values only if you turn on allowAiAssistantDataSampling or write them into your columns. Switching backends does not change what the grid sends. What Gridsay keeps: Data and security.