Skip to content
Zabio is in beta: models, prices and features can change. Tell us what breaks at hello@zabio.ai.

Stealth mode (beta)

Replaces emails, phone numbers, card, bank account and ID numbers, IP addresses and secrets with placeholders before the request leaves Zabio, and restores them in the answer. Names and postal addresses are not detected. Reduces exposure; does not make data anonymous.

Stealth mode is a setting of an API key, off by default. With it on, the model that answers sees [EMAIL_1] where your request said ana@example.com, and your application gets the answer back with ana@example.com in it. It is a beta: it works on chat completions and the Responses API, with text, your own function tools and structured output (see Tools and structured output), and refuses everything else the key sends (see What the beta refuses).

  • Dashboard: API Keys, then Create key or a key’s Edit: Stealth mode (beta). Keys with it on show a Stealth badge in the list.
  • CLI: zabio keys create --name N --stealth on, or zabio keys update KEY_ID --stealth on. zabio keys list shows it in the STEALTH column. See Command line.
  • Admin API: "stealth": "on" or "off" on POST /admin/v1/orgs/{org}/keys and PATCH /admin/v1/orgs/{org}/keys/{key}. The key object carries stealth, and the key object and the key list carry stealth_available, which is false while Zabio does not run stealth mode.

Anyone who may change the key may change the setting: its creator, and the organization’s owners and admins. Each change is written to the audit log. It applies to the key’s next calls; a call whose key was being looked up at the moment of the change may still use the old setting, for up to a minute.

While Zabio does not run stealth mode, a key with it on is refused, never served in the clear: 503 stealth_unavailable, with Retry-After: 5. The dashboard then shows the setting but does not let you turn it on.

Zabio looks for these values in the system prompt, the messages and the stop sequences, and in what tools add to a request: your tools’ descriptions and schemas, the arguments of earlier tool calls and the tool results:

Class Placeholder What is found
Email addresses [EMAIL_1] addresses with an ASCII local part and a domain with a top level of two or more letters. Not internationalized addresses, quoted local parts, or addresses spelled out (“ana at example dot com”)
Phone numbers [PHONE_1] international numbers with + or 00 and a calling code; North American numbers written with separators, such as (212) 555-0100; Spanish numbers of nine digits. Not other countries’ national formats without the calling code, or North American numbers written as ten bare digits
Card numbers [CARD_1] 13 to 19 digits that pass the Luhn check, whole or in groups
Bank account numbers [IBAN_1] IBANs that pass their check digits, whole or with single spaces. Not IBANs in lower case or written with dashes
ID numbers [NATIONAL_ID_1] US Social Security numbers and Spanish DNI and NIE numbers. No other country’s ID numbers
IP addresses [IP_1] IPv4 and IPv6 addresses
Secrets [SECRET_1] API keys of common services found by their prefix (Zabio, Anthropic, OpenAI, Stripe, AWS, GitHub, GitLab, Slack, Google, npm), keys and tokens after a word such as “key”, JSON web tokens, private keys, and passwords in URLs

Names, postal addresses, organizations, dates and URLs are not detected. Neither are values split across lines, spelled out in words or glued inside other identifiers. Detection is not complete: a value that is not found goes to the model as you wrote it.

The same value gets the same placeholder everywhere in a request, and in a stored conversation on every turn: [EMAIL_1] is always the same address, [EMAIL_2] another one. Text of yours that already looks like a placeholder, such as [EMAIL_1], is sent as [LITERAL_EMAIL_1], so it is never mistaken for one of Zabio’s and comes back as you wrote it.

Everything Zabio sends out for the request: the model that answers, auto’s classifier, Smart Splitting, the AI Firewall’s model check, and the model that summarizes a stored conversation when Zabio compacts it. The end user’s id (user, safety_identifier) goes to the vendor as an opaque id that Zabio makes for each of your end users, instead of what you sent.

What keeps the real values: the answer you receive, the arguments of a tool call in it, a stored Responses turn, and the request and answer kept by body logging when it is on. Zabio never writes a value or a placeholder’s value into its logs.

Every request of a stealth key starts with one more system line, before your own system prompt, telling the model to copy placeholders exactly as written:

Some values in this conversation were replaced by placeholders: a type and a number in square brackets, such as [EMAIL_n] or [PHONE_n] with n a number. When you use one, copy it exactly as written, brackets and number included. Do not translate, explain or invent placeholders.

It is about 40 tokens, billed as input at the model’s price like any other input. It is the same on every request, values found or not, so a vendor’s prompt cache still holds.

Zabio puts the values back into the answer’s text, the arguments of its tool calls and a JSON answer, unary and streamed. In a stream, a piece of text that could be the start of a placeholder is held until it is complete, so it never arrives in halves; other text is sent at once. Models sometimes change a placeholder: Zabio also restores the usual changes (another case, other brackets, a space instead of the underscore, a Spanish type name such as [CORREO_1], a placeholder cut at the end of an answer stopped by max_tokens when only one value fits). A placeholder it cannot read as one of the request’s is left as the model wrote it.

The answer says what happened in zabio.stealth, on the answer, on the chat stream’s usage chunk and on the Responses API’s completed response:

"zabio": {
"stealth": {
"restored": 3, "unrestored": 1,
"restored_bent": 1, "restored_cut": 0, "unescaped": 0,
"unrestored_lowercase": 1, "unrestored_cut": 0
}
}

restored counts the placeholders put back as their values; unrestored the placeholder-shaped texts left as written. The other five say how:

Field Counts
restored_bent among restored, the placeholders the model did not write exactly as sent (another case, other brackets, a space, a Spanish type name)
restored_cut among restored, the placeholders cut by max_tokens that only one value fitted
unescaped the texts of yours that looked like a placeholder (sent as [LITERAL_EMAIL_1]) and came back as you wrote them. They are in neither total
unrestored_lowercase among unrestored, the placeholders written without brackets and not in upper case, such as email_1: a model writing code uses such names of its own, so they are left
unrestored_cut among unrestored, the placeholders cut by max_tokens that could not be settled

It carries counts only, never a value, and is absent when the key does not have stealth mode on.

A stealth key can send your own function tools and ask for structured output (response_format with a JSON schema or JSON mode on chat completions, text.format on the Responses API).

On the way in, Zabio rewrites what tools add to the request: each tool’s description and schema, the arguments of the tool calls in the history, and the tool results. JSON is read as JSON: every string in it, a property name or a value, is text like a message, and nothing else of the document changes (the order of its keys, its numbers, its spacing). So a value is the same value, under the same placeholder, whether it stood in a message or inside JSON, however the JSON escaped it. A number that is itself a value, such as a card number sent as a JSON number, goes to the model as a string holding its placeholder.

On the way out, the arguments of a tool call and a JSON answer are restored string by string: each string is decoded, its placeholders become your values, and it is encoded again. A value with a quote, a backslash or a line break in it therefore leaves the JSON valid, and your tool receives the real value. In a stream, the pieces of the arguments are restored as they arrive, with the same hold as text. Inside a restored string an escape may be written another way than the model wrote it (\u00e9 as é); the JSON value is the same.

What to know:

  • Names are sent as written: a function’s name, tool_choice, the schema’s name and the ids of tool calls. A tool or schema name that looks like a placeholder (email_1, ADDRESS_2) or holds a value Zabio would hide is refused (see What the beta refuses): rename it.
  • Property names that look like a placeholder, such as address_1 or phone_2, reach the model as LITERAL_address_1 and LITERAL_phone_2, in the schema and in every document, like any text of yours that looks like one. The arguments and the answer come back with address_1 and phone_2.
  • A tool result is text from outside. A placeholder-shaped text in it, such as a [EMAIL_1] on a fetched page, is sent as [LITERAL_EMAIL_1] and never becomes one of your values.
  • A field that cannot hold a placeholder gets none. Where the schema types a field as a number, or limits a string with pattern, format, maxLength or an enum of other values, the model cannot write [CARD_1] there: it invents a value, or the vendor refuses the answer. Leave such fields as plain strings, or use a key without stealth mode for that request.
  • JSON written inside a string (a document quoted as the value of a field) is restored as text, not as JSON.
  • A JSON answer you asked for in words only, without response_format or text.format, is restored as text: a value with a quote in it can then break the JSON. Ask for it with the parameter.
  • A placeholder outside any string of the arguments or of a JSON answer (a model that left the quotes out) is left as written and counted in unrestored.

Zabio’s server tools, the vendor’s web search and Anthropic’s advisor tool are not covered yet (see below).

A request that stores nothing (chat completions, or a Responses turn with store: false) keeps the values in memory for that request only. When a Responses turn is stored in a conversation, its values and their placeholders are stored with the conversation, encrypted under your organization’s key, so the next turns use the same placeholders. They are deleted with the conversation: when its retention ends, when you delete it, or with the organization. Deleting a response also removes the values that only its turns held; a value another turn still holds stays. See Privacy.

A stealth key is refused, before anything is sent, held or stored, in OpenAI’s error envelope with type invalid_request_error and code stealth_unsupported (400). param names the field when there is one.

The request The message
Any endpoint other than chat completions, the Responses API and conversations, the model list, files and feedback: Messages, embeddings, rerank, moderations and the AI Firewall check, images, audio, videos, batches, realtime and decisions. Also the MCP server’s check_injection and estimate Stealth mode (beta) works on chat completions and responses only. Turn stealth mode off for this key to use this endpoint.
Images, audio, video or files in a message Stealth mode (beta) supports text only. Send the request without images, audio, video or files, or turn stealth mode off for this key.
A spoken answer (modalities with audio) Stealth mode (beta) supports text answers only. Send the request without an audio answer, or turn stealth mode off for this key.
background: true on the Responses API Stealth mode (beta) cannot run a response in the background yet. Send the request without background, or turn stealth mode off for this key.
Zabio’s server tools: the final review and sub-agents. Web search (web_search_options, a web_search tool, or a model name ending in :online). Anthropic’s advisor tool Stealth mode (beta) does not support Zabio’s server tools or web search yet. Send the request without them, or turn stealth mode off for this key.
A tool’s name, the tool_choice name or the schema’s name that looks like a placeholder (email_1, ADDRESS_2) or holds a value Zabio would hide Stealth mode (beta) cannot send a tool or schema name that looks like a placeholder or holds a value it would hide. Rename it, or turn stealth mode off for this key.

And with code stealth_unavailable (503, Retry-After: 5): “Stealth mode is temporarily unavailable, so the request was not sent. Retry shortly.” This answers when Zabio does not run stealth mode, or when a stored conversation’s values cannot be read. See Errors.

  • It is not anonymization. Data with placeholders is still personal data under privacy law: the rest of the text may still identify a person, and Zabio holds the values to restore them.
  • Detection is not complete. It finds the formats in the table above, and misses names, addresses and anything it does not recognize. Check what your requests carry, and keep data you must not send out of them.
  • It does not change where your request goes. The same vendors serve the call, with their own terms. See Privacy.