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

# Abliteration quickstart

> Get your first Abliteration request working in under a minute — grab a key, hit /v1/chat/completions, stream tokens.

**To make your first request to Abliteration**, generate an API key in the [console](https://abliteration.ai/console), then `POST` to `https://api.abliteration.ai/v1/chat/completions` with the OpenAI request shape. Takes under a minute.

## 1. Get an API key

Sign in to the [console](https://abliteration.ai/console) and create a key. Keys are bearer tokens.

```sh theme={"system"}
export ABLIT_KEY=ak_YOUR_API_KEY
```

## 2. Make a request

Base URL: `https://api.abliteration.ai/v1`. See the [API overview](https://docs.abliteration.ai/api/introduction.md) for all supported endpoints.

```sh curl theme={"system"}
curl https://api.abliteration.ai/v1/chat/completions \
  -H "Authorization: Bearer $ABLIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "abliterated-model",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
```

```python Python theme={"system"}
from openai import OpenAI

client = OpenAI(
    base_url="https://api.abliteration.ai/v1",
    api_key=os.environ["ABLIT_KEY"],
)

resp = client.chat.completions.create(
    model="abliterated-model",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
```

```javascript Node theme={"system"}
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.abliteration.ai/v1",
  apiKey: process.env.ABLIT_KEY,
});

const resp = await client.chat.completions.create({
  model: "abliterated-model",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);
```

## 3. Stream tokens

Set `stream: true` to render tokens as they arrive. See [streaming](https://docs.abliteration.ai/capabilities/streaming.md) for details.

## Next steps

* [Authentication](https://docs.abliteration.ai/api/authentication.md) — keys, scopes, and rotation
* [Models](https://docs.abliteration.ai/models.md) — available models and pricing
* [Policies](https://docs.abliteration.ai/policy-gateway/overview.md) — monitor or block behavior you define


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