---
title: "Verify LLM model authenticity & prevent swaps"
canonical: "https://rawroute.dev/guides/model-authenticity-verification"
lang: "en"
last_verified: "2026-11-28"
description: "Engineering checklist to detect silent model downgrades, fake reasoning tokens, and hidden system prompts in third-party AI API gateways."
---

# Verify LLM model authenticity & prevent swaps

Cheap AI APIs often cut corners by silently routing flagship IDs to smaller models, injecting hidden system prompts, or faking reasoning blocks. Every provider stage on rawroute must pass independent authenticity verification—preserving unmodified responses, accurate promptTokenCount accounting, and full reasoning behavior.

## 4 signals developers can test on any gateway

1) Prompt-token baseline: send a 10-token prompt ("Reply with: pong"). Inflated promptTokenCount (e.g. 5,000–10,000 extra tokens) exposes hidden system-prompt injection. 2) Reasoning integrity: check that thinking tokens scale proportionally between low and high reasoning effort instead of returning identical canned reasoning strings. 3) Tool-call schemas & native IDs: verify exact tool_use / functionCall structures and native error status codes.

### Python · Quick authenticity smoke check

```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.rawroute.dev/v1", api_key=os.environ["RAWROUTE_API_KEY"])

r = client.chat.completions.create(
    model="gemini-4-argon",
    messages=[{"role": "user", "content": "Reply with exactly: pong"}],
)
print("Content:", r.choices[0].message.content)
print("Prompt tokens:", r.usage.prompt_tokens)  # No hidden 10k-token system prompt
```

## When NOT to use rawroute

- If you require cryptographic attestation inside a single vendor hardware enclave, use official vendor enterprise confidential compute offerings.
