> ## 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.ai quickstart

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

**To make your first request to abliteration.ai**, 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](/api/introduction) for all supported endpoints.

<CodeGroup>
  ```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);
  ```
</CodeGroup>

## 3. Stream tokens

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

## Next steps

* [Authentication](/authentication) — keys, scopes, and rotation
* [Models](/models) — available models and pricing
* [Policy Gateway](/policy-gateway/overview) — govern what your apps can say
