Dagon Inference / Anthropic Messages API compatible endpoint for uncensored models
An Anthropic Messages API compatible endpoint for uncensored models
Published · Last updated
Yes. Dagon Inference serves uncensored (abliterated) open-weight models on an Anthropic Messages API compatible endpoint, POST https://inference.dagon.so/v1/messages: set your Anthropic SDK's base URL to https://inference.dagon.so (no /v1), pass a Dagon Inference key as x-api-key and use a model id such as GLM-5.3 Abliterated (glm-5.3-abliterated, served on Messages by Silk Compute, from $2.20 input and $4.40 output per 1M tokens). Streaming and client tools work as in the Anthropic API. The models are open-weight models with refusal behavior removed, not Claude, and you pay per token in USDC, with no sign-up and no subscription.
What are the base URL, endpoint and headers?
- Base URL for Anthropic SDKs:
https://inference.dagon.so. The SDK adds/v1/messages. - Endpoints:
POST https://inference.dagon.so/v1/messages, andPOST https://inference.dagon.so/v1/messages/count_tokensto count tokens for free. - Key:
x-api-key: gk_..., as the Anthropic SDKs send it;Authorization: Bearer gk_...works too, and wins if both are sent. anthropic-versionis forwarded as you send it.- Errors on this endpoint use the Anthropic error shape.
The official Anthropic SDKs also read ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY from the environment, so code that builds its client without arguments switches by setting those two variables and the model id.
Python (anthropic)
# pip install anthropic
import os
import anthropic
client = anthropic.Anthropic(base_url="https://inference.dagon.so", api_key=os.environ["DAGON_KEY"])
msg = client.messages.create(
model="glm-5.3-abliterated",
max_tokens=1024,
messages=[{"role": "user", "content": "Explain this stack trace."}],
)
print("".join(block.text for block in msg.content if block.type == "text"))TypeScript (@anthropic-ai/sdk)
// npm install @anthropic-ai/sdk
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({ baseURL: "https://inference.dagon.so", apiKey: process.env.DAGON_KEY });
const msg = await client.messages.create({
model: "glm-5.3-abliterated",
max_tokens: 1024,
messages: [{ role: "user", content: "Explain this stack trace." }],
});
console.log(msg.content.filter((b) => b.type === "text").map((b) => b.text).join(""));curl
curl https://inference.dagon.so/v1/messages \
-H "x-api-key: $DAGON_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model": "glm-5.3-abliterated", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'Add "stream": true for server-sent events in the Messages event format.
Which models answer on /v1/messages?
A Messages request goes only to the providers that serve its model on Messages, so the providers and the price can differ from the model's cheapest route on Chat Completions. The abliterated models are marked removed; models marked standard or reduced keep some or most of their refusals.
| Model | Model id | Refusals | Input | Output | Providers on Messages |
|---|---|---|---|---|---|
| GLM-5.3 Abliterated | glm-5.3-abliterated | removed | $2.20 | $4.40 | Silk Compute |
| DeepSeek V4.1 Flash Abliterated | deepseek-v4.1-flash-abliterated | removed | $0.11 | $0.44 | Lutheos and Silk Compute |
| GLM-5.3 Flash Abliterated | glm-5.3-flash-abliterated | removed | $0.264 | $1.10 | Silk Compute |
| Abliterated Large Flash | abliterated-model-large-flash | removed | $1.10 | $2.20 | abliteration.ai |
| Abliterated Model | abliterated-model | removed | $1.10 | $3.30 | abliteration.ai |
| Abliterated Large v2 | abliterated-model-large-v2 | removed | $3.30 | $5.50 | abliteration.ai |
| Kimi K3.1 Pro Abliterated | kimi-k3.1-pro-abliterated | removed | $5.50 | $16.50 | Silk Compute |
| DeepSeek V4.1 Flash | deepseek-v4.1-flash | standard | $0.022 | $0.176 | Silk Compute |
| GLM-5.3 Flash | glm-5.3-flash | standard | $0.088 | $0.462 | Lutheos and Cheaper Inference |
| Kimi K3.1 Pro | kimi-k3.1-pro | standard | $0.55 | $5.50 | Silk Compute |
| Hy4 | hy4 | standard | $1.76 | $3.52 | Silk Compute |
Prices are per 1M tokens in USD at the cheapest provider serving each model on Messages, with the 10% markup included, at price version 2026-11-11.4. A request that falls back to another provider is billed at that provider's rate plus the markup; its receipt names the provider. Live: /v1/models (each offer lists its endpoints).
What does the endpoint support, and what does it refuse?
- Fields:
model,messages,max_tokens,system,stop_sequences,stream,temperature,top_p,top_k,tools,tool_choice,thinkingandmetadata.max_tokensis required; any other non-null field is400 unsupported_parameter. - Client tools, with
tool_choiceauto,any,noneor a named tool. Server tools (web search, web fetch, code execution, MCP) are refused. - Images as
imageblocks with abase64source, on models that take image input. - No
anthropic-betavalue is accepted: a request with one is400 unsupported_parameter, so a client that requires a beta does not work. - Token counting is free and served by abliteration.ai, so it works for the models abliteration.ai serves on Messages.
Full reference: Anthropic Messages docs.
How do you get a key and pay?
Create a key with curl -X POST https://inference.dagon.so/v1/keys (no email or password) or in the console, and fund it with USDC from $5. An agent can also pay per request with x402 on /v1/messages, without a key. Every model's price is on the pricing page.
We do not monitor or log your content, and the acceptable use policy applies: use it lawfully and only against systems and people you own or have permission to test. We suspend keys that break it.
Common questions
Is there an Anthropic Messages API compatible endpoint for uncensored models?
Yes. Dagon Inference answers POST https://inference.dagon.so/v1/messages in the Anthropic Messages format for 7 abliterated models: GLM-5.3 Abliterated (glm-5.3-abliterated, served on Messages by Silk Compute, from $2.20 input and $4.40 output per 1M tokens), DeepSeek V4.1 Flash Abliterated (deepseek-v4.1-flash-abliterated, served on Messages by Lutheos and Silk Compute, from $0.11 input and $0.44 output per 1M tokens), GLM-5.3 Flash Abliterated (glm-5.3-flash-abliterated, served on Messages by Silk Compute, from $0.264 input and $1.10 output per 1M tokens), Abliterated Large Flash (abliterated-model-large-flash, served on Messages by abliteration.ai, from $1.10 input and $2.20 output per 1M tokens), Abliterated Model (abliterated-model, served on Messages by abliteration.ai, from $1.10 input and $3.30 output per 1M tokens), Abliterated Large v2 (abliterated-model-large-v2, served on Messages by abliteration.ai, from $3.30 input and $5.50 output per 1M tokens) and Kimi K3.1 Pro Abliterated (kimi-k3.1-pro-abliterated, served on Messages by Silk Compute, from $5.50 input and $16.50 output per 1M tokens). Point an Anthropic SDK at https://inference.dagon.so with a Dagon Inference key and pay per token in USDC.
Does it serve Claude?
No. It serves open-weight models from abliteration.ai, Refuseless, Experiential Labs, Lutheos, Silk Compute and Cheaper Inference; the Messages endpoint shares only Anthropic's request and response format. Dagon Inference is not affiliated with Anthropic.
Can I keep my Anthropic SDK code?
Yes, if it uses the supported fields: change the base URL, the key and the model id. Requests with an anthropic-beta header, server tools or file sources are refused with 400 unsupported_parameter.
Which header carries the key?
x-api-key, as the Anthropic SDKs send it, or Authorization: Bearer. If both are sent, Authorization wins.