- Prune tokenrouter seed models from 121 to 22 flagship/newest models - Add z-ai/glm-5.3-free with 0 pricing - Add missing 128x128 icons for alims-intl, alitp-intl, fish-audio, and selfhosted-* providers Co-Authored-By: Claude Code <noreply@anthropic.com>
65 lines
2.5 KiB
JavaScript
65 lines
2.5 KiB
JavaScript
export default {
|
|
id: "tokenrouter",
|
|
alias: "tokenrouter",
|
|
aliases: ["tr"],
|
|
uiAlias: "tokenrouter",
|
|
display: {
|
|
name: "TokenRouter",
|
|
icon: "hub",
|
|
color: "#0EA5E9",
|
|
textIcon: "TR",
|
|
website: "https://www.tokenrouter.com",
|
|
notice: {
|
|
text: "OpenAI-compatible gateway. 300+ models (OpenAI, Claude, Gemini, Qwen, DeepSeek, Kimi, GLM, dsb).",
|
|
apiKeyUrl: "https://www.tokenrouter.com",
|
|
},
|
|
},
|
|
category: "apikey",
|
|
thinkingConfig: {
|
|
options: ["low", "medium", "high", "xhigh", "max"],
|
|
defaultMode: "high",
|
|
},
|
|
transport: {
|
|
baseUrl: "https://api.tokenrouter.com/v1/chat/completions",
|
|
validateUrl: "https://api.tokenrouter.com/v1/models",
|
|
thinkingFormat: "tokenrouter",
|
|
},
|
|
// Seed snapshot from live /v1/models. Latest catalogue is
|
|
// fetched via modelsFetcher; other ids still accepted via passthroughModels.
|
|
models: [
|
|
{ id: "anthropic/claude-haiku-4.5", name: "Claude Haiku 4.5" },
|
|
{ id: "anthropic/claude-sonnet-4.6", name: "Claude Sonnet 4.6" },
|
|
{ id: "anthropic/claude-opus-4.8", name: "Claude Opus 4.8" },
|
|
{ id: "anthropic/claude-opus-4.8-fast", name: "Claude Opus 4.8 Fast" },
|
|
{ id: "openai/gpt-5.4", name: "Gpt 5.4" },
|
|
{ id: "openai/gpt-5.4-mini", name: "Gpt 5.4 Mini" },
|
|
{ id: "openai/gpt-5.4-pro", name: "Gpt 5.4 Pro" },
|
|
{ id: "openai/gpt-5.5", name: "Gpt 5.5" },
|
|
{ id: "openai/gpt-5.6-sol", name: "Gpt 5.6 Sol" },
|
|
{ id: "google/gemini-3.5-flash", name: "Gemini 3.5 Flash" },
|
|
{ id: "google/gemini-3.6-flash", name: "Gemini 3.6 Flash" },
|
|
{ id: "deepseek/deepseek-v4-flash", name: "Deepseek V4 Flash" },
|
|
{ id: "deepseek/deepseek-v4-pro", name: "Deepseek V4 Pro" },
|
|
{ id: "qwen/qwen3-coder-next", name: "Qwen3 Coder Next" },
|
|
{ id: "qwen/qwen3.7-max", name: "Qwen3.7 Max" },
|
|
{ id: "qwen/qwen3.8-max", name: "Qwen3.8 Max" },
|
|
{ id: "moonshotai/kimi-k2.7-code", name: "Kimi K2.7 Code" },
|
|
{ id: "moonshotai/kimi-k3-free", name: "Kimi K3 Free" },
|
|
{ id: "z-ai/glm-5.3-free", name: "Glm 5.3 Free" },
|
|
{ id: "z-ai/glm-5.2", name: "Glm 5.2" },
|
|
{ id: "z-ai/glm-5-turbo", name: "Glm 5 Turbo" },
|
|
{ id: "x-ai/grok-4.5", name: "Grok 4.5" },
|
|
],
|
|
serviceKinds: ["llm", "embedding", "image"],
|
|
embeddingConfig: {
|
|
baseUrl: "https://api.tokenrouter.com/v1/embeddings",
|
|
authType: "apikey",
|
|
authHeader: "bearer",
|
|
},
|
|
imageConfig: {
|
|
baseUrl: "https://api.tokenrouter.com/v1/images/generations",
|
|
},
|
|
modelsFetcher: { url: "https://api.tokenrouter.com/v1/models", type: "openai" },
|
|
passthroughModels: true,
|
|
};
|