Each API key answers on a tier you choose in the console. A question costs the credits of the tier that answered, from one pool your whole organization shares. How many credits a plan includes, and their price, is on Pricing.
| Key setting | Credits per question | For |
|---|---|---|
fast | 1 | Most tables: filters, sorting, grouping, totals and pivots. A new key starts here. |
standard | 10 | Vague or multi-step questions. It gets more of them right, but is slower and costs more. |
max | 25 | The questions where being right matters most. |
auto | 1, 10 or 25 | Gridsay picks the tier for each question, up to the highest you allow. |
The price is the same on every endpoint and every table, and does not grow with the size of the question. A follow-up is a question of its own. The tier is the key's: no request field changes it.
How often each tier answers correctly is on Accuracy.
standard unless you allow max. A choice above the ceiling answers on the ceiling.fast answers.You pay once, for the tier that answered; choosing is free. The answer's meta.tier says which tier that was, and is never auto.
| Outcome | Response | Credits | Send again unchanged? |
|---|---|---|---|
| An answer, including one that leaves the table as it was | 201 | The tier's | A new question, charged again |
| The assistant refuses the question | 422 query_not_understood | The tier's | Charged again |
| Data Grid endpoint: the answer still names an unknown column, a refused operator or a switched-off feature after its one correction | 422 query_not_understood, with the reason | The tier's | Charged again |
| The model fails, or gives no readable answer | 502 upstream_unavailable | 0 | Yes, once |
| Refused before the model: key, origin, sign-in, size, credits or a limit | 400, 401, 402, 403, 413, 429, 503 | 0 | Only 429 and 503, after the wait; fix the others first |
| An unexpected failure | 500 internal_error | Maybe: it can come after the charge | Check Usage first |
| Your client disconnected before the answer was ready | none | 0 | Yes |
| The connection dropped after the answer was ready | none | The tier's | Check Usage first |
During a trial, charged means trial credits are used; no money is taken.
Every answer carries meta:
| Field | Meaning |
|---|---|
meta.tier | The tier that answered and was charged. |
meta.usedQueries | Charged questions in your organization this period, all keys together. Not credits. |
meta.remainingQueries | Questions the remaining credits cover at this answer's tier. null during a trial or with no ceiling. |
meta.resetAt | When the period ends. |
A refusal has no meta. The console's Usage page shows each question's credits.