Getting Started
Infere is a gateway for AI model requests. Your application sends OpenAI-compatible requests to Infere with a key; Infere routes each request to the model's provider, applies the key's limits and protections, bills the request against the workspace's credit, and records it so you can see it in Logs. The app at app.infere.com is where you manage keys, watch traffic and cost, keep prompts, and test changes.
1. Create an Account
Create an account at app.infere.com/signup, then sign in with your email (or username) and password. Trust this device skips the two-factor prompt on that device for 30 days; only tick it on a device you own. A new account lands on Get started, and once requests are arriving Infere opens Home instead.
Everything in Infere - keys, prompts, logs, credit - belongs to a workspace. You always have a personal workspace, which is yours alone; a shared workspace (an organization) holds the same things for a team. The workspace switcher at the top of the sidebar shows the current workspace, its kind and your role. Accounts are free to create, but a request needs credit: Get started offers $10, $25 or $50 and shows the payment fee before you pay.
2. Create a Key
Open Keys in the sidebar. Quick key · development makes a development key with the defaults at once, with no form, and shows its secret - the quickest route for local testing. New key opens an eight-step form (Name and attributes, Model and fallback, Limits and budget, Access, Protection, Request changes, Observability, Review) for a staging or production key, or whenever you want to choose the settings yourself.
The key's secret is shown once. Copy it, or Download as .env, which writes a file that sets INFERE_API_KEY. After you leave the page, the secret is masked for good.
# Download as .env writes one line:
INFERE_API_KEY=<your key's secret>
3. Make Your First Request
Infere speaks the OpenAI API. Any OpenAI-compatible client works with two changes: the base URL and the key. Send the key's secret in the Authorization header to https://api.infere.com/v1.
curl https://api.infere.com/v1/chat/completions \
-H "Authorization: Bearer $INFERE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}]}'
The model is any model in Models that your key allows. Nothing selects a model for you: the request names the model, and Infere routes it to that model's provider. A key narrows the choice with Allowed models and Excluded models, and lists Fallback models that are tried only when the provider fails - a 5xx, 429 or 408, a timeout, a network error, or an open circuit.
4. OpenAI SDK Compatibility
The official SDKs need the same two changes - point them at Infere and read the key from the environment.
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.INFERE_API_KEY,
baseURL: 'https://api.infere.com/v1',
});
const response = await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: 'Summarize this document.' }],
});
5. See Your Request in Logs
Open Logs in the sidebar. The request is there within seconds, and Logs keeps every request - refused ones included, at cost $0 - for 90 days. Open the row for the request panel: cost, tokens, latency by part, and the prompt and response when the key logs them, with Replay with edits, Rate, Add to test set and Compare.
If the request was refused, the code says why. A 402 means the workspace balance is $0: buy credit in Settings › Billing and credit. A code starting INFERE_ERR_10 means the key itself was refused, so check that the whole secret is in the Authorization header and that the key is active.
To group calls in Logs, send the IDs your project already knows: X-Infere-Session-Id for a run, X-Conversation-Id for the turns of a chat and X-Infere-Batch-Id for a job. See API Reference for the full set, including attributes and released prompts.