# HY4 Abliterated

> Call hy4-abliterated: 1,048,576 context, high reasoning, tools and one image; $1.35 input / $0.10 cached input / $3.75 output per million tokens.

Source: https://www.lyber.ai/docs/models/hy4/ · Markdown: https://www.lyber.ai/docs/md/models/hy4.md

HY4 Abliterated is the large NVFP4 model. Select `hy4-abliterated` explicitly. It is independent of `hy4-flash-abliterated` and excluded from Auto. Check readiness, limits and billing in [`GET /v1/models`](https://www.lyber.ai/docs/api/models/) before sending.

| Contract | HY4 |
| --- | --- |
| Model ID | `hy4-abliterated` |
| Serving route | InferenceNet · `lyber-ai/hy4-uncensored`. The provider identifies the private HY4 checkpoint; its weights revision is not independently attested. Live Router metadata identifies the current provider release. |
| Context | 1,048,576 total tokens shared by prompt and output |
| Output | 262,144 tokens by default; 524,288 maximum, including reasoning |
| Reasoning | `high` only. Catalog-declared compatibility effort aliases also run as high. |
| Input | Text and up to one image. Inline data counts toward the 32 MiB request limit. |
| Tools | Function calling and streaming through Chat Completions, Responses and Anthropic Messages |
| Sampling | temperature 0.9, top_p 1.0 |
| Price per million tokens | $1.35 input / $0.10 verified cached input / $3.75 output. Reasoning bills as output; missing cache counts bill fresh input. |
| Tariff version | hy4-abliterated-hosted-20261124-v1 |

> **Note:** A disconnected client may leave an accepted provider generation running. Actual reported usage is charged. Set an output budget you are willing to pay for. HY4 offers [Full ZDR for inference content through Inference.net](https://www.lyber.ai/privacy/#hy4-zdr).

## Send a request

curl (`request.sh`):

```bash
curl -N https://api.lyber.ai/v1/chat/completions \
  -H "Authorization: Bearer $LYBER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-abliterated",
    "messages": [{"role": "user", "content": "Summarize the tradeoffs of event sourcing in five bullets."}],
    "reasoning_effort": "high",
    "max_tokens": 8192,
    "stream": true,
    "stream_options": {"include_usage": true}
  }'
```

Python (`main.py`):

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.lyber.ai/v1",
    api_key=os.environ["LYBER_API_KEY"],
    timeout=14_760,
    max_retries=0,
)

response = client.chat.completions.create(
    model="hy4-abliterated",
    messages=[{"role": "user", "content": "Summarize the tradeoffs of event sourcing in five bullets."}],
    reasoning_effort="high",  # the only accepted value; it is also the default
    max_tokens=8192,          # reasoning and answer share this budget
)
message = response.choices[0].message
print(getattr(message, "reasoning_content", None))  # the model's reasoning
print(message.content)
print(response.usage)
```

TypeScript (`main.ts`):

```ts
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.lyber.ai/v1",
  apiKey: process.env.LYBER_API_KEY,
  timeout: 14_760_000,
  maxRetries: 0,
});

const response = await client.chat.completions.create({
  model: "hy4-abliterated",
  messages: [{ role: "user", content: "Summarize the tradeoffs of event sourcing in five bullets." }],
  reasoning_effort: "high", // the only accepted value; it is also the default
  max_tokens: 8192, // reasoning and answer share this budget
});
const message = response.choices[0].message as OpenAI.ChatCompletionMessage & { reasoning_content?: string };
console.log(message.reasoning_content); // the model's reasoning
console.log(message.content);
console.log(response.usage);
```

## Coding agents and tools

Use the current [Codex](https://www.lyber.ai/docs/agents/coding-agents/codex/), [Claude Code](https://www.lyber.ai/docs/agents/coding-agents/claude-code/#hy4), OpenCode or [Hermes](https://www.lyber.ai/connect/#hermes) integration and choose the exact model ID. Tools use the standard [function-call loop](https://www.lyber.ai/docs/capabilities/tool-calling/). Native installed-client HY4 tool-loop qualification remains separate from the worker qualification.

200 shared admissions through InferenceNet. Live route readiness, account limits and available credit apply. Requests have a configured 14,400-second deadline (up to 4 hours).
