# Private and Overdrive

> Route API calls to confidential-computing hardware or a pinned fast provider simply by adding one suffix to the model ID.

HeyEly Private routes inference exclusively to confidential-computing hardware operated by Phala or NEAR AI: Intel TDX hosts paired with confidential GPUs whose enclave memory is isolated from the underlying host and operator. Every Private call runs under a zero-data-retention policy and never falls back to non-confidential providers.

Switching routes takes nothing more than a model ID suffix. Your existing API key, base URL, SDK code, and credit balance work without modification.

> **Not the chat's Private mode**
>
> This page documents the API route. **Private** mode inside HeyEly Chat adds end-to-end browser encryption to the enclave's attested public key and verifies a cryptographic receipt per response while HeyEly relays ciphertext only. On the API route documented here, HeyEly's gateway handles plaintext requests and does not issue per-request receipts. Read [Privacy architecture](https://heyely.si/docs/heyely-chat/privacy) for the full comparison.

## Use it

Add `:incognito` to any supported model ID, such as `qwen/qwen3.8-27b:incognito`, and send it as `model` on [Chat Completions](https://heyely.si/docs/api-reference/chat-completions), [Messages](https://heyely.si/docs/api-reference#messages), or [Responses](https://heyely.si/docs/api-reference#responses).

**curl**

```bash
curl https://heyely.si/v1/chat/completions \
  -H "Authorization: Bearer $HEYELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen3.8-27b:incognito",
    "messages": [{ "role": "user", "content": "Say hello in one sentence." }],
    "max_tokens": 100
  }'
```

**Python**

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://heyely.si/v1",
    api_key=os.environ["HEYELY_API_KEY"],
)

response = client.chat.completions.create(
    model="qwen/qwen3.8-27b:incognito",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
    max_tokens=100,
)
print(response.choices[0].message.content)
```

**TypeScript**

```typescript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://heyely.si/v1",
  apiKey: process.env.HEYELY_API_KEY,
});

const response = await client.chat.completions.create({
  model: "qwen/qwen3.8-27b:incognito",
  messages: [{ role: "user", content: "Say hello in one sentence." }],
  max_tokens: 100,
});
console.log(response.choices[0].message.content);
```

Anthropic SDKs accept `:incognito` identically; just omit `/v1` from the base URL.

**Python**

```python
import os
import anthropic

client = anthropic.Anthropic(
    base_url="https://heyely.si",
    api_key=os.environ["HEYELY_API_KEY"],
)

message = client.messages.create(
    model="qwen/qwen3.8-27b:incognito",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(message.content[0].text)
```

**TypeScript**

```typescript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://heyely.si",
  apiKey: process.env.HEYELY_API_KEY,
});

const message = await client.messages.create({
  model: "qwen/qwen3.8-27b:incognito",
  max_tokens: 1024,
  messages: [{ role: "user", "content": "Say hello in one sentence." }],
});
console.log(message.content);
```

Responses report the unsuffixed base model ID (`qwen/qwen3.8-27b`), whereas billing records, [Credit and usage](https://heyely.si/usage), and MCP receipts retain the exact `:incognito` ID you requested.

Editors and CLI agents like Claude Code and Codex work with any Private model exposing `tools` in `supported_parameters`. Caller identifiers those clients inject are scrubbed automatically before forwarding (see [What Private removes](#what-private-removes)).

## Models

Below is the launch catalog of Private models served on confidential-computing hardware across Phala and NEAR AI.

| Model id                                    | Input, $/M | Output, $/M | Context   | Max output |
| ------------------------------------------- | ---------- | ----------- | --------- | ---------- |
| `deepseek/deepseek-v4.1-flash:incognito`    | 0.21       | 0.84        | 1,048,576 | 943,718    |
| `z-ai/glm-5.3-flash:incognito`              | 0.1275     | 0.425       | 1,048,576 | 131,072    |
| `z-ai/glm-5.3:incognito`                    | 0.84       | 2.64        | 1,048,576 | 943,718    |
| `deepseek/deepseek-v4-pro-0813:incognito`   | 0.957      | 2.8776      | 1,048,576 | 393,216    |
| `deepseek/deepseek-v4-flash-0731:incognito` | 0.308      | 0.924       | 1,048,576 | 393,216    |
| `moonshotai/kimi-k3:incognito`              | 2.55       | 12.75       | 1,048,576 | 943,718    |
| `z-ai/glm-5.2:incognito`                    | 1.26       | 3.00        | 1,048,576 | 131,072    |
| `qwen/qwen3.8-27b:incognito`                | 0.20       | 2.50        | 1,000,000 | 262,144    |
| `tencent/hy3:incognito`                     | 0.15       | 0.64        | 262,144   | 235,929    |
| `moonshotai/kimi-k2.7-code:incognito`       | 0.95       | 4.00        | 262,144   | 235,929    |
| `qwen/qwen3.6-35b-a3b:incognito`            | 0.20       | 1.27        | 262,144   | 235,929    |
| `qwen/qwen3.6-27b:incognito`                | 0.32       | 3.25        | 262,144   | 262,140    |
| `moonshotai/kimi-k2.6:incognito`            | 1.09       | 4.60        | 262,144   | 235,929    |
| `z-ai/glm-5.1:incognito`                    | 1.21       | 4.20        | 202,752   | 128,000    |
| `qwen/qwen3.5-27b:incognito`                | 0.30       | 2.40        | 262,144   | 65,536     |
| `qwen/qwen3.5-397b-a17b:incognito`          | 0.55       | 3.50        | 262,144   | 235,929    |
| `deepseek/deepseek-v3.2:incognito`          | 1.00       | 1.00        | 163,840   | 64,000     |
| `openai/gpt-oss-120b:incognito`             | 0.15       | 0.60        | 131,072   | 32,768     |
| `qwen/qwen-2.5-7b-instruct:incognito`       | 0.10       | 0.20        | 32,768    | 29,491     |

Table rates show raw confidential-provider prices per million tokens prior to the 5% routing fee. Both [Models](https://heyely.si/docs/models?private) and `GET /v1/models` show final all-in prices with that fee included.

In `GET /v1/models`, every Private entry exposes `"incognito": { "provider": "Phala", "zdr": true, "verification": "provider_reported" }` and appends ` · Incognito` to its `display_name`.

Supported parameters mirror the confidential endpoints themselves (specifically the intersection all confidential endpoints support), which can differ from standard providers for the same base model. Inspect `supported_parameters` via `GET /v1/models/{id}` before enabling tools, structured outputs, or reasoning. Sending an unsupported parameter fails cleanly with `404 upstream_404` ("The model provider rejected the request") at zero cost rather than silently degrading.

## Pricing and holds

Private calls bill at the confidential provider's token rate plus a 5% routing fee, with zero HeyEly markup.

Credit holds follow standard gateway metering: an estimated amount is reserved upfront and replaced by actual measured usage at completion. Because Private never falls back to higher-priced providers, holds calculate directly from the Phala endpoint's rates and can often be smaller than a standard call's hold. Read [Pricing](https://heyely.si/docs/concepts/credit-and-activation#pricing).

Paid credit is mandatory for Private calls. [Free credit](https://heyely.si/docs/concepts/credit-and-activation#free-credit) never covers Private routes, so accounts holding free credit only receive `402 free_credit_not_eligible`.

## What Private removes

Before forwarding upstream, HeyEly strips caller tracking fields from the payload: `user`, `session_id`, `sessionId`, `safety_identifier`, `prompt_cache_key`, `metadata`, and `trace`. Requests proceed normally without them, automatically stripping headers like `metadata.user_id` sent by Claude Code and `prompt_cache_key` sent by Codex.

## What a Private request refuses

Any field that would leave confidential hardware, persist state, or alter routing is blocked before dispatch with nothing held or billed.

| You send                                                                                      | Result                                                                                                    |
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| `provider`, `models`, `fallbacks`, or `route`                                                 | `400 unsupported_parameter`, matching every other route                                                   |
| `plugins`, `web_search_options`, `mcp_servers`, or `container`                                | `400 unsupported_parameter`, as these execute outside confidential hardware                               |
| Server tools such as web search                                                               | `400 unsupported_parameter`: "Server tools such as web search are not available with Incognito models"    |
| A file part                                                                                   | `400 unsupported_parameter`: "Files are not available with Incognito models". Send text or images instead |
| `previous_response_id`, `conversation`, `prompt`, `background`, or `store` other than `false` | `400 unsupported_parameter`: "Incognito keeps no stored conversation state"                               |
| `speed`, or a `service_tier` other than `default` or `standard`                               | `400 unsupported_parameter`: "Incognito runs on the standard tier only"                                   |
| Any endpoint other than Chat Completions, Messages, or Responses                              | `400 unsupported_endpoint`                                                                                |
| `:incognito` chained with another suffix, such as `:free:incognito`                           | `404 model_not_found`                                                                                     |

Sending `:incognito` on a base model without a Private listing also returns `404 model_not_found`. If a confidential route is missing or stale, HeyEly refuses the call rather than routing elsewhere.

Client-defined function tools continue working wherever the model supports `tools`, since the model emits tool arguments and your own runtime executes the function.

The hosted [MCP server](https://heyely.si/docs/coding-tools/mcp) accepts `:incognito` model IDs on `astra_run_model` while rejecting `web_search` with `invalid_input`. MCP receipts preserve the `:incognito` ID and set `provider` to `"Phala"` and `verification` to `"provider_reported"` (versus `null` on standard routes). See [MCP tools](https://heyely.si/docs/coding-tools/mcp-tools).

## What HeyEly stores

HeyEly records standard billing metadata (key, model, provider, token counts, cost, and timestamps) to reconcile spend and populate Credit and usage. Just like standard text endpoints, prompt and completion contents are never logged.

Private requests additionally omit client and session recording and never send an account tag or caller identifier upstream.

Private is not anonymous: billing rows remain linked to your HeyEly account and API key, while on-chain credit token transactions on Elysium remain completely separate from the inference path.

## Check what served a call

[Credit and usage](https://heyely.si/usage) records every Private call under its `:incognito` ID alongside exact cost. Through MCP, each receipt's `provider` field names the provider reported by the routing layer.

To inspect hardware-level attestation directly, both confidential providers expose live attestation endpoints. Phala publishes active model sessions at:

```text
https://inference.phala.com/v1/aci/sessions?model=<model-id>
```

Replace `<model-id>` with the base ID, such as `https://inference.phala.com/v1/aci/sessions?model=qwen/qwen-2.5-7b-instruct`. NEAR AI provides a nonce-bound hardware attestation report at `https://cloud-api.near.ai/v1/attestation/report?model=<model-id>&nonce=<64 hex>`. Both attest to the host hardware environment rather than producing a signed receipt for an individual API call.

## What Private does not do

Private pins supported models to confidential-computing hardware at Phala and NEAR AI under a zero-data-retention policy with zero fallback, isolating model execution memory from machine hosts and operators.

Be clear about what sits outside that boundary:

* Requests travel as standard HTTPS text through HeyEly and its routing layer before entering the protected workload, where model software reads the prompt to generate an answer. Private API calls are not end-to-end encrypted.
* Zero data retention reflects the confidential providers' contractual and operational policy for this route, not a cryptographic proof of memory erasure.
* HeyEly retains account-linked billing records, though never prompt or response bodies.
* Receipt provider attribution comes from the routing layer; the API route does not provide per-request cryptographic receipts or model-weight verification today.
* Local tools executed by your agent and data visible to an MCP client remain outside the enclave.
* Enforcing confidential-only routing prioritizes isolation over uptime: if the confidential route is unavailable, calls fail rather than fail over.

## Overdrive

HeyEly Overdrive is the dedicated fast route for supported models. Every Overdrive request executes strictly on that model's single pinned provider at that endpoint's published rate, with zero fallback: if the pinned provider cannot serve, the request fails instead of dropping to a slower route.

Like Private, Overdrive requires only a suffix on the model ID while keeping your key, base URL, SDK, and credit unchanged.

### Use it

Append `:overdrive` to a supported model ID, such as `openai/gpt-oss-120b:overdrive`, on [Chat Completions](https://heyely.si/docs/api-reference/chat-completions), [Messages](https://heyely.si/docs/api-reference#messages), or [Responses](https://heyely.si/docs/api-reference#responses).

**curl**

```bash
curl https://heyely.si/v1/chat/completions \
  -H "Authorization: Bearer $HEYELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-oss-120b:overdrive",
    "messages": [{ "role": "user", "content": "Say hello in one sentence." }],
    "max_tokens": 100
  }'
```

**Python**

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://heyely.si/v1",
    api_key=os.environ["HEYELY_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-oss-120b:overdrive",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
    max_tokens=100,
)
print(response.choices[0].message.content)
```

**TypeScript**

```typescript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://heyely.si/v1",
  apiKey: process.env.HEYELY_API_KEY,
});

const response = await client.chat.completions.create({
  model: "openai/gpt-oss-120b:overdrive",
  messages: [{ role: "user", content: "Say hello in one sentence." }],
  max_tokens: 100,
});
console.log(response.choices[0].message.content);
```

Anthropic SDKs accept `:overdrive` in the exact same way (omitting `/v1` from the base URL).

**Python**

```python
import os
import anthropic

client = anthropic.Anthropic(
    base_url="https://heyely.si",
    api_key=os.environ["HEYELY_API_KEY"],
)

message = client.messages.create(
    model="openai/gpt-oss-120b:overdrive",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(message.content[0].text)
```

**TypeScript**

```typescript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://heyely.si",
  apiKey: process.env.HEYELY_API_KEY,
});

const message = await client.messages.create({
  model: "openai/gpt-oss-120b:overdrive",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Say hello in one sentence." }],
});
console.log(message.content);
```

Response payloads name the base model without the suffix (`openai/gpt-oss-120b`), while billing, [Credit and usage](https://heyely.si/usage), and MCP receipts keep `:overdrive`.

Coding agents like Claude Code and Codex work smoothly with any Overdrive model listing `tools` in `supported_parameters`. Unlike Private, Overdrive passes caller identifiers through unchanged just like standard routes.

### Models

At launch, Overdrive pins the following models directly to Cerebras.

| Model id                        | Provider | Input, $/M | Cached input, $/M | Output, $/M | Context | Max output |
| ------------------------------- | -------- | ---------- | ----------------- | ----------- | ------- | ---------- |
| `openai/gpt-oss-120b:overdrive` | Cerebras | 0.3675     | 0.3675            | 0.7875      | 131,072 | 40,960     |
| `qwen/qwen3.8-27b:overdrive`    | Cerebras | 1.0395     | 1.0395            | 1.5645      | 65,536  | 32,768     |

Table rates already include the 5% routing fee, matching the final rates displayed on [Models](https://heyely.si/docs/models) and `GET /v1/models`.

Each Overdrive catalog entry in `GET /v1/models` attaches an `overdrive` object and suffixes `display_name` with ` · Overdrive`:

```json
"overdrive": {
  "provider": "Cerebras",
  "fallback": false,
  "observed": {
    "statistic": "median",
    "window": "30m",
    "output_tokens_per_second": 957,
    "time_to_first_token_ms": 186,
    "observed_on": "2026-10-19"
  }
}
```

`observed` reports recent median output speed and median time to first token across all callers hitting that pinned endpoint over the 30-minute window preceding sync, stamped with the observation date. Because it aggregates live global traffic across varying prompt lengths and loads, treat it as a recent observation rather than a minimum floor; it reads `null` whenever no fresh sample synced.

Capabilities and context caps come straight from the pinned endpoint and can differ from multi-provider listings (for instance, `qwen/qwen3.8-27b:overdrive` exposes 65,536 context tokens compared with 1,000,000 on the base catalog row). Check `supported_parameters` on `GET /v1/models/{id}` before relying on tools, structured outputs, or reasoning; unsupported fields fail with `404 upstream_404` ("The model provider rejected the request") at zero cost.

### Endpoints

Overdrive supports Chat Completions, Messages, and Responses (both streamed and non-streamed). Calling legacy Completions, Embeddings, or Images with `:overdrive` responds with `400 unsupported_endpoint`.

### Pricing and holds

Overdrive bills the pinned endpoint's price plus a 5% routing fee, with zero HeyEly markup. Depending on the model, that pinned rate may be higher or lower than standard multi-provider routing.

Holds work identically to standard calls except that estimates always calculate from the pinned provider's own rates because no fallback occurs. See [Pricing](https://heyely.si/docs/concepts/credit-and-activation#pricing).

Paid credit is required. [Free credit](https://heyely.si/docs/concepts/credit-and-activation#free-credit) never covers Overdrive, returning `402 free_credit_not_eligible` when no paid credit is present:

> This account has only free credit, which pays for open-weight text models up to $2 per 1M output tokens and $0.05 per request (set max_tokens to lower the estimate), without server tools, plugins, files, image or video URLs, or provider routing, and never for Incognito or Overdrive models. Add credit in the dashboard to use this model.

Over MCP, that refusal maps to `insufficient_credit`.

### What an Overdrive request refuses

Parameters that would bypass the pinned provider, store server-side state, or introduce unpriced extra work fail upfront with nothing held or billed.

| You send                                                                                      | Result                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `provider`, `models`, `fallbacks`, or `route`                                                 | `400 unsupported_parameter`, matching every other route                                                                                                                                      |
| `plugins`, `web_search_options`, `mcp_servers`, or `container`                                | `400 unsupported_parameter`: introduces work and fees outside the pinned route's pricing                                                                                                     |
| Server tools such as web search                                                               | `400 unsupported_parameter`: "Server tools such as web search are not available with Overdrive models: they add work and fees outside the pinned route's price. Client function tools work." |
| A file part                                                                                   | `400 unsupported_parameter`: "Files are not available with Overdrive models: parsing them runs outside the pinned route. Send text."                                                         |
| An image part                                                                                 | `400 unsupported_parameter`: "Images are not available with Overdrive models: they take text input only."                                                                                    |
| An audio part                                                                                 | `400 unsupported_parameter`: audio input carries no bounded hold ceiling                                                                                                                     |
| A `cache_control` field anywhere in the body                                                  | `400 unsupported_parameter`: "explicit cache writes are not priced on the pinned route. Automatic cache reads apply."                                                                        |
| `previous_response_id`, `conversation`, `prompt`, `background`, or `store` other than `false` | `400 unsupported_parameter`: "Overdrive keeps no stored conversation state"                                                                                                                  |
| `speed`, or a `service_tier` other than `default` or `standard`                               | `400 unsupported_parameter`: "Overdrive runs on the standard tier only"                                                                                                                      |
| Any endpoint other than Chat Completions, Messages, or Responses                              | `400 unsupported_endpoint`                                                                                                                                                                   |
| `:overdrive` chained with another suffix, such as `:incognito:overdrive`                      | `404 model_not_found`                                                                                                                                                                        |

Base models lacking an Overdrive catalog row also return `404 model_not_found`. A stale or unavailable pinned endpoint fails instead of routing elsewhere; seeing `429 upstream_429` indicates rate-limiting on the pinned provider rather than silent fallback.

Client-defined function tools work normally on Overdrive endpoints that list `tools`, executing inside your own environment.

The hosted [MCP server](https://heyely.si/docs/coding-tools/mcp) supports `:overdrive` IDs on `astra_run_model`, refuses `web_search` with `invalid_input`, and returns the `:overdrive` ID alongside the same `overdrive` metadata exposed by `GET /v1/models`. See [MCP tools](https://heyely.si/docs/coding-tools/mcp-tools).

### What HeyEly stores

HeyEly logs standard billing metadata (key, model, provider, tokens, cost, and timestamps) for reconciliation and Credit and usage, without ever storing prompt or response contents.

Beyond pinning the upstream provider, Overdrive behaves like a normal route: client and session metadata are recorded and caller fields like `user` and `metadata` pass upstream untouched. Overdrive applies neither confidential hardware nor zero-data-retention policies; use [Private](#use-it) when you need those protections.

### Check what served a call

[Credit and usage](https://heyely.si/usage) tracks each call under its `:overdrive` ID and final charge. MCP receipts include the `overdrive` object naming the reported provider (Cerebras).

Streamed Overdrive calls log time to first token. When a streamed call completes with at least 128 output tokens, HeyEly also records observed output speed in tokens per second (tokens after the first divided by elapsed time from first to final output token as received by HeyEly). Non-streamed calls record neither metric.

### What Overdrive does not do

Overdrive pins a model to a single designated provider at that provider's rate without falling back. Keep these exact boundaries in mind:

* Throughput is never fixed: both `observed` metrics in `GET /v1/models` and per-call timings fluctuate with prompt size, load, and provider conditions.
* Pricing equals the pinned endpoint's rate plus the 5% fee, which may sit above or below standard routing.
* Availability depends solely on the pinned provider. When it rate-limits, drops, or delists a model, requests fail instead of falling back; retry later or drop `:overdrive` to use standard routing.
* Free credit never pays for Overdrive calls.
* Standard data handling applies: identifiers pass through, client and session metadata are logged, and Private protections do not apply.

## HeyEly Chat

HeyEly's web chat lets you pick from three routing modes on every conversation.

|                        | Private                                                      | No retention                                   | Open                                        |
| ---------------------- | ------------------------------------------------------------ | ---------------------------------------------- | ------------------------------------------- |
| Who reads your message | Only the provider's sealed enclave; HeyEly relays ciphertext | The model provider under a no-retention policy | The model provider under its standard terms |
| How you know           | Your browser verifies attestation evidence                   | Provider policy commitment                     | Provider terms                              |
| Models                 | Open-weight models hosted on Phala and NEAR AI               | Models offering a zero-retention route         | Entire catalog                              |

To start a Private conversation, select any model labeled **Private** in the picker. Private chat replies bill at the provider's price plus 5%, charged only after browser verification succeeds.

Across all three modes, HeyEly logs only billing metadata (model, token counts, cost, and timing) and never stores message or reply text.

### Agent mode

In Agent mode, HeyEly searches the web, inspects pages within the same turn, cites sources underneath its reply, and opens generated files right beside the conversation. Click the plus button in the composer to open [Apps](https://heyely.si/docs/heyely-chat/connectors) and authorize external services; by default, HeyEly pauses for confirmation before making any state-changing action.

Explore [Use the chat](https://heyely.si/docs/heyely-chat/chat-basics) for the rest of the web interface, or read [Private chats](https://heyely.si/docs/heyely-chat/private) to see how browser-side enclave verification works.
