> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastrun.si/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create an API key and make your first request.

**1. Create an account**

Sign up at [fastrun.si/signup](https://fastrun.si/signup). New accounts are reviewed before their keys start
working; you can create keys in the meantime.

**2. Create an API key**

Open [API keys](https://fastrun.si/dashboard/keys) in the dashboard and create a key. It is shown only once, so copy
it somewhere safe, such as an environment variable:

```bash theme={null}
export FASTRUN_API_KEY="fr_..."
```

**3. Send a request**

Use curl or any OpenAI SDK with the base URL `https://api.fastrun.si/v1`.

```bash curl theme={null}
curl https://api.fastrun.si/v1/chat/completions \
  -H "Authorization: Bearer $FASTRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-4-31b-it",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```

```python Python theme={null}
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.fastrun.si/v1",
    api_key=os.environ["FASTRUN_API_KEY"],
)
res = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(res.choices[0].message.content)
```

```typescript TypeScript theme={null}
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.fastrun.si/v1",
  apiKey: process.env.FASTRUN_API_KEY,
});

const res = await client.chat.completions.create({
  model: "google/gemma-4-31b-it",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(res.choices[0].message.content);
```

**4. Check your usage**

Requests and tokens appear on the [Usage](https://fastrun.si/dashboard/usage) page of the dashboard, by UTC day and
by key.

## Next steps

> [card] [Stream the answer](https://docs.fastrun.si/guides/streaming.md)
>
> Print tokens as they arrive.

> [card] [Handle errors](https://docs.fastrun.si/guides/errors.md)
>
> Which errors to retry and how.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.