# FuelRouter — Upstream Pool Failover Router (W5-T11) > Deterministic multi-upstream API failover router with 3-state circuit breakers, anti-fake-200 / CAPTCHA soft-ban quarantine, free-tier quota rotation, cross-tenant `7d–30d` archive caching (`100%` repeat gross margin), zero-secret credential injection, and strict `$0` billing on pool exhaustion (`https://fuelrouter.fastmesh.dev`, local bind `http://127.0.0.1:9051`). ## Core Endpoints & Machine Discovery - Interactive Pool & Failover Console: https://fuelrouter.fastmesh.dev/ - Live Health & SQLite WAL Readiness: `GET https://fuelrouter.fastmesh.dev/health` - OpenAPI 3.1.0 Specification: `GET https://fuelrouter.fastmesh.dev/openapi.json` - Redacted Pool Topology, Circuit States & Quotas: `GET https://fuelrouter.fastmesh.dev/v1/router/pools` - Zero-Cost (`$0`) Dry-Run Route & Cache Quote: `POST https://fuelrouter.fastmesh.dev/v1/router/quote` - Failover Dispatch Execution: `POST https://fuelrouter.fastmesh.dev/v1/router/dispatch` - Manual Circuit Breaker Recovery: `POST https://fuelrouter.fastmesh.dev/v1/router/circuit/reset` - Real-Time Margin, Cache & Failover Metrics: `GET https://fuelrouter.fastmesh.dev/v1/router/metrics` - Remote MCP Server (JSON-RPC 2.0): `POST https://fuelrouter.fastmesh.dev/mcp` - Flat MCP Tools: `router_list_pools`, `router_quote`, `router_dispatch`, `router_metrics`, `router_circuit_reset` - Creem Settlement Webhook (HMAC-SHA256, idempotent on `event_id`): `POST https://fuelrouter.fastmesh.dev/webhooks/creem` - Production Agent Skill Guide: https://fuelrouter.fastmesh.dev/skill.md - Technical Architecture & SEO/GEO Library (24 Guides): https://fuelrouter.fastmesh.dev/seo_geo/ - XML Sitemap (30 Canonical URLs): https://fuelrouter.fastmesh.dev/sitemap.xml - Crawler Policy: https://fuelrouter.fastmesh.dev/robots.txt - Support & Operations: `support@fastmesh.dev` | `ops@fastmesh.dev` ## 5 Upstream Capability Pools (33 Candidates, 20 `$0` Free-Tier Slots) 1. `ai_chat_json` — AI Chat & Structured JSON Inference Pool (`5` free `$0` / `8` total upstreams; outcome price `10,000` micros / `$0.010`; default cap `50,000` micros; cache TTL `7d` `604,800s` to `30d` `2,592,000s`; target availability `99.6%`; p95 `2,200 ms`; open cooldown `45s`). 2. `embeddings_rerank` — Embeddings & Semantic Rerank Pool (`3` free `$0` / `6` total upstreams; outcome price `4,000` micros / `$0.004`; default cap `20,000` micros; cache TTL `14d` `1,209,600s` to `30d` `2,592,000s`; target availability `99.7%`; p95 `950 ms`; open cooldown `60s`). 3. `web_search` — Web Search & SERP Grounding Pool (`3` free `$0` / `6` total upstreams; outcome price `8,000` micros / `$0.008`; default cap `40,000` micros; cache TTL `7d` `604,800s` to `21d` `1,814,400s`; target availability `99.5%`; p95 `1,800 ms`; open cooldown `60s`). 4. `clean_scrape_extract` — Clean Scrape & Markdown Extraction Pool (`4` free `$0` / `6` total upstreams; outcome price `12,000` micros / `$0.012`; default cap `60,000` micros; cache TTL `7d` `604,800s` to `21d` `1,814,400s`; target availability `99.4%`; p95 `3,500 ms`; open cooldown `60s`). 5. `b2b_domain_dns_enrichment` — B2B Firmographic, Domain & DNS Enrichment Pool (`5` free `$0` / `7` total upstreams; outcome price `20,000` micros / `$0.020`; default cap `80,000` micros; cache TTL `14d` `1,209,600s` to `30d` `2,592,000s`; target availability `99.6%`; p95 `1,600 ms`; open cooldown `60s`). ## Hard Architectural & Billing Guarantees - **Strictly `$0` Billing on Exhaustion & Validation Errors**: HTTP `503` (`all_upstreams_exhausted`) and HTTP `422` (`invalid_input` / `ssrf_blocked`) always emit `billed_usd: 0.0`, `charged_micros: 0`, a deterministic `receipt_sha256`, a redacted failover trace, and concrete `backoff_advice`. - **Cross-Tenant `7d–30d` Archive Cache (`100%` Repeat Margin)**: Canonical SHA-256 request keys persisted in SQLite WAL via `ArchiveCache`. Adaptive TTL expands `1.5x` on unchanged hits and shrinks `0.5x` on drift (`604,800s` to `2,592,000s`). Cache hits incur `0` upstream calls (`upstream_cost_micros: 0`, `gross_margin_pct: 100.0`); new tenants pay `100%` of outcome price and same-tenant repeats pay `10%`. - **3-State Circuit Breaker (`CLOSED` / `OPEN` / `HALF_OPEN`)**: Trips after `3` consecutive failures with exponential backoff (`2.0x` up to `900s`, respecting `Retry-After` capped at `300s`) and single-probe recovery (`half_open_probe_limit: 1`). - **Anti-Fake-200 & Zero CAPTCHA Bypass**: Scans the first `2,048` bytes for Cloudflare Turnstile, reCAPTCHA, hCaptcha, Arkose, DataDome, PerimeterX, GeeTest, HTML interstitials, login walls, and empty SPA shells. Soft-banned nodes are quarantined and failed over immediately—never bypassed. - **Zero-Secret Proxy & Zero Trace Resale**: Credentials remain inside the local `0600` Register-Anything Vault (`http://127.0.0.1:18793/api/proxy/`, metadata sync with `reveal=false`). Output scrubber strips authorization headers, cookies, API key prefixes, passwords, and PII across all HTTP bodies, logs, and SQLite tables. `zero_customer_trace_resale: true`. - **SSRF & Sandbox Isolation**: Blocks `file://`, `ftp://`, `gopher://`, `localhost`, `127.0.0.0/8`, `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, `169.254.0.0/16`, `::1/128`, `fc00::/7`, `fe80::/10`, and `.local`/`.internal` hostnames. ## Prepaid Creem Credit Packs (Opt-In Only, Zero Card Autofill) - **Starter Pack (`$19`)**: Prepaid credits, zero recurring subscription, never expire. - **Pro Pack (`$79`)**: Higher volume prepaid credits for production multi-agent fleets. - **Scale Pack (`$249`)**: Bulk prepaid credits with maximum cross-tenant cache savings. ## Technical Guides & SEO/GEO Documentation (24 Pages) - [Multi-Upstream API Failover Router with Circuit Breaker](https://fuelrouter.fastmesh.dev/seo_geo/multi-upstream-api-failover-router-with-circuit-breaker.html) - [Anti-Fake-200 HTTP Proxy Gateway](https://fuelrouter.fastmesh.dev/seo_geo/anti-fake-200-http-proxy-gateway.html) - [Cross-Tenant API Response Cache & 100% Repeat Margin](https://fuelrouter.fastmesh.dev/seo_geo/cross-tenant-api-response-cache-100-percent-repeat-margin.html) - [Zero-Secret Credential Proxy for AI Agents](https://fuelrouter.fastmesh.dev/seo_geo/zero-secret-credential-proxy-for-ai-agents.html) - [Free-Tier API Quota Rotation Architecture](https://fuelrouter.fastmesh.dev/seo_geo/free-tier-api-quota-rotation-architecture.html) - [AI Chat & Structured JSON Inference Pool Failover (`ai_chat_json`)](https://fuelrouter.fastmesh.dev/seo_geo/ai-chat-json-inference-pool-failover.html) - [Embeddings & Semantic Rerank Pool with 30-Day Cache (`embeddings_rerank`)](https://fuelrouter.fastmesh.dev/seo_geo/embeddings-rerank-vector-pool-30-day-cache.html) - [Web Search & SERP Grounding Failover Pool (`web_search`)](https://fuelrouter.fastmesh.dev/seo_geo/web-search-serp-grounding-failover-pool.html) - [Clean Scrape & Markdown Extraction Failover Pool (`clean_scrape_extract`)](https://fuelrouter.fastmesh.dev/seo_geo/clean-scrape-extract-markdown-failover-pool.html) - [B2B Domain & DNS Enrichment Waterfall Pool (`b2b_domain_dns_enrichment`)](https://fuelrouter.fastmesh.dev/seo_geo/b2b-domain-dns-enrichment-waterfall-pool.html) - [3-State Circuit Breaker Exponential Backoff & Recovery](https://fuelrouter.fastmesh.dev/seo_geo/three-state-circuit-breaker-exponential-backoff-recovery.html) - [Cloudflare & CAPTCHA Soft-Ban Failover Without Bypass](https://fuelrouter.fastmesh.dev/seo_geo/cloudflare-captcha-soft-ban-failover-without-bypass.html) - [MCP JSON-RPC 2.0 Failover Router Integration](https://fuelrouter.fastmesh.dev/seo_geo/mcp-json-rpc-failover-router-integration.html) - [SSRF Protection & Cloud Metadata IP Blocking](https://fuelrouter.fastmesh.dev/seo_geo/ssrf-protection-cloud-metadata-blocking-proxy.html) - [SQLite WAL Concurrent Quota Ledger Architecture](https://fuelrouter.fastmesh.dev/seo_geo/sqlite-wal-concurrent-quota-ledger-architecture.html) - [$0 Exhaustion Billing & Redacted Backoff Traces](https://fuelrouter.fastmesh.dev/seo_geo/zero-dollar-exhaustion-billing-and-backoff-traces.html) - [EWMA Dynamic Health Scoring for Upstream Routing](https://fuelrouter.fastmesh.dev/seo_geo/ewma-dynamic-health-scoring-upstream-routing.html) - [HTTP 429 Rate Limit & Retry-After Failover Handling](https://fuelrouter.fastmesh.dev/seo_geo/http-429-rate-limit-retry-after-failover-handling.html) - [Hard Budget Lock (`max_cost_micros`) Guardrails for Agents](https://fuelrouter.fastmesh.dev/seo_geo/hard-budget-lock-max-cost-micros-guardrails.html) - [Login-Wall & Empty SPA Shell Detection in HTTP 200 Responses](https://fuelrouter.fastmesh.dev/seo_geo/login-wall-and-empty-spa-shell-detection-proxy.html) - [Adaptive TTL Cache Invalidation & `force_refresh` Semantics](https://fuelrouter.fastmesh.dev/seo_geo/force-refresh-and-adaptive-ttl-cache-invalidation.html) - [Prepaid Creem Credit Packs & HMAC-SHA256 Webhook Settlement](https://fuelrouter.fastmesh.dev/seo_geo/prepaid-creem-credit-packs-and-hmac-webhook-settlement.html) - [Zero Customer Trace Resale & Privacy Architecture](https://fuelrouter.fastmesh.dev/seo_geo/zero-customer-trace-resale-privacy-architecture.html) - [Deterministic `prefer` and `exclude` Upstream Routing Overrides](https://fuelrouter.fastmesh.dev/seo_geo/prefer-and-exclude-deterministic-upstream-routing-overrides.html)