Quickstart for Hermes users
Integrate our uncensored model into your existing stack by updating the base URL and API key. This guide covers the essential steps to get text generation, streaming, and function calling working with standard OpenAI-compatible clients.
Prerequisites and Authentication
Before making requests, ensure you have an active API key. Sign up via Google or email on the Get API key page to receive your credential immediately. No phone number or credit card is required. Your key authenticates all requests to the hermes api endpoint.
Set the Authorization header to Bearer YOUR_KEY. The base URL for all operations is https://api.hermesapi.cc/v1. This endpoint is fully compatible with the official OpenAI SDKs, allowing you to swap providers without changing your application logic.
Basic Chat Completion
The core interface is POST /v1/chat/completions. Send your prompt and receive text output. This is a standard chat-completions endpoint supporting the same structure as major providers.
curl https://api.hermesapi.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'This request demonstrates a simple text generation. The model ID is uncensored. Ensure your client library is configured to use the correct base URL and headers.
Python SDK Integration
Using the official openai Python package, you can redirect calls to our server by overriding the base URL. This allows you to use the same code you would with GPT-4, but with our uncensored model.
from openai import OpenAI
client = OpenAI(base_url="https://api.hermesapi.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)Initialize the client with your key and the https://api.hermesapi.cc/v1 base URL. The rest of the SDK behavior remains identical. This approach works for any OpenAI-compatible client that respects the base URL configuration.
Node SDK Integration
For JavaScript or TypeScript projects, the Node SDK follows the same pattern. Configure the API key and base URL in the client initialization. This ensures that all subsequent calls, including streaming and function calling, route through our infrastructure.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.hermesapi.cc/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);Replace the default base URL with our endpoint. This method requires no additional dependencies beyond the standard OpenAI package. It is the most efficient way to switch your existing Node applications to our uncensored API.
Streaming Responses
Enable real-time token delivery by setting stream: true. The API returns Server-Sent Events (SSE). Token usage statistics are included in the final chunk of the stream. This is ideal for user interfaces that require immediate feedback.
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Tell the story in second person."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)Parse the SSE stream to display tokens as they are generated. The last event contains the final completion and usage data. This feature is supported by all major SDKs when the stream flag is enabled.
Limits, Errors, and Context Window
The context window is 100,000 tokens (input + output combined). There is no separate output cap, and if max_tokens is not set, the response can run to the end of the window. Rate limits are 300 requests per minute and 8 concurrent requests per key.
Common errors include 401 for invalid keys and 402 when prepaid credit is exhausted. Requests with errors do not consume tokens. If you exceed the rate limit, you will receive a 429 response. Ensure your client handles these HTTP status codes appropriately.
Technical specifications
Use this table to decide whether the API fits your project before you buy credit.
| Spec | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.hermesapi.cc/v1 |
| Model ID | uncensored |
| API key | Bearer token in the Authorization header |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Context window | 100,000 tokens, input and output combined |
| JSON mode | response_format: {"type": "json_object"} |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300 requests per minute per key |
| Concurrency | 8 requests at the same time per key |
| Max body | up to 8 MB per request |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Subscription | no monthly fee; paid credit does not expire |
| Free trial | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one key per account, regenerate any time (the old one stops working) |
| Account | Google or e-mail and password |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Does this API support function calling?
Yes, the endpoint supports tools and tool_choice parameters. You can define functions in your request and receive structured outputs compatible with standard function calling workflows.
What happens if I run out of credit?
Requests will return a 402 error until you top up your account. You can add credit by crypto (USDT on TRC20, USDC on Base) at any time. Unused credit never expires.
Is the uncensored model GPT-4 or Llama?
No, it is a distinct open-weight model run on our own servers. It is not GPT, Claude, Gemini, Llama, or any other vendor's model. It is tuned specifically for fewer content refusals.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.