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

# Quickstart

> Create an API key and make your first request.

**1. Sign in to the console**

Go to [console.antarah.dev](https://console.antarah.dev) and sign in with email, Google, GitHub, or Microsoft. Your account starts with a personal organization and a Default project. Verifying your email adds free credits to the organization, once per email address.

**2. Create an API key**

Open your project's **API keys** page and create a key. Copy it now: the console shows the full key only once. Keep it on your server and never ship it in a browser or mobile app.

```bash theme={null}
export ANTARA_API_KEY="ak_..."
```

**3. Make a request**

```bash curl theme={null}
curl https://api.antarah.dev/v1/chat/completions \
  -H "Authorization: Bearer $ANTARA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "a1",
    "messages": [{ "role": "user", "content": "Say hello in three languages." }]
  }'
```

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

client = OpenAI(api_key=os.environ["ANTARA_API_KEY"], base_url="https://api.antarah.dev/v1")
reply = client.chat.completions.create(
    model="a1",
    messages=[{"role": "user", "content": "Say hello in three languages."}],
)
print(reply.choices[0].message.content)
```

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

const client = new OpenAI({ apiKey: process.env.ANTARA_API_KEY, baseURL: "https://api.antarah.dev/v1" });
const reply = await client.chat.completions.create({
  model: "a1",
  messages: [{ role: "user", content: "Say hello in three languages." }],
});
console.log(reply.choices[0].message.content);
```

```python Python (Anthropic SDK) theme={null}
import os
from anthropic import Anthropic

client = Anthropic(api_key=os.environ["ANTARA_API_KEY"], base_url="https://api.antarah.dev")
message = client.messages.create(
    model="a1",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Say hello in three languages."}],
)
print(next(b.text for b in message.content if b.type == "text"))
```

**4. Check your usage**

Each request appears in the project's **Activity** page with its tokens, cost, and latency. Your balance is on the organization's **Billing** page, or from the API:

```bash theme={null}
curl https://api.antarah.dev/v1/credits -H "Authorization: Bearer $ANTARA_API_KEY"
```

## Next steps

* [Pick a model](https://docs.antarah.dev/models.md): capabilities, context windows, and prices come from `GET /v1/models`.
* [Stream responses](https://docs.antarah.dev/guides/streaming.md) as they're generated.
* [Add a policy](https://docs.antarah.dev/guides/policies.md) to check requests or responses.


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