{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Free Inference",
  "type": "object",
  "required": [
    "title",
    "verified",
    "website",
    "columns",
    "providers"
  ],
  "properties": {
    "title": {
      "type": "string"
    },
    "tagline": {
      "type": "string"
    },
    "verified": {
      "type": "string",
      "description": "ISO date of last verification"
    },
    "website": {
      "type": "string",
      "format": "uri"
    },
    "repo": {
      "type": "string"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "url",
          "free_type",
          "verified",
          "models"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "free_type": {
            "type": "string",
            "enum": [
              "Rate-limited free",
              "Rate-limited free (Free Trial)",
              "Rate-limited free (Experiment)",
              "Promo free (limited time)",
              "Trial credits"
            ]
          },
          "notes": {
            "type": "string"
          },
          "timeout": {
            "type": "string"
          },
          "verified": {
            "type": "string"
          },
          "models": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "cost",
                "context",
                "rpm",
                "tpm",
                "rpd",
                "tpd",
                "verified"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "cost": {
                  "type": "string"
                },
                "context": {
                  "type": "string"
                },
                "rpm": {
                  "type": "string"
                },
                "tpm": {
                  "type": "string"
                },
                "rpd": {
                  "type": "string"
                },
                "tpd": {
                  "type": "string"
                },
                "verified": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
