Getting started
Create an API key, try models in Playground, and verify usage in the Inference.net dashboard.
Inference.net gives you one OpenAI-compatible API for fast hosted models. A new account starts with a personal team and a project. Select the team and project in the pickers at the top of the dashboard to manage its API keys, try models, and inspect usage.
Passkey verification
If your account has a passkey or an authenticator app, signing in with a password, Google, or GitHub is followed by a Verify it's you step. Choose Verify with a passkey and use an existing passkey with your device's fingerprint, face, PIN, or security key. The passkey is a second factor, not a replacement for your primary sign-in.
Complete this step before opening the dashboard, approving a CLI login, or continuing an MCP authorization. Verification returns you to the flow you started. Choose Use a different account to sign out and start again with another account.
If you can't use your passkey, choose Use authenticator app and enter the 6-digit code from your app, or Use a backup code and enter one of your saved backup codes. Each backup code works once. Set up an authenticator app and backup codes, and see where you're signed in, on the Security tab of Settings (your avatar menu → Settings).
If you have lost access to all your passkeys and have no authenticator app or backup codes, contact support for account recovery. Resetting your password does not remove the second-factor requirement.
Send your first request
Create your account
Create an account at /register, or sign in with an existing account. Inference.net creates your first project automatically and opens the onboarding flow. If your account has a passkey, complete the passkey verification step before continuing.
Create a project API key
Open API keys, choose Create API key, and give the key a recognizable name. The dashboard shows the raw key once.
Export the key
Set the key in your current shell. Do not commit it to source control.
bashexport INFERENCE_API_KEY="inf_sk_..."Call the API
Send an OpenAI-compatible chat completion. The model ID is the same value shown in the model catalog.
curl https://api.inference.net/v1/chat/completions \ -H "Authorization: Bearer $INFERENCE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "glm-5.2", "messages": [ { "role": "user", "content": "Explain speculative decoding in one sentence." } ] }'A successful response contains an assistant message under
choices[0].message.contentand token counts underusage.Verify usage
Open Usage. After ingestion completes, the request appears in the spend card on the Overview tab; hover a bar to inspect spend and tokens for each model. The Models tab lists requests, tokens and spend per model.
Try models in Playground
- Select your team and project using the dashboard pickers, then open Playground. Requests use the selected project's default API key server-side; you do not paste a secret into the browser. Playground requests are billed to your team like API requests.
- Use the model picker to search for a model and inspect its details. Set an optional System prompt, then adjust Temperature, Output length, Reasoning effort, Verbosity, or Response format (Text, JSON, Schema). Settings depend on the model: unsupported controls explain why they are unavailable. On smaller screens, choose Settings to open the controls and Chat to return to the conversation.
- Enter a prompt and choose Send or press ⌘/Ctrl + Enter. The answer streams into the conversation; reasoning appears separately as Thinking when the model returns it. Use Clear to reset the conversation and abandon an in-flight response.
- After a response completes, inspect TTFT (time to first token), tok/s (output tokens per second), input/output token counts, and cost beneath it. Hover tokens or cost for the breakdown and whether usage is estimated because the provider reported no usage. The toolbar also shows session totals.
- Choose View code in the settings panel for TypeScript, Python, and curl
snippets using the current settings and prompt. To run them outside Playground,
set
INFERENCE_API_KEYin your environment as shown above.
Extract structured data with Schematron
Select a Schematron model in the picker to open the HTML extraction workspace.
- Choose a sample under HTML source, or choose Custom and enter a Page URL, then Fetch URL. You can also paste HTML directly; if fetching fails, paste the HTML instead.
- Choose json_schema to edit the JSON schema describing the data to extract. Add HTML and a valid JSON Schema before running.
- Choose Run to stream the extracted output, or Stop to interrupt it.
- In Runs, choose Details to inspect the run's status, duration, HTTP status, and Output, Request, and Response tabs.
Playground errors
- No API key: create a key under API keys for the selected project. Playground needs its default key with write access.
- Out of credits: add credits under Billing before sending another request.
- Model access required: choose Request access and complete the model's access requirements for your team, or select another available model.
- No project selected: select a project using the dashboard project picker, then retry.
Use an SDK
Any OpenAI-compatible client can use the same endpoint and key.
import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://api.inference.net/v1",
apiKey: process.env.INFERENCE_API_KEY,
})
const response = await client.chat.completions.create({
model: "glm-5.2",
messages: [{ role: "user", content: "Hello from Inference.net" }],
})
console.log(response.choices[0].message.content)Understand project scope
Select a team and project using the pickers at the top of the dashboard. Project pages use the project in their URL; links without a project open the last valid project selected for that team in this browser, or its first available project if no valid selection is stored. Keys created in the dashboard are granted read and write access to the selected project. Playground and project/model usage use that same project scope. API-key usage breakdowns and charts cover the selected team, not only the selected project.
The fast CLI asks you to select a team and project during interactive login;
select both using the dashboard pickers to see what the CLI created. In a non-interactive
terminal, it falls back to your personal team's first project.
Troubleshooting
| Symptom | Check |
|---|---|
401 Unauthorized | Confirm the header uses Bearer and the complete key value. |
403 Forbidden | Confirm the key has write access to the project you selected. |
| Model not found | Copy the model ID from the current model catalog. |
| No usage appears | Wait briefly for ingestion, then confirm the key and dashboard use the same project. |
Next, install the CLI or connect a coding agent from the integration guides.