From 7f6ae4a46366a304bc6a5503f85229118eb74515 Mon Sep 17 00:00:00 2001 From: weibin0516 <6884655+weibin0516@users.noreply.github.com> Date: Thu, 15 Oct 2026 18:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20add=20BetterToken=20cust?= =?UTF-8?q?om=20endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai_endpoints/bettertoken.mdx | 38 +++++++++++++++++++ .../librechat_yaml/ai_endpoints/meta.json | 1 + 2 files changed, 39 insertions(+) create mode 100644 content/docs/configuration/librechat_yaml/ai_endpoints/bettertoken.mdx diff --git a/content/docs/configuration/librechat_yaml/ai_endpoints/bettertoken.mdx b/content/docs/configuration/librechat_yaml/ai_endpoints/bettertoken.mdx new file mode 100644 index 000000000..60c68f8fd --- /dev/null +++ b/content/docs/configuration/librechat_yaml/ai_endpoints/bettertoken.mdx @@ -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). diff --git a/content/docs/configuration/librechat_yaml/ai_endpoints/meta.json b/content/docs/configuration/librechat_yaml/ai_endpoints/meta.json index c46fe3dfd..7a1dc3706 100644 --- a/content/docs/configuration/librechat_yaml/ai_endpoints/meta.json +++ b/content/docs/configuration/librechat_yaml/ai_endpoints/meta.json @@ -5,6 +5,7 @@ "anyscale", "apipie", "azure", + "bettertoken", "cloudflare", "cohere", "databricks",