// DOCUMENTATION

HELLFIRERANSOM
API REFERENCE

HFR is an OpenAI-compatible gateway for chat completions, streaming and tool calling across GPT, Claude, Gemini, Grok, DeepSeek, GLM, Kimi and MiMo models, including abliterated and uncensored variants. Every endpoint speaks the OpenAI wire format, so any SDK, IDE or agent that accepts a custom base URL works once you set two values: the base URL and an HFR key. This guide covers authentication, model discovery, streaming, tool calls, billing and the exact errors the API returns.

endpoint
BASE URL   https://api.hellfire.host/v1
AUTH       Authorization: Bearer hfr_live_…
MODELS     GET /models   BALANCE GET /balance   STATUS GET /status

⚡Quickstart

HFR is an OpenAI-compatible gateway: one base URL and one key replace every provider-specific configuration. Your existing OpenAI client keeps working once the endpoint changes.

First request
curl https://api.hellfire.host/v1/chat/completions \
  -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.3-abliterated","messages":[{"role":"user","content":"Hello"}]}'
  • Create a key in the bot. A $100 purchase lands as $100 of prepaid balance.
  • Set the base URL to https://api.hellfire.host/v1 in any OpenAI-compatible client. Keys are prefixed hfr_live_.
  • Call POST /chat/completions. GET /models lists the current ids, GET /status reports availability and GET /balance shows remaining credit.
Base URL shape The base URL already ends in /v1. A few tools append /v1 themselves; if a request returns 404, check the URL before you check the key.

🔑Authentication

Every request carries a bearer token. Send Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; the x-api-key header is accepted as an equivalent for clients that cannot set an Authorization header.

Headers
curl https://api.hellfire.host/v1/chat/completions \
  -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.3-abliterated","messages":[{"role":"user","content":"ping"}]}'

curl https://api.hellfire.host/v1/models -H "x-api-key: hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  • Keys are created and revoked in the bot; each key is bound to a model-agnostic balance and its own usage counters.
  • A missing or malformed key returns 401 with code invalid_api_key.
  • A revoked key fails immediately; there is no propagation delay.
Keys are secrets Never ship a key in browser code or in a public repository. Put it behind your own backend and let that backend call HFR.

🧠Models

GET /models returns the live catalog in the standard OpenAI list format. The id field is exactly what you pass as model; copy it rather than guessing a family name.

List models
curl https://api.hellfire.host/v1/models -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

The catalog covers GPT, Claude, Gemini, Grok, DeepSeek, GLM, Kimi and MiMo families. Abliterated variants use a suffix in the id and drop the vendor refusal layer; most support streaming, and tool support varies per model.

Unknown ids fail fast An id that is not in the catalog returns 404 with code model_not_found. Context window and per-token pricing are shown next to each model in the bot.

🌊Streaming

Set "stream": true and the response becomes server-sent events: each event is a data: line carrying a chunk with a delta, and the stream ends with data: [DONE]. Any OpenAI SDK handles this without extra code.

Stream from the shell
curl -N https://api.hellfire.host/v1/chat/completions \
  -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.3-abliterated","stream":true,"messages":[{"role":"user","content":"Count to five."}]}'
Parse SSE yourself
const res = await fetch("https://api.hellfire.host/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: "Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "glm-5.3-abliterated",
    messages: [{ role: "user", content: "Count to five." }],
    stream: true,
  }),
});

for await (const chunk of res.body) {
  const text = new TextDecoder().decode(chunk);
  for (const line of text.split("\n")) {
    if (!line.startsWith("data: ")) continue;
    const payload = line.slice(6);
    if (payload === "[DONE]") process.exit(0);
    const delta = JSON.parse(payload).choices[0]?.delta?.content;
    if (delta) process.stdout.write(delta);
  }
}
  • Chunks arrive as they are generated; there is no buffering at the gateway.
  • Add "stream_options": {"include_usage": true} to get a final chunk with token usage.
  • Malformed or truncated streams end without [DONE]; treat that as a dropped connection and retry the request.
Buffering outside the gateway If a stream looks frozen, check the client first: curl needs -N, proxies need buffering disabled, and some serverless runtimes buffer the whole body.

🛠Tool calling

Function calling uses the OpenAI schema: describe tools with type: function, a name and JSON Schema parameters, then let the model return tool_calls. Parse the arguments, run your function and append a message with role: tool and the matching tool_call_id.

Request with a tool
{
  "model": "glm-5.3-abliterated",
  "messages": [{ "role": "user", "content": "What is my balance?" }],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "get_balance",
        "description": "Return the account balance in USD",
        "parameters": { "type": "object", "properties": {}, "required": [] }
      }
    }
  ],
  "tool_choice": "auto"
}

Send the result back as {"role":"tool","tool_call_id":"...","content":"42.00"} and call the endpoint again. Parallel tool calls are returned as multiple entries in tool_calls and can be answered in any order.

Model support varies Only models that advertise tool support emit reliable tool_calls. For the rest, ask for JSON in the prompt and validate it yourself; tool_choice "required" on an unsupported model returns a 400.

🚨Errors

Errors use the OpenAI envelope, so existing retry and error-handling code keeps working. Check the HTTP status first, then error.code for the machine-readable reason.

Error envelope
{
  "error": {
    "message": "This key has insufficient balance. Top up to continue.",
    "type": "insufficient_quota",
    "code": "insufficient_balance"
  }
}

Status map

  • 400 · invalid_request_error — malformed JSON, unknown parameter or a tool schema the model rejects.
  • 401 · invalid_api_key — the key is missing, wrong or revoked.
  • 402 · insufficient_balance — the key balance cannot cover the request; top up the account.
  • 404 · model_not_found — the model id is not in the catalog; check GET /models.
  • 429 · rate_limit_exceeded — too many concurrent or rapid requests; back off and retry.
  • 503 · upstream unavailable — capacity or a model endpoint is briefly down; retry with backoff.
Retry policy Retry 429, 500 and 503 with exponential backoff and jitter. Never retry 401, 402 or 404 without changing the request.

📏Limits

Two different limits apply: what a model can hold in context and what the gateway accepts per request. Token limits are per model; the catalog and the bot both show the context window and max output for each one.

  • Exceeding the context window returns 400 with a token-limit message; trim history or use a larger model.
  • max_tokens caps the completion. Output past the model ceiling is truncated at the limit.
  • Rate limits are applied per key, so one noisy worker cannot starve another key on the same account.
  • Request bodies are limited to a few megabytes; send large files as references, not as base64 blobs.
Watch the numbers Usage in each response reports prompt, completion and cached tokens. If a model starts rejecting a prompt that used to fit, its context window is the first thing to check.

💳Billing

Billing is prepaid in USD. Every request is metered from the response usage block and deducted from the key balance at the per-model rate for input, cached input and output tokens.

How a request is priced

  • A $100 purchase becomes $100 of balance; there is no separate subscription and no per-seat fee.
  • Prices are quoted per 1M tokens and shown per model. Input, cached input and output are priced separately.
  • Cached input is billed at the discounted cached rate when the response reports prompt_tokens_details.cached_tokens.
  • Each key needs at least $2 of remaining balance before it can serve requests.
  • Balance is visible in the bot at any time and through GET /balance with the key.
Check balance and usage
curl https://api.hellfire.host/v1/balance -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl https://api.hellfire.host/v1/usage -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
No surprise invoices Spend cannot exceed the balance: once the credit is gone, requests return 402 until you top up. Usage per key is available in the bot and through /usage.

🗝API keys

Keys are created in the bot, not through the API. Each key gets its own balance allocation, usage counters and revocation, which is why one key per app or client is the right default.

  • Format: hfr_live_ followed by 32 lowercase alphanumeric characters. The full key is shown once at creation.
  • HFR stores only a hash of the key, so a lost key is replaced, not recovered.
  • Rotate a key by creating a new one, deploying it, then revoking the old one from the bot.
  • Name keys after the system that uses them; usage charts and error pages then identify the caller.
One key per environment A shared key makes a leak impossible to trace and impossible to revoke without downtime. Separate keys for staging and production cost nothing.

🛡Security

Traffic is encrypted in transit and keys are stored as hashes. Requests are logged for metering and abuse control: model, token counts, latency, status and source address. Prompt and response bodies are not stored by default.

  • Keys can be revoked instantly; revocation takes effect on the next request.
  • Only send what the task needs. Trim conversation history and redact secrets before they reach any model.
  • Treat model output as untrusted input when it is piped into a shell, a database or a browser.
  • Keep keys on the server. A browser-side key is public the moment it ships.
Prompt injection is your problem A model that can read a web page or a tool result can be steered by it. Constrain tool permissions and validate arguments before executing anything.

//HARNESS SETUP

Every tool below speaks the OpenAI API. Paste the base URL, your key and a model name — that's it.

🧩 Cline IDE

Agentic coding inside VS Code with edits and a terminal.

API ProviderOpenAI Compatible
Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Model IDglm-5.3-abliterated
1. Install the extension
Open the Extensions view with Ctrl+Shift+X, search for "Cline", install it and reload the window. The marketplace id is below if you prefer the CLI.
code --install-extension saoudrizwan.claude-dev
2. Choose the provider
Open the Cline panel, click the gear icon, expand "API Configuration" and set "API Provider" to "OpenAI Compatible".
3. Paste the values
Set "Base URL" to https://api.hellfire.host/v1, "API Key" to hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and "Model ID" to glm-5.3-abliterated. Use the base URL exactly as shown; Cline appends /chat/completions itself.
4. Run a task
Ask for a small, verifiable change. Cline streams its plan, shows each diff and waits for your approval before writing files.
Add a /health endpoint and a unit test for it.
  • Raise "Max output tokens" above 8192 when refactoring large files.
  • Plan mode explores without editing; switch to Act mode to apply changes.
🦘 Roo Code IDE

Multi-mode coding agent with scoped permissions per mode.

API ProviderOpenAI Compatible
Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Install Roo Code
Install the extension from the marketplace or with the command below, then reload VS Code.
code --install-extension RooVeterinaryInc.roo-cline
2. Open provider settings
Click the Roo Code icon in the activity bar, then the gear icon. Switch to the "Providers" tab and set "API Provider" to "OpenAI Compatible".
3. Fill in the endpoint
Enter "Base URL" https://api.hellfire.host/v1, "API Key" hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and "Model" glm-5.3-abliterated. Leave the base URL ending in /v1; Roo Code adds the chat path on its own.
4. Pick a mode and prompt
Use Code mode for edits, Ask mode for read-only questions and Architect mode for plans. Approve the first tool call to confirm connectivity.
Refactor src/utils.js to remove duplicated date helpers.
  • Roo Code is a Cline fork, so the provider screen and diff approval flow are nearly identical.
  • Per-mode model overrides let you run a cheap model for Ask and a strong one for Code.
🖱 Cursor IDE

AI-first editor with Chat, Composer and inline edits.

OpenAI API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Override OpenAI Base URLhttps://api.hellfire.host/v1
Modelglm-5.3-abliterated
1. Open Cursor settings
Press Ctrl+Shift+J (Cmd+Shift+J on macOS) to open Cursor Settings, or run "Cursor: Open Settings" from the command palette. Select the "Models" section.
2. Add the key and base URL
Paste hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx into "OpenAI API Key". Enable the "Override OpenAI Base URL" toggle and set the field to https://api.hellfire.host/v1. The URL must end in /v1 because Cursor appends /chat/completions to it.
3. Register the model name
Scroll to "Model names", click "Add model", type glm-5.3-abliterated and press Enter. Then enable that model in the model list so it appears in Chat and Composer.
4. Verify in Chat
Open Chat (Ctrl+L), switch the model picker to glm-5.3-abliterated and send a short prompt. A reply confirms the key, base URL and model id are all correct.
Explain what this file does and suggest one refactor.
  • The base URL override applies only to requests made with your own key, so Cursor-hosted models keep working.
  • If Chat returns 404, the usual cause is a base URL without the /v1 suffix.
⏩ Continue IDE

Open-source IDE assistant driven by a config file.

Provideropenai
apiBasehttps://api.hellfire.host/v1
apiKeyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
modelglm-5.3-abliterated
1. Install the extension
Install Continue from the marketplace, or run the command below and reload the IDE.
code --install-extension Continue.continue
2. Open the config file
Click the Continue icon in the activity bar, then the gear icon and "Open config.yaml". The file lives at ~/.continue/config.yaml.
3. Add the model entry
Append a model block. "provider" stays "openai" because the wire format is OpenAI-compatible; apiBase is the full base URL including /v1.
models:
  - name: HFR glm-5.3-abliterated
    provider: openai
    model: glm-5.3-abliterated
    apiBase: https://api.hellfire.host/v1
    apiKey: hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    roles:
      - chat
      - edit
      - apply
4. Reload and select
Save the file, run "Developer: Reload Window", then pick "HFR glm-5.3-abliterated" in the model dropdown at the bottom of the chat panel.
  • Keep roles to chat and edit if apply mode struggles with very large diffs.
  • Older Continue releases read config.json instead of config.yaml; the same keys apply.
⚡ Zed IDE

Fast native editor with an OpenAI-compatible model config.

api_urlhttps://api.hellfire.host/v1
api_keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Model nameglm-5.3-abliterated
1. Open settings.json
Press Ctrl+, (Cmd+, on macOS) or run "zed: open settings" from the command palette.
2. Add the language model block
Merge this into your settings. api_url is the full base URL, and available_models registers the id you want in the agent panel.
{
  "language_models": {
    "openai": {
      "api_url": "https://api.hellfire.host/v1",
      "api_key": "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "available_models": [
        { "name": "glm-5.3-abliterated", "max_tokens": 128000 }
      ]
    }
  }
}
3. Reload the agent panel
Run "zed: reload configuration" (or restart Zed), open the Agent panel with Ctrl+Shift+A and choose glm-5.3-abliterated from the model selector.
4. First prompt
Ask something that needs the whole file open, then use the inline assistant to confirm edits work.
Summarize this file and list every exported function.
  • Zed sends the model name verbatim, so copy the exact id from the model list.
  • max_tokens in Zed is the context budget it plans for; set it to the model context window.
🖥 Open WebUI Desktop

Self-hosted ChatGPT-style UI with an OpenAI connection.

OPENAI_API_BASE_URLhttps://api.hellfire.host/v1
OPENAI_API_KEYhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Run it
Start the container with the environment variables already set. The base URL must include /v1; Open WebUI appends /chat/completions.
docker run -d -p 3000:8080 \
  -e OPENAI_API_BASE_URL=https://api.hellfire.host/v1 \
  -e OPENAI_API_KEY=hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
  -v open-webui:/app/backend/data \
  --name open-webui \
  ghcr.io/open-webui/open-webui:main
2. Or configure in the UI
Open http://localhost:3000, sign in as the admin, go to Admin Panel → Settings → Connections, paste the base URL and key under "OpenAI API" and save.
3. Refresh models
Click the refresh icon next to the connection to pull the live model list, then enable glm-5.3-abliterated.
4. Chat
Pick glm-5.3-abliterated in the model selector at the top of a new chat. Responses stream token by token.
  • Pin a release tag instead of :main if you care about upgrade stability.
  • The first account created becomes the admin and owns the connection settings.
🪐 Jan Desktop

Local-first desktop chat app with remote provider support.

Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Model IDglm-5.3-abliterated
1. Install and open Jan
Download Jan for Windows, macOS or Linux, launch it and open Settings from the bottom-left gear.
2. Connect the provider
Go to Settings → Providers → OpenAI, paste https://api.hellfire.host/v1 as the Base URL and hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx as the API Key, then save.
3. Add the model
In the model dropdown of a new thread choose "Add model" (or Settings → Models → Add Model) and enter glm-5.3-abliterated exactly as listed by the API.
4. Start a thread
Select the model and send a prompt. Jan stores provider settings locally on your machine.
Draft a 5-bullet launch checklist for a REST API.
  • Jan keeps provider settings in its local data folder, so they survive app updates.
  • If the model picker stays empty after saving, restart Jan once to reload providers.
🍒 Cherry Studio Desktop

Desktop multi-provider client with assistants and knowledge.

API Hosthttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Model IDglm-5.3-abliterated
1. Open model providers
Install Cherry Studio, open Settings and select "Model Provider" in the left sidebar.
2. Enable OpenAI with a custom host
Select "OpenAI", switch it on, then set "API Host" to https://api.hellfire.host/v1 and "API Key" to hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. API Host needs the /v1 suffix.
3. Add the model id
Click "Manage" next to the provider and add glm-5.3-abliterated to the model list. Only listed models appear in the chat picker.
4. Choose a default model
In Settings → Default Model, pick glm-5.3-abliterated for the assistant you plan to use, then start a new topic.
  • The checkmark "Check" button next to API Key validates the connection before you start.
  • Per-assistant settings override the global model, which is handy for long-context work.
💬 LibreChat Chat

Multi-user chat platform with custom OpenAI endpoints.

baseURLhttps://api.hellfire.host/v1
apiKeyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Declare a custom endpoint
Create or edit librechat.yaml next to your docker-compose.yml and add a custom endpoint block. Mount the file at /app/librechat.yaml when you start the container.
cache: true
endpoints:
  custom:
    - name: "HFR API"
      apiKey: "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      baseURL: "https://api.hellfire.host/v1"
      models:
        default: ["glm-5.3-abliterated"]
        fetch: true
2. Restart the server
Restart the LibreChat container so the YAML is re-read. A malformed config shows up in the container logs on boot.
docker compose restart api
3. Select the endpoint
Open the model selector in a new chat, expand the "HFR API" group and pick glm-5.3-abliterated. With fetch enabled the list is pulled from the API at startup.
4. Test tools
Enable the tools menu on a conversation and ask the model to call a function. Models without tool support answer in plain text.
  • LIBRECHAT_DEBUG=true logs endpoint errors while you are tuning the YAML.
  • One HFR key per LibreChat instance keeps usage attribution clean.
🎭 SillyTavern Chat

Power-user chat front end with custom endpoint support.

Chat Completion SourceCustom (OpenAI-compatible)
Custom Endpoint (Base URL)https://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Start SillyTavern
Download the release archive and run Start.bat on Windows, or clone the repository and start it with Node 18 or newer. The UI opens on http://localhost:8000.
git clone https://github.com/SillyTavern/SillyTavern
cd SillyTavern
npm install
node server.js
2. Pick the custom source
Click the plug icon to open API Connections. Set "API" to "Chat Completion" and "Chat Completion Source" to "Custom (OpenAI-compatible)".
3. Set the endpoint
Paste https://api.hellfire.host/v1 into "Custom Endpoint (Base URL)", hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx into "API Key" and press "Connect". Add /v1 to the URL if you left it off, because SillyTavern appends /chat/completions.
4. Choose the model
Click the refresh icon next to "Available models" and select glm-5.3-abliterated, or type the id manually and press Enter.
5. Send a message
Turn on streaming in the top bar and send a prompt. Response length and samplers are controlled by the presets on the right panel.
  • Use the "Custom (OpenAI-compatible)" source rather than "OpenAI" so SillyTavern does not force its own defaults.
  • Large character cards plus long histories add up fast; keep context budgets in mind.
📚 AnythingLLM Chat

Workspace RAG chat over your own documents.

LLM ProviderGeneric OpenAI
Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Chat Model Nameglm-5.3-abliterated
1. Open LLM settings
Install the desktop app or run the Docker image, then open Settings and choose "LLM Preference".
2. Choose Generic OpenAI
Set "LLM Provider" to "Generic OpenAI". This provider accepts any OpenAI-compatible base URL.
3. Fill the endpoint fields
Set "Base URL" to https://api.hellfire.host/v1, "API Key" to hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and "Chat Model Name" to glm-5.3-abliterated. If the provider asks for it, set the token context window to match the model.
4. Run the same config in Docker
The image accepts the same values as environment variables, which is easier to version than UI clicks.
docker run -d -p 3001:3001 \
  -e LLM_PROVIDER=generic-openai \
  -e GENERIC_OPEN_AI_BASE_PATH="https://api.hellfire.host/v1" \
  -e GENERIC_OPEN_AI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -e GENERIC_OPEN_AI_MODEL_PREF="glm-5.3-abliterated" \
  -v anythingllm:/app/server/storage \
  --name anythingllm mintplexlabs/anythingllm
5. Embed and chat
Create a workspace, upload a few documents, click "Save and Embed", then ask a question that requires those documents.
  • Embedding uploads consume context, so chunk large PDFs instead of uploading them whole.
  • The system prompt lives in workspace settings; pin it before comparing models.
🧱 Dify Automation

Visual LLM app builder with prompt, RAG and agent nodes.

ProviderOpenAI-API-compatible
Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Model nameglm-5.3-abliterated
1. Start Dify
The self-hosted stack runs with Docker Compose. Clone the repository, copy the environment file and bring the containers up; the web UI is served on port 80 by default.
git clone https://github.com/langgenius/dify.git
cd dify/docker
cp .env.example .env
docker compose up -d
2. Open model providers
Sign in to Dify, go to Settings → Model Provider and find "OpenAI-API-compatible". Install it from the Marketplace if it is not in the list.
3. Add a model
Click "Add Model". Choose model type LLM, then set "Model Name" glm-5.3-abliterated, "Base URL" https://api.hellfire.host/v1 and "API Key" hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Keep /v1 on the base URL.
4. Declare tool support
Set "Function Calling" to Tool Call for models with tool support, or Prompt-based for models without it. Save the model.
5. Use it in an app
Create a Chatflow, drop an LLM node, choose the model, and wire Chat Input → LLM → Answer. Run a preview to confirm streaming.
  • The provider plugin needs outbound access to the base URL; a locked-down Docker network must allow it.
  • Dify calls the base URL with /chat/completions appended, so a missing /v1 returns 404.
🧠 LobeChat Chat

Polished chat UI with a provider proxy setting.

API Proxy URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Open provider settings
In LobeChat open Settings (the gear in the left rail) → "Language Model" and select the OpenAI provider.
2. Set the key and proxy URL
Paste hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx into "API Key" and https://api.hellfire.host/v1 into "API Proxy URL". The proxy URL replaces the default OpenAI endpoint for every request.
3. Enable the model
Open the model list for the provider, click "Fetch models" (or add glm-5.3-abliterated manually) and switch it on, then pick it in a new conversation.
4. Or configure at boot
Self-hosted deployments can skip the UI entirely by setting the provider environment variables.
docker run -d -p 3210:3210 \
  -e OPENAI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -e OPENAI_PROXY_URL="https://api.hellfire.host/v1" \
  -e ACCESS_CODE=choose-a-code \
  --name lobe-chat lobehub/lobe-chat
  • Set ACCESS_CODE on public deployments; without it anyone who finds the URL can use your key.
  • Assistant-level model settings override the provider default, which is useful for vision-heavy roles.
🔗 n8n Automation

Node-based workflows that can call any OpenAI endpoint.

Credential typeOpenAI
Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Add an OpenAI node
In a new workflow click the plus button, search for "OpenAI" and choose "Message a Model". The same credential also covers image generation and transcription operations.
2. Create the credential
In the node panel open "Credential to connect with" → "Create new credential". Paste hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx into "API Key" and enter https://api.hellfire.host/v1 in the "Base URL" field. The URL lives in the credential, so every node reuses it.
3. Choose the model
Set the model to "By ID" and paste glm-5.3-abliterated, or use "From List" to pull the catalog through the credential.
4. Execute the step
Click "Execute step". A JSON response with a choices array confirms the connection before you wire the node into the rest of the workflow.
5. Raw control when needed
Use an HTTP Request node when you need fields the OpenAI node hides. POST to https://api.hellfire.host/v1/chat/completions with bearer auth and this body.
{
  "model": "glm-5.3-abliterated",
  "messages": [{ "role": "user", "content": "Draft a refund reply for order 8412." }],
  "stream": false
}
  • The OpenAI node returns one complete response; use an HTTP Request node if you need token-by-token output.
  • Self-hosted n8n needs outbound HTTPS access to the API; air-gapped instances cannot reach it.
🌊 Flowise Automation

Drag-and-drop chains, agents and RAG flows.

CredentialChatOpenAI
Base Pathhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Model Nameglm-5.3-abliterated
1. Start Flowise
Install globally and launch the server, or run the Docker image. The UI opens on http://localhost:3000.
npm install -g flowise
npx flowise start
2. Create the credential
Open the Credentials section and add a "ChatOpenAI" credential. Set "Base Path" to https://api.hellfire.host/v1, keeping the /v1 suffix, and "API Key" to hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; then save.
3. Build the flow
On the canvas add a ChatOpenAI node, pick the credential and enter glm-5.3-abliterated as the Model Name. Add a Prompt Template and a Buffer Memory node.
4. Connect and test
Link ChatOpenAI → Prompt Template → Buffer Memory, then open the embedded chat and send a message. The chat widget streams by default.
  • Flowise appends /chat/completions to Base Path, so a URL without /v1 returns 404.
  • Store the key in the credential rather than the node so rotation happens in one place.
🧬 Langflow Automation

Python-native visual builder for chains and agents.

OpenAI API Basehttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Model Nameglm-5.3-abliterated
1. Install and run
Python 3.10 or newer is recommended. Install Langflow and start the server; the UI opens on http://127.0.0.1:7860.
python -m pip install langflow
langflow run
2. Drop in a model component
Create a flow from the "Basic Prompting" template, or drag the OpenAI component from the Models category onto the canvas.
3. Point it at the endpoint
In the component controls set "API Key" to hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and "Model Name" to glm-5.3-abliterated. Open "Advanced Settings" and set "OpenAI API Base" to https://api.hellfire.host/v1.
4. Run the playground
Connect Chat Input → Prompt → OpenAI → Chat Output and press "Playground". Tokens stream into the panel as they arrive.
  • Keep /v1 on OpenAI API Base; Langflow appends /chat/completions.
  • If the model dropdown looks stale, refresh the component list with the reload button in the flow editor.
🐍 OpenAI Python SDK Framework

The reference client for any OpenAI-compatible API.

OPENAI_BASE_URLhttps://api.hellfire.host/v1
OPENAI_API_KEYhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Install the client
Python 3.8 or newer. The package has no native dependencies.
pip install --upgrade openai
2. Set the environment
Both values can come from the environment, which keeps the key out of your source tree.
export OPENAI_BASE_URL="https://api.hellfire.host/v1"
export OPENAI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
3. Stream a completion
The client parses SSE for you. Print deltas as they arrive to confirm streaming end to end.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.hellfire.host/v1",
    api_key="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
)

stream = client.chat.completions.create(
    model="glm-5.3-abliterated",
    messages=[{"role": "user", "content": "Explain SSE in two sentences."}],
    stream=True,
)

for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")
4. Read token usage
Ask for usage in the stream and the final chunk reports the token counts that billing is based on.
stream = client.chat.completions.create(
    model="glm-5.3-abliterated",
    messages=[{"role": "user", "content": "hi"}],
    stream=True,
    stream_options={"include_usage": True},
)
  • Pass base_url explicitly when the same process also talks to another OpenAI-compatible endpoint.
  • Timeouts and retries are per client: OpenAI(timeout=60, max_retries=3).
🟩 OpenAI Node SDK Framework

Typed JavaScript client with streaming helpers.

OPENAI_BASE_URLhttps://api.hellfire.host/v1
OPENAI_API_KEYhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Install the package
Node 18 or newer. The SDK ships ESM and CommonJS builds.
npm install openai
2. Set the environment
The SDK reads both values from the environment, so the key never appears in your source.
export OPENAI_BASE_URL="https://api.hellfire.host/v1"
export OPENAI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
3. Stream a response
The stream is an async iterable of chunks; each chunk carries a delta.
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: process.env.OPENAI_BASE_URL,
  apiKey: process.env.OPENAI_API_KEY,
});

const stream = await client.chat.completions.create({
  model: "glm-5.3-abliterated",
  messages: [{ role: "user", content: "Write a 3-line changelog." }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}
4. Call a tool
Tools use the standard OpenAI schema; the response returns tool_calls you execute and send back as a tool message.
const res = await client.chat.completions.create({
  model: "glm-5.3-abliterated",
  messages: [{ role: "user", content: "What is the balance?" }],
  tools: [{
    type: "function",
    function: {
      name: "get_balance",
      description: "Return the account balance in USD",
      parameters: { type: "object", properties: {}, required: [] },
    },
  }],
});
  • Abort long streams with an AbortController passed as the request signal.
  • Set maxRetries on the client to smooth over 429s in serverless workers.
🦜 LangChain Framework

Composable chains, agents and retrievers over OpenAI.

OPENAI_BASE_URLhttps://api.hellfire.host/v1
OPENAI_API_KEYhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Install the provider package
langchain-openai wraps the official client and exposes ChatOpenAI.
pip install -U langchain langchain-openai
2. Create the chat model
base_url is the only change compared with the official endpoint, and streaming flows through stream().
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="glm-5.3-abliterated",
    base_url="https://api.hellfire.host/v1",
    api_key="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    streaming=True,
)

for chunk in llm.stream("Summarize CAP theorem in three bullets."):
    print(chunk.content, end="")
3. Wrap it in a chain
Prompt templates and output parsers compose with the model without extra configuration.
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.output_parsers import StrOutputParser

prompt = ChatPromptTemplate.from_template("Write a release note for {feature}")
chain = prompt | llm | StrOutputParser()
print(chain.invoke({"feature": "API key rotation"}))
4. Bind tools
bind_tools sends standard OpenAI-style function definitions and returns tool calls in the message.
from langchain_core.tools import tool

@tool
def get_balance() -> str:
    """Return the account balance in USD."""
    return "42.00"

llm_with_tools = llm.bind_tools([get_balance])
  • Set max_retries on ChatOpenAI for batch jobs that may hit 429s.
  • For TypeScript use @langchain/openai and the same baseURL option in ChatOpenAI.
🦙 LlamaIndex Framework

Data-heavy RAG pipelines over an OpenAI-compatible LLM.

api_basehttps://api.hellfire.host/v1
api_keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Install the packages
llama-index-core supplies Settings and the indexing pipeline; the OpenAI package supplies the LLM class.
pip install -U llama-index-core llama-index-llms-openai
2. Point the LLM at the endpoint
api_base overrides the endpoint per instance, which is cleaner than setting a global environment variable.
from llama_index.core import Settings
from llama_index.llms.openai import OpenAI

Settings.llm = OpenAI(
    model="glm-5.3-abliterated",
    api_base="https://api.hellfire.host/v1",
    api_key="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
)
3. Stream tokens
stream_complete yields deltas; use it when a UI needs progressive output.
for token in Settings.llm.stream_complete("List five uses for a webhook queue."):
    print(token.delta, end="")
4. Query your own documents
Build an index over a folder and ask a question. Embeddings use whatever embedding model you configure separately.
from llama_index.core import SimpleDirectoryReader, VectorStoreIndex

docs = SimpleDirectoryReader("./docs").load_data()
index = VectorStoreIndex.from_documents(docs)
print(index.as_query_engine().query("What does the SLA cover?"))
  • LlamaIndex still reads OPENAI_API_KEY from the environment; api_base applies per LLM instance.
  • Pass additional_kwargs={"max_tokens": 4096} if long answers are being cut off.
▲ Vercel AI SDK Framework

TypeScript streaming and tool calling for web apps.

baseURLhttps://api.hellfire.host/v1
apiKeyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Install the SDK
ai is the core package; @ai-sdk/openai provides the provider factory.
npm install ai @ai-sdk/openai
2. Create a custom provider
createOpenAI accepts baseURL and apiKey, so every model call in the app can use HFR without touching individual calls.
import { createOpenAI } from "@ai-sdk/openai";
import { streamText } from "ai";

const hfr = createOpenAI({
  baseURL: "https://api.hellfire.host/v1",
  apiKey: "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
});

const result = streamText({
  model: hfr("glm-5.3-abliterated"),
  prompt: "Write a haiku about fast APIs.",
});

for await (const delta of result.textStream) {
  process.stdout.write(delta);
}
3. Stream to a route handler
Return the SDK response directly from a Next.js route handler; it handles SSE framing for the client.
export async function POST(req) {
  const { messages } = await req.json();

  const result = streamText({
    model: hfr("glm-5.3-abliterated"),
    messages,
  });

  return result.toDataStreamResponse();
}
4. Add a tool
Tools are declared next to the prompt and executed in your process; the SDK serializes the schema for the model.
import { tool } from "ai";
import { z } from "zod";

const result = streamText({
  model: hfr("glm-5.3-abliterated"),
  prompt: "What is the weather in Lisbon?",
  tools: {
    weather: tool({
      description: "Get current weather for a city",
      parameters: z.object({ city: z.string() }),
      execute: async ({ city }) => ({ city, tempC: 21 }),
    }),
  },
});
  • AI SDK 5 renamed the tool schema field to inputSchema; baseURL wiring is unchanged.
  • Use the OpenAI-compatible provider for models that do not support OpenAI-specific parameters.
🌀 cURL CLI

Zero dependencies. One request, straight from the shell.

Base URLhttps://api.hellfire.host/v1
AuthorizationBearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Send a chat completion
The endpoint is POST /chat/completions and the body is plain JSON. Quotes matter; do not let the shell split it.
curl https://api.hellfire.host/v1/chat/completions \
  -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.3-abliterated","messages":[{"role":"user","content":"Hello"}]}'
2. Stream the response
Add "stream": true and the -N flag. Without -N, curl buffers the whole body before printing anything.
curl -N https://api.hellfire.host/v1/chat/completions \
  -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.3-abliterated","stream":true,"messages":[{"role":"user","content":"Count to five."}]}'
3. List models
The catalog is public to any valid key and is the source of truth for model ids.
curl https://api.hellfire.host/v1/models \
  -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
4. Check balance and usage
These two calls are the fastest way to debug a 402 or an unexpected bill.
curl https://api.hellfire.host/v1/balance -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl https://api.hellfire.host/v1/usage -H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  • Use -N/--no-buffer with streaming bodies; it is the most common reason a stream looks frozen.
  • Read the key from an environment variable to keep it out of shell history and CI logs.
💻 Aider CLI

Git-aware pair programming in your terminal.

OPENAI_API_BASEhttps://api.hellfire.host/v1
OPENAI_API_KEYhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Modelglm-5.3-abliterated
1. Install Aider
Install into a virtual environment so its dependencies stay isolated from your project.
python -m pip install aider-chat
2. Point it at the endpoint
Aider reads the OpenAI-compatible base URL and key from the environment. Set both before starting it in the repository you want to edit.
export OPENAI_API_BASE="https://api.hellfire.host/v1"
export OPENAI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
3. Start a session
Prefix the model with openai/ so Aider routes calls through the OpenAI-compatible client, then add the files you want in context.
aider --model openai/glm-5.3-abliterated src/app.py src/app.test.js
4. Work in the chat
Ask for a change and Aider edits the files, runs tests and commits. Use /diff to review, /undo to revert and /model to switch models mid-session.
Add input validation and keep the existing tests green.
  • Aider appends /chat/completions to OPENAI_API_BASE, so keep the /v1 suffix.
  • Commit or stash before a large refactor; Aider commits per change and a clean tree makes review easy.
🤖 OpenHands Agent

Autonomous software engineer with a browser and terminal.

LLM ProviderOpenAI
Custom Modelopenai/glm-5.3-abliterated
Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1. Start OpenHands
Run the official Docker image (it needs the Docker socket for its sandbox) or use the hosted app, then open http://localhost:3000.
2. Open the LLM settings
Click the settings gear, open the "LLM" tab and set "LLM Provider" to "OpenAI". Enter "Custom Model" as openai/glm-5.3-abliterated, "Base URL" as https://api.hellfire.host/v1 and "API Key" as hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
3. Or use a config file
For the CLI and headless runs, write the same values into ~/.openhands/config.toml.
[llm]
model = "openai/glm-5.3-abliterated"
base_url = "https://api.hellfire.host/v1"
api_key = "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
4. Launch a task
Point it at a repository, describe the goal and approve the plan. The agent edits files in a sandbox and shows each action in the event stream.
Fix the failing tests in tests/test_api.py without changing public behavior.
  • Keep the openai/ prefix on the custom model; that is what routes calls through the OpenAI client.
  • Give the agent a narrow repo and a clear acceptance test; it produces better diffs than open-ended prompts.
🌑 Agent Zero Agent

Tool-using agent that writes its own scripts to finish tasks.

Provideropenai
Chat modelglm-5.3-abliterated
Base URLhttps://api.hellfire.host/v1
API Keyhfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1. Run Agent Zero
The supported path is Docker; the UI is served on port 50001 and the volume keeps settings between restarts.
docker run -d -p 50001:80 -v a0_data:/a0/usr --name agent-zero agent0ai/agent-zero
2. Open the model settings
Open http://localhost:50001, click the settings gear, then open the model or agent settings section and choose the OpenAI provider.
3. Enter the endpoint
Set "Chat model" to glm-5.3-abliterated, "Base URL" to https://api.hellfire.host/v1 and "API Key" to hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, then save. Mount /a0/usr to a volume if you want the configuration to survive a container rebuild.
4. Inspect the config instead
The UI writes these values into the settings file inside the container; you can also edit them directly and restart.
{
  "chat_model": {
    "provider": "openai",
    "name": "glm-5.3-abliterated",
    "api_base": "https://api.hellfire.host/v1",
    "api_key": "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}
5. Give it a job
Start a new chat and describe an outcome. The agent writes and runs code in its own workspace to reach it.
  • Use a model with reliable tool calling; Agent Zero leans on shell and Python tools for almost every task.
  • Keep a volume mounted for /a0/usr so settings and agent memory persist across restarts.

//FAQ

What is HFR API?

HFR is an OpenAI-compatible API gateway for chat completions, streaming and tool calling across GPT, Claude, Gemini, Grok, DeepSeek, GLM, Kimi and MiMo models. You point any OpenAI client at https://api.hellfire.host/v1 with an HFR key and keep your existing code. Keys are managed in the bot, and usage is billed from a prepaid USD balance.

Is it really uncensored?

Abliterated and uncensored variants run without the vendor refusal layer, and HFR adds no moderation of its own, so what you get is what the model produces. Standard variants keep their native alignment. Pick an abliterated id when you need the least restrictive behavior, and test the specific model on your own prompts before relying on it.

Which models can I use?

The catalog spans GPT, Claude, Gemini, Grok, DeepSeek, GLM, Kimi and MiMo, including abliterated versions of several families. Call GET /models for the exact ids currently served; ids change as the catalog is updated, so read them rather than hardcoding family names. Pricing and context window are listed per model in the bot.

How fast is it?

Latency depends on the model, not on the key. Streaming is enabled by default in the client libraries, and small models start emitting tokens almost immediately, while reasoning and long-context models take longer before the first token. GET /status shows current model availability if a call is slow or failing.

Do you log my prompts?

Requests are logged for metering and abuse control: model id, token counts, latency, status code and source address. Prompt and response bodies are not stored by default. If your workload carries regulated data, redact it before sending it to any hosted model, including this one.

Can I share access with clients?

Yes. Create a separate key per client or project and allocate balance to it; each key has its own usage counters and can be revoked independently. That keeps attribution clean and lets you cut off a single consumer without touching anyone else.

What happens when the balance runs out?

The key starts returning 402 with code insufficient_balance on the next request, and the rest of the account is unaffected. Top up in the bot and the same key works again with no reconfiguration. The ledger in the bot and GET /balance both show exactly how much is left.

Do you offer refunds?

Credit is prepaid and held as USD balance, so an unused balance is the refundable part. Contact support through the bot before spending it; consumed tokens cannot be refunded because they are already billed to the model. Duplicate or failed payments are corrected to the cent.

Are there rate limits?

Yes, applied per key so that one runaway worker cannot starve the rest of your account. Bursts return 429 with code rate_limit_exceeded; retry with exponential backoff and jitter and the request succeeds. Context windows and max output tokens are per model and listed in the catalog.

Does it work with Cursor, Cline or VS Code agents?

Yes. Any tool that accepts a custom OpenAI base URL works: use https://api.hellfire.host/v1 as the endpoint and an HFR key as the API key. Cursor and similar editors append /chat/completions themselves, so the base URL must keep its /v1 suffix. The harness guides in this section list the exact menu paths for the popular clients.

Is streaming supported?

Yes, on every chat model. Send "stream": true and you get standard SSE: data: lines with delta chunks and a final data: [DONE]. Add stream_options with include_usage when you need the token counts for accounting. All official OpenAI SDKs parse this without changes.

What if a specific model is down?

GET /status reports availability. A model that is briefly unavailable returns 503, which is safe to retry with backoff; if it persists, switch to another id from GET /models and keep working. Balance and keys are unaffected by a model outage.