{"model":{"$ref":"#/definitions/Model","definitions":{"Model":{"type":"object","properties":{"id":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1},"provider":{"type":"string","enum":["openai","anthropic","google-gemini-api","google-vertex","aws-bedrock","azure-openai","mistral"]},"display_name":{"type":"string","minLength":1},"family":{"type":["string","null"]},"status":{"type":"string","enum":["active","legacy","deprecated","retired"]},"announced_date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"deprecation_date":{"anyOf":[{"$ref":"#/definitions/Model/properties/announced_date/anyOf/0"},{"type":"null"}]},"shutdown_date":{"anyOf":[{"$ref":"#/definitions/Model/properties/announced_date/anyOf/0"},{"type":"null"}]},"shutdown_date_kind":{"type":"string","enum":["exact","not_before","month_only","none"]},"region_or_platform_notes":{"type":["string","null"]},"replacements":{"type":"array","items":{"type":"object","properties":{"model_id":{"type":"string","minLength":1},"provider":{"$ref":"#/definitions/Model/properties/provider"},"kind":{"type":"string","enum":["official","editorial"]},"source_url":{"type":"string","format":"uri"}},"required":["model_id","provider","kind","source_url"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"label":{"type":"string","minLength":1},"last_checked":{"$ref":"#/definitions/Model/properties/announced_date/anyOf/0"},"excerpt":{"type":"string","maxLength":300}},"required":["url","label","last_checked","excerpt"],"additionalProperties":false},"minItems":1},"specs":{"type":"object","properties":{"input_price_per_mtok":{"type":["number","null"]},"output_price_per_mtok":{"type":["number","null"]},"cached_input_price_per_mtok":{"type":["number","null"]},"batch_discount_pct":{"type":["number","null"]},"currency":{"anyOf":[{"type":"string","const":"USD"},{"type":"null"}]},"context_window_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}]},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}]},"modalities_in":{"anyOf":[{"type":"array","items":{"type":"string","enum":["text","image","audio","video","pdf"]}},{"type":"null"}]},"modalities_out":{"anyOf":[{"type":"array","items":{"$ref":"#/definitions/Model/properties/specs/properties/modalities_in/anyOf/0/items"}},{"type":"null"}]},"supports_tools":{"type":["boolean","null"]},"supports_json_schema":{"type":["boolean","null"]},"supports_vision":{"type":["boolean","null"]},"supports_streaming":{"type":["boolean","null"]},"supports_batch":{"type":["boolean","null"]},"supports_prompt_caching":{"type":["boolean","null"]},"reasoning":{"anyOf":[{"type":"string","enum":["none","optional","always"]},{"type":"null"}]},"knowledge_cutoff":{"type":["string","null"]},"endpoints":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"specs_sources":{"type":"object","additionalProperties":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"last_checked":{"$ref":"#/definitions/Model/properties/announced_date/anyOf/0"}},"required":["url","last_checked"],"additionalProperties":false}}},"required":["input_price_per_mtok","output_price_per_mtok","cached_input_price_per_mtok","batch_discount_pct","currency","context_window_tokens","max_output_tokens","modalities_in","modalities_out","supports_tools","supports_json_schema","supports_vision","supports_streaming","supports_batch","supports_prompt_caching","reasoning","knowledge_cutoff","endpoints","specs_sources"],"additionalProperties":false},"first_seen":{"type":"string","format":"date-time"},"updated_at":{"$ref":"#/definitions/Model/properties/first_seen"}},"required":["id","slug","provider","display_name","family","status","announced_date","deprecation_date","shutdown_date","shutdown_date_kind","region_or_platform_notes","replacements","sources","specs","first_seen","updated_at"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"},"provider":{"$ref":"#/definitions/Provider","definitions":{"Provider":{"type":"object","properties":{"id":{"type":"string","enum":["openai","anthropic","google-gemini-api","google-vertex","aws-bedrock","azure-openai","mistral"]},"name":{"type":"string","minLength":1},"deprecations_url":{"type":"string","format":"uri"},"pricing_url":{"type":"string","format":"uri"},"models_url":{"type":"string","format":"uri"}},"required":["id","name","deprecations_url","pricing_url","models_url"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"},"migration":{"$ref":"#/definitions/Migration","definitions":{"Migration":{"type":"object","properties":{"from":{"type":"object","properties":{"provider":{"type":"string","enum":["openai","anthropic","google-gemini-api","google-vertex","aws-bedrock","azure-openai","mistral"]},"model_id":{"type":"string"},"slug":{"type":"string"}},"required":["provider","model_id","slug"],"additionalProperties":false},"to":{"type":"object","properties":{"provider":{"$ref":"#/definitions/Migration/properties/from/properties/provider"},"model_id":{"type":"string"},"slug":{"type":"string"}},"required":["provider","model_id","slug"],"additionalProperties":false},"price_diff":{"type":"object","properties":{"input_pct_change":{"type":["number","null"]},"output_pct_change":{"type":["number","null"]},"example_monthly_cost_old":{"type":["number","null"]},"example_monthly_cost_new":{"type":["number","null"]},"currency":{"type":"string","const":"USD"},"example_label":{"type":"string"}},"required":["input_pct_change","output_pct_change","example_monthly_cost_old","example_monthly_cost_new","currency","example_label"],"additionalProperties":false},"context_diff":{"type":"object","properties":{"old_tokens":{"type":["number","null"]},"new_tokens":{"type":["number","null"]},"change_pct":{"type":["number","null"]}},"required":["old_tokens","new_tokens","change_pct"],"additionalProperties":false},"max_output_diff":{"type":"object","properties":{"old_tokens":{"type":["number","null"]},"new_tokens":{"type":["number","null"]},"change_pct":{"type":["number","null"]}},"required":["old_tokens","new_tokens","change_pct"],"additionalProperties":false},"capability_changes":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"old":{"type":["string","number","boolean","null"]},"new":{"type":["string","number","boolean","null"]}},"required":["field","old","new"],"additionalProperties":false}},"api_changes":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["renamed_param","removed_param","new_required_param","endpoint_change","behavior_change"]},"detail":{"type":"string"},"source_url":{"type":"string","format":"uri"}},"required":["kind","detail","source_url"],"additionalProperties":false}},"code_change":{"type":"object","properties":{"language":{"type":"string","enum":["python","typescript","curl"]},"before":{"type":"string"},"after":{"type":"string"},"snippets":{"type":"object","properties":{"python":{"type":"object","properties":{"before":{"type":"string"},"after":{"type":"string"}},"required":["before","after"],"additionalProperties":false},"typescript":{"type":"object","properties":{"before":{"type":"string"},"after":{"type":"string"}},"required":["before","after"],"additionalProperties":false},"curl":{"type":"object","properties":{"before":{"type":"string"},"after":{"type":"string"}},"required":["before","after"],"additionalProperties":false}},"required":["python","typescript","curl"],"additionalProperties":false}},"required":["language","before","after","snippets"],"additionalProperties":false},"migration_checklist":{"type":"array","items":{"type":"string"},"minItems":1},"confidence":{"type":"string","enum":["official","partial"]},"last_checked":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"label":{"type":"string","minLength":1},"last_checked":{"$ref":"#/definitions/Migration/properties/last_checked"},"excerpt":{"type":"string","maxLength":300}},"required":["url","label","last_checked","excerpt"],"additionalProperties":false},"minItems":1}},"required":["from","to","price_diff","context_diff","max_output_diff","capability_changes","api_changes","code_change","migration_checklist","confidence","last_checked","sources"],"additionalProperties":false}},"$schema":"http://json-schema.org/draft-07/schema#"}}