{
 "openapi": "3.0.0",
 "info": {
  "title": "LLM Prices API",
  "description": "LLM API pricing data: input, output, cache and batch rates per 1M tokens for OpenAI, Google, Anthropic, xAI, DeepSeek and Qwen models, with tracked price changes.",
  "version": "1.0.0",
  "contact": {
   "name": "LLM Prices",
   "url": "https://llmprices.org",
   "email": "llmprices@outlook.com"
  },
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 },
 "servers": [
  {
   "url": "https://llmprices.org"
  }
 ],
 "paths": {
  "/api/v1/prices": {
   "get": {
    "summary": "Get all model prices",
    "description": "Returns every tracked model with input/output/cache/batch rates (USD per 1M tokens). Hosted rates flagged with hosted=true.",
    "responses": {
     "200": {
      "description": "JSON object with source, updated date, count and models array"
     }
    }
   }
  }
 }
}