{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://0xcopy.github.io/models-metadata/schemas/facts.v0.json",
  "title": "Model facts v0 (proposal)",
  "description": "How one route serves one model, at one layer (model, provider or account). Every member is optional. Absent: unknown at this layer. null: documented as not applying here, which overrides a less specific layer. Arrays replace. See spec/profile.md.",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "layer": {
      "enum": [
        "model",
        "provider",
        "account"
      ]
    },
    "as_of": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
    },
    "scope": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "openapi": {
          "type": "string",
          "description": "URL of the OpenAPI or AsyncAPI description of the route."
        },
        "operation": {
          "type": "string",
          "description": "operationId in that description."
        },
        "api_version": {
          "type": "string"
        },
        "plan": {
          "type": "string"
        },
        "client": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "tier": {
          "type": "string",
          "description": "Service tier this document describes, in the provider's spelling, when its facts differ by more than a price multiplier."
        },
        "protocol": {
          "type": "string",
          "description": "Wire protocol for a route with no OpenAPI description, for example acp or json-rpc over stdio."
        },
        "wire": {
          "type": "string",
          "description": "Request and response format family when no operation is named, for example openai-chat-completions, openai-responses, anthropic-messages, gemini-generate-content, ollama-chat. Pi, opencode, Cline and Zed each name this; use their shared spellings where they agree."
        },
        "base_url": {
          "type": "string",
          "description": "Base URL of the route."
        }
      },
      "additionalProperties": false
    },
    "identity": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "family": {
              "type": "string"
            },
            "released": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
            },
            "knowledge_cutoff": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
            },
            "open_weights": {
              "type": "boolean"
            },
            "parameters": {
              "type": "integer",
              "minimum": 0
            },
            "active_parameters": {
              "type": "integer",
              "minimum": 0
            },
            "aliases": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true
            },
            "snapshots": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "name": {
              "type": "string",
              "description": "Display name."
            },
            "type": {
              "enum": [
                "chat",
                "image",
                "video",
                "embedding",
                "reranking",
                "decision",
                "transcription",
                "speech",
                "realtime",
                "extraction",
                "audio"
              ],
              "description": "What the model produces. Values from the models.dev v2 model type."
            },
            "updated": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
            },
            "license": {
              "type": "string",
              "description": "SPDX identifier or license name of the weights."
            },
            "canonical": {
              "type": "string",
              "description": "The model id this id is an alias or snapshot of."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "access": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "availability": {
              "enum": [
                "general",
                "limited",
                "preview"
              ]
            },
            "programs": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "Access programs or entitlements an account must hold to use the model."
            },
            "auth": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "OpenAPI security scheme types, with the scheme or flow after a colon: apiKey, http:bearer, oauth2:authorizationCode, oauth2:deviceAuthorization, mutualTLS."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "headers": {
              "type": "object",
              "additionalProperties": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "Request headers the route requires, with the fixed value or null when the value is the caller's (for example an API version or beta flag)."
            },
            "query": {
              "type": "object",
              "additionalProperties": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "Query parameters the route requires (for example api-version), fixed value or null for the caller's."
            },
            "body": {
              "type": "object",
              "description": "Members the route requires in every request body, with their values."
            },
            "regions": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "Regions where the route is served."
            },
            "catalog_url": {
              "type": "string",
              "description": "URL of the model list the route serves."
            },
            "endpoints": {
              "type": "object",
              "additionalProperties": {
                "enum": [
                  "supported",
                  "ignored",
                  "rejected",
                  "unsupported"
                ],
                "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
              },
              "description": "Endpoint path or operationId to whether it serves this model (an OpenAI model page's endpoint table, LiteLLM supported_endpoints)."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "context": {
              "type": "integer",
              "minimum": 0
            },
            "input": {
              "type": "integer",
              "minimum": 0
            },
            "output": {
              "type": "integer",
              "minimum": 0
            },
            "trained_context": {
              "type": "integer",
              "minimum": 0
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "request_bytes": {
              "type": "integer",
              "minimum": 0,
              "description": "Largest serialized request body accepted."
            },
            "images_per_message": {
              "type": "integer",
              "minimum": 0
            },
            "images_per_request": {
              "type": "integer",
              "minimum": 0
            },
            "image": {
              "type": "object",
              "properties": {
                "max_width": {
                  "type": "integer",
                  "minimum": 0
                },
                "max_height": {
                  "type": "integer",
                  "minimum": 0
                },
                "max_bytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "min_width": {
                  "type": "integer",
                  "minimum": 0
                },
                "min_height": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false,
              "description": "Largest image accepted, per image."
            },
            "pdf": {
              "type": "object",
              "properties": {
                "max_per_request": {
                  "type": "integer",
                  "minimum": 0
                },
                "max_bytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "max_pages": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false,
              "description": "PDF input limits (models.dev v2 names)."
            },
            "stop_sequences": {
              "type": "integer",
              "minimum": 0,
              "description": "Most stop sequences a request may carry."
            },
            "audio_seconds": {
              "type": "integer",
              "minimum": 0,
              "description": "Longest audio input."
            },
            "video_seconds": {
              "type": "integer",
              "minimum": 0,
              "description": "Longest video input."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false,
          "description": "Token limits as served on this route. trained_context is the model's own maximum."
        },
        {
          "type": "null"
        }
      ]
    },
    "modalities": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "input": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true
            },
            "output": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "tool_result": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "Input modalities accepted inside a tool result."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "tools": {
      "type": "object",
      "additionalProperties": {
        "enum": [
          "supported",
          "ignored",
          "rejected",
          "unsupported"
        ],
        "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
      },
      "description": "Hosted tool name to support."
    },
    "function_calling": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "strict": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "parallel": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "grammar": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "eager_input_streaming": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "cache_control_on_tools": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "additional_tools": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "client_tool_search": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "choice": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "Accepted tool_choice values."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "available": {
              "type": "boolean",
              "description": "The route accepts function tool definitions."
            },
            "schema_defs": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "$defs and $ref inside a tool's parameter schema."
            },
            "schema_keywords": {
              "enum": [
                "all",
                "subset"
              ],
              "description": "Whether every JSON Schema keyword is honored in tool and response schemas."
            },
            "with_hosted_tools": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "Function tools in the same request as hosted tools such as search."
            },
            "overhead_tokens": {
              "type": "integer",
              "minimum": 0,
              "description": "Input tokens the route adds when tools are present."
            },
            "tool_formats": {
              "type": "object",
              "additionalProperties": {
                "enum": [
                  "function",
                  "freeform",
                  "hosted"
                ]
              },
              "description": "Tool name to the definition format the model is trained for (for example apply_patch: freeform)."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false,
          "description": "Function and custom tool definitions the route accepts."
        },
        {
          "type": "null"
        }
      ]
    },
    "reasoning": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "param": {
              "type": "string"
            },
            "levels": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "boolean"
                ]
              }
            },
            "default": {
              "type": [
                "string",
                "boolean"
              ]
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "can_disable": {
              "type": "boolean"
            },
            "remap": {
              "type": "object",
              "additionalProperties": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "Requested level to the value the server applies or the wire carries; null marks a level the route does not accept."
            },
            "budget": {
              "type": "object",
              "properties": {
                "param": {
                  "type": "string",
                  "description": "JSON Pointer (RFC 6901)."
                },
                "min": {
                  "type": "integer",
                  "minimum": 0
                },
                "max": {
                  "type": "integer",
                  "minimum": 0
                },
                "default": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false,
              "description": "Token budget for reasoning, where the route takes one."
            },
            "display": {
              "type": "object",
              "properties": {
                "param": {
                  "type": "string",
                  "description": "JSON Pointer (RFC 6901)."
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "uniqueItems": true
                },
                "default": {
                  "type": "string"
                },
                "support": {
                  "enum": [
                    "supported",
                    "ignored",
                    "rejected",
                    "unsupported"
                  ],
                  "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
                }
              },
              "additionalProperties": false,
              "description": "Whether reasoning text or a summary is returned."
            },
            "output": {
              "type": "string",
              "description": "JSON Pointer to the reasoning text in a response."
            },
            "interleaved": {
              "type": "boolean",
              "description": "Reasoning can occur between tool calls within one response."
            },
            "enable_param": {
              "type": "string",
              "description": "JSON Pointer to the on/off switch for reasoning, when it is separate from the level (for example /chat_template_kwargs/enable_thinking)."
            },
            "mid_conversation": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "Changing the level mid-conversation without invalidating the cache."
            },
            "modes": {
              "type": "array",
              "items": {
                "enum": [
                  "effort",
                  "budget",
                  "adaptive",
                  "toggle"
                ]
              },
              "uniqueItems": true,
              "description": "How reasoning is controlled: an effort level, a token budget, adaptive (the model decides), or on/off."
            },
            "in_text_tag": {
              "type": "string",
              "description": "Tag that wraps reasoning inside the text output (for example think), when reasoning has no field of its own."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false,
          "description": "levels are the values the request field accepts, in the provider's spelling. An empty levels array means the model accepts no reasoning parameters at all."
        },
        {
          "type": "null"
        }
      ]
    },
    "replay": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "fields": {
              "type": "object",
              "additionalProperties": {
                "enum": [
                  "required",
                  "accepted",
                  "ignored",
                  "rejected"
                ]
              },
              "description": "Response fields or blocks, in the provider's spelling, and whether the next request must send them back unchanged."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false,
          "description": "What a client must send back on the next turn for the conversation to continue (encrypted reasoning, signatures, item ids)."
        },
        {
          "type": "null"
        }
      ]
    },
    "messages": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "developer_role": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "system_mid_conversation": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "tools_mid_conversation": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "tool_result_name": {
              "enum": [
                "required",
                "accepted",
                "ignored",
                "rejected"
              ]
            },
            "assistant_after_tool_result": {
              "enum": [
                "required",
                "accepted"
              ],
              "description": "A user message after tool results needs an assistant message in between."
            },
            "assistant_content_null": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "A tool-call-only assistant message may carry null content (else empty string)."
            },
            "tools_with_tool_history": {
              "enum": [
                "required",
                "accepted"
              ],
              "description": "Requests whose history holds tool calls must also send a tools array."
            },
            "reasoning_in_history": {
              "enum": [
                "blocks",
                "text",
                "field",
                "dropped"
              ],
              "description": "How replayed reasoning must appear: native blocks, text with delimiters, an empty or filled reasoning field, or dropped."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "media_placement": {
              "type": "string",
              "description": "Where media goes in a request when the wire is not the standard one for its family (models.dev v2 compatibility.media_input: assets, state, root)."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false,
          "description": "Message-shape rules of the route's wire."
        },
        {
          "type": "null"
        }
      ]
    },
    "controls": {
      "type": "object",
      "description": "Sampling and request controls, keyed by request field name.",
      "additionalProperties": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "support": {
                "enum": [
                  "supported",
                  "ignored",
                  "rejected",
                  "unsupported"
                ],
                "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
              },
              "default": true,
              "min": {
                "type": "number"
              },
              "max": {
                "type": "number"
              },
              "recommended": {
                "type": "object",
                "additionalProperties": true,
                "description": "Value recommended by the provider, keyed by task or by reasoning level (the level names in reasoning.levels)."
              },
              "source": {
                "type": "string",
                "description": "URL of the page or API response the values come from."
              },
              "basis": {
                "enum": [
                  "published",
                  "reported",
                  "measured",
                  "contracted",
                  "assumed"
                ],
                "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
              },
              "note": {
                "type": "string"
              },
              "values": {
                "type": "object",
                "additionalProperties": {
                  "enum": [
                    "supported",
                    "ignored",
                    "rejected",
                    "unsupported"
                  ],
                  "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
                },
                "description": "Support for particular values of the field, for example response_format types."
              }
            },
            "patternProperties": {
              "^x-": true
            },
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "template": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "format": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "rendered_by": {
              "enum": [
                "server",
                "client"
              ]
            },
            "kwargs": {
              "type": "object",
              "description": "Template variables the request may set, with their defaults."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "caching": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "implicit": {
              "type": "object",
              "properties": {
                "available": {
                  "type": "boolean"
                },
                "on_by_default": {
                  "type": "boolean"
                },
                "param": {
                  "type": "string",
                  "description": "Request field that turns it on or sets breakpoints."
                },
                "min_tokens": {
                  "type": "integer",
                  "minimum": 0
                },
                "ttl": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                  },
                  "uniqueItems": true
                },
                "default_ttl": {
                  "type": "string",
                  "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                },
                "ttl_is": {
                  "enum": [
                    "minimum",
                    "sliding",
                    "best_effort"
                  ]
                },
                "refresh_on_hit": {
                  "type": "boolean"
                },
                "max_writes": {
                  "type": "integer",
                  "minimum": 0
                },
                "ttl_param": {
                  "type": "string",
                  "description": "Request field that selects the lifetime."
                },
                "observed": {
                  "type": "object",
                  "properties": {
                    "read_back": {
                      "type": "boolean",
                      "description": "A later request inside the lifetime read the prefix."
                    },
                    "rewrites_on_hit": {
                      "type": "boolean",
                      "description": "A hit still wrote as many tokens as it read."
                    },
                    "lifetime": {
                      "type": "string",
                      "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$",
                      "description": "Longest gap after which a read still succeeded, when shorter than the documented lifetime."
                    },
                    "hits": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "misses": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "sessions": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "since": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
                    },
                    "until": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
                    }
                  },
                  "additionalProperties": false,
                  "description": "What a client observed, as opposed to what the provider documents."
                },
                "targets": {
                  "type": "array",
                  "items": {
                    "enum": [
                      "tools",
                      "system",
                      "messages"
                    ]
                  },
                  "uniqueItems": true,
                  "description": "Parts of the request that can carry a cache marker (models.dev v2 names)."
                },
                "max_breakpoints": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Most cache markers per request."
                }
              },
              "additionalProperties": false
            },
            "explicit": {
              "type": "object",
              "properties": {
                "available": {
                  "type": "boolean"
                },
                "on_by_default": {
                  "type": "boolean"
                },
                "param": {
                  "type": "string",
                  "description": "Request field that turns it on or sets breakpoints."
                },
                "min_tokens": {
                  "type": "integer",
                  "minimum": 0
                },
                "ttl": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                  },
                  "uniqueItems": true
                },
                "default_ttl": {
                  "type": "string",
                  "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                },
                "ttl_is": {
                  "enum": [
                    "minimum",
                    "sliding",
                    "best_effort"
                  ]
                },
                "refresh_on_hit": {
                  "type": "boolean"
                },
                "max_writes": {
                  "type": "integer",
                  "minimum": 0
                },
                "ttl_param": {
                  "type": "string",
                  "description": "Request field that selects the lifetime."
                },
                "observed": {
                  "type": "object",
                  "properties": {
                    "read_back": {
                      "type": "boolean",
                      "description": "A later request inside the lifetime read the prefix."
                    },
                    "rewrites_on_hit": {
                      "type": "boolean",
                      "description": "A hit still wrote as many tokens as it read."
                    },
                    "lifetime": {
                      "type": "string",
                      "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$",
                      "description": "Longest gap after which a read still succeeded, when shorter than the documented lifetime."
                    },
                    "hits": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "misses": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "sessions": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "since": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
                    },
                    "until": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
                    }
                  },
                  "additionalProperties": false,
                  "description": "What a client observed, as opposed to what the provider documents."
                },
                "targets": {
                  "type": "array",
                  "items": {
                    "enum": [
                      "tools",
                      "system",
                      "messages"
                    ]
                  },
                  "uniqueItems": true,
                  "description": "Parts of the request that can carry a cache marker (models.dev v2 names)."
                },
                "max_breakpoints": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Most cache markers per request."
                }
              },
              "additionalProperties": false
            },
            "usage": {
              "type": "object",
              "properties": {
                "read": {
                  "type": "string"
                },
                "write": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "description": "JSON Pointers to the cache counters in a response."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "key_param": {
              "type": "string",
              "description": "Request field that routes requests to the same cache (for example /prompt_cache_key)."
            },
            "affinity": {
              "type": "object",
              "properties": {
                "headers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "uniqueItems": true
                },
                "param": {
                  "type": "string",
                  "description": "JSON Pointer (RFC 6901)."
                }
              },
              "additionalProperties": false,
              "description": "Session-affinity headers or field that keep requests on the replica holding the cache."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "streaming": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "available": {
              "type": "boolean"
            },
            "usage": {
              "enum": [
                "supported",
                "ignored",
                "rejected",
                "unsupported"
              ],
              "description": "supported: honored. ignored: accepted and not applied. rejected: the request fails. unsupported: documented as not supported, effect not stated."
            },
            "usage_param": {
              "type": "string",
              "description": "Request field that asks for usage in the stream, for example /stream_options/include_usage."
            },
            "finish_reason": {
              "type": "boolean",
              "description": "Streamed responses carry a finish reason."
            },
            "tool_call_deltas_param": {
              "type": "string",
              "description": "JSON Pointer (RFC 6901)."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "service_tiers": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "param": {
              "type": "string",
              "description": "JSON Pointer (RFC 6901)."
            },
            "default": {
              "type": "string"
            },
            "available": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true
            },
            "price_multiplier": {
              "type": "object",
              "additionalProperties": {
                "type": "number",
                "minimum": 0
              },
              "description": "Tier name to multiplier on the token prices."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "modes": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "headers": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "body": {
                "type": "object"
              },
              "service_tier": {
                "type": "string"
              },
              "limit": {
                "type": "object",
                "properties": {
                  "context": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "output": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              "note": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "description": "Named request options that change the route's behaviour (fast output, a larger context), as models.dev v2 experimental.modes. Their prices are overrides with a mode condition."
        },
        {
          "type": "null"
        }
      ]
    },
    "batch": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "available": {
              "type": "boolean"
            },
            "price_multiplier": {
              "type": "number",
              "minimum": 0
            },
            "window": {
              "type": "string",
              "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
            },
            "operation": {
              "type": "string"
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false,
          "description": "Asynchronous batch processing of requests for this model."
        },
        {
          "type": "null"
        }
      ]
    },
    "pricing": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "billing": {
              "enum": [
                "metered",
                "subscription",
                "credits",
                "free",
                "x402"
              ]
            },
            "currency": {
              "type": "string",
              "pattern": "^[A-Z]{3}$",
              "description": "ISO 4217 code, or the provider's credit unit (for example DBU) when it bills in credits."
            },
            "tokens": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "per": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "input": {
                      "type": "number",
                      "minimum": 0
                    },
                    "output": {
                      "type": "number",
                      "minimum": 0
                    },
                    "reasoning": {
                      "type": "number",
                      "minimum": 0
                    },
                    "cache_read": {
                      "type": "number",
                      "minimum": 0
                    },
                    "cache_write": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "anyOf": [
                          {
                            "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                          },
                          {
                            "const": "unspecified"
                          }
                        ]
                      },
                      "additionalProperties": {
                        "type": "number",
                        "minimum": 0
                      },
                      "description": "Price per write, keyed by cache lifetime (ISO 8601 duration), or unspecified when the source gives no lifetime."
                    },
                    "overrides": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "above_input_tokens": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "up_to_input_tokens": {
                            "type": "integer",
                            "minimum": 0,
                            "description": "Applies while input is at most this."
                          },
                          "service_tier": {
                            "type": "string"
                          },
                          "mode": {
                            "type": "string",
                            "description": "A key of modes."
                          },
                          "batch": {
                            "type": "boolean"
                          },
                          "thinking": {
                            "type": "boolean",
                            "description": "Applies when reasoning is on (true) or off (false)."
                          },
                          "region": {
                            "type": "string"
                          },
                          "utc_hours": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 24
                            },
                            "minItems": 2,
                            "maxItems": 2,
                            "description": "[from, to) in UTC hours."
                          },
                          "utc_days": {
                            "type": "array",
                            "items": {
                              "enum": [
                                "mon",
                                "tue",
                                "wed",
                                "thu",
                                "fri",
                                "sat",
                                "sun"
                              ]
                            },
                            "uniqueItems": true
                          },
                          "input": {
                            "type": "number",
                            "minimum": 0
                          },
                          "output": {
                            "type": "number",
                            "minimum": 0
                          },
                          "reasoning": {
                            "type": "number",
                            "minimum": 0
                          },
                          "cache_read": {
                            "type": "number",
                            "minimum": 0
                          },
                          "cache_write": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                            },
                            "additionalProperties": {
                              "type": "number",
                              "minimum": 0
                            },
                            "description": "Price per write, keyed by cache lifetime (ISO 8601 duration)."
                          },
                          "modalities": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "input": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "output": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "cache_read": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "cache_write": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "anyOf": [
                                      {
                                        "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                                      },
                                      {
                                        "const": "unspecified"
                                      }
                                    ]
                                  },
                                  "additionalProperties": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "description": "Price per write, keyed by cache lifetime (ISO 8601 duration), or unspecified when the source gives no lifetime."
                                }
                              },
                              "additionalProperties": false
                            },
                            "description": "Rates for tokens of one modality (audio, image, video), with the same per."
                          }
                        },
                        "additionalProperties": false
                      },
                      "description": "Rates that replace the base rates when every condition present holds. Condition names follow models.dev v2 `when` keys, each with one fixed meaning: above_input_tokens is greater-than, up_to_input_tokens is at-most, the rest are equality. When several overrides match, the last one wins."
                    },
                    "modalities": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "input": {
                            "type": "number",
                            "minimum": 0
                          },
                          "output": {
                            "type": "number",
                            "minimum": 0
                          },
                          "cache_read": {
                            "type": "number",
                            "minimum": 0
                          },
                          "cache_write": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "anyOf": [
                                {
                                  "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                                },
                                {
                                  "const": "unspecified"
                                }
                              ]
                            },
                            "additionalProperties": {
                              "type": "number",
                              "minimum": 0
                            },
                            "description": "Price per write, keyed by cache lifetime (ISO 8601 duration), or unspecified when the source gives no lifetime."
                          }
                        },
                        "additionalProperties": false
                      },
                      "description": "Rates for tokens of one modality (audio, image, video), with the same per."
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "time": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "gpu_hour": {
                      "type": "number",
                      "minimum": 0
                    },
                    "gpu": {
                      "type": "string"
                    },
                    "gpus": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "market": {
                      "enum": [
                        "on_demand",
                        "spot",
                        "interruptible",
                        "reserved"
                      ]
                    },
                    "increment": {
                      "type": "string",
                      "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                    },
                    "minimum": {
                      "type": "string",
                      "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "transfer": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "unit_bytes": {
                      "enum": [
                        1000000000,
                        1073741824
                      ]
                    },
                    "ingress": {
                      "type": "number",
                      "minimum": 0
                    },
                    "egress": {
                      "type": "number",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false,
                  "description": "Price per unit_bytes moved."
                },
                {
                  "type": "null"
                }
              ]
            },
            "calls": {
              "type": "object",
              "additionalProperties": {
                "type": "number",
                "minimum": 0
              },
              "description": "Price per call, keyed by tool or endpoint."
            },
            "units": {
              "type": "object",
              "additionalProperties": {
                "type": "number",
                "minimum": 0
              },
              "description": "Price per non-token unit, keyed <direction>_<unit>[_<qualifier>], for example input_image, output_second_1080p, output_image_1024, input_page."
            },
            "recurring": {
              "type": "object",
              "properties": {
                "month": {
                  "type": "number",
                  "minimum": 0
                },
                "year": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            "x402": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "integer",
                  "minimum": 1
                },
                "schemes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "uniqueItems": true
                },
                "networks": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "uniqueItems": true
                }
              },
              "additionalProperties": false
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "storage": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "gb_month": {
                      "type": "number",
                      "minimum": 0
                    },
                    "gb_day": {
                      "type": "number",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "regional_multiplier": {
              "type": "number",
              "minimum": 0,
              "description": "Multiplier for regional processing."
            },
            "reported_cost": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "JSON Pointer to the charged cost in a response."
                },
                "operation": {
                  "type": "string",
                  "description": "operationId that returns charged cost for past requests."
                }
              },
              "additionalProperties": false,
              "description": "Where the provider reports what it actually charged."
            },
            "free_calls": {
              "type": "object",
              "additionalProperties": {
                "type": "integer",
                "minimum": 0
              },
              "description": "Calls included free, keyed like calls."
            },
            "calls_per": {
              "type": "integer",
              "minimum": 1,
              "description": "How many calls one calls price buys (1 by default; 1000 for a price per thousand searches)."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "rate_limits": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "requests_per_minute": {
              "type": "integer",
              "minimum": 0
            },
            "tokens_per_minute": {
              "type": "integer",
              "minimum": 0
            },
            "input_tokens_per_minute": {
              "type": "integer",
              "minimum": 0
            },
            "output_tokens_per_minute": {
              "type": "integer",
              "minimum": 0
            },
            "requests_per_day": {
              "type": "integer",
              "minimum": 0
            },
            "tokens_per_day": {
              "type": "integer",
              "minimum": 0
            },
            "concurrent": {
              "type": "integer",
              "minimum": 0,
              "description": "In-flight requests allowed. The flat total; concurrency names what it counts and what waits."
            },
            "concurrency": {
              "type": "object",
              "description": "The shape of the route's concurrency: which resource is bounded, in what unit, and what happens to the rest.",
              "properties": {
                "requests": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Requests in flight at once."
                },
                "tokens": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Tokens in flight at once, input and output together."
                },
                "input_tokens": {
                  "type": "integer",
                  "minimum": 0
                },
                "output_tokens": {
                  "type": "integer",
                  "minimum": 0
                },
                "streams": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Open streaming responses at once."
                },
                "slots": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Decode slots on the deployment (llama.cpp --parallel, vLLM max-num-seqs)."
                },
                "scope": {
                  "enum": [
                    "request",
                    "key",
                    "account",
                    "deployment",
                    "model"
                  ],
                  "description": "What the counts are per: one request's own share, a credential, an account, a deployment, or the model across routes."
                },
                "queue": {
                  "type": "object",
                  "description": "What the route does with work past the concurrency bound.",
                  "properties": {
                    "depth": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "wait": {
                      "type": "string",
                      "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                    },
                    "policy": {
                      "enum": [
                        "fifo",
                        "priority",
                        "reject"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "batch": {
                  "type": "object",
                  "description": "Concurrency of asynchronous batch work, where it differs from the synchronous route.",
                  "properties": {
                    "requests": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "tokens": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "window": {
                      "type": "string",
                      "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "patternProperties": {
                "^x-": true
              },
              "additionalProperties": false
            },
            "counts_cache_reads": {
              "type": "boolean",
              "description": "Cache reads count toward the input token limit."
            },
            "spend_cap_month": {
              "type": "number",
              "minimum": 0
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "Response headers that report the remaining limit."
            },
            "windows": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "period": {
                    "type": "string",
                    "pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?$"
                  },
                  "used_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "resets_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
                  }
                },
                "additionalProperties": false
              }
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "sessions": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "server_state": {
              "type": "boolean",
              "description": "The provider stores responses or conversations that later requests can reference."
            },
            "compaction": {
              "type": "boolean"
            },
            "background": {
              "type": "boolean"
            },
            "resume": {
              "type": "boolean"
            },
            "steer": {
              "type": "boolean"
            },
            "subagents": {
              "type": "boolean"
            },
            "transports": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "Listed in the provider's order of preference."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "routing": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "aggregator": {
              "type": "boolean",
              "description": "The route resells models served by other upstreams."
            },
            "upstreams": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true
            },
            "upstream_field": {
              "type": "string",
              "description": "JSON Pointer to the upstream that served a response."
            },
            "model_author": {
              "type": "boolean",
              "description": "The route is the model's own publisher."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "preferences_param": {
              "type": "string",
              "description": "Request field holding upstream routing preferences (for example /provider)."
            },
            "fallback_models": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "uniqueItems": true,
              "description": "Models the route may serve instead, for example on refusal, and that a request may name."
            },
            "fallback_param": {
              "type": "string",
              "description": "JSON Pointer (RFC 6901)."
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "deployment": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "engine": {
              "type": "string"
            },
            "format": {
              "type": "string"
            },
            "quantization": {
              "type": "string"
            },
            "precision": {
              "type": "string"
            },
            "profile": {
              "type": "string"
            },
            "gpu": {
              "type": "string"
            },
            "gpus": {
              "type": "integer",
              "minimum": 1
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "size_bytes": {
              "type": "integer",
              "minimum": 0
            },
            "vram_bytes": {
              "type": "integer",
              "minimum": 0
            },
            "kv_bytes_per_token": {
              "type": "integer",
              "minimum": 0
            },
            "sliding_window": {
              "type": "integer",
              "minimum": 0
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "embeddings": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "dimensions": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 1
              },
              "uniqueItems": true
            },
            "dimensions_param": {
              "type": "string",
              "description": "JSON Pointer (RFC 6901)."
            },
            "max_batch_size": {
              "type": "integer",
              "minimum": 0
            },
            "prefixes": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              },
              "description": "Text the model expects before an input, keyed by task (query, document)."
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "balance": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "credits_included": {
              "type": "number",
              "minimum": 0
            },
            "credits_purchased": {
              "type": "number",
              "minimum": 0
            },
            "allowance": {
              "type": "number",
              "minimum": 0
            },
            "period_until": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false,
          "description": "Account balances at the time read (basis measured)."
        },
        {
          "type": "null"
        }
      ]
    },
    "lifecycle": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "deprecation": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
            },
            "sunset": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
            },
            "replacement": {
              "type": "string"
            },
            "source": {
              "type": "string",
              "description": "URL of the page or API response the values come from."
            },
            "basis": {
              "enum": [
                "published",
                "reported",
                "measured",
                "contracted",
                "assumed"
              ],
              "description": "published: a docs page or public catalog. reported: returned by the provider's API for this account. measured: observed by a client. contracted: negotiated terms. assumed: illustrative."
            },
            "note": {
              "type": "string"
            },
            "stage": {
              "enum": [
                "alpha",
                "beta",
                "preview",
                "general",
                "legacy",
                "deprecated"
              ]
            },
            "released": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2}))?$"
            }
          },
          "patternProperties": {
            "^x-": true
          },
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "patternProperties": {
    "^x-": true
  },
  "additionalProperties": false
}
