{"openapi":"3.1.0","info":{"title":"llmhosting.ai Public Data API","version":"1.0.0","description":"Free JSON endpoints for normalized LLM API prices, GPU rental floors, and daily GPU price history. No API key required. Derived from LiteLLM (MIT), OpenRouter and Helicone public data plus Vast.ai, RunPod and Verda public APIs. Free to use with a link back to https://llmhosting.ai. Data regenerates with each daily refresh.","contact":{"url":"https://llmhosting.ai"},"license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}},"externalDocs":{"description":"Human docs and the llmhosting.ai MCP server, the interactive alternative to raw JSON","url":"https://llmhosting.ai/mcp-docs"},"servers":[{"url":"https://llmhosting.ai"}],"paths":{"/api/prices.json":{"get":{"operationId":"getLlmPrices","summary":"Normalized LLM API prices per provider — models priced by 2+ providers (top 300 by coverage); single-provider listings appear on the site but not in this payload","responses":{"200":{"description":"All tracked models with per-provider pricing","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"string","format":"date-time","description":"Last data refresh (ISO 8601)"},"source":{"type":"string","const":"https://llmhosting.ai"},"attribution":{"type":"string","description":"License and upstream-source note"},"models":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","description":"Model slug, e.g. \"gpt-4o\""},"name":{"type":"string","description":"Human display name"},"providers":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","description":"Provider slug, e.g. \"openai\", \"vast\""},"input_per_m":{"type":"number","description":"USD per 1M input tokens"},"output_per_m":{"type":"number","description":"USD per 1M output tokens"},"cache_read_per_m":{"type":["number","null"],"description":"USD per 1M cached input tokens, null when unpublished"},"context":{"type":["number","null"],"description":"Context window in tokens, null when unknown"}}},"description":"Sorted cheapest-first by input price"}}}}}}}}}}}},"/api/gpu-prices.json":{"get":{"operationId":"getGpuPrices","summary":"Current GPU rental quotes per card and provider (USD per GPU-hour)","responses":{"200":{"description":"All tracked GPUs with per-provider rental quotes","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"string","format":"date-time","description":"Last data refresh (ISO 8601)"},"source":{"type":"string","const":"https://llmhosting.ai"},"attribution":{"type":"string","description":"License and upstream-source note"},"gpus":{"type":"array","items":{"type":"object","properties":{"gpu":{"type":"string","description":"GPU name, e.g. \"H100 SXM\""},"vram_gb":{"type":["number","null"],"description":"VRAM in GB (null when unknown)"},"quotes":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","description":"Provider slug, e.g. \"vast\", \"runpod\""},"price_hr":{"type":"number","description":"Cheapest observed USD per GPU-hour"},"price_median_hr":{"type":["number","null"],"description":"Median USD per GPU-hour across live offers, null when single-quote"},"price_type":{"type":"string","description":"Quote tier, e.g. \"marketplace\", \"on-demand\""},"offers":{"type":["number","null"],"description":"Live offer count behind the quote, null when not a marketplace"}}},"description":"Sorted cheapest-first"}}}}}}}}}}}},"/api/gpu-history.json":{"get":{"operationId":"getGpuHistory","summary":"Daily GPU price history since 2026-07 (min per gpu/provider/tier per day)","responses":{"200":{"description":"The full daily time series","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","const":"https://llmhosting.ai"},"attribution":{"type":"string","description":"License and upstream-source note"},"fields":{"type":"object","description":"Legend for the compact row keys (g, p, t, h)"},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"Observation date (YYYY-MM-DD)"},"rows":{"type":"array","items":{"type":"object","properties":{"g":{"type":"string","description":"GPU name"},"p":{"type":"string","description":"Provider slug"},"t":{"type":"string","description":"Price tier"},"h":{"type":"number","description":"USD per GPU-hour (daily minimum)"}}}}}}}}}}}}}}},"/api/gpu-history.csv":{"get":{"operationId":"getGpuHistoryCsv","summary":"The same daily GPU price history as CSV, for spreadsheets and pandas","responses":{"200":{"description":"CSV with header row: date,gpu,provider,tier,usd_per_hr","content":{"text/csv":{"schema":{"type":"string"}}}}}}}}}