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.
| Step | Do | You get |
|---|---|---|
| 1. Scope and dataset | Write down what is in scope; collect 30 to 100 lawful prompts that tend to trigger false refusals | A file you can run twice without editing it |
| 2. Two runs | Same payload, once plain and once with X-Relay-Preset: redteam-fiction-v1 | Two JSON logs keyed by the same prompt ids |
| 3. Score and file | Classify refuse or comply on each run; compute refusal rate, false-refusal rate, and the delta | One 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:
- The dataset drifts between runs, so the delta measures the edits. Hash the file and keep both logs with that hash.
- The baseline run happens on a different model day, because the catalogue moved. Pin the model id, not the family name.
- Only the refusal delta is reported, with no raw rates, so nobody can check the arithmetic. Publish both numbers.
- The preset is set at the account level and stays on, so there is no baseline left. It is per request: send the header or do not.
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.
Research only. Lawful use only. Test systems you own or are authorized to evaluate.