User Identity
Every request made via the Frontend SDK is tied to a specific User ID. This ID is embedded in the signed JWT token you generate on your backend.Budgets & Quotas
You can define budgets at the user level.- Dollar Limit: “Max $5.00 per month per user”.
- Token Limit: “Max 1M tokens per day”.
429 Too Many Requests error, protecting your credit card from runaway costs.
Rate Limiting
You can also enforce rate limits to prevent rapid-fire requests (e.g., a script trying to scrape your API).- “Max 10 requests per minute”.
- “Max 100 requests per hour”.
Strict Output Validation
Security isn’t just about costs; it’s also about data integrity. Nuabase enforces your Zod schema strictly.- If the LLM returns a string where a number is expected, Nuabase catches it.
- If the LLM hallucinates a field that isn’t in your schema, it is stripped out.
- Your frontend code never receives malformed data that could crash your UI.