The response meets the baseline and security threshold for this probe.
AI API Relay Integrity Test
Enter a Base URL, API key, and model ID to run 95 standard probes. 2 optional probes can bring the maximum to 97. The report checks model identity, token accounting, prompt injection, supply-chain risks, and streaming compatibility.
| Model | Quick | Full |
|---|---|---|
| gpt-4 | $0.870 | $1.260 |
| claude-opus-4.7 | $0.235 | $0.375 |
| claude-opus-4.6 | $0.235 | $0.375 |
| claude-sonnet-4.6 | $0.141 | $0.225 |
| gpt-5.4 | $0.133 | $0.215 |
| gpt-5.2 / 5.3-codex | $0.114 | $0.189 |
| gemini-3.1-pro | $0.106 | $0.172 |
| gpt-4o | $0.102 | $0.160 |
| claude-haiku-4.5 | $0.047 | $0.075 |
| gpt-5.4-mini | $0.040 | $0.065 |
| glm-5.1 | $0.035 | $0.054 |
| glm-5 | $0.026 | $0.040 |
| gpt-3.5-turbo | $0.018 | $0.026 |
How We Decide
Expand the full decision tree to see how each of the three outcomes plays out
What the test covers
How to read report statuses
The signal is incomplete or near a threshold; inspect the explanation and raw response.
The probe confirmed a baseline deviation, protocol error, or integrity risk.
How the verdict is produced
Cross-checks family fingerprints, sub-model traits, and anti-spoofing signals against the claimed model.
Validates token counts, SSE framing, latency, and response structure for padding or intermediary faults.
Tests system-prompt injection, secret exfiltration, dependency hijacking, and signature tampering.
Attacks this tool detects
This probe implements detection for 3 key relay-attack classes from arXiv 2604.08407 — supply-chain injection, conditional system-prompt injection, and credential exfiltration. Each test run executes 50+ probes against your endpoint to surface these attack surfaces.
Response Tampering
The proxy modifies tool-call or text content during response parsing, causing the agent to execute attacker-specified operations. Common tactics include tampering with npm/pip/go/cargo install commands, injecting typosquatting packages, and rewriting shell command parameters. Detection compares the proxy's response to direct-connect tool-call payloads to surface silent rewrites.
Conditional Injection
The proxy conditionally injects a system message based on prompt content — malicious instructions for requests containing sensitive terms like "bank", "password", or "transfer", silence for everything else. The skew shows up statistically. Detection uses Proxy Monitor to compare the system-prompt offset between baseline and the relay under test.
Secret Scanning
The proxy silently scans both requests (request) and responses (response) for API keys, access tokens, personal data, and trade secrets. Because the content itself is **not modified**, generic diff tools miss it. Detection injects a honeypot token and verifies whether it surfaces in proxy logs, Telegram bots, or external endpoints.
Frequently Asked Questions
What is AI API relay detection?
AI API relay detection is an automated test suite that verifies whether an OpenAI-compatible API endpoint honestly executes your requests. BazaarLink Probe sends standardised probes to detect model swapping, token padding, system prompt injection, secret exfiltration, and 50 other security risks, outputting a 0–100 score.
How can I tell if a relay is swapping models?
The most reliable method is model fingerprinting: send questions only a specific model can answer correctly (e.g. knowledge cutoff date, specific capability tests), then compare the response against the expected model. BazaarLink Probe includes these probes and automatically flags swap risks.
What is token padding?
Token padding (token inflation) means a relay reports higher prompt_tokens or completion_tokens in the API usage field than actually consumed, causing you to overpay. Minor inflation (5–15%) is hard to spot. BazaarLink Probe detects it by comparing precisely known token counts against reported values.
What API latency is considered normal?
TTFT (Time to First Token) under 500ms is generally healthy; over 2 seconds suggests performance issues or extra processing layers. Large models like GPT-4o average 300–800ms TTFT. BazaarLink Probe's latency test benchmarks your endpoint against baseline values.
How is BazaarLink Probe different from a ping test?
Ping only measures network connectivity (ICMP packets). BazaarLink Probe is a full application-layer (L7) test that sends real LLM requests to verify model identity, token counts, refusal behaviour, stream format, and system prompt injection — 50 indicators ping cannot cover.
How can I use the detection results to choose a provider?
Enter each provider's API endpoint into BazaarLink Probe and compare scores and risk flags. A higher score (closer to 100) with no red flags indicates a more trustworthy endpoint. Focus on three key indicators: model authenticity (no swapping), token accuracy (no padding), and latency performance (TTFT).
How do I tell if an API reseller is doing a model swap?
A model swap is when a reseller sells you Claude Opus or GPT-5 and quietly serves a cheaper model instead — often with a system prompt telling it to claim it is the model you paid for. Self-reported identity is worthless; behavioural fingerprinting is not. BazaarLink Probe sends probes only the genuine model answers correctly and compares the response distribution against an official baseline.
Does routing Claude Code through a proxy degrade it?
It can, and this is the most common case. Much of the cheap Claude capacity on the market is reverse-proxied out of products like Kiro, Antigravity or GitHub Copilot, and those endpoints carry a hidden system prompt — we measured one injecting roughly 2,000 tokens per request, with the model calling itself 'Kiro' and refusing every non-coding question. Point BazaarLink Probe at the endpoint and the injection check measures the added system prompt directly.