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.
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.
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.
🔑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.
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.
🧠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.
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.
🌊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.
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."}]}'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.
🛠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.
{
"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.
🚨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": {
"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.
📏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.
💳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.
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"🗝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.
🛡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.
//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.
OpenAI Compatiblehttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedcode --install-extension saoudrizwan.claude-devAdd 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.
OpenAI Compatiblehttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedcode --install-extension RooVeterinaryInc.roo-clineRefactor 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.
hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhttps://api.hellfire.host/v1glm-5.3-abliteratedExplain 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.
openaihttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedcode --install-extension Continue.continuemodels:
- 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- 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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliterated{
"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 }
]
}
}
}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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliterateddocker 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- 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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedDraft 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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliterated- 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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedcache: true
endpoints:
custom:
- name: "HFR API"
apiKey: "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
baseURL: "https://api.hellfire.host/v1"
models:
default: ["glm-5.3-abliterated"]
fetch: truedocker compose restart api- 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.
Custom (OpenAI-compatible)https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedgit clone https://github.com/SillyTavern/SillyTavern
cd SillyTavern
npm install
node server.js- 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.
Generic OpenAIhttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliterateddocker 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- 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.
OpenAI-API-compatiblehttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedgit clone https://github.com/langgenius/dify.git
cd dify/docker
cp .env.example .env
docker compose up -d- 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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliterateddocker 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.
OpenAIhttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliterated{
"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.
ChatOpenAIhttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratednpm install -g flowise
npx flowise start- 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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedpython -m pip install langflow
langflow run- 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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedpip install --upgrade openaiexport OPENAI_BASE_URL="https://api.hellfire.host/v1"
export OPENAI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"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="")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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratednpm install openaiexport OPENAI_BASE_URL="https://api.hellfire.host/v1"
export OPENAI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"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 ?? "");
}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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedpip install -U langchain langchain-openaifrom 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="")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"}))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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedpip install -U llama-index-core llama-index-llms-openaifrom 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",
)for token in Settings.llm.stream_complete("List five uses for a webhook queue."):
print(token.delta, end="")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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratednpm install ai @ai-sdk/openaiimport { 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);
}export async function POST(req) {
const { messages } = await req.json();
const result = streamText({
model: hfr("glm-5.3-abliterated"),
messages,
});
return result.toDataStreamResponse();
}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.
https://api.hellfire.host/v1Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedcurl 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"}]}'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."}]}'curl https://api.hellfire.host/v1/models \
-H "Authorization: Bearer hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"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.
https://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxglm-5.3-abliteratedpython -m pip install aider-chatexport OPENAI_API_BASE="https://api.hellfire.host/v1"
export OPENAI_API_KEY="hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"aider --model openai/glm-5.3-abliterated src/app.py src/app.test.jsAdd 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.
OpenAIopenai/glm-5.3-abliteratedhttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[llm]
model = "openai/glm-5.3-abliterated"
base_url = "https://api.hellfire.host/v1"
api_key = "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"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.
openaiglm-5.3-abliteratedhttps://api.hellfire.host/v1hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdocker run -d -p 50001:80 -v a0_data:/a0/usr --name agent-zero agent0ai/agent-zero{
"chat_model": {
"provider": "openai",
"name": "glm-5.3-abliterated",
"api_base": "https://api.hellfire.host/v1",
"api_key": "hfr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}- 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.
