Getting Started
Overview
The Hades API provides access to state-of-the-art language and image models through a simple, OpenAI-compatible interface. Get started in minutes.
Chat Completions Generate text with Hades models using the familiar chat completions format.
Models Access Hades-1.0, Hades-1.5, Hades-2.0 and more through a unified API.
Image Generation Create stunning images with Hades-Image, our SOTA image generation model.
Streaming Stream responses in real-time for interactive applications.
Base URL
HTTPS https://api.hadexs.com/v1
All REST endpoints are rooted at /v1. Local dev servers may proxy through your app origin at /api/v1.
Available Models
Start with hades-1.0 on Free, then unlock hades-1.5 and hades-2.0 on paid plans. See the Models page for the full table.
Getting Help
Join Discord , open a support ticket, or email support@hadexs.com.
Getting Started
Quickstart
Get up and running with the Hades API in under 2 minutes.
2
Create key Dashboard → API Keys
3
Send request Bearer hadexs_sk_...
Get your API key
Sign up and open Dashboard → API Keys . Copy the secret when shown — you can reveal saved keys later.
Make your first request
curl Copy
curl https://api.hadexs.com/v1/chat/completions \
-H "Authorization: Bearer hadexs_sk_..." \
-H "Content-Type: application/json" \
-d '{
"model": "hades-1.0",
"messages": [{"role": "user", "content": "Explain quantum computing in simple terms"}]
}'
Use the Python SDK
Python Copy
from openai import OpenAI
client = OpenAI(
api_key="hadexs_sk_...",
base_url="https://api.hadexs.com/v1",
)
completion = client.chat.completions.create(
model="hades-1.0",
messages=[{"role": "user", "content": "Hello!"}],
)
print(completion.choices[0].message.content)
Use with Node.js
JavaScript Copy
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "hadexs_sk_...",
baseURL: "https://api.hadexs.com/v1",
});
const response = await client.chat.completions.create({
model: "hades-1.0",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);
Getting Started
Authentication
All Hades API requests require authentication using an API key.
API Keys
Create keys in the dashboard . Each key begins with hadexs_sk_.
Security Best Practices
Never expose API keys in client-side browser code
Store keys in environment variables, not source code
Rotate keys immediately if compromised
Create separate keys per application or environment
Delete unused keys from your dashboard
Warning API keys are only shown once when created. Store them securely before dismissing the creation dialog.
Getting Started
API Keys
Authenticate requests to the Hades API. Keys are encrypted at rest and can be revealed from the dashboard.
Create a key Open Dashboard → API Keys and click Create API Key . Name keys by environment (Production, Staging, Local).
Reveal & rotate Use the eye icon to reveal a saved key. Delete and recreate to rotate.
Getting Started
Rate Limits
Hades enforces rate limits per API key to ensure fair access for all users.
Limits by Tier
Tier Requests / min Tokens / min Requests / day
Free 30 14,400 14,400
Pro 100 60,000 86,400
Enterprise Unlimited Unlimited Unlimited
Handling 429 Errors
Retry with exponential backoff or upgrade your plan for higher limits.
API Reference
Chat Completions
Generate text responses using the chat completions endpoint.
POST /v1/chat/completions
Request Body
Parameter Type Required Description
model string Yes Model ID (see Models)
messages array Yes Conversation messages
temperature number No 0–2, default 1
max_tokens integer No Max tokens to generate
stream boolean No Enable streaming
Example Request
cURL
Python
JavaScript
Copy
curl https://api.hadexs.com/v1/chat/completions \
-H "Authorization: Bearer hadexs_sk_..." \
-H "Content-Type: application/json" \
-d '{
"model": "hades-1.0",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is 2 + 2?"}
],
"temperature": 0.7,
"max_tokens": 1024
}'
from openai import OpenAI
client = OpenAI(api_key="hadexs_sk_...", base_url="https://api.hadexs.com/v1")
print(client.chat.completions.create(
model="hades-1.0",
messages=[{"role": "user", "content": "What is 2 + 2?"}],
).choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({ apiKey: "hadexs_sk_...", baseURL: "https://api.hadexs.com/v1" });
const res = await client.chat.completions.create({
model: "hades-1.0",
messages: [{ role: "user", content: "What is 2 + 2?" }],
});
console.log(res.choices[0].message.content);
Example Response
JSON Copy
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "hades-1.0",
"choices": [{
"index": 0,
"message": { "role": "assistant", "content": "2 + 2 equals 4." },
"finish_reason": "stop"
}],
"usage": { "prompt_tokens": 24, "completion_tokens": 9, "total_tokens": 33 }
}
API Reference
Models
Hades provides access to a curated set of language, image, and audio models.
Language Models
Model ID Plan Best For
hades-1.0 Free and up General purpose, fast responses
hades-1.5 Pro and up Balanced performance, longer reasoning
hades-2.0 Plus and up Most capable, complex reasoning
Audio Models
Model ID Type Plan
hades-asr Transcription All plans
List Models via API
curl Copy
curl https://api.hadexs.com/v1/models \
-H "Authorization: Bearer hadexs_sk_..."
API Reference
Streaming
Stream responses token-by-token using Server-Sent Events.
Enable streaming
Set stream: true on chat completion requests.
Python Copy
stream = client.chat.completions.create(
model="hades-1.0",
messages=[{"role": "user", "content": "Tell me a story"}],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
API Reference
Image Generation
Generate images with Hades image models using the same API key.
Endpoint POST /v1/images/generations
Request Pass prompt, model (hades-image or tiered ids), and optional size.
Image models hades-1.5 and hades-2.0 image tiers map to your plan. See Pricing for daily image allowances.
Guides
Function Calling
Pass tools and optional tool_choice on chat completions (OpenAI-compatible).
Example See OpenAI tool calling docs — Hades accepts the same request shape at /v1/chat/completions.
Guides
Best Practices
Keys & security Use server-side proxies; never ship hadexs_sk_ keys to browsers.
Retries Retry idempotent requests on 429/5xx with jittered exponential backoff.
Production Separate keys per service, monitor usage in the dashboard , and set wallet alerts before launch.
Resources
Changelog
Recent releases API v1 chat, streaming, dashboard billing, and docs refresh — October 2026.
Resources
Status
Uptime All systems operational. Subscribe to status alerts at status.hadexs.com.
Resources
Support