{"openapi":"3.1.0","info":{"title":"InferenceLatency.com API","description":"Measurement-backed routing API. **`GET /v1/should-call`** returns an advisory provider/model choice, measured short-request latency, model-specific pricing when verified, ranking_score and reasoning. Missing or stale evidence is explicit; confidence_score is null until calibrated. Also provides latency ranking, cost optimisation, reliability metrics, throughput, geographic latency, custom benchmarking, and competitive analysis across 15 providers. Free for most endpoints. Premium endpoints via x402 micropayments. MCP-enabled at `/mcp`.","version":"1.0.0"},"paths":{"/v1/routing-status":{"get":{"tags":["Builders"],"summary":"Read-only benchmark allowance, freshness and price evidence","operationId":"routing_status_json_v1_routing_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/should-call":{"get":{"tags":["Routing"],"summary":"Read-only, measurement-backed provider and model recommendation","description":"Ranks enabled native providers using persisted measurements for the currently configured model. No paid inference is triggered. Requires a successful latest sample within 15 minutes and at least 80% success across up to five fresh attempts. Filters on p95 latency and cost before ranking. Inputs: task_type (chat|code|reasoning|embedding|classification), latency_sensitivity (low|medium|high), cost_sensitivity (low|medium|high), provider (optional registry ID), max_latency_ms and max_cost_per_1k_tokens_usd (optional explicit limits). Cost sensitivity high/medium caps both input and output rates at $0.001/$0.004 per 1K tokens; low removes the cost cap and permits unknown prices without inventing a price. Task labels influence weights, not measured task quality. Embeddings require an explicit embedding capability. Outputs include model, measurement age/count, eligible alternatives and exclusion reasons. confidence_score is retained as null; ranking_score is a heuristic, not a probability. should_call=false means no verified choice meets policy, not that every provider is down or the task should be abandoned.","operationId":"should_call_v1_should_call_get","parameters":[{"name":"task_type","in":"query","required":false,"schema":{"enum":["chat","code","reasoning","embedding","classification"],"type":"string","default":"chat","title":"Task Type"}},{"name":"latency_sensitivity","in":"query","required":false,"schema":{"enum":["low","medium","high"],"type":"string","default":"medium","title":"Latency Sensitivity"}},{"name":"cost_sensitivity","in":"query","required":false,"schema":{"enum":["low","medium","high"],"type":"string","default":"medium","title":"Cost Sensitivity"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}],"title":"Provider"}},{"name":"max_latency_ms","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Max Latency Ms"}},{"name":"max_cost_per_1k_tokens_usd","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Max Cost Per 1K Tokens Usd"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/latency":{"get":{"tags":["Routing"],"summary":"All providers ranked by latency with agent guidance","description":"Tests all 15 active providers concurrently and returns a ranked list by TTFT. Every response includes an `ai_agent_guidance` field with recommended provider and fallback order. Use `/api/fastest` instead when you only need the single best provider.","operationId":"get_latency_latency_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/latency/human":{"get":{"summary":"Get Latency Human","description":"Human-friendly latency testing with beautiful UI","operationId":"get_latency_human_latency_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/throughput":{"get":{"summary":"Get Throughput Metrics","description":"Enhanced latency + throughput benchmarking endpoint","operationId":"get_throughput_metrics_throughput_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/throughput/human":{"get":{"summary":"Get Throughput Human","description":"Human-friendly throughput testing with beautiful UI","operationId":"get_throughput_human_throughput_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/cost-optimizer/human":{"get":{"summary":"Get Cost Optimizer Human","description":"Human-friendly cost optimization with beautiful UI","operationId":"get_cost_optimizer_human_cost_optimizer_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/status-page/human":{"get":{"summary":"Get Status Page Human","description":"Human-friendly status page with beautiful UI","operationId":"get_status_page_human_status_page_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/cost-optimizer":{"get":{"tags":["Cost"],"summary":"Cost-performance efficiency scores per provider","description":"Returns per-provider efficiency scores combining cost_per_token and latency. Use when cost matters as much as speed. For pure speed, use `/api/fastest`. For SLA decisions, use `/reliability-metrics`.","operationId":"cost_optimizer_endpoint_cost_optimizer_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/historical-performance":{"get":{"summary":"Historical Performance Endpoint","description":"Historical performance tracking endpoint","operationId":"historical_performance_endpoint_historical_performance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/historical-performance/human":{"get":{"summary":"Get Historical Performance Human","description":"Human-friendly historical performance with beautiful UI","operationId":"get_historical_performance_human_historical_performance_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/status-page":{"get":{"summary":"Status Page Endpoint","description":"Real-time provider status page","operationId":"status_page_endpoint_status_page_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ai-agent/batch-test":{"get":{"summary":"Batch Test Endpoint","description":"Batch testing endpoint for AI agents","operationId":"batch_test_endpoint_ai_agent_batch_test_get","parameters":[{"name":"providers","in":"query","required":false,"schema":{"type":"string","title":"Providers"}},{"name":"tests","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Tests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/favicon.svg":{"get":{"summary":"Favicon","description":"Serve the SVG favicon","operationId":"favicon_favicon_svg_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/og-image.png":{"get":{"summary":"Og Image","description":"Serve the Open Graph share image (1200x630)","operationId":"og_image_og_image_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/logo.png":{"get":{"summary":"Logo Image","description":"Serve the high-resolution square organization logo","operationId":"logo_image_logo_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","description":"HTML homepage for human users","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/info":{"get":{"summary":"Api Info","description":"JSON endpoint for API information - for AI agents","operationId":"api_info_api_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/advanced-benchmark":{"get":{"summary":"Advanced Benchmark Endpoint","operationId":"advanced_benchmark_endpoint_advanced_benchmark_get","parameters":[{"name":"test_type","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Test Type"}},{"name":"providers","in":"query","required":false,"schema":{"type":"string","title":"Providers"}},{"name":"reasoning_effort","in":"query","required":false,"schema":{"type":"string","default":"medium","title":"Reasoning Effort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health-legacy":{"get":{"summary":"Health Check Legacy","operationId":"health_check_legacy_health_legacy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/fastest":{"get":{"tags":["Routing"],"summary":"Primary endpoint for real-time inference routing decisions","description":"Returns the lowest-latency provider right now. Call this first when you need to route an inference request to the best available provider. Tests 15 active providers concurrently and returns the winner with latency in ms. No auth required. Results reflect live network conditions at time of call.","operationId":"get_fastest_provider_api_fastest_get","parameters":[{"name":"use_case","in":"query","required":false,"schema":{"type":"string","description":"Optional: chat | code | reasoning","title":"Use Case"},"description":"Optional: chat | code | reasoning"},{"name":"priority","in":"query","required":false,"schema":{"type":"string","description":"Routing priority: speed | cost | balanced | reliability","default":"speed","title":"Priority"},"description":"Routing priority: speed | cost | balanced | reliability"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/recommend":{"get":{"tags":["Routing"],"summary":"Natural language provider recommendation engine","description":"Accepts a free-text query (e.g. 'best model for real-time chat') and returns ranked providers with explanations. Uses rule-based intent detection to map the query to use_case + priority, then runs the same live routing decision as /api/fastest. No LLM required. No auth.","operationId":"recommend_provider_api_recommend_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"Natural language question about which provider to use","title":"Query"},"description":"Natural language question about which provider to use"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fastest/human":{"get":{"summary":"Get Fastest Human","description":"Human-friendly fastest provider display","operationId":"get_fastest_human_api_fastest_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/health":{"get":{"summary":"Health","description":"Health check endpoint with API key status","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/status":{"get":{"summary":"Get Provider Status","description":"Provider status from the latest real measurements, not key presence.","operationId":"get_provider_status_api_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/info":{"get":{"summary":"Get Api Info","description":"API metadata and rate limiting information for agents","operationId":"get_api_info_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/analytics":{"get":{"summary":"Get Analytics","description":"Usage analytics for service monitoring","operationId":"get_analytics_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/credits":{"get":{"summary":"Get Credits","description":"Check API credit balances for all providers. Add ?send_email=true to also email the report.","operationId":"get_credits_credits_get","parameters":[{"name":"send_email","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Send Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-tracking":{"get":{"summary":"Get Agent Tracking","description":"Detailed agent and MCP connection tracking - See who's using the API programmatically","operationId":"get_agent_tracking_agent_tracking_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/usage-league":{"get":{"summary":"Usage League Table","description":"Public API Usage League Table - Live scoreboard of endpoint popularity\n\nNote: This endpoint intentionally does NOT track itself to avoid\ninflating statistics from auto-refresh every 30 seconds.","operationId":"usage_league_table_usage_league_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/benchmark":{"get":{"summary":"Custom Benchmark","description":"Custom prompt benchmarking across AI providers\n\nParameters:\n- prompt: Custom prompt to test (default: \"Hi\")\n- max_tokens: Token limit for generation (default: 1)\n- providers: Comma-separated list of providers to test (default: all)","operationId":"custom_benchmark_benchmark_get","parameters":[{"name":"prompt","in":"query","required":false,"schema":{"type":"string","default":"Hi","title":"Prompt"}},{"name":"max_tokens","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Max Tokens"}},{"name":"providers","in":"query","required":false,"schema":{"type":"string","title":"Providers"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/agents.json":{"get":{"summary":"Agents Manifest","description":"agents.json — full endpoint reference for AI agent discovery","operationId":"agents_manifest__well_known_agents_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms.txt":{"get":{"summary":"Llms Txt","description":"llms.txt - concise machine-readable guide for LLM crawlers and AI assistants","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/llms-full.txt":{"get":{"summary":"Llms Full Txt","description":"llms-full.txt - comprehensive machine-readable API reference for LLM crawlers and agent frameworks","operationId":"llms_full_txt_llms_full_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/.well-known/security.txt":{"get":{"summary":"Security Txt","description":"security.txt — RFC 9116 security contact information","operationId":"security_txt__well_known_security_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/.well-known/mcp.json":{"get":{"summary":"Mcp Manifest","description":"MCP discovery manifest for AI assistants and agent frameworks","operationId":"mcp_manifest__well_known_mcp_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/ai-plugin.json":{"get":{"summary":"Ai Plugin Manifest","description":"AI plugin manifest for agent discovery (OpenAI plugin format)","operationId":"ai_plugin_manifest__well_known_ai_plugin_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/api-catalog":{"get":{"summary":"Api Catalog","description":"API Catalog (RFC 9727 / RFC 9264 linkset) — machine-readable catalog for agent discovery","operationId":"api_catalog__well_known_api_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/agent.json":{"get":{"summary":"A2A Agent Card","description":"A2A Agent Card (Google Agent-to-Agent protocol) — describes this service as an AI agent","operationId":"a2a_agent_card__well_known_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/agent-card.json":{"get":{"summary":"A2A Agent Card","description":"A2A Agent Card (Google Agent-to-Agent protocol) — describes this service as an AI agent","operationId":"a2a_agent_card__well_known_agent_card_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/agent-skills.json":{"get":{"summary":"Agent Skills","description":"Agent Skills index (Agent Skills Discovery RFC v0.2.0) — skills this service exposes to AI agents","operationId":"agent_skills__well_known_agent_skills_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/skills/index.json":{"get":{"summary":"Agent Skills","description":"Agent Skills index (Agent Skills Discovery RFC v0.2.0) — skills this service exposes to AI agents","operationId":"agent_skills__well_known_skills_index_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/agent-skills/index.json":{"get":{"summary":"Agent Skills","description":"Agent Skills index (Agent Skills Discovery RFC v0.2.0) — skills this service exposes to AI agents","operationId":"agent_skills__well_known_agent_skills_index_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/openid-configuration":{"get":{"summary":"Oauth Discovery","description":"OAuth/OIDC discovery metadata (RFC 8414 / OIDC Discovery) — declares no OAuth required for this public API","operationId":"oauth_discovery__well_known_openid_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"summary":"Oauth Discovery","description":"OAuth/OIDC discovery metadata (RFC 8414 / OIDC Discovery) — declares no OAuth required for this public API","operationId":"oauth_discovery__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"summary":"Oauth Protected Resource","description":"OAuth 2.0 Protected Resource Metadata (RFC 9728) — declares this resource requires no OAuth","operationId":"oauth_protected_resource__well_known_oauth_protected_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/submit":{"get":{"summary":"Submit Provider Form","description":"HTML form for developers to submit new LLM providers","operationId":"submit_provider_form_submit_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Submit Provider","description":"Process submitted LLM provider","operationId":"submit_provider_submit_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_submit_provider_submit_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/geographic-latency":{"get":{"summary":"Geographic Latency","description":"Geographic latency analysis across multiple regions\nSimulates testing from different continents for global optimization","operationId":"geographic_latency_geographic_latency_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/geographic-latency/human":{"get":{"summary":"Get Geographic Latency Human","description":"Human-friendly geographic latency with beautiful UI","operationId":"get_geographic_latency_human_geographic_latency_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/reliability-metrics":{"get":{"tags":["Reliability"],"summary":"P50/P95/P99 latency percentiles, error rates, SLA compliance","description":"Returns per-provider P50/P95/P99 latency percentiles, error rates, SLA compliance status, and quality grades. Use this — not `/api/fastest` — when making SLA-driven routing decisions. Single-point latency is noisy; P95/P99 from historical data is more reliable for production routing.","operationId":"reliability_metrics_reliability_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/reliability-metrics/human":{"get":{"summary":"Get Reliability Metrics Human","description":"Human-friendly reliability metrics with beautiful UI","operationId":"get_reliability_metrics_human_reliability_metrics_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/competitive-analysis":{"get":{"summary":"Competitive Analysis","description":"Competitive intelligence and industry benchmarking\nProvides market positioning insights and strategic recommendations","operationId":"competitive_analysis_competitive_analysis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/competitive-analysis/human":{"get":{"summary":"Get Competitive Analysis Human","description":"Human-friendly competitive analysis with beautiful UI","operationId":"get_competitive_analysis_human_competitive_analysis_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/submissions":{"get":{"summary":"Get All Submissions","description":"API endpoint to view all provider submissions","operationId":"get_all_submissions_submissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/stats":{"get":{"summary":"Admin Stats","description":"Single comprehensive monitoring endpoint for admin with HTML interface","operationId":"admin_stats_admin_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/agent-log":{"get":{"summary":"Admin Agent Log","description":"Persistent agent & visitor log from the database (last N hours).","operationId":"admin_agent_log_admin_agent_log_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}},{"name":"agents_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Agents Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/efficiency":{"get":{"summary":"Inference Efficiency","description":"Environmental impact analysis with energy consumption and carbon emissions tracking\nProvides estimated energy (Wh) and carbon (gCO₂e) per inference call","operationId":"inference_efficiency_efficiency_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/efficiency/human":{"get":{"summary":"Get Efficiency Human","description":"Human-friendly efficiency analysis with beautiful UI","operationId":"get_efficiency_human_efficiency_human_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/0e418848cf1a439bbc2d2d99148b6f99.txt":{"get":{"summary":"Indexnow Key File","description":"IndexNow key verification file — required by Bing/Yandex/DuckDuckGo protocol","operationId":"indexnow_key_file_0e418848cf1a439bbc2d2d99148b6f99_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/robots.txt":{"get":{"summary":"Robots","description":"Robots.txt for search engine crawling","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"summary":"Sitemap","description":"XML sitemap for search engines — indexes human-readable pages; JSON endpoints are canonical for data consumers","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response"}}}},"/comprehensive-report":{"get":{"summary":"Comprehensive Report","description":"Comprehensive performance report aggregating all metrics","operationId":"comprehensive_report_comprehensive_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/comprehensive-report/human":{"get":{"summary":"Comprehensive Report Human","description":"Human-readable comprehensive performance report","operationId":"comprehensive_report_human_comprehensive_report_human_get","parameters":[{"name":"snapshot","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Snapshot"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics":{"get":{"summary":"Metrics","description":"Get performance metrics from SQLite database","operationId":"metrics_metrics_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard":{"get":{"summary":"Dashboard","description":"Minimal HTML dashboard with Chart.js for live metrics","operationId":"dashboard_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pricing":{"get":{"tags":["Billing"],"summary":"Pricing page — Free, Pro, Team plans + x402 micropayments","operationId":"pricing_page_pricing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api-key":{"get":{"tags":["Billing"],"summary":"Get a free API key (100 req/day)","operationId":"api_key_page_api_key_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["Billing"],"summary":"Api Key Create","operationId":"api_key_create_api_key_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_api_key_create_api_key_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/my-usage":{"get":{"tags":["Usage"],"summary":"View your private API call history","operationId":"my_usage_my_usage_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/billing/checkout":{"post":{"tags":["Billing"],"summary":"Create Stripe Checkout session for Pro or Team subscription","operationId":"billing_checkout_billing_checkout_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_billing_checkout_billing_checkout_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/success":{"get":{"tags":["Billing"],"summary":"Billing Success","operationId":"billing_success_billing_success_get","parameters":[{"name":"session_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/cancel":{"get":{"tags":["Billing"],"summary":"Billing Cancel","operationId":"billing_cancel_billing_cancel_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/billing/webhook":{"post":{"tags":["Billing"],"summary":"Stripe webhook — handles subscription lifecycle events","operationId":"billing_webhook_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/portal":{"get":{"tags":["Billing"],"summary":"Redirect to Stripe Customer Portal to manage subscription","operationId":"billing_portal_billing_portal_get","parameters":[{"name":"customer_id","in":"query","required":true,"schema":{"type":"string","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/x402":{"get":{"tags":["Billing"],"summary":"x402 micropayment info — pay-per-request in USDC on Base for AI agents","operationId":"x402_info_x402_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_api_key_create_api_key_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_api_key_create_api_key_post"},"Body_billing_checkout_billing_checkout_post":{"properties":{"plan":{"type":"string","title":"Plan"},"email":{"type":"string","title":"Email"}},"type":"object","required":["plan","email"],"title":"Body_billing_checkout_billing_checkout_post"},"Body_submit_provider_submit_post":{"properties":{"provider_name":{"type":"string","title":"Provider Name"},"api_endpoint":{"type":"string","title":"Api Endpoint"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["provider_name","api_endpoint","api_key"],"title":"Body_submit_provider_submit_post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}