Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: BetterToken
icon: Plug
description: Configure BetterToken as a custom endpoint in LibreChat.
---

BetterToken is a pay-as-you-go API gateway that serves Claude, GPT, DeepSeek, Kimi, GLM, MiniMax and Qwen models through one OpenAI-compatible API, used in LibreChat as a custom endpoint.

## Get an API key

[Create a BetterToken account](https://bettertoken.ai/register), add balance, and create an API key. Add it to your `.env` file:

```bash filename=".env"
BETTERTOKEN_API_KEY=your-api-key
```

## Configuration

Add the endpoint to the `custom` list under `endpoints` in your `librechat.yaml`. If your file already has an `endpoints.custom` list, paste only the `- name:` entry into it, keeping the same indentation:

```yaml filename="librechat.yaml"
endpoints:
custom:
- name: "BetterToken"
apiKey: "${BETTERTOKEN_API_KEY}"
baseURL: "https://bettertoken.ai/v1"
models:
default: [
"claude-sonnet-5-5", "deepseek-flash", "kimi-k3"
]
fetch: true
titleConvo: true
titleModel: "deepseek-flash"
modelDisplayLabel: "BetterToken"
```

- `fetch: true` loads the models available to your key from `https://bettertoken.ai/v1/models`.
- Current model IDs and per-token prices are listed on the [BetterToken pricing page](https://bettertoken.ai/pricing).
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"anyscale",
"apipie",
"azure",
"bettertoken",
"cloudflare",
"cohere",
"databricks",
Expand Down