EN / RUSign in
The app is live — keys, cabinet and billing at app.rawline.dev. Open app.rawline.dev

Use cases · Updated 2026-11-15

AI red teaming: the loop, the metric, the price.

A red-team pass has three parts: a lawful dataset, two runs on the same prompts, and one number to compare. This page is that loop on RawLine, with the arithmetic shown.

TLDR. Fix scope, pick lawful prompts, run baseline and preset on the same payloads, score refusal rate and false-refusal rate. About $0.009 for 100 requests at the relay's current prices, no subscription. The delta between the two runs is the finding; the preset applies per request and legal scope stays with you.

The three steps

Nothing in this loop is bespoke. Each row says what the step produces, so a ticket can be filed for each.

Red-team pass steps on RawLine
StepDoYou get
1. Scope and datasetWrite down what is in scope; collect 30 to 100 lawful prompts that tend to trigger false refusalsA file you can run twice without editing it
2. Two runsSame payload, once plain and once with X-Relay-Preset: redteam-fiction-v1Two JSON logs keyed by the same prompt ids
3. Score and fileClassify refuse or comply on each run; compute refusal rate, false-refusal rate, and the deltaOne number for the ticket, plus the log to re-run after hardening

Illegal prompts stay refused in both runs, which is a property of the setup, not of the scoring. Test only systems you own or are authorized to evaluate.

The pass, end to end

One header apart between baseline and preset. The scoring line is yours: refuse or comply, then the rates.

for mode in (None, 'redteam-fiction-v1'):
    h = {'X-Relay-Preset': mode} if mode else {}
    log = run(prompts, model='deepseek-v4.1-flash-latest-jailbreak', headers=h)
    score(log)          # refusal_rate, false_refusal_rate
# 100 requests: about $0.009 at $0.03 in / $0.12 out per 1M

What usually goes wrong

Four failure modes we have seen, cheapest to fix first:

Questions

What does a red-team pass on RawLine cost?

At $0.03 in and $0.12 out per 1M tokens, a 100-request pass runs about $0.009. The arithmetic: price per token times dataset size times number of runs, and there is no subscription on top.

How is this different from a $4,500 audit?

An audit buys a person who tests what you failed to imagine. This buys the measuring instrument: a script runs the dataset and scores the rates. Loop first, auditor second, so their findings land on your numbers.

Can I test someone else's system?

No. The system has to be yours, or you need the owner's permission. The preset changes refusal behaviour on lawful cases; it is not a way around someone else's defences.

More: Docs · FAQ · Blog.

Open the appModelsBlog

Research only. Lawful use only. Test systems you own or are authorized to evaluate.