Keys
A key is what your application sends with each request. It decides which models the request may use, its limits and budget, its protections, what Infere changes in the request, and whether prompts and responses are logged. A key can also hold a released prompt.
The Keys List
Keys lists every key in the workspace. Each row shows the key's name and ID, project, environment, spend this month (against its budget, if it has one), when it was last used, when it expires, and its owner.
- Search and filter - by name, by Environment (production, staging, development) and by Status (active, expires soon, never used, unused). Show revoked and expired adds those keys back to the list.
- Sort, Columns, Export - sort on a column such as Spend this month, highest first, choose the columns, export the list, or tick rows to act on several keys.
- New key - opens the eight-step form below.
- Quick key · development - creates a development key with the defaults at once, with no form, and shows its secret. Use New key for staging or production keys, or to choose settings.
- DEFAULT - one key in each workspace is marked DEFAULT: it is the key the Playground and other in-app tools bill to unless you pick another. Set as default is on a key's More menu.
- Projects - opens Settings › Projects; projects group keys.
Creating a Key
New key opens an eight-step form. Every step has defaults, so you can Skip to review after the first, and Copy settings from a key… fills every step from an existing key (except the environment). The form keeps a draft on this device until you create the key or discard it.
- 1. Name and attributes - the name; the environment (development, staging or production; required, and fixed once the key is created); an optional project; other attributes as name/value pairs (they show in Logs and can be grouped on); and a description.
- 2. Model and fallback - Allowed models (empty = any model), Excluded models, Fallback models, the per-attempt Timeout and the Long-request timeout.
- 3. Limits and budget - a budget in dollars per day, week or month with a warning level, request limits, tokens a minute, concurrent requests, max tokens per request and max context length.
- 4. Access - the owner; the expiry (never, 24 hours, 7, 30 or 90 days, 1 year, or a date; the owner gets an email 7 days before); an IP allowlist that narrows the workspace's API allowlist; and capabilities (a new key has all on except web search and fine-tuning).
- 5. Protection - Attack check, Personal data, Blocklist, Content moderation, Data residency and Compliance; see Protection below.
- 6. Request changes - Prompt enhancement (rewrites a short or unclear last message; billed at the requested model's price, up to +2 s), Context compression (drops whole turns from a request over the token limit) and Response healing (repairs a response that should be JSON but doesn't parse; non-streamed responses only). All are off by default.
- 7. Observability - Log prompts and responses (on by default). Token usage and timing are always kept for billing. Logged content is kept for 90 days, then deleted.
- 8. Review - every setting on one page, each with Change. Create key creates it.
Limits, Budget and Timeouts
| Setting | Value |
|---|---|
| Timeout (per attempt) | 5-300 s, default 30 s. When it runs out, Infere tries the next fallback model; when no attempt is left, the request fails with 408. |
| Long-request timeout | 30-600 s, default 120 s. |
| Max tokens per request | 100-32,000; default 4,096. |
| Max context length | Default 128,000 tokens. |
| Budget | In dollars per day, week or month, with a warning level (default 80%, emailed to the owner). At the budget, requests get 402 until the next day, week or month starts. |
| Request limits | Per minute, hour or day. A request over a limit gets 429. |
| Tokens a minute | The cap on tokens per minute; for example 100,000 tokens a minute at the tier cap. |
| Concurrent requests | How many requests may be in flight at once; for example 10 at the tier cap. |
An empty limit is not unlimited: the form shows the effective value, which is your account tier's cap - for example 60 a minute, 1,000 an hour and 10,000 a day, 100,000 tokens a minute and 10 concurrent. A value you set applies below that cap.
Fallback Models
Fallback models are tried in order when the model's provider fails: a provider 5xx, 429 or 408, a timeout, a network error, or a provider whose circuit is open. Other 4xx errors from the provider go back to your app unchanged. Infere's own limits - the key's Limits and budget - never fall back: they refuse the request before any model is called. Fallback is not used on development keys; the form says not used for development keys.
Protection
| Setting | Options |
|---|---|
| Attack check | Off · Monitor (answered and flagged in Logs) · Block (refused with 403) |
| Personal data | Allow (not checked) · Redact (the model sees placeholders; the response is redacted too and arrives in one piece, not streamed) · Block (403) |
| Blocklist | Terms that refuse a request with 403. Matched in the request's own messages, ignoring case; the model isn't called and the request costs nothing |
| Content moderation | Per category: block (403 before the model is called) or flag. Any category on adds one check-model call per request |
| Data residency | US, EU, UK, CA, AU, JP, SG, BR. Empty = any region. A model with no endpoint in the chosen regions gets 503 |
| Compliance | None by default; Change to set it |
The Secret
After Create key, the page shows the secret once. Copy it, or Download as .env - a file that sets INFERE_API_KEY; keep it out of version control. After you leave the page it is masked for good. The page also shows the base URL, ready-to-run code in Python, JavaScript and curl, and waits for the key's first request.
A Key's Page
- Header - the environment, project, owner and key ID, with Edit, Extend expiry, Revoke and More (Copy to a new key…, Compare with another key, Set as default, Delete permanently…).
- Prompt - the released prompt this key holds and its version, or none. From here: Release a prompt to it…, Release another version…, Remove from this key…. The page also names the git reference that releases to this key:
deploy/<prompt name>/<key name>. - Usage - over a period: requests, tokens in and out, cost, latency (median and p95), error rate and budget, with See its requests → into Logs.
- One section per step of the form - Model and fallback, Limits and budget, Access, Protection, Request changes and Observability, each with Edit.
- What the protections did - per protection, how many requests it acted on, with Export for review… and Compare with another key.
- Change history - who changed what, before → after, linking to the audit log.
- Revoke and delete - Revoke stops the key at once. Delete permanently… asks you to type the key's name, and can't be undone.