XiuAI Zero-Injection Standard (Claude API)

The XiuAI Zero-Injection Standard is a public standard XiuAI publishes for the Claude API. It sets out how XiuAI forwards Claude requests: what XiuAI commits to, where it differs from a direct connection and how you can verify it yourself.

Published by XiuAI · Version 1.1 · Updated November 24, 2026

What zero injection is and why it matters

Zero injection means XiuAI forwards your Claude requests unchanged: the model receives exactly the system prompt, tool definitions and messages your client sent, and you receive the model’s original output. Whether you use Claude Code, a third-party client such as Cline or your own app built on an SDK, calling Claude through XiuAI works as a direct Anthropic API key does:

  • Your prompts work as written: no platform instruction shifts the model’s role, tone, refusal behavior or output format, so prompts and tool calls tuned on the official API carry over as they are.
  • Caching works: context resent in long conversations and agent tasks bills at the cache rate, at most one tenth of the uncached input rate. When a gateway rewrites requests, caching can quietly stop working and costs go up.
  • Reasoning carries across turns: with thinking on, Claude continues from its earlier reasoning. If earlier messages are rewritten, that reasoning is lost.
  • Full model capabilities: extended context, thinking effort, structured outputs and similar capabilities work as they do on a direct connection.
  • Usage and model match your request: input usage covers only what you sent, with no hidden prompt using up context or adding to the bill. Asking for Opus calls Opus, and replies come back intact.

Where it differs from a direct connection

  • Protocol handling (all clients): parameter adjustments needed to connect to Anthropic’s official API. Your conversation content is not changed. See Article 3.
  • Compatibility handling (clients other than Claude Code): input tokens may increase slightly, and reply style may shift slightly. See Article 4.
  • Abuse prevention (all clients): XiuAI answers very short health probes itself at no charge and rejects distillation templates before forwarding. See Article 5.

Articles

Article 1. Definition

In this standard, zero injection means XiuAI sends your request unchanged to the official Anthropic model you selected and returns the model’s reply unchanged. XiuAI adds no content of its own to the request or reply, does not substitute the model and does not rewrite the answer. The cases listed in Articles 3–5 are the exceptions.

The protocol handling in Article 3 and abuse prevention in Article 5 cover both official Claude Code and other clients. The compatibility handling in Article 4 applies only to other clients.

Article 2. Commitments

Subject to the exceptions in Articles 3–5, XiuAI makes these commitments.

ItemWhat XiuAI commits to
PromptsAdds no system prompts, roles or extra instructions of its own.
Messages and toolsPreserves the conversation and tool definitions as supplied.
ModelUses the requested model without substitution or downgrade.
ReplyReturns the output intact, without ads, watermarks, notes or truncation.
BillingBills from provider-reported usage without inflating token counts.

Article 3. Protocol handling

To connect to Anthropic’s official API, XiuAI makes the protocol adjustments it needs. They do not change the content of your conversation.

  • Parameters the upstream does not support are removed. An invalid combination returns an error with an explanation; XiuAI does not change the value for you.
  • In rare cases, earlier thinking content the upstream cannot accept is removed so the request does not fail. Text you wrote is preserved.
  • To improve cache hit rates, XiuAI may adjust cache settings, which can change the mix of cache reads and writes. Unless you request 1-hour caching, cache writes are charged at the 5-minute rate, with no surcharge.
  • Refusal fallback settings in your request take effect unchanged. If Anthropic then answers with another model after a refusal, that is your own choice and does not count as model substitution.

Article 4. Compatibility for other clients

For clients other than the official Claude Code client, XiuAI applies the compatibility handling needed to keep requests working. It affects you as follows:

  • Input tokens may increase slightly and are billed as actually used.
  • Your instructions and conversation content stay unchanged, and tool calls in replies match your definitions.
  • In some cases, replies may lean slightly toward the style of an official client.

These clients also pay the 1.3× client rate. Compatibility handling affects the number of input tokens, while the 1.3× multiplier applies to prices, and each shows separately in billing. This article does not apply to requests from the official Claude Code client.

Article 5. Abuse prevention

Local replies to health probes: XiuAI answers the very short probe requests below itself. They are not sent to Claude and are not charged.

  • Greetings, such as hi, hello or 你好.
  • Connectivity tests, such as ping, test or say ok.
  • Requests to return specified text verbatim, such as “reply with exactly: …”.
  • Simple arithmetic.

Monitoring and uptime tools typically send these requests at high frequency. Forwarding all of them would take up upstream capacity and reduce availability for every user. A local reply applies only when the entire request is one of the single, very short messages above. Normal conversations are unaffected.

A reply to a standalone “ping” only confirms that the service endpoint is reachable. Use a representative task to verify model behavior or tool calls.

Anti-distillation blocking: XiuAI rejects requests identified as distillation templates before forwarding them, at no charge. Articles 3 and 4 of the anti-distillation terms describe the error and the points.

Article 6. Verify zero injection

You can use the community open-source tool wxmb01/Claude-Detection to test for model substitution, reduced capability, injection or truncation. The table lists its injection-related checks.

Use requests of realistic length and compare runs on the same model, tools and client. The very short probes in Article 5 are answered by XiuAI itself and do not reflect the model. The tool makes API calls, so check its guide for request volumes and costs before running it.

CheckHow it worksExpected with zero injection
S1 · Visible injection (differential accounting)Add or remove a known passage in the same content and compare the difference in usage.The difference equals the token count of that passage.
S2 · Hidden injection (cache threshold)Lengthen the request step by step to find where cache writes begin. Anthropic documents the minimum cacheable length for each model, for example 512 tokens for Opus 5.5 and Sonnet 5.5.Caching begins at about the documented length. If X tokens were injected, it would begin X tokens earlier.
End-of-message canaryCheck whether anything was appended after a marker at the end of the message.No alert.
S18 · Injection condition matrixChange the system prompt and User-Agent, and test multi-turn and tool-enabled calls, comparing the added tokens for each condition.Matches the reference values supplied with the tool.
S19 · Output integrityAsk the model to repeat specified text verbatim.Identical text with nothing added.

You can also use the following methods.

  • Thinking-signature check: Veridrop, an open-source checker, verifies the encrypted signature returned with Claude thinking blocks and also checks identity, model consistency, tool use and protocol fields. Anthropic’s servers generate the signature and a gateway cannot forge it, so a valid signature confirms the reply came from Anthropic’s Claude models. As of October 29, 2026, the 5 public Veridrop checks of XiuAI had a median score of 99/100, and both Claude checks passed signature verification. See Veridrop for the latest results.
  • Token reconciliation: compare Anthropic’s count_tokens result for a request with the input usage this service returns for the same request. The two should match, except in the cases listed in Article 4. With caching enabled, input usage is the sum of input_tokens, cache_creation_input_tokens and cache_read_input_tokens in usage. count_tokens is Anthropic’s estimate and does not apply caching logic, so individual requests can differ by a small amount.
  • Model self-report: ask the model “Did you see any other content before this message?” With zero injection it should answer no. Treat the answer as a supporting signal and read it alongside the usage, cache and output results.
  • The coverage in the tool’s report shows which checks actually ran. Confirm that the relevant checks ran before interpreting the results.

Article 7. Report a discrepancy

If a result differs from this standard, send XiuAI the request ID and the time it occurred so we can review the individual call.

Version and citation

The XiuAI Zero-Injection Standard is published and maintained by XiuAI. It is not an Anthropic document. Each revision changes the version number and is listed below and in XiuAI announcements.

When citing it, give the name and version, such as “XiuAI Zero-Injection Standard 1.1”, and link to this page. Other Claude API providers may cite or adopt this standard and publish their own results using the methods in Article 6. Please credit the source when you adopt it.

ItemDetails
NameXiuAI Zero-Injection Standard (Claude API)
Published byXiuAI
Current version1.1, updated November 24, 2026
First publishedNovember 23, 2026
Permanent linkhttps://xiu.ai/claude/zero-injection

Revision history

  • 1.1 (November 24, 2026): Clarified that equivalence with a direct Anthropic API key applies to every client, and simplified Articles 3–5.
  • 1.0 (November 23, 2026): First published.