惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
S
SegmentFault 最新的问题
量子位
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园 - Franky
Google DeepMind News
Google DeepMind News
Recent Announcements
Recent Announcements
B
Blog RSS Feed
C
Check Point Blog
The Cloudflare Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
V
Visual Studio Blog
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Built an API Fraud Detector After Getting Scammed — Here'...
ti pi · 2026-05-20 · via DEV Community

ti pi

Last month, I paid for GPT-4 API access through a relay provider and got GPT-3.5 instead. The relay was charging premium prices while downgrading models. Token counts were inflated by 30-50%. And there was a hidden system prompt injected into every request.

I got scammed. So I built API DNA — a free tool that detects API fraud in seconds.

The Problem: API Relays Are a Wild West

The AI API market has exploded with relay/proxy providers. Some are legitimate businesses. Others are not:

• Model substitution: Selling GPT-4, serving GPT-3.5-turbo
• Token inflation: Charging for 1000 tokens when only 600 were used
• Hidden prompt injection: Secretly injecting system prompts that consume your token budget
• Identity fraud: Claiming to be an official endpoint while routing through cheap proxies

How API DNA Works

Quick Scan (3 seconds, no API key needed)

Enter any API endpoint and get instant results:

  1. Architecture Detection — Is it official, a legitimate relay, or an unknown proxy? We check IP/ASN records, response headers, server signatures, and error format fingerprints.

  2. Model Listing — We probe /v1/models and variant endpoints to see what models are actually available.

  3. Security Headers — CORS, HSTS, CSP analysis.

  4. Price Audit — Compare the endpoint's pricing against official rates.

Deep Scan (30 seconds, requires API key)

The full DNA test with your own credentials:

  1. Behavioral Fingerprinting — We send carefully crafted prompts that elicit unique behavioral signatures from different model families. GPT-4o responds differently from GPT-3.5, which responds differently from Claude, which responds differently from DeepSeek. These differences are structural, not just stylistic — they persist even when the model is told to impersonate another.

  2. Rare Token Probing — Each tokenizer has unique rare tokens. By probing with multilingual, mathematical, and Unicode-heavy inputs, we can identify the underlying tokenizer family, which reveals the true model.

  3. Token Audit — We compare the token counts reported by the API against our own independent estimation. A discrepancy means someone is inflating your bill.

  4. Speed Analysis — TTFT (Time to First Token), tokens per second, and chunk variance. Each model family has characteristic speed profiles.

  5. Security Audit — We test for hidden system prompt injection, context leakage between requests, tool call tampering, and identity consistency across probes.

  6. Trust Score — All checks are aggregated into a L0-L7 trust level with a detailed breakdown.

Real Findings

In testing, we've found:

• A "GPT-4" relay actually serving GPT-3.5-turbo (detected via behavioral fingerprinting)
• Token inflation of 2-3x on popular relay services
• Hidden system prompts consuming 50-200 tokens per request
• Endpoints claiming official status but routing through 3rd-party proxies

Try It Yourself

API DNA is free to use, no signup required.

• Quick Scan: Enter any API endpoint, get results in 3 seconds
• Deep Scan: Provide your API key for full analysis in 30 seconds

Every scan generates a shareable report with a unique URL and downloadable PNG image.

What's Next

• Provider registry with verified endpoints
• API for programmatic scanning
• Continuous monitoring alerts
• Browser extension for real-time verification

If you've ever used an API relay and wondered "am I getting what I paid for?", give it a try. I'd love to hear what you find.