# How to Verify Claude thinking_signature & Catch Hidden Cache Markups (2026-12-05)

Technical teardown of Anthropic thinking_signature verification, SSE signature_delta streaming, model-substitution red flags, and two-pass prompt-cache markup detection.

## Why thinking_signature Is Harder to Spoof Than Model Names

Anthropic’s extended thinking API emits structured content blocks containing a thinking trace and a cryptographic signature field (streamed incrementally as signature_delta events and echoed back on multi-turn tool calls). If a gateway silently downgrades a request to a non-reasoning model or translates Anthropic calls through an incompatible OpenAI wrapper, the signature block is either absent, truncated, or rejected on subsequent turns with 400 Invalid signature in thinking block.

```json
{
  "type": "content_block_delta",
  "index": 0,
  "delta": {
    "type": "signature_delta",
    "signature": "EqoBCkYICxgCKkB...<hundreds of base64/url-safe characters>"
  }
}
```

## How Our Stateless Probe Evaluates Gateway Integrity

APIPick’s /probe/ endpoint executes a single lightweight diagnostic request (1,024-token thinking budget) using either your browser directly (BYO CORS) or our stateless Cloudflare Pages Function with strict Cache-Control: no-store headers and zero persistence.

- PASS: A thinking content block is returned alongside a non-empty signature (>= 64 characters without whitespace corruption).
- WARN: A thinking block appears with an unusually short (< 64 chars) signature or only redacted_thinking blocks.
- FAIL (Stripped): The upstream accepted thinking: { type: "enabled" } without erroring, yet returned plain text with zero thinking or signature blocks.

## Detecting Silent Prompt-Cache Markups ("Cache Tax")

Official labs steeply discount repeated input prefixes: 0.05x on Claude 5.5, GPT-6.2, and Gemini 4; 0.02x–0.033x on DeepSeek V4 off-peak. In our two-pass cache probe, APIPick sends an identical >1,250-token deterministic technical prefix twice (350ms apart) and inspects cache_read_input_tokens (Anthropic), prompt_tokens_details.cached_tokens (OpenAI), or cachedContentTokenCount (Gemini).

If Pass 2 reports 0 cached tokens—or if your provider billing ledger deducts >0.10x of uncached input pricing on cached tokens—you are paying an invisible cache tax that can double real monthly bills.


## Verified Sources

- [OpenAI Official API Pricing](https://openai.com/api/pricing/) — HTTP 200 (2026-12-05T12:57:00Z): Official OpenAI pricing portal (redirects to openai.com/business/pricing/#api); cross-verified with OpenRouter and Eden AI model pricing schemas for GPT-6.2 Astra, GPT-6.2 Sol, GPT-5.4, and GPT-6 Luna.
- [Anthropic Claude Official Pricing](https://www.anthropic.com/pricing) — HTTP 200 (2026-12-05T13:06:00Z): Redirects cleanly to claude.com/pricing (HTTP 200); cross-verified Claude Opus 5.5 ($4/$20, cache read $0.20), Sonnet 5.5 ($2/$10, cache read $0.10), and Haiku 5.5 ($0.10/$0.50, cache read $0.01).
- [Google Gemini API Official Pricing](https://ai.google.dev/gemini-api/docs/pricing) — HTTP 200 (2026-12-05T12:57:00Z): Redirects to aistudio.google.com/docs/pricing; verified Gemini 4 Carbon ($4/$20, cache $0.20), Gemini 4 Hydrogen ($1.50/$7.50, cache $0.075), and Gemini 3.8 Flash intro pricing ($0.75/$3.75, cache $0.075 through Dec 31, 2026).
- [DeepSeek API Models & Pricing Docs](https://api-docs.deepseek.com/quick_start/pricing/) — HTTP 200 (2026-12-05T12:58:00Z): Directly observed deepseek-flash (DeepSeek-V4.1-Flash-1017) off-peak $0.15/$0.60/cache $0.003 (peak $0.30/$1.20/$0.006) and deepseek-v4-pro (DeepSeek-V4-Pro-0813) off-peak $0.66/$1.98/cache $0.022 (peak $1.32/$3.96/$0.044).
- [OpenRouter Public Models & Per-Token Pricing JSON](https://openrouter.ai/api/v1/models) — HTTP 200 (2026-12-05T12:58:00Z): Live JSON feed returning 472 models with exact per-token prompt, completion, input_cache_read, and input_cache_write values.
- [OpenRouter Platform Fee & Credit Purchase Pricing](https://openrouter.ai/pricing) — HTTP 200 (2026-12-05T12:57:00Z): Zero per-token markup on official list prices; 5.5% fee ($0.80 min) on card credit purchases and 5% fee on crypto top-ups.
- [AIMLAPI Live Model Pricing Directory](https://aimlapi.com/ai-ml-api-pricing) — HTTP 200 (2026-12-05T13:05:00Z): Verified per-1M token input, cache-read, and output rates for Claude 5.5, GPT-6.2/5.4/6-Luna, Gemini 4/3.8, and DeepSeek V4 models.
- [AIMLAPI Official Platform & Affiliate Overview](https://aimlapi.com/) — HTTP 200 (2026-12-05T12:57:00Z): Unified API gateway with pay-as-you-go and subscription billing; affiliate terms up to 30% lifetime recurring, 90-day cookie, $50 min payout via Stripe, Wise, or PayPal.
- [CometAPI Official Pricing & Billing Framework](https://www.cometapi.com/pricing/) — HTTP 200 (2026-12-05T13:02:00Z): Publishes 'Official Models: Token-based billing, Customer price = official x 0.8, No hidden platform fee' alongside explicit unit examples for GPT-6.2 Astra ($6.40 vs $8), GPT-6.2 Sol ($1.60 vs $2), GPT-6 Luna ($0.08 vs $0.10), and Gemini 4 Neon ($2.40 vs $3).
- [CometAPI Affiliate Program](https://www.cometapi.com/affiliate/) — HTTP 200 (2026-12-05T13:06:00Z): CometAPI Affiliate Program pays 20% recurring commission on every referred top-up with 120-day cookie tracking.
- [302.AI English Platform & Live Sale Model Rates](https://302.ai/en/) — HTTP 200 (2026-12-05T13:05:00Z): Observed promotional sale/ rates: sale/claude-opus-5-5 ($3.40/$17.00), sale/claude-sonnet-5-5 ($1.70/$8.50), sale/claude-haiku-5-5 ($0.085/$0.425), and sale/deepseek-v4.1-flash-1017 ($0.09/$0.36); pay-as-you-go with no monthly fees.
- [302.AI Pricing Calculator & Model Catalog](https://price.302.ai/) — HTTP 200 (2026-12-05T12:59:00Z): Interactive pricing directory showing pay-as-you-go token pricing and enterprise wallet billing without subscription lock-in.
- [Novita AI Serverless OpenAI-Compatible Models JSON](https://api.novita.ai/v3/openai/models) — HTTP 200 (2026-12-05T13:00:00Z): Verified DeepSeek V4.1 Flash ($0.30/$1.20/cache $0.006) and DeepSeek V4 Pro 0813 ($1.32/$3.96/cache $0.044) with OpenAI, Anthropic, and Responses endpoint compatibility.
- [Novita AI Serverless Model Pricing](https://novita.ai/pricing) — HTTP 200 (2026-12-05T13:00:00Z): Confirmed per-MTok rates for DeepSeek V4.1 Flash and DeepSeek V4 Pro 0813 plus 50% batch inference discount.
- [Novita AI Affiliate Program](https://novita.ai/affiliate-new) — HTTP 200 (2026-12-05T12:57:00Z): 10% usage share for 180 days, 60-day cookie window, Tapfiliate cash settlement.
- [Eden AI v3 Public Models & Pricing JSON](https://api.edenai.run/v3/models) — HTTP 200 (2026-12-05T12:58:00Z): Verified 555 models with exact per-token provider list costs and prompt-caching flags.
- [Eden AI Gateway Pricing & Compliance](https://www.edenai.co/pricing) — HTTP 200 (2026-12-05T13:02:00Z): Zero per-token markup plus transparent 5.5% credit top-up fee; card or SEPA transfer, VAT invoices, SOC 2 & ISO 27001 certified, EU endpoint & DPA.
