{"openapi":"3.1.0","info":{"title":"win.sh AI Model Router API","description":"Free API for routing AI tasks to the cheapest useful model by benchmark score, task type, speed, and blended token price.","version":"1.0.0","contact":{"url":"https://win.sh/ai-model-router"}},"servers":[{"url":"https://win.sh/api"}],"tags":[{"name":"AI Model Router","description":"Rank and route AI models by task, cost, benchmark quality, and speed."}],"paths":{"/route":{"get":{"tags":["AI Model Router"],"summary":"Route an AI task to a model","description":"Returns the recommended model, fallback model, routing policy, and rationale for a task.","parameters":[{"name":"task","in":"query","schema":{"type":"string","enum":["code","reasoning","summary","extraction","planning","general"],"default":"code"}},{"name":"latency","in":"query","schema":{"type":"string","enum":["fast","normal","overnight"],"default":"fast"}},{"name":"budget","in":"query","schema":{"type":"string","enum":["low","balanced"],"default":"low"}},{"name":"quality","in":"query","schema":{"type":"string","enum":["balanced","high"],"default":"high"}},{"name":"providers","in":"query","description":"Optional comma-separated provider allowlist, for example anthropic,openai. Matches provider names and model id prefixes.","schema":{"type":"string","examples":["anthropic,openai"]}},{"name":"regions","in":"query","description":"Optional comma-separated region allowlist. Use us, eu, and china. Can be combined with providers.","schema":{"type":"string","examples":["us,eu"]}}],"responses":{"200":{"description":"Model routing recommendation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteResponse"},"examples":{"current":{"value":{"model":"deepseek-v4-flash","openRouterId":"deepseek/deepseek-v4-flash","name":"DeepSeek: DeepSeek V4 Flash","provider":"Deepseek","providerDomain":"deepseek.com","logoUrl":"https://www.google.com/s2/favicons?domain=deepseek.com&sz=128","fallback":"deepseek-v4-pro","fallbackOpenRouterId":"deepseek/deepseek-v4-pro","fallbackLogoUrl":"https://www.google.com/s2/favicons?domain=deepseek.com&sz=128","reason":"DeepSeek: DeepSeek V4 Flash has the strongest useful intelligence per blended dollar today.","policy":"coding score, price, and speed","price":0.117,"intelligence":72,"speed":210,"task":"code","providerFilter":[],"regionFilter":[],"updatedAt":"2026-06-29T20:14:04.498Z"}}}}}}}}},"/route/raw":{"get":{"tags":["AI Model Router"],"summary":"Route an AI task and return only the model id","description":"Plain-text endpoint for agents and shell scripts that only need the selected model id.","parameters":[{"name":"task","in":"query","schema":{"type":"string","enum":["code","reasoning","summary","extraction","planning","general"],"default":"code"}},{"name":"latency","in":"query","schema":{"type":"string","enum":["fast","normal","overnight"],"default":"fast"}},{"name":"budget","in":"query","schema":{"type":"string","enum":["low","balanced"],"default":"low"}},{"name":"quality","in":"query","schema":{"type":"string","enum":["balanced","high"],"default":"high"}},{"name":"providers","in":"query","description":"Optional comma-separated provider allowlist, for example anthropic,openai. Matches provider names and model id prefixes.","schema":{"type":"string","examples":["anthropic,openai"]}},{"name":"regions","in":"query","description":"Optional comma-separated region allowlist. Use us, eu, and china. Can be combined with providers.","schema":{"type":"string","examples":["us,eu"]}}],"responses":{"200":{"description":"Recommended model id as text/plain","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/models":{"get":{"tags":["AI Model Router"],"summary":"Get the full model index","description":"Returns the model table, methodology, sources, API metadata, and current category winners.","responses":{"200":{"description":"Full model index snapshot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelIndexSnapshot"}}}}}}},"/cheapest":{"get":{"tags":["AI Model Router"],"summary":"Cheapest useful model","responses":{"200":{"description":"Cheapest useful model","content":{"application/json":{"schema":{"type":"object","required":["model","name","provider","reason","price","intelligence","speed","updatedAt"],"properties":{"model":{"type":"string","description":"Provider-native model id when known, for example claude-opus-4-8."},"openRouterId":{"type":["string","null"],"description":"OpenRouter model id when available, for example anthropic/claude-opus-4.8."},"name":{"type":"string","description":"Human-readable model name."},"provider":{"type":"string"},"providerDomain":{"type":"string","description":"Official provider website domain used for the favicon logo."},"logoUrl":{"type":"string","format":"uri","description":"Automatically updated favicon logo for the provider website."},"reason":{"type":"string","description":"Plain-English recommendation rationale."},"price":{"type":"number","description":"Blended dollars per 1M tokens."},"intelligence":{"type":"number","description":"Benchmark-style intelligence score from 0 to 100."},"speed":{"type":"number","description":"Estimated output tokens per second."},"value":{"type":"number","description":"Useful intelligence per blended dollar."},"updatedAt":{"type":"string","format":"date-time"}}},"examples":{"current":{"value":{"model":"ministral-3b-2512","openRouterId":"mistralai/ministral-3b-2512","name":"Ministral 3 3B","provider":"Mistral","providerDomain":"mistral.ai","logoUrl":"https://www.google.com/s2/favicons?domain=mistral.ai&sz=128","reason":"Ministral 3 3B has the lowest useful blended price at $0.1/1M tokens.","price":0.1,"intelligence":58,"speed":320,"updatedAt":"2026-06-29T20:14:04.498Z"}}}}}}}}},"/cheapest/raw":{"get":{"tags":["AI Model Router"],"summary":"Cheapest useful model id","responses":{"200":{"description":"Cheapest useful model id","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/fastest":{"get":{"tags":["AI Model Router"],"summary":"Fastest model","responses":{"200":{"description":"Fastest model","content":{"application/json":{"schema":{"type":"object","required":["model","name","provider","reason","price","intelligence","speed","updatedAt"],"properties":{"model":{"type":"string","description":"Provider-native model id when known, for example claude-opus-4-8."},"openRouterId":{"type":["string","null"],"description":"OpenRouter model id when available, for example anthropic/claude-opus-4.8."},"name":{"type":"string","description":"Human-readable model name."},"provider":{"type":"string"},"providerDomain":{"type":"string","description":"Official provider website domain used for the favicon logo."},"logoUrl":{"type":"string","format":"uri","description":"Automatically updated favicon logo for the provider website."},"reason":{"type":"string","description":"Plain-English recommendation rationale."},"price":{"type":"number","description":"Blended dollars per 1M tokens."},"intelligence":{"type":"number","description":"Benchmark-style intelligence score from 0 to 100."},"speed":{"type":"number","description":"Estimated output tokens per second."},"value":{"type":"number","description":"Useful intelligence per blended dollar."},"updatedAt":{"type":"string","format":"date-time"}}},"examples":{"current":{"value":{"model":"ministral-3b-2512","openRouterId":"mistralai/ministral-3b-2512","name":"Ministral 3 3B","provider":"Mistral","providerDomain":"mistral.ai","logoUrl":"https://www.google.com/s2/favicons?domain=mistral.ai&sz=128","reason":"Ministral 3 3B has the highest estimated generation speed at 320 tokens/sec.","price":0.1,"intelligence":58,"speed":320,"updatedAt":"2026-06-29T20:14:04.498Z"}}}}}}}}},"/fastest/raw":{"get":{"tags":["AI Model Router"],"summary":"Fastest model id","responses":{"200":{"description":"Fastest model id","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/smartest":{"get":{"tags":["AI Model Router"],"summary":"Highest benchmark score model","responses":{"200":{"description":"Highest benchmark score model","content":{"application/json":{"schema":{"type":"object","required":["model","name","provider","reason","price","intelligence","speed","updatedAt"],"properties":{"model":{"type":"string","description":"Provider-native model id when known, for example claude-opus-4-8."},"openRouterId":{"type":["string","null"],"description":"OpenRouter model id when available, for example anthropic/claude-opus-4.8."},"name":{"type":"string","description":"Human-readable model name."},"provider":{"type":"string"},"providerDomain":{"type":"string","description":"Official provider website domain used for the favicon logo."},"logoUrl":{"type":"string","format":"uri","description":"Automatically updated favicon logo for the provider website."},"reason":{"type":"string","description":"Plain-English recommendation rationale."},"price":{"type":"number","description":"Blended dollars per 1M tokens."},"intelligence":{"type":"number","description":"Benchmark-style intelligence score from 0 to 100."},"speed":{"type":"number","description":"Estimated output tokens per second."},"value":{"type":"number","description":"Useful intelligence per blended dollar."},"updatedAt":{"type":"string","format":"date-time"}}},"examples":{"current":{"value":{"model":"gpt-5.5-pro","openRouterId":"openai/gpt-5.5-pro","name":"OpenAI: GPT-5.5 Pro","provider":"OpenAI","providerDomain":"openai.com","logoUrl":"https://www.google.com/s2/favicons?domain=openai.com&sz=128","reason":"OpenAI: GPT-5.5 Pro has the highest blended intelligence score in today's index.","price":75,"intelligence":100,"speed":24,"updatedAt":"2026-06-29T20:14:04.498Z"}}}}}}}}},"/smartest/raw":{"get":{"tags":["AI Model Router"],"summary":"Highest benchmark score model id","responses":{"200":{"description":"Highest benchmark score model id","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/best-value":{"get":{"tags":["AI Model Router"],"summary":"Best intelligence per dollar model","responses":{"200":{"description":"Best intelligence per dollar model","content":{"application/json":{"schema":{"type":"object","required":["model","name","provider","reason","price","intelligence","speed","updatedAt"],"properties":{"model":{"type":"string","description":"Provider-native model id when known, for example claude-opus-4-8."},"openRouterId":{"type":["string","null"],"description":"OpenRouter model id when available, for example anthropic/claude-opus-4.8."},"name":{"type":"string","description":"Human-readable model name."},"provider":{"type":"string"},"providerDomain":{"type":"string","description":"Official provider website domain used for the favicon logo."},"logoUrl":{"type":"string","format":"uri","description":"Automatically updated favicon logo for the provider website."},"reason":{"type":"string","description":"Plain-English recommendation rationale."},"price":{"type":"number","description":"Blended dollars per 1M tokens."},"intelligence":{"type":"number","description":"Benchmark-style intelligence score from 0 to 100."},"speed":{"type":"number","description":"Estimated output tokens per second."},"value":{"type":"number","description":"Useful intelligence per blended dollar."},"updatedAt":{"type":"string","format":"date-time"}}},"examples":{"current":{"value":{"model":"deepseek-v4-flash","openRouterId":"deepseek/deepseek-v4-flash","name":"DeepSeek: DeepSeek V4 Flash","provider":"Deepseek","providerDomain":"deepseek.com","logoUrl":"https://www.google.com/s2/favicons?domain=deepseek.com&sz=128","reason":"DeepSeek: DeepSeek V4 Flash has the strongest useful intelligence per blended dollar today.","price":0.117,"intelligence":72,"speed":210,"updatedAt":"2026-06-29T20:14:04.498Z"}}}}}}}}},"/best-value/raw":{"get":{"tags":["AI Model Router"],"summary":"Best intelligence per dollar model id","responses":{"200":{"description":"Best intelligence per dollar model id","content":{"text/plain":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"RouteResponse":{"allOf":[{"type":"object","required":["model","name","provider","reason","price","intelligence","speed","updatedAt"],"properties":{"model":{"type":"string","description":"Provider-native model id when known, for example claude-opus-4-8."},"openRouterId":{"type":["string","null"],"description":"OpenRouter model id when available, for example anthropic/claude-opus-4.8."},"name":{"type":"string","description":"Human-readable model name."},"provider":{"type":"string"},"providerDomain":{"type":"string","description":"Official provider website domain used for the favicon logo."},"logoUrl":{"type":"string","format":"uri","description":"Automatically updated favicon logo for the provider website."},"reason":{"type":"string","description":"Plain-English recommendation rationale."},"price":{"type":"number","description":"Blended dollars per 1M tokens."},"intelligence":{"type":"number","description":"Benchmark-style intelligence score from 0 to 100."},"speed":{"type":"number","description":"Estimated output tokens per second."},"value":{"type":"number","description":"Useful intelligence per blended dollar."},"updatedAt":{"type":"string","format":"date-time"}}},{"type":"object","properties":{"fallback":{"type":["string","null"],"description":"Backup model id."},"fallbackOpenRouterId":{"type":["string","null"],"description":"Backup model OpenRouter id when available."},"fallbackLogoUrl":{"type":["string","null"],"format":"uri","description":"Automatically updated favicon logo for the fallback provider."},"policy":{"type":"string"},"task":{"type":"string"},"providerFilter":{"type":"array","items":{"type":"string"},"description":"Provider allowlist applied to this route."},"regionFilter":{"type":"array","items":{"type":"string","enum":["us","eu","china"]},"description":"Region allowlist applied to this route."}}}]},"ModelIndexSnapshot":{"type":"object","properties":{"updatedAt":{"type":"string","format":"date-time"},"generatedBy":{"type":"string"},"methodology":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}},"answers":{"type":"object"},"models":{"type":"array","items":{"$ref":"#/components/schemas/Model"}},"api":{"type":"array","items":{"type":"object"}}}},"Model":{"type":"object","properties":{"id":{"type":"string"},"openRouterId":{"type":["string","null"]},"name":{"type":"string"},"provider":{"type":"string"},"providerDomain":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"intelligenceScore":{"type":"number"},"codingScore":{"type":"number"},"reasoningScore":{"type":"number"},"blendedPricePer1M":{"type":"number"},"speedTokensPerSecond":{"type":"number"},"latencyMs":{"type":"number"},"contextLength":{"type":"number"},"valueScore":{"type":"number"},"tags":{"type":"array","items":{"type":"string"}},"sourceIds":{"type":"array","items":{"type":"string"}}}}}},"x-win-model-router":{"landingPage":"https://win.sh/ai-model-router","publicRouter":"https://win.sh/router","publicRouterRaw":"https://win.sh/router/raw","publicRouterExamples":["https://win.sh/router?task=code&latency=fast&budget=low&quality=high","https://win.sh/router/cheapest","https://win.sh/router/cheapest/raw","https://win.sh/router/models"],"skill":"https://win.sh/ai-model-router/SKILL.md","llmsText":"https://win.sh/llms.txt","openapi":"https://win.sh/openapi.json","apiOpenapi":"https://win.sh/api/openapi.json","updatedAt":"2026-06-29T20:14:04.498Z","currentAnswers":{"cheapest":{"model":"ministral-3b-2512","openRouterId":"mistralai/ministral-3b-2512","name":"Ministral 3 3B","provider":"Mistral","providerDomain":"mistral.ai","logoUrl":"https://www.google.com/s2/favicons?domain=mistral.ai&sz=128","reason":"Ministral 3 3B has the lowest useful blended price at $0.1/1M tokens.","price":0.1,"intelligence":58,"speed":320,"updatedAt":"2026-06-29T20:14:04.498Z"},"fastest":{"model":"ministral-3b-2512","openRouterId":"mistralai/ministral-3b-2512","name":"Ministral 3 3B","provider":"Mistral","providerDomain":"mistral.ai","logoUrl":"https://www.google.com/s2/favicons?domain=mistral.ai&sz=128","reason":"Ministral 3 3B has the highest estimated generation speed at 320 tokens/sec.","price":0.1,"intelligence":58,"speed":320,"updatedAt":"2026-06-29T20:14:04.498Z"},"smartest":{"model":"gpt-5.5-pro","openRouterId":"openai/gpt-5.5-pro","name":"OpenAI: GPT-5.5 Pro","provider":"OpenAI","providerDomain":"openai.com","logoUrl":"https://www.google.com/s2/favicons?domain=openai.com&sz=128","reason":"OpenAI: GPT-5.5 Pro has the highest blended intelligence score in today's index.","price":75,"intelligence":100,"speed":24,"updatedAt":"2026-06-29T20:14:04.498Z"},"bestValue":{"model":"deepseek-v4-flash","openRouterId":"deepseek/deepseek-v4-flash","name":"DeepSeek: DeepSeek V4 Flash","provider":"Deepseek","providerDomain":"deepseek.com","logoUrl":"https://www.google.com/s2/favicons?domain=deepseek.com&sz=128","reason":"DeepSeek: DeepSeek V4 Flash has the strongest useful intelligence per blended dollar today.","price":0.117,"intelligence":72,"speed":210,"updatedAt":"2026-06-29T20:14:04.498Z"}},"topModels":[{"id":"deepseek-v4-flash","openRouterId":"deepseek/deepseek-v4-flash","name":"DeepSeek: DeepSeek V4 Flash","provider":"Deepseek","providerDomain":"deepseek.com","logoUrl":"https://www.google.com/s2/favicons?domain=deepseek.com&sz=128","price":0.117,"intelligence":72,"speed":210,"value":1675.2,"tags":["fast","cheap","value"]},{"id":"deepseek-v4-pro","openRouterId":"deepseek/deepseek-v4-pro","name":"DeepSeek: DeepSeek V4 Pro","provider":"Deepseek","providerDomain":"deepseek.com","logoUrl":"https://www.google.com/s2/favicons?domain=deepseek.com&sz=128","price":0.566,"intelligence":88,"speed":78,"value":1590.1,"tags":["reasoning","value","math"]},{"id":"gemini-3.1-flash-lite","openRouterId":"google/gemini-3.1-flash-lite","name":"Google: Gemini 3.1 Flash Lite","provider":"Google","providerDomain":"google.com","logoUrl":"https://www.google.com/s2/favicons?domain=google.com&sz=128","price":0.625,"intelligence":76,"speed":168,"value":518.4,"tags":["fast","cheap","long-context"]},{"id":"glm-5.2","openRouterId":"z-ai/glm-5.2","name":"Z.ai: GLM 5.2","provider":"Z.ai","providerDomain":"z.ai","logoUrl":"https://www.google.com/s2/favicons?domain=z.ai&sz=128","price":1.558,"intelligence":86,"speed":92,"value":503.2,"tags":["open-weight","value","agent"]},{"id":"gpt-5.4-nano","openRouterId":"openai/gpt-5.4-nano","name":"OpenAI: GPT-5.4 Nano","provider":"OpenAI","providerDomain":"openai.com","logoUrl":"https://www.google.com/s2/favicons?domain=openai.com&sz=128","price":0.515,"intelligence":74,"speed":154,"value":497.1,"tags":["fast","cheap"]},{"id":"qwen3.6-flash","openRouterId":"qwen/qwen3.6-flash","name":"Qwen: Qwen3.6 Flash","provider":"Qwen","providerDomain":"qwenlm.ai","logoUrl":"https://www.google.com/s2/favicons?domain=qwenlm.ai&sz=128","price":0.469,"intelligence":73,"speed":190,"value":479.7,"tags":["fast","cheap","long-context","open-weight"]},{"id":"kimi-k2.7-code","openRouterId":"moonshotai/kimi-k2.7-code","name":"MoonshotAI: Kimi K2.7 Code","provider":"Moonshotai","providerDomain":"moonshot.ai","logoUrl":"https://www.google.com/s2/favicons?domain=moonshot.ai&sz=128","price":1.568,"intelligence":85,"speed":74,"value":464.9,"tags":["coding","agent","value"]},{"id":"qwen3.7-max","openRouterId":"qwen/qwen3.7-max","name":"Qwen: Qwen3.7 Max","provider":"Qwen","providerDomain":"qwenlm.ai","logoUrl":"https://www.google.com/s2/favicons?domain=qwenlm.ai&sz=128","price":2,"intelligence":87,"speed":86,"value":420.5,"tags":["value","general","math","long-context","open-weight"]},{"id":"mistral-medium-3-5","openRouterId":"mistralai/mistral-medium-3-5","name":"Mistral Medium 3.5","provider":"Mistral","providerDomain":"mistral.ai","logoUrl":"https://www.google.com/s2/favicons?domain=mistral.ai&sz=128","price":1.9,"intelligence":82,"speed":104,"value":303.2,"tags":["fast","general"]},{"id":"gemini-3.1-pro-preview","openRouterId":"google/gemini-3.1-pro-preview","name":"Google: Gemini 3.1 Pro Preview","provider":"Google","providerDomain":"google.com","logoUrl":"https://www.google.com/s2/favicons?domain=google.com&sz=128","price":5,"intelligence":92,"speed":64,"value":231.2,"tags":["long-context","reasoning","science","fast","cheap"]},{"id":"claude-sonnet-4-6","openRouterId":"anthropic/claude-sonnet-4.6","name":"Anthropic: Claude Sonnet 4.6","provider":"Anthropic","providerDomain":"anthropic.com","logoUrl":"https://www.google.com/s2/favicons?domain=anthropic.com&sz=128","price":6.6,"intelligence":94,"speed":52,"value":196.4,"tags":["coding","agent","general"]},{"id":"claude-opus-4-8","openRouterId":"anthropic/claude-opus-4.8","name":"Anthropic: Claude Opus 4.8","provider":"Anthropic","providerDomain":"anthropic.com","logoUrl":"https://www.google.com/s2/favicons?domain=anthropic.com&sz=128","price":11,"intelligence":99,"speed":28,"value":152.8,"tags":["frontier","reasoning","writing","science","math"]}]}}