# Danger zone

[RightNow AI](https://www.rightnowai.co/) / [Decision model](https://www.rightnowai.co/docs/decision-model) / [Danger zone](https://www.rightnowai.co/docs/decision-model/danger-zone)

Updated 2026-11-13

Experimental, not stable.

## In the zone

**Native context classes**

| Class | State tokens | Rendered tokens | Request body |
| --- | --- | --- | --- |
| `long_context_64k` | 65,536 | 70,656 | 3,665,920 bytes |
| `long_context_128k` | 131,072 | 136,192 | 3,665,920 bytes |

Statements that are corrected later in a long document are a known weak spot.

## Access

Send `SZ-Danger-Zone` on each request with a class name: `long_context_64k` or `long_context_128k`. The header name is case insensitive; class names are exact lowercase. A plain `accept` returns HTTP 400 `invalid_request`.

Use stateless `POST /v1/decision-model/decide` requests.

**TypeScript (decide.ts)**

```typescript
import { readFileSync } from 'node:fs';
import { SystemZeroClient } from '@rightnowai/system-zero';

// state.txt must contain text of 38,001 to 65,536 tokens.
const client = new SystemZeroClient();
const reply = await client.decide({
  model: "rightnow-decision",
  state: readFileSync('state.txt', 'utf8'),
  questions: {
    "damaged": {
      "type": "boolean",
      "instructions": "Did the item arrive damaged?"
    }
  },
}, { dangerZone: 'long_context_64k' });
console.log(reply.answers);
```

**Python (decide.py)**

```python
from pathlib import Path
from system_zero import SystemZero

# state.txt must contain text of 38,001 to 65,536 tokens.
with SystemZero() as client:
    reply = client.decide({
        "model": "rightnow-decision",
        "state": Path("state.txt").read_text(encoding="utf-8"),
        "questions": {
            "damaged": {
                "type": "boolean",
                "instructions": "Did the item arrive damaged?"
            }
        },
    }, danger_zone="long_context_64k")
    print(reply["answers"])
```

**Manual HTTP (decide.sh)**

```shell
# state.txt must contain text of 38,001 to 65,536 tokens.
: "${SYSTEM_ZERO_API_KEY:?set your API key first}"
idempotency_key=$(uuidgen) || exit 1
jq --rawfile state state.txt '.state = $state' > request.json <<'JSON' || exit 1
{
  "model": "rightnow-decision",
  "questions": {
    "damaged": {
      "type": "boolean",
      "instructions": "Did the item arrive damaged?"
    }
  }
}
JSON

# Reuse this key and request.json when retrying the curl command.
curl 'https://api.rightnowai.co/v1/decision-model/decide' \
  -H "Authorization: Bearer $SYSTEM_ZERO_API_KEY" \
  -H "SZ-Danger-Zone: long_context_64k" \
  -H "Idempotency-Key: $idempotency_key" \
  -H "Content-Type: application/json" \
  --data-binary @request.json
```

## Native classes

Send the long text in `state`. The 64k and 128k classes refuse every attachment and upload reference with HTTP 404 `long_context_not_available` and are not charged.

Each class serves one band of state tokens: `long_context_64k` from 38,001 to 65,536 and `long_context_128k` from 65,537 to 131,072. A request outside its class's band is refused and not charged.

**State tokens each class serves, on one scale.**

- **No header**: 1 to 38,000 state tokens. Ordinary rates. USD 0.00733 for 38,000 billed input tokens and one answered question.
- **`long_context_64k`**: 38,001 to 65,536 state tokens. At least USD 0.02 per answered call.
- **`long_context_128k`**: 65,537 to 131,072 state tokens. At least USD 0.05 per answered call.

## Answers

The `sz-danger-zone` response header identifies the context used.

The response body is unchanged. The warning is not added to the body. Playground shows the returned classes with `Experimental, not stable.`.

## Refusals

Any other header value returns HTTP 400 `invalid_request` with `param` set to `SZ-Danger-Zone`.

**Danger zone refusals**

| Code | HTTP status | Meaning |
| --- | --- | --- |
| `long_context_not_available` | HTTP 404 | This release can refuse an unavailable route or input. |
| `service_unavailable` | HTTP 503 | The service is temporarily unavailable. Retry after the returned delay. |
| `capacity_exhausted` | HTTP 429 | Capacity is unavailable for this request. Retry after the returned delay. |

## Billing

Each answered `long_context_64k` call costs at least USD 0.02, and each `long_context_128k` call at least USD 0.05.

## Next

[Billing and credits](https://www.rightnowai.co/docs/decision-model/billing-and-credits)
