# Getting started (https://inference.net/docs/getting-started)

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.

<Callout title="Before you start" tone="info">

You need an Inference.net account and a shell that can set environment variables.
No provider API key is required for models billed by Inference.net.

</Callout>

## 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](/dashboard/settings/security/) (your avatar menu → **Settings**).

If you have lost access to all your passkeys and have no authenticator app or
backup codes, contact [support](mailto:support@inference.net) for account
recovery. Resetting your password does not remove the second-factor requirement.

### Add your first passkey

1. Open **Settings > Security** and select **Add passkey**.
2. Enter an optional name, then select **Add passkey**.
3. When prompted, enter the emailed eight-character confirmation code (letters
   and numbers), then select **Add passkey** again.
4. Complete your device or browser prompt to save the passkey.

If you already have a passkey, you may need to select **Verify with a passkey**
and use it to authorize enrollment.

## Send your first request

<Steps>
  <Step title="Create your account">

Create an account at [/register](/register/), or [sign in](/signin/) 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](#passkey-verification) step before continuing.

If you were invited to a team, open the invitation link after you create your
account and click **Accept invitation** to join the team. When the invitation
includes an Inference Pass plan paid for by the team, accepting it opens
**My plans** for that team and normally assigns the plan without requiring you
to add funds. If the plan does not appear in **My plans** after you join,
contact a team admin to assign it.

  </Step>
  <Step title="Create a project API key">

Open [API keys](/dashboard/api-keys/), choose **Create API key**, and give the key
a recognizable name. If you hold an active Inference Pass plan in that team, new
keys default to a [plan key](/docs/api-keys/#plan-keys): team owners and admins
can switch **Uses** to the team's **API credits** option for Batch, Files,
async, Group, or gateway passthrough requests, while other members with an
active plan can create plan keys only. The dashboard shows the raw key once.

<Callout title="Store it now" tone="warning">

Copy the key into your password manager or secret store before closing the
dialog. Inference.net stores only a secure representation and cannot reveal the
raw value later.

</Callout>

  </Step>
  <Step title="Export the key">

Set the key in your current shell. Do not commit it to source control.

```bash
export INFERENCE_API_KEY="inf_sk_..."
```

  </Step>
  <Step title="Call the API">

Send an OpenAI-compatible chat completion. The model ID is the same value shown
in the [model catalog](/models/).

<CodeTabs>

```curl
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." }
    ]
  }'
```

```typescript
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: "Explain speculative decoding in one sentence." },
  ],
})

console.log(response.choices[0].message.content)
```

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.inference.net/v1",
    api_key=os.environ["INFERENCE_API_KEY"],
)

response = client.chat.completions.create(
    model="glm-5.2",
    messages=[
        {"role": "user", "content": "Explain speculative decoding in one sentence."}
    ],
)

print(response.choices[0].message.content)
```

</CodeTabs>

A successful response contains an assistant message under
`choices[0].message.content` and token counts under `usage`.

  </Step>
  <Step title="Verify usage">

Open [Usage](/dashboard/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.

  </Step>
</Steps>

## Try models in Playground

1. Select your team and project using the dashboard pickers, then open
   [Playground](/dashboard/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.
2. 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.
3. 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.
4. 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.
5. 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_KEY` in your environment as shown above.

### Extract structured data with Schematron

Select a Schematron model in the picker to open the HTML extraction workspace.

1. 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.
2. Choose **json_schema** to edit the **JSON schema** describing the data to
   extract. Add HTML and a valid JSON Schema before running.
3. Choose **Run** to stream the extracted output, or **Stop** to interrupt it.
4. 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](/dashboard/api-keys/) for the
  selected project. Playground needs its default key with write access.
- **Out of credits:** add credits under [Billing](/dashboard/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.

<CodeTabs>

```typescript
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)
```

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.inference.net/v1",
    api_key=os.environ["INFERENCE_API_KEY"],
)

response = client.chat.completions.create(
    model="glm-5.2",
    messages=[{"role": "user", "content": "Hello from Inference.net"}],
)

print(response.choices[0].message.content)
```

</CodeTabs>

## 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](/docs/cli/) or connect a coding agent from the
[integration guides](/docs/integrations/overview/).