{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"number","const":1},"scope":{"type":"string","const":"published-model-specs/all-types"},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataUpdatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"counts":{"type":"object","properties":{"models":{"type":"integer","minimum":0,"maximum":9007199254740991},"developers":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["models","developers"],"additionalProperties":false},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"data":{"type":"object","properties":{"models":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"additionalProperties":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"name":{"type":"string","minLength":1},"developerId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"familyId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"description":{"type":"string"},"releaseDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-\\d{2}(-\\d{2}(T.*Z)?)?)?$"},{"type":"null"}]},"lastUpdated":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-\\d{2}(-\\d{2}(T.*Z)?)?)?$"},{"type":"null"}]},"lifecycle":{"anyOf":[{"type":"string","enum":["alpha","beta","active","deprecated","retired"]},{"type":"null"}]},"externalIds":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}},"tasks":{"type":"array","items":{"type":"string"}},"modalities":{"type":"object","properties":{"input":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"output":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["input","output"],"additionalProperties":false},"fileFormats":{"type":"object","properties":{"input":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"output":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["input","output"],"additionalProperties":false},"parameters":{"type":"object","properties":{"totalBillions":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"activeBillions":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"additionalProperties":false},"architecture":{"anyOf":[{"type":"string"},{"type":"null"}]},"knowledgeCutoff":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-\\d{2}(-\\d{2}(T.*Z)?)?)?$"},{"type":"null"}]},"languages":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"openWeights":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"modelLicense":{"anyOf":[{"type":"string"},{"type":"null"}]},"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"label":{"type":"string"},"type":{"type":"string"}},"required":["url"],"additionalProperties":false}},"weights":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"label":{"type":"string"},"format":{"type":"string"},"quantization":{"type":"string"}},"required":["url"],"additionalProperties":false}},"specs":{"type":"object","properties":{"text":{"type":"object","properties":{"contextWindowTokens":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxInputTokens":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxOutputTokens":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"tokenizer":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"image":{"type":"object","properties":{"generation":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"editing":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"multiReference":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"documentedSizes":{"description":"Sizes demonstrated in official inference examples; not a declaration of an exhaustive set or a maximum.","anyOf":[{"type":"array","items":{"type":"object","properties":{"widthPixels":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"heightPixels":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["widthPixels","heightPixels"],"additionalProperties":false}},{"type":"null"}]},"maxPerMessage":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxPerRequest":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxBytes":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"minWidthPixels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"minHeightPixels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxWidthPixels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxHeightPixels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxPixels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxReferenceImages":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"aspectRatios":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"sizes":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"widthPixels":{"type":"number","minimum":0},"heightPixels":{"type":"number","minimum":0}},"required":["widthPixels","heightPixels"],"additionalProperties":false}},{"type":"null"}]}},"additionalProperties":false},"video":{"type":"object","properties":{"durationSeconds":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"framesPerSecond":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxWidthPixels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxHeightPixels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"additionalProperties":false},"audio":{"type":"object","properties":{"sampleRateHz":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"channels":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"durationSeconds":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"additionalProperties":false},"embedding":{"type":"object","properties":{"dimensions":{"anyOf":[{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},{"type":"null"}]},"maxInputTokens":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"additionalProperties":false},"document":{"type":"object","properties":{"maxPerRequest":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxBytes":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"maxPages":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"additionalProperties":false},"request":{"type":"object","properties":{"maxBytes":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false},"capabilities":{"type":"object","properties":{"reasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"toolCalling":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"temperature":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"topP":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"topK":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"tools":{"type":"object","properties":{"strict":{"type":"boolean"},"choice":{"type":"array","items":{"type":"string"}},"search":{"type":"boolean"},"freeform":{"type":"array","items":{"type":"string"}},"updates":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["reasoning","toolCalling"],"additionalProperties":false},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"fields":{"type":"array","items":{"type":"string","pattern":"^\\/.*"}},"scope":{"type":"string","const":"model"},"checkedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z)?$","description":"Verification date or UTC timestamp, preserving source precision. observedAt records acquisition separately."},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"repository":{"type":"string","format":"uri"},"commit":{"type":"string","pattern":"^[a-f0-9]{40}$"},"path":{"type":"string"},"sourceField":{"type":"string"},"license":{"type":"string"}},"required":["url","fields","scope"],"additionalProperties":false}},"upstreamFacts":{"type":"object","properties":{"modelsDev":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"sourceField":{"type":"string"},"value":{"$ref":"#/$defs/__schema0"},"source":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"fields":{"type":"array","items":{"type":"string","pattern":"^\\/.*"}},"scope":{"type":"string","const":"model"},"checkedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z)?$","description":"Verification date or UTC timestamp, preserving source precision. observedAt records acquisition separately."},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"repository":{"type":"string","format":"uri"},"commit":{"type":"string","pattern":"^[a-f0-9]{40}$"},"path":{"type":"string"},"sourceField":{"type":"string"},"license":{"type":"string"}},"required":["url","fields","scope"],"additionalProperties":false},"conflict":{"type":"boolean"},"resolution":{"type":"string","enum":["pending","verified"]}},"required":["field","sourceField","value","source","conflict"],"additionalProperties":false}}},"required":["modelsDev"],"additionalProperties":false}},"required":["id","name","developerId","tasks","modalities","specs","capabilities","sources"],"additionalProperties":false}},"developers":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"additionalProperties":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"name":{"type":"string","minLength":1},"website":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["id","name","website"],"additionalProperties":false}},"aliases":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"namespaces":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"caseSensitive":{"type":"boolean"}},"required":["caseSensitive"],"additionalProperties":false}},"models":{"type":"array","items":{"type":"object","properties":{"namespace":{"type":"string","minLength":1},"value":{"type":"string","minLength":1,"maxLength":512},"canonicalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"routeKey":{"type":"string","minLength":1,"maxLength":768},"kind":{"type":"string","enum":["fixed","moving"]},"source":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"commit":{"type":"string"},"path":{"type":"string"}},"required":["url"],"additionalProperties":false},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"history":{"type":"array","items":{"type":"object","properties":{"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"canonicalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"required":["revision","canonicalId"],"additionalProperties":false}}},"required":["namespace","value","canonicalId","routeKey","kind","source"],"additionalProperties":false}},"developers":{"type":"array","items":{"type":"object","properties":{"namespace":{"type":"string","minLength":1},"value":{"type":"string","minLength":1,"maxLength":512},"canonicalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"routeKey":{"type":"string","minLength":1,"maxLength":768},"kind":{"type":"string","enum":["fixed","moving"]},"source":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"commit":{"type":"string"},"path":{"type":"string"}},"required":["url"],"additionalProperties":false},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"history":{"type":"array","items":{"type":"object","properties":{"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"canonicalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"required":["revision","canonicalId"],"additionalProperties":false}}},"required":["namespace","value","canonicalId","routeKey","kind","source"],"additionalProperties":false}},"families":{"type":"array","items":{"type":"object","properties":{"namespace":{"type":"string","minLength":1},"value":{"type":"string","minLength":1,"maxLength":512},"canonicalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"routeKey":{"type":"string","minLength":1,"maxLength":768},"kind":{"type":"string","enum":["fixed","moving"]},"source":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"commit":{"type":"string"},"path":{"type":"string"}},"required":["url"],"additionalProperties":false},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"history":{"type":"array","items":{"type":"object","properties":{"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"canonicalId":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"required":["revision","canonicalId"],"additionalProperties":false}}},"required":["namespace","value","canonicalId","routeKey","kind","source"],"additionalProperties":false}}},"required":["schemaVersion","revision","namespaces","models","developers","families"],"additionalProperties":false},"redirects":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},"to":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-z0-9][a-z0-9._-]*$"},{"type":"null"}]},"kind":{"type":"string","enum":["rename","merge","withdrawal"]},"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reason":{"type":"string"}},"required":["from","to","kind","revision","reason"],"additionalProperties":false}},"upstreams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"repository":{"type":"string","format":"uri"},"commit":{"type":"string","pattern":"^[a-f0-9]{40}$"},"license":{"type":"string"},"observedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"modelCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"latestCheckedCommit":{"type":"string","pattern":"^[a-f0-9]{40}$"},"lastCheckedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","repository","commit","license","observedAt","modelCount","latestCheckedCommit","lastCheckedAt"],"additionalProperties":false}}},"required":["models","developers","aliases","redirects","upstreams"],"additionalProperties":false}},"required":["schemaVersion","scope","revision","dataUpdatedAt","counts","sha256","data"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}