wyxrouter 0.4.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +222 -0
- package/LICENSE +21 -0
- package/README.md +96 -0
- package/README.zh-CN.md +1311 -0
- package/assets/pixel-router-2d.png +0 -0
- package/cli/LICENSE +42 -0
- package/cli/README.md +125 -0
- package/cli/app/package.json +58 -0
- package/cli/cli.js +806 -0
- package/cli/package.json +48 -0
- package/i18n/README.ja-JP.md +1209 -0
- package/i18n/README.ru.md +1311 -0
- package/i18n/README.vi.md +1310 -0
- package/i18n/README.zh-CN.md +1306 -0
- package/images/9router.png +0 -0
- package/jsconfig.json +12 -0
- package/next.config.mjs +71 -0
- package/open-sse/config/appConstants.js +203 -0
- package/open-sse/config/codexInstructions.js +119 -0
- package/open-sse/config/constants.js +4 -0
- package/open-sse/config/defaultThinkingSignature.js +12 -0
- package/open-sse/config/errorConfig.js +85 -0
- package/open-sse/config/googleTtsLanguages.js +62 -0
- package/open-sse/config/kiroConstants.js +322 -0
- package/open-sse/config/models.js +13 -0
- package/open-sse/config/ollamaModels.js +19 -0
- package/open-sse/config/providerModels.js +944 -0
- package/open-sse/config/providers.js +458 -0
- package/open-sse/config/runtimeConfig.js +72 -0
- package/open-sse/config/ttsModels.js +129 -0
- package/open-sse/executors/antigravity.js +504 -0
- package/open-sse/executors/azure.js +57 -0
- package/open-sse/executors/base.js +185 -0
- package/open-sse/executors/codex.js +469 -0
- package/open-sse/executors/commandcode.js +88 -0
- package/open-sse/executors/cursor.js +795 -0
- package/open-sse/executors/default.js +497 -0
- package/open-sse/executors/gemini-cli.js +89 -0
- package/open-sse/executors/github.js +379 -0
- package/open-sse/executors/grok-web.js +345 -0
- package/open-sse/executors/iflow.js +108 -0
- package/open-sse/executors/index.js +75 -0
- package/open-sse/executors/kiro.js +508 -0
- package/open-sse/executors/ollama-local.js +14 -0
- package/open-sse/executors/opencode-go.js +41 -0
- package/open-sse/executors/opencode.js +32 -0
- package/open-sse/executors/perplexity-web.js +507 -0
- package/open-sse/executors/qoder.js +450 -0
- package/open-sse/executors/qwen.js +129 -0
- package/open-sse/executors/vertex.js +131 -0
- package/open-sse/executors/xiaomi-tokenplan.js +19 -0
- package/open-sse/handlers/chatCore/nonStreamingHandler.js +230 -0
- package/open-sse/handlers/chatCore/requestDetail.js +102 -0
- package/open-sse/handlers/chatCore/sseToJsonHandler.js +231 -0
- package/open-sse/handlers/chatCore/streamingHandler.js +103 -0
- package/open-sse/handlers/chatCore.js +287 -0
- package/open-sse/handlers/embeddingProviders/_base.js +4 -0
- package/open-sse/handlers/embeddingProviders/gemini.js +54 -0
- package/open-sse/handlers/embeddingProviders/index.js +23 -0
- package/open-sse/handlers/embeddingProviders/openai.js +39 -0
- package/open-sse/handlers/embeddingProviders/openaiCompatNode.js +13 -0
- package/open-sse/handlers/embeddingsCore.js +126 -0
- package/open-sse/handlers/fetch/index.js +237 -0
- package/open-sse/handlers/imageGenerationCore.js +189 -0
- package/open-sse/handlers/imageProviders/_base.js +31 -0
- package/open-sse/handlers/imageProviders/blackForestLabs.js +43 -0
- package/open-sse/handlers/imageProviders/cloudflareAi.js +178 -0
- package/open-sse/handlers/imageProviders/codex.js +198 -0
- package/open-sse/handlers/imageProviders/comfyui.js +8 -0
- package/open-sse/handlers/imageProviders/falAi.js +41 -0
- package/open-sse/handlers/imageProviders/gemini.js +25 -0
- package/open-sse/handlers/imageProviders/huggingface.js +22 -0
- package/open-sse/handlers/imageProviders/index.js +40 -0
- package/open-sse/handlers/imageProviders/nanobanana.js +58 -0
- package/open-sse/handlers/imageProviders/openai.js +40 -0
- package/open-sse/handlers/imageProviders/runwayml.js +47 -0
- package/open-sse/handlers/imageProviders/sdwebui.js +17 -0
- package/open-sse/handlers/imageProviders/stabilityAi.js +34 -0
- package/open-sse/handlers/responsesHandler.js +103 -0
- package/open-sse/handlers/search/callers.js +371 -0
- package/open-sse/handlers/search/chatSearch.js +409 -0
- package/open-sse/handlers/search/index.js +201 -0
- package/open-sse/handlers/search/normalizers.js +223 -0
- package/open-sse/handlers/sttCore.js +194 -0
- package/open-sse/handlers/ttsCore.js +74 -0
- package/open-sse/handlers/ttsProviders/_base.js +39 -0
- package/open-sse/handlers/ttsProviders/edgeTts.js +89 -0
- package/open-sse/handlers/ttsProviders/elevenlabs.js +48 -0
- package/open-sse/handlers/ttsProviders/gemini.js +117 -0
- package/open-sse/handlers/ttsProviders/genericFormats.js +169 -0
- package/open-sse/handlers/ttsProviders/googleTts.js +54 -0
- package/open-sse/handlers/ttsProviders/index.js +50 -0
- package/open-sse/handlers/ttsProviders/localDevice.js +87 -0
- package/open-sse/handlers/ttsProviders/minimax.js +59 -0
- package/open-sse/handlers/ttsProviders/openai.js +30 -0
- package/open-sse/handlers/ttsProviders/openrouter.js +70 -0
- package/open-sse/index.js +82 -0
- package/open-sse/rtk/applyFilter.js +15 -0
- package/open-sse/rtk/autodetect.js +111 -0
- package/open-sse/rtk/caveman.js +100 -0
- package/open-sse/rtk/cavemanPrompts.js +78 -0
- package/open-sse/rtk/constants.js +55 -0
- package/open-sse/rtk/filters/buildOutput.js +127 -0
- package/open-sse/rtk/filters/dedupLog.js +44 -0
- package/open-sse/rtk/filters/find.js +49 -0
- package/open-sse/rtk/filters/gitDiff.js +92 -0
- package/open-sse/rtk/filters/gitStatus.js +117 -0
- package/open-sse/rtk/filters/grep.js +48 -0
- package/open-sse/rtk/filters/ls.js +79 -0
- package/open-sse/rtk/filters/readNumbered.js +27 -0
- package/open-sse/rtk/filters/searchList.js +52 -0
- package/open-sse/rtk/filters/smartTruncate.js +15 -0
- package/open-sse/rtk/filters/tree.js +32 -0
- package/open-sse/rtk/index.js +155 -0
- package/open-sse/rtk/registry.js +38 -0
- package/open-sse/services/accountFallback.js +238 -0
- package/open-sse/services/combo.js +198 -0
- package/open-sse/services/compact.js +71 -0
- package/open-sse/services/kiroModels.js +332 -0
- package/open-sse/services/model.js +261 -0
- package/open-sse/services/oauthCredentialManager.js +151 -0
- package/open-sse/services/projectId.js +306 -0
- package/open-sse/services/provider.js +356 -0
- package/open-sse/services/qoderModels.js +214 -0
- package/open-sse/services/tokenRefresh.js +939 -0
- package/open-sse/services/usage.js +1496 -0
- package/open-sse/transformer/responsesTransformer.js +439 -0
- package/open-sse/transformer/streamToJsonConverter.js +103 -0
- package/open-sse/translator/formats.js +36 -0
- package/open-sse/translator/helpers/claudeHelper.js +216 -0
- package/open-sse/translator/helpers/geminiHelper.js +372 -0
- package/open-sse/translator/helpers/imageHelper.js +34 -0
- package/open-sse/translator/helpers/maxTokensHelper.js +27 -0
- package/open-sse/translator/helpers/openaiHelper.js +130 -0
- package/open-sse/translator/helpers/responsesApiHelper.js +139 -0
- package/open-sse/translator/helpers/toolCallHelper.js +148 -0
- package/open-sse/translator/index.js +251 -0
- package/open-sse/translator/request/antigravity-to-openai.js +229 -0
- package/open-sse/translator/request/claude-to-openai.js +232 -0
- package/open-sse/translator/request/gemini-to-openai.js +147 -0
- package/open-sse/translator/request/openai-responses.js +318 -0
- package/open-sse/translator/request/openai-to-claude.js +401 -0
- package/open-sse/translator/request/openai-to-commandcode.js +170 -0
- package/open-sse/translator/request/openai-to-cursor.js +183 -0
- package/open-sse/translator/request/openai-to-gemini.js +470 -0
- package/open-sse/translator/request/openai-to-kiro.js +629 -0
- package/open-sse/translator/request/openai-to-kiro.old.js +278 -0
- package/open-sse/translator/request/openai-to-ollama.js +192 -0
- package/open-sse/translator/request/openai-to-vertex.js +42 -0
- package/open-sse/translator/response/claude-to-openai.js +206 -0
- package/open-sse/translator/response/commandcode-to-openai.js +197 -0
- package/open-sse/translator/response/cursor-to-openai.js +30 -0
- package/open-sse/translator/response/gemini-to-openai.js +245 -0
- package/open-sse/translator/response/kiro-to-openai.js +195 -0
- package/open-sse/translator/response/ollama-to-openai.js +152 -0
- package/open-sse/translator/response/openai-responses.js +590 -0
- package/open-sse/translator/response/openai-to-antigravity.js +122 -0
- package/open-sse/translator/response/openai-to-claude.js +266 -0
- package/open-sse/utils/bypassHandler.js +298 -0
- package/open-sse/utils/claudeCloaking.js +155 -0
- package/open-sse/utils/claudeHeaderCache.js +70 -0
- package/open-sse/utils/clientDetector.js +63 -0
- package/open-sse/utils/cursorChecksum.js +149 -0
- package/open-sse/utils/cursorProtobuf.js +904 -0
- package/open-sse/utils/debugLog.js +14 -0
- package/open-sse/utils/error.js +147 -0
- package/open-sse/utils/ollamaTransform.js +85 -0
- package/open-sse/utils/proxyFetch.js +368 -0
- package/open-sse/utils/reasoningContentInjector.js +79 -0
- package/open-sse/utils/requestLogger.js +260 -0
- package/open-sse/utils/responsesStreamHelpers.js +49 -0
- package/open-sse/utils/sessionManager.js +82 -0
- package/open-sse/utils/stream.js +462 -0
- package/open-sse/utils/streamHandler.js +250 -0
- package/open-sse/utils/streamHelpers.js +122 -0
- package/open-sse/utils/toolDeduper.js +49 -0
- package/open-sse/utils/usageTracking.js +347 -0
- package/package.json +100 -0
- package/postcss.config.mjs +12 -0
- package/public/favicon.svg +11 -0
- package/public/file.svg +1 -0
- package/public/globe.svg +1 -0
- package/public/i18n/literals/ar.json +195 -0
- package/public/i18n/literals/bn.json +195 -0
- package/public/i18n/literals/cs.json +195 -0
- package/public/i18n/literals/da.json +195 -0
- package/public/i18n/literals/de.json +195 -0
- package/public/i18n/literals/el.json +195 -0
- package/public/i18n/literals/es.json +195 -0
- package/public/i18n/literals/fi.json +195 -0
- package/public/i18n/literals/fr.json +195 -0
- package/public/i18n/literals/he.json +195 -0
- package/public/i18n/literals/hi.json +195 -0
- package/public/i18n/literals/hu.json +195 -0
- package/public/i18n/literals/id.json +195 -0
- package/public/i18n/literals/it.json +195 -0
- package/public/i18n/literals/ja.json +195 -0
- package/public/i18n/literals/ko.json +195 -0
- package/public/i18n/literals/nl.json +195 -0
- package/public/i18n/literals/no.json +195 -0
- package/public/i18n/literals/pl.json +195 -0
- package/public/i18n/literals/pt-BR.json +195 -0
- package/public/i18n/literals/pt-PT.json +195 -0
- package/public/i18n/literals/ro.json +195 -0
- package/public/i18n/literals/ru.json +195 -0
- package/public/i18n/literals/sv.json +195 -0
- package/public/i18n/literals/th.json +195 -0
- package/public/i18n/literals/tl.json +195 -0
- package/public/i18n/literals/tr.json +195 -0
- package/public/i18n/literals/uk.json +195 -0
- package/public/i18n/literals/ur.json +195 -0
- package/public/i18n/literals/vi.json +195 -0
- package/public/i18n/literals/zh-CN.json +772 -0
- package/public/i18n/literals/zh-TW.json +195 -0
- package/public/icons/discord.svg +4 -0
- package/public/icons/icon-192.svg +4 -0
- package/public/icons/icon-512.svg +4 -0
- package/public/next.svg +1 -0
- package/public/providers/alicode-intl.png +0 -0
- package/public/providers/alicode.png +0 -0
- package/public/providers/amp.png +0 -0
- package/public/providers/anthropic-m.png +0 -0
- package/public/providers/anthropic.png +0 -0
- package/public/providers/antigravity.png +0 -0
- package/public/providers/assemblyai.png +0 -0
- package/public/providers/aws-polly.png +0 -0
- package/public/providers/azure.png +0 -0
- package/public/providers/black-forest-labs.png +0 -0
- package/public/providers/blackbox.png +0 -0
- package/public/providers/brave-search.png +0 -0
- package/public/providers/byteplus.png +0 -0
- package/public/providers/cartesia.png +0 -0
- package/public/providers/cerebras.png +0 -0
- package/public/providers/chutes.png +0 -0
- package/public/providers/claude.png +0 -0
- package/public/providers/cline.png +0 -0
- package/public/providers/cloudflare-ai.png +0 -0
- package/public/providers/codebuddy.svg +37 -0
- package/public/providers/codex.png +0 -0
- package/public/providers/cohere.png +0 -0
- package/public/providers/comfyui.png +0 -0
- package/public/providers/commandcode.png +0 -0
- package/public/providers/continue.png +0 -0
- package/public/providers/copilot.png +0 -0
- package/public/providers/coqui.png +0 -0
- package/public/providers/cursor.png +0 -0
- package/public/providers/deepgram.png +0 -0
- package/public/providers/deepseek-tui.png +0 -0
- package/public/providers/deepseek.png +0 -0
- package/public/providers/droid.png +0 -0
- package/public/providers/edge-tts.png +0 -0
- package/public/providers/elevenlabs.png +0 -0
- package/public/providers/exa.png +0 -0
- package/public/providers/fal-ai.png +0 -0
- package/public/providers/firecrawl.png +0 -0
- package/public/providers/fireworks.png +0 -0
- package/public/providers/gemini-cli.png +0 -0
- package/public/providers/gemini.png +0 -0
- package/public/providers/github.png +0 -0
- package/public/providers/glm-cn.png +0 -0
- package/public/providers/glm.png +0 -0
- package/public/providers/google-pse.png +0 -0
- package/public/providers/google-tts.png +0 -0
- package/public/providers/grok-web.png +0 -0
- package/public/providers/groq.png +0 -0
- package/public/providers/hermes.png +0 -0
- package/public/providers/huggingface.png +0 -0
- package/public/providers/hyperbolic.png +0 -0
- package/public/providers/iflow.png +0 -0
- package/public/providers/inworld.png +0 -0
- package/public/providers/jcode.png +0 -0
- package/public/providers/jina-ai.png +0 -0
- package/public/providers/jina-reader.png +0 -0
- package/public/providers/kilocode.png +0 -0
- package/public/providers/kimi-coding.png +0 -0
- package/public/providers/kimi.png +0 -0
- package/public/providers/kiro.png +0 -0
- package/public/providers/linkup.png +0 -0
- package/public/providers/local-device.png +0 -0
- package/public/providers/minimax-cn.png +0 -0
- package/public/providers/minimax.png +0 -0
- package/public/providers/mistral.png +0 -0
- package/public/providers/nanobanana.png +0 -0
- package/public/providers/nebius.png +0 -0
- package/public/providers/nvidia.png +0 -0
- package/public/providers/oai-cc.png +0 -0
- package/public/providers/oai-r.png +0 -0
- package/public/providers/ollama-local.png +0 -0
- package/public/providers/ollama.png +0 -0
- package/public/providers/openai.png +0 -0
- package/public/providers/openclaw.png +0 -0
- package/public/providers/opencode-go.png +0 -0
- package/public/providers/opencode.png +0 -0
- package/public/providers/openrouter.png +0 -0
- package/public/providers/perplexity-web.png +0 -0
- package/public/providers/perplexity.png +0 -0
- package/public/providers/playht.png +0 -0
- package/public/providers/qoder.png +0 -0
- package/public/providers/qwen.png +0 -0
- package/public/providers/recraft.png +0 -0
- package/public/providers/roo.png +0 -0
- package/public/providers/runwayml.png +0 -0
- package/public/providers/sdwebui.png +0 -0
- package/public/providers/searchapi.png +0 -0
- package/public/providers/searxng.png +0 -0
- package/public/providers/serper.png +0 -0
- package/public/providers/siliconflow.png +0 -0
- package/public/providers/stability-ai.png +0 -0
- package/public/providers/tavily.png +0 -0
- package/public/providers/together.png +0 -0
- package/public/providers/topaz.png +0 -0
- package/public/providers/tortoise.png +0 -0
- package/public/providers/vertex-partner.png +0 -0
- package/public/providers/vertex.png +0 -0
- package/public/providers/volcengine-ark.png +0 -0
- package/public/providers/voyage-ai.png +0 -0
- package/public/providers/xai.png +0 -0
- package/public/providers/xiaomi-mimo.png +0 -0
- package/public/providers/xiaomi-tokenplan.png +0 -0
- package/public/providers/youcom.png +0 -0
- package/public/sw.js +22 -0
- package/public/vercel.svg +1 -0
- package/public/window.svg +1 -0
- package/scripts/compact-request-details.mjs +71 -0
- package/scripts/import-codex-gptjson.mjs +342 -0
- package/scripts/start-standalone.mjs +25 -0
- package/scripts/translate-readme.js +201 -0
- package/src/app/(dashboard)/dashboard/automation/page.js +294 -0
- package/src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js +967 -0
- package/src/app/(dashboard)/dashboard/basic-chat/page.js +5 -0
- package/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.js +66 -0
- package/src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js +173 -0
- package/src/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +11 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/AntigravityToolCard.js +481 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/ApiKeySelect.js +66 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/BaseUrlSelect.js +174 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/ClaudeToolCard.js +390 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/ClineToolCard.js +301 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/CodexToolCard.js +458 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/CopilotToolCard.js +323 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/CoworkToolCard.js +640 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/DeepSeekTuiToolCard.js +338 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/DefaultToolCard.js +271 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/DroidToolCard.js +410 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/EndpointPresetControl.js +128 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/HermesToolCard.js +317 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/JcodeToolCard.js +380 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/KiloToolCard.js +275 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/MitmLinkCard.js +40 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/MitmServerCard.js +329 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/MitmToolCard.js +318 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/OpenClawToolCard.js +388 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/OpenCodeToolCard.js +500 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/ToolSummaryCard.js +39 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/cliEndpointMatch.js +13 -0
- package/src/app/(dashboard)/dashboard/cli-tools/components/index.js +19 -0
- package/src/app/(dashboard)/dashboard/cli-tools/page.js +7 -0
- package/src/app/(dashboard)/dashboard/combos/page.js +612 -0
- package/src/app/(dashboard)/dashboard/console-log/ConsoleLogClient.js +91 -0
- package/src/app/(dashboard)/dashboard/console-log/page.js +8 -0
- package/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js +1555 -0
- package/src/app/(dashboard)/dashboard/endpoint/page.js +7 -0
- package/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1903 -0
- package/src/app/(dashboard)/dashboard/media-providers/[kind]/page.js +289 -0
- package/src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +410 -0
- package/src/app/(dashboard)/dashboard/media-providers/web/page.js +209 -0
- package/src/app/(dashboard)/dashboard/mitm/MitmPageClient.js +117 -0
- package/src/app/(dashboard)/dashboard/mitm/page.js +5 -0
- package/src/app/(dashboard)/dashboard/page.js +7 -0
- package/src/app/(dashboard)/dashboard/profile/page.js +1140 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js +389 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/AddCustomModelModal.js +125 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/CompatibleModelsSection.js +250 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js +299 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/CooldownTimer.js +42 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/EditCompatibleNodeModal.js +161 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/ModelRow.js +95 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/PassthroughModelsSection.js +183 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/page.js +2053 -0
- package/src/app/(dashboard)/dashboard/providers/[id]/page.new.js +1724 -0
- package/src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js +497 -0
- package/src/app/(dashboard)/dashboard/providers/components/ModelAvailabilityBadge.js +185 -0
- package/src/app/(dashboard)/dashboard/providers/components/ModelsCard.js +294 -0
- package/src/app/(dashboard)/dashboard/providers/new/page.js +220 -0
- package/src/app/(dashboard)/dashboard/providers/page.js +1365 -0
- package/src/app/(dashboard)/dashboard/proxy-pools/page.js +1092 -0
- package/src/app/(dashboard)/dashboard/quota/page.js +11 -0
- package/src/app/(dashboard)/dashboard/skills/page.js +112 -0
- package/src/app/(dashboard)/dashboard/translator/page.js +303 -0
- package/src/app/(dashboard)/dashboard/usage/components/OverviewCards.js +35 -0
- package/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/ProviderLimitCard.js +185 -0
- package/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaProgressBar.js +127 -0
- package/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/QuotaTable.js +259 -0
- package/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js +1394 -0
- package/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.js +244 -0
- package/src/app/(dashboard)/dashboard/usage/components/ProviderTopology.js +327 -0
- package/src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js +433 -0
- package/src/app/(dashboard)/dashboard/usage/components/UsageChart.js +141 -0
- package/src/app/(dashboard)/dashboard/usage/components/UsageTable.js +247 -0
- package/src/app/(dashboard)/dashboard/usage/page.js +75 -0
- package/src/app/(dashboard)/layout.js +6 -0
- package/src/app/api/auth/login/route.js +76 -0
- package/src/app/api/auth/logout/route.js +12 -0
- package/src/app/api/auth/oidc/callback/route.js +87 -0
- package/src/app/api/auth/oidc/start/route.js +52 -0
- package/src/app/api/auth/oidc/test/route.js +84 -0
- package/src/app/api/auth/status/route.js +45 -0
- package/src/app/api/cli-tools/all-statuses/route.js +46 -0
- package/src/app/api/cli-tools/antigravity-mitm/alias/route.js +53 -0
- package/src/app/api/cli-tools/antigravity-mitm/route.js +202 -0
- package/src/app/api/cli-tools/claude-settings/route.js +203 -0
- package/src/app/api/cli-tools/cline-settings/route.js +133 -0
- package/src/app/api/cli-tools/codex-gateway/accounts/route.js +16 -0
- package/src/app/api/cli-tools/codex-settings/route.js +239 -0
- package/src/app/api/cli-tools/copilot-settings/route.js +148 -0
- package/src/app/api/cli-tools/cowork-mcp-registry/route.js +77 -0
- package/src/app/api/cli-tools/cowork-mcp-tools/route.js +95 -0
- package/src/app/api/cli-tools/cowork-settings/route.js +412 -0
- package/src/app/api/cli-tools/deepseek-tui-settings/route.js +164 -0
- package/src/app/api/cli-tools/droid-settings/route.js +213 -0
- package/src/app/api/cli-tools/hermes-settings/route.js +175 -0
- package/src/app/api/cli-tools/jcode-settings/route.js +216 -0
- package/src/app/api/cli-tools/kilo-settings/route.js +131 -0
- package/src/app/api/cli-tools/openclaw-settings/route.js +292 -0
- package/src/app/api/cli-tools/opencode-settings/route.js +259 -0
- package/src/app/api/combos/[id]/route.js +81 -0
- package/src/app/api/combos/route.js +48 -0
- package/src/app/api/health/route.js +15 -0
- package/src/app/api/init/route.js +4 -0
- package/src/app/api/keys/[id]/route.js +58 -0
- package/src/app/api/keys/route.js +42 -0
- package/src/app/api/locale/route.js +30 -0
- package/src/app/api/mcp/[plugin]/message/route.js +21 -0
- package/src/app/api/mcp/[plugin]/sse/route.js +37 -0
- package/src/app/api/media-providers/tts/deepgram/voices/route.js +65 -0
- package/src/app/api/media-providers/tts/elevenlabs/voices/route.js +71 -0
- package/src/app/api/media-providers/tts/inworld/voices/route.js +61 -0
- package/src/app/api/media-providers/tts/minimax/voices/route.js +113 -0
- package/src/app/api/media-providers/tts/voices/route.js +99 -0
- package/src/app/api/models/alias/route.js +53 -0
- package/src/app/api/models/availability/route.js +103 -0
- package/src/app/api/models/custom/route.js +48 -0
- package/src/app/api/models/disabled/route.js +50 -0
- package/src/app/api/models/route.js +64 -0
- package/src/app/api/models/test/ping.js +191 -0
- package/src/app/api/models/test/route.js +14 -0
- package/src/app/api/oauth/[provider]/[action]/route.js +343 -0
- package/src/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +19 -0
- package/src/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +30 -0
- package/src/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +23 -0
- package/src/app/api/oauth/codebuddy/bulk-import/latest/route.js +25 -0
- package/src/app/api/oauth/codebuddy/bulk-import/route.js +49 -0
- package/src/app/api/oauth/codebuddy/quota-cookie/route.js +133 -0
- package/src/app/api/oauth/codex/import-token/route.js +96 -0
- package/src/app/api/oauth/cursor/auto-import/route.js +258 -0
- package/src/app/api/oauth/cursor/import/route.js +100 -0
- package/src/app/api/oauth/gitlab/pat/route.js +62 -0
- package/src/app/api/oauth/iflow/cookie/route.js +137 -0
- package/src/app/api/oauth/kiro/auto-import/route.js +85 -0
- package/src/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +18 -0
- package/src/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +29 -0
- package/src/app/api/oauth/kiro/bulk-import/[jobId]/route.js +22 -0
- package/src/app/api/oauth/kiro/bulk-import/latest/route.js +25 -0
- package/src/app/api/oauth/kiro/bulk-import/route.js +49 -0
- package/src/app/api/oauth/kiro/import/route.js +110 -0
- package/src/app/api/oauth/kiro/social-authorize/route.js +27 -0
- package/src/app/api/oauth/kiro/social-exchange/route.js +41 -0
- package/src/app/api/pricing/route.js +134 -0
- package/src/app/api/provider-nodes/[id]/route.js +101 -0
- package/src/app/api/provider-nodes/route.js +104 -0
- package/src/app/api/provider-nodes/validate/route.js +201 -0
- package/src/app/api/providers/[id]/models/route.js +526 -0
- package/src/app/api/providers/[id]/route.js +189 -0
- package/src/app/api/providers/[id]/test/route.js +23 -0
- package/src/app/api/providers/[id]/test/testUtils.js +714 -0
- package/src/app/api/providers/[id]/test-models/route.js +66 -0
- package/src/app/api/providers/client/route.js +126 -0
- package/src/app/api/providers/kilo/free-models/route.js +55 -0
- package/src/app/api/providers/route.js +206 -0
- package/src/app/api/providers/suggested-models/filters.js +20 -0
- package/src/app/api/providers/suggested-models/route.js +32 -0
- package/src/app/api/providers/test-batch/route.js +131 -0
- package/src/app/api/providers/validate/route.js +637 -0
- package/src/app/api/proxy-pools/[id]/route.js +123 -0
- package/src/app/api/proxy-pools/[id]/test/route.js +70 -0
- package/src/app/api/proxy-pools/cloudflare-deploy/route.js +145 -0
- package/src/app/api/proxy-pools/deno-deploy/route.js +175 -0
- package/src/app/api/proxy-pools/route.js +93 -0
- package/src/app/api/proxy-pools/vercel-deploy/route.js +142 -0
- package/src/app/api/settings/database/route.js +36 -0
- package/src/app/api/settings/proxy-test/route.js +23 -0
- package/src/app/api/settings/require-login/route.js +15 -0
- package/src/app/api/settings/route.js +100 -0
- package/src/app/api/shutdown/route.js +24 -0
- package/src/app/api/tags/route.js +18 -0
- package/src/app/api/translator/console-logs/route.js +24 -0
- package/src/app/api/translator/console-logs/stream/route.js +79 -0
- package/src/app/api/translator/load/route.js +45 -0
- package/src/app/api/translator/save/route.js +44 -0
- package/src/app/api/translator/send/route.js +94 -0
- package/src/app/api/translator/translate/route.js +90 -0
- package/src/app/api/tunnel/disable/route.js +12 -0
- package/src/app/api/tunnel/enable/route.js +16 -0
- package/src/app/api/tunnel/status/route.js +13 -0
- package/src/app/api/tunnel/tailscale-check/route.js +50 -0
- package/src/app/api/tunnel/tailscale-disable/route.js +12 -0
- package/src/app/api/tunnel/tailscale-enable/route.js +12 -0
- package/src/app/api/tunnel/tailscale-install/route.js +72 -0
- package/src/app/api/usage/[connectionId]/route.js +188 -0
- package/src/app/api/usage/chart/route.js +21 -0
- package/src/app/api/usage/history/route.js +12 -0
- package/src/app/api/usage/logs/route.js +12 -0
- package/src/app/api/usage/providers/route.js +42 -0
- package/src/app/api/usage/request-details/route.js +57 -0
- package/src/app/api/usage/request-logs/route.js +13 -0
- package/src/app/api/usage/stats/route.js +23 -0
- package/src/app/api/usage/stream/route.js +79 -0
- package/src/app/api/v1/api/chat/route.js +37 -0
- package/src/app/api/v1/audio/speech/route.js +16 -0
- package/src/app/api/v1/audio/transcriptions/route.js +19 -0
- package/src/app/api/v1/audio/voices/route.js +68 -0
- package/src/app/api/v1/chat/completions/route.js +35 -0
- package/src/app/api/v1/embeddings/route.js +21 -0
- package/src/app/api/v1/images/generations/route.js +16 -0
- package/src/app/api/v1/messages/count_tokens/route.js +52 -0
- package/src/app/api/v1/messages/route.js +36 -0
- package/src/app/api/v1/models/[kind]/route.js +55 -0
- package/src/app/api/v1/models/info/route.js +110 -0
- package/src/app/api/v1/models/route.js +451 -0
- package/src/app/api/v1/responses/compact/route.js +37 -0
- package/src/app/api/v1/responses/route.js +30 -0
- package/src/app/api/v1/route.js +1 -0
- package/src/app/api/v1/search/route.js +21 -0
- package/src/app/api/v1/web/fetch/route.js +21 -0
- package/src/app/api/v1beta/models/[...path]/route.js +328 -0
- package/src/app/api/v1beta/models/route.js +44 -0
- package/src/app/api/version/route.js +45 -0
- package/src/app/api/version/shutdown/route.js +15 -0
- package/src/app/api/version/update/route.js +21 -0
- package/src/app/callback/page.js +148 -0
- package/src/app/dashboard/settings/pricing/page.js +173 -0
- package/src/app/favicon.ico +0 -0
- package/src/app/globals.css +496 -0
- package/src/app/landing/components/AnimatedBackground.js +57 -0
- package/src/app/landing/components/Features.js +133 -0
- package/src/app/landing/components/FlowAnimation.js +175 -0
- package/src/app/landing/components/Footer.js +61 -0
- package/src/app/landing/components/GetStarted.js +97 -0
- package/src/app/landing/components/HeroSection.js +47 -0
- package/src/app/landing/components/HowItWorks.js +66 -0
- package/src/app/landing/components/Navigation.js +72 -0
- package/src/app/landing/page.js +106 -0
- package/src/app/layout.js +49 -0
- package/src/app/login/page.js +197 -0
- package/src/app/manifest.js +30 -0
- package/src/app/page.js +5 -0
- package/src/dashboardGuard.js +242 -0
- package/src/i18n/RuntimeI18nProvider.js +27 -0
- package/src/i18n/config.js +146 -0
- package/src/i18n/runtime.js +162 -0
- package/src/lib/appUpdater.js +200 -0
- package/src/lib/auth/dashboardSession.js +68 -0
- package/src/lib/auth/loginLimiter.js +52 -0
- package/src/lib/auth/oidc.js +234 -0
- package/src/lib/consoleLogBuffer.js +79 -0
- package/src/lib/dataDir.js +29 -0
- package/src/lib/db/adapters/betterSqliteAdapter.js +55 -0
- package/src/lib/db/adapters/bunSqliteAdapter.js +63 -0
- package/src/lib/db/adapters/nodeSqliteAdapter.js +84 -0
- package/src/lib/db/adapters/sqljsAdapter.js +115 -0
- package/src/lib/db/backup.js +35 -0
- package/src/lib/db/driver.js +85 -0
- package/src/lib/db/helpers/jsonCol.js +9 -0
- package/src/lib/db/helpers/kvStore.js +39 -0
- package/src/lib/db/helpers/metaStore.js +22 -0
- package/src/lib/db/index.js +171 -0
- package/src/lib/db/migrate.js +286 -0
- package/src/lib/db/migrations/001-initial.js +14 -0
- package/src/lib/db/migrations/index.js +10 -0
- package/src/lib/db/paths.js +18 -0
- package/src/lib/db/repos/aliasRepo.js +62 -0
- package/src/lib/db/repos/apiKeysRepo.js +75 -0
- package/src/lib/db/repos/combosRepo.js +73 -0
- package/src/lib/db/repos/connectionsRepo.js +226 -0
- package/src/lib/db/repos/disabledModelsRepo.js +56 -0
- package/src/lib/db/repos/nodesRepo.js +95 -0
- package/src/lib/db/repos/pricingRepo.js +108 -0
- package/src/lib/db/repos/proxyPoolsRepo.js +103 -0
- package/src/lib/db/repos/requestDetailsRepo.js +259 -0
- package/src/lib/db/repos/settingsRepo.js +104 -0
- package/src/lib/db/repos/usageRepo.js +731 -0
- package/src/lib/db/schema.js +157 -0
- package/src/lib/db/version.js +21 -0
- package/src/lib/disabledModelsDb.js +4 -0
- package/src/lib/localDb.js +21 -0
- package/src/lib/mcp/stdioSseBridge.js +198 -0
- package/src/lib/mitmAliasCache.js +46 -0
- package/src/lib/network/connectionProxy.js +160 -0
- package/src/lib/network/initOutboundProxy.js +25 -0
- package/src/lib/network/outboundProxy.js +68 -0
- package/src/lib/network/proxyTest.js +91 -0
- package/src/lib/oauth/constants/oauth.js +284 -0
- package/src/lib/oauth/constants/xai.js +61 -0
- package/src/lib/oauth/providers.js +1506 -0
- package/src/lib/oauth/services/antigravity.js +321 -0
- package/src/lib/oauth/services/claude.js +136 -0
- package/src/lib/oauth/services/codebuddyBulkImportManager.js +454 -0
- package/src/lib/oauth/services/codex.js +144 -0
- package/src/lib/oauth/services/cursor.js +179 -0
- package/src/lib/oauth/services/gemini.js +240 -0
- package/src/lib/oauth/services/github.js +225 -0
- package/src/lib/oauth/services/iflow.js +202 -0
- package/src/lib/oauth/services/index.js +17 -0
- package/src/lib/oauth/services/kiro.js +334 -0
- package/src/lib/oauth/services/kiroBulkImportManager.js +778 -0
- package/src/lib/oauth/services/kiroConnections.js +93 -0
- package/src/lib/oauth/services/kiroGoogleAutomation.js +1136 -0
- package/src/lib/oauth/services/oauth.js +157 -0
- package/src/lib/oauth/services/openai.js +123 -0
- package/src/lib/oauth/services/qoder.js +216 -0
- package/src/lib/oauth/services/qwen.js +170 -0
- package/src/lib/oauth/services/xai.js +238 -0
- package/src/lib/oauth/utils/banner.js +63 -0
- package/src/lib/oauth/utils/pkce.js +39 -0
- package/src/lib/oauth/utils/server.js +415 -0
- package/src/lib/oauth/utils/ui.js +48 -0
- package/src/lib/providerNormalization.js +45 -0
- package/src/lib/qoder/constants.js +64 -0
- package/src/lib/qoder/cosy.js +175 -0
- package/src/lib/qoder/encoding.js +55 -0
- package/src/lib/requestDetailsDb.js +4 -0
- package/src/lib/tunnel/cloudflare/cloudflared.js +449 -0
- package/src/lib/tunnel/cloudflare/config.js +9 -0
- package/src/lib/tunnel/cloudflare/healthCheck.js +29 -0
- package/src/lib/tunnel/cloudflare/manager.js +151 -0
- package/src/lib/tunnel/cloudflare/pid.js +23 -0
- package/src/lib/tunnel/index.js +48 -0
- package/src/lib/tunnel/shared/dnsResolver.js +17 -0
- package/src/lib/tunnel/shared/internetCheck.js +26 -0
- package/src/lib/tunnel/shared/state.js +41 -0
- package/src/lib/tunnel/shared/watchdogConfig.js +8 -0
- package/src/lib/tunnel/tailscale/config.js +7 -0
- package/src/lib/tunnel/tailscale/healthCheck.js +29 -0
- package/src/lib/tunnel/tailscale/manager.js +129 -0
- package/src/lib/tunnel/tailscale/tailscale.js +790 -0
- package/src/lib/updater/updater.js +235 -0
- package/src/lib/usage/fetcher.js +208 -0
- package/src/lib/usageDb.js +7 -0
- package/src/mitm/antigravityIdeVersion.js +50 -0
- package/src/mitm/cert/generate.js +32 -0
- package/src/mitm/cert/install.js +269 -0
- package/src/mitm/cert/rootCA.js +173 -0
- package/src/mitm/config.js +87 -0
- package/src/mitm/dbReader.js +22 -0
- package/src/mitm/dns/dnsConfig.js +266 -0
- package/src/mitm/handlers/antigravity.js +33 -0
- package/src/mitm/handlers/base.js +226 -0
- package/src/mitm/handlers/copilot.js +35 -0
- package/src/mitm/handlers/cursor.js +15 -0
- package/src/mitm/handlers/kiro.js +526 -0
- package/src/mitm/logger.js +106 -0
- package/src/mitm/manager.js +851 -0
- package/src/mitm/paths.js +32 -0
- package/src/mitm/server.js +435 -0
- package/src/mitm/winElevated.js +81 -0
- package/src/models/index.js +38 -0
- package/src/proxy.js +5 -0
- package/src/shared/components/AddCustomEmbeddingModal.js +183 -0
- package/src/shared/components/Avatar.js +88 -0
- package/src/shared/components/Badge.js +54 -0
- package/src/shared/components/BulkAccountAutomationModal.js +508 -0
- package/src/shared/components/Button.js +56 -0
- package/src/shared/components/Card.js +116 -0
- package/src/shared/components/ChangelogModal.js +97 -0
- package/src/shared/components/CodeBuddyQuotaCookieModal.js +109 -0
- package/src/shared/components/ComboFormModal.js +176 -0
- package/src/shared/components/CursorAuthModal.js +212 -0
- package/src/shared/components/DonateModal.js +136 -0
- package/src/shared/components/Drawer.js +82 -0
- package/src/shared/components/EditConnectionModal.js +286 -0
- package/src/shared/components/Footer.js +132 -0
- package/src/shared/components/GitLabAuthModal.js +194 -0
- package/src/shared/components/Header.js +380 -0
- package/src/shared/components/HeaderLanguage.js +46 -0
- package/src/shared/components/HeaderMenu.js +126 -0
- package/src/shared/components/IFlowCookieModal.js +132 -0
- package/src/shared/components/Input.js +65 -0
- package/src/shared/components/KiroAuthModal.js +1171 -0
- package/src/shared/components/KiroOAuthWrapper.js +149 -0
- package/src/shared/components/KiroSocialOAuthModal.js +205 -0
- package/src/shared/components/LanguageSwitcher.js +190 -0
- package/src/shared/components/Loading.js +75 -0
- package/src/shared/components/ManualConfigModal.js +44 -0
- package/src/shared/components/McpMarketplaceModal.js +255 -0
- package/src/shared/components/Modal.js +146 -0
- package/src/shared/components/ModelSelectModal.js +537 -0
- package/src/shared/components/NineRemoteButton.js +23 -0
- package/src/shared/components/NineRemotePromoModal.js +99 -0
- package/src/shared/components/NoAuthProxyCard.js +86 -0
- package/src/shared/components/OAuthModal.js +682 -0
- package/src/shared/components/Pagination.js +150 -0
- package/src/shared/components/PricingModal.js +208 -0
- package/src/shared/components/ProviderIcon.js +63 -0
- package/src/shared/components/ProviderInfoCard.js +82 -0
- package/src/shared/components/RequestLogger.js +121 -0
- package/src/shared/components/SegmentedControl.js +48 -0
- package/src/shared/components/Select.js +67 -0
- package/src/shared/components/Sidebar.js +441 -0
- package/src/shared/components/ThemeProvider.js +15 -0
- package/src/shared/components/ThemeToggle.js +42 -0
- package/src/shared/components/Toggle.js +69 -0
- package/src/shared/components/Tooltip.js +25 -0
- package/src/shared/components/UsageStats.js +505 -0
- package/src/shared/components/index.js +46 -0
- package/src/shared/components/layouts/AuthLayout.js +29 -0
- package/src/shared/components/layouts/DashboardLayout.js +104 -0
- package/src/shared/components/layouts/index.js +4 -0
- package/src/shared/constants/cliTools.js +397 -0
- package/src/shared/constants/colors.js +77 -0
- package/src/shared/constants/config.js +99 -0
- package/src/shared/constants/coworkPlugins.js +75 -0
- package/src/shared/constants/index.js +4 -0
- package/src/shared/constants/locales.js +36 -0
- package/src/shared/constants/mitmToolHosts.js +12 -0
- package/src/shared/constants/models.js +38 -0
- package/src/shared/constants/pricing.js +303 -0
- package/src/shared/constants/providers.js +289 -0
- package/src/shared/constants/skills.js +78 -0
- package/src/shared/constants/ttsProviders.js +138 -0
- package/src/shared/hooks/index.js +2 -0
- package/src/shared/hooks/useCopyToClipboard.js +43 -0
- package/src/shared/hooks/useTheme.js +60 -0
- package/src/shared/services/bootstrap.js +12 -0
- package/src/shared/services/initializeApp.js +268 -0
- package/src/shared/utils/api.js +93 -0
- package/src/shared/utils/apiKey.js +98 -0
- package/src/shared/utils/clineAuth.js +37 -0
- package/src/shared/utils/cn.js +11 -0
- package/src/shared/utils/connectionStatus.js +162 -0
- package/src/shared/utils/index.js +40 -0
- package/src/shared/utils/machine.js +6 -0
- package/src/shared/utils/machineId.js +66 -0
- package/src/shared/utils/providerModelsFetcher.js +30 -0
- package/src/sse/handlers/chat.js +261 -0
- package/src/sse/handlers/embeddings.js +141 -0
- package/src/sse/handlers/fetch.js +213 -0
- package/src/sse/handlers/imageGeneration.js +142 -0
- package/src/sse/handlers/search.js +206 -0
- package/src/sse/handlers/stt.js +88 -0
- package/src/sse/handlers/tts.js +114 -0
- package/src/sse/services/auth.js +346 -0
- package/src/sse/services/codexGateway.js +215 -0
- package/src/sse/services/model.js +99 -0
- package/src/sse/services/tokenRefresh.js +319 -0
- package/src/sse/utils/logger.js +75 -0
- package/src/store/headerSearchStore.js +19 -0
- package/src/store/index.js +6 -0
- package/src/store/notificationStore.js +45 -0
- package/src/store/providerStore.js +55 -0
- package/src/store/settingsStore.js +51 -0
- package/src/store/themeStore.js +54 -0
- package/src/store/userStore.js +20 -0
- package/start.sh +4 -0
|
@@ -0,0 +1,944 @@
|
|
|
1
|
+
import { PROVIDERS } from "./providers.js";
|
|
2
|
+
import { buildTtsProviderModels } from "./ttsModels.js";
|
|
3
|
+
|
|
4
|
+
// Provider models - Single source of truth
|
|
5
|
+
// Key = alias (cc, cx, gc, qw, if, ag, gh for OAuth; id for API Key)
|
|
6
|
+
// Field "provider" for special cases (e.g. AntiGravity models that call different backends)
|
|
7
|
+
|
|
8
|
+
const CODEX_REVIEW_SUFFIX = "-review";
|
|
9
|
+
|
|
10
|
+
function withCodexReviewModels(models) {
|
|
11
|
+
return models.flatMap((model) => {
|
|
12
|
+
if ((model.type || "llm") !== "llm" || model.id.endsWith(CODEX_REVIEW_SUFFIX)) {
|
|
13
|
+
return [model];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return [
|
|
17
|
+
model,
|
|
18
|
+
{
|
|
19
|
+
...model,
|
|
20
|
+
id: `${model.id}${CODEX_REVIEW_SUFFIX}`,
|
|
21
|
+
name: `${model.name} Review`,
|
|
22
|
+
upstreamModelId: model.upstreamModelId || model.id,
|
|
23
|
+
quotaFamily: "review",
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const PROVIDER_MODELS = {
|
|
30
|
+
// OAuth Providers (using alias)
|
|
31
|
+
cc: [ // Claude Code
|
|
32
|
+
{ id: "claude-opus-4-8", name: "Claude Opus 4.8" },
|
|
33
|
+
{ id: "claude-opus-4-7", name: "Claude Opus 4.7" },
|
|
34
|
+
{ id: "claude-opus-4-6", name: "Claude Opus 4.6" },
|
|
35
|
+
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
|
|
36
|
+
{ id: "claude-opus-4-5-20251101", name: "Claude 4.5 Opus" },
|
|
37
|
+
{ id: "claude-sonnet-4-5-20250929", name: "Claude 4.5 Sonnet" },
|
|
38
|
+
{ id: "claude-haiku-4-5-20251001", name: "Claude 4.5 Haiku" },
|
|
39
|
+
],
|
|
40
|
+
cx: withCodexReviewModels([ // OpenAI Codex
|
|
41
|
+
{ id: "gpt-5.5", name: "GPT 5.5" },
|
|
42
|
+
{ id: "gpt-5.4", name: "GPT 5.4" },
|
|
43
|
+
{ id: "gpt-5.4-mini", name: "GPT 5.4 Mini" },
|
|
44
|
+
// GPT 5.3 Codex - all thinking levels
|
|
45
|
+
{ id: "gpt-5.3-codex", name: "GPT 5.3 Codex" },
|
|
46
|
+
{ id: "gpt-5.3-codex-xhigh", name: "GPT 5.3 Codex (xHigh)" },
|
|
47
|
+
{ id: "gpt-5.3-codex-high", name: "GPT 5.3 Codex (High)" },
|
|
48
|
+
{ id: "gpt-5.3-codex-low", name: "GPT 5.3 Codex (Low)" },
|
|
49
|
+
{ id: "gpt-5.3-codex-none", name: "GPT 5.3 Codex (None)" },
|
|
50
|
+
{ id: "gpt-5.3-codex-spark", name: "GPT 5.3 Codex Spark" },
|
|
51
|
+
// Image models (uses image_generation tool, requires Plus/Pro plan)
|
|
52
|
+
{ id: "gpt-5.5-image", name: "GPT 5.5 Image", type: "image", capabilities: ["text2img", "edit"], params: ["size", "quality", "background", "image_detail", "output_format"] },
|
|
53
|
+
{ id: "gpt-5.4-image", name: "GPT 5.4 Image", type: "image", capabilities: ["text2img", "edit"], params: ["size", "quality", "background", "image_detail", "output_format"] },
|
|
54
|
+
{ id: "gpt-5.3-image", name: "GPT 5.3 Image", type: "image", capabilities: ["text2img", "edit"], params: ["size", "quality", "background", "image_detail", "output_format"] },
|
|
55
|
+
]),
|
|
56
|
+
gc: [ // Gemini CLI
|
|
57
|
+
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash Preview" },
|
|
58
|
+
{ id: "gemini-3-pro-preview", name: "Gemini 3 Pro Preview" },
|
|
59
|
+
],
|
|
60
|
+
qw: [ // Qwen Code
|
|
61
|
+
// { id: "qwen3-coder-next", name: "Qwen3 Coder Next" },
|
|
62
|
+
{ id: "qwen3-coder-plus", name: "Qwen3 Coder Plus" },
|
|
63
|
+
{ id: "qwen3-coder-flash", name: "Qwen3 Coder Flash" },
|
|
64
|
+
{ id: "vision-model", name: "Qwen3 Vision Model" },
|
|
65
|
+
{ id: "coder-model", name: "Qwen3.6 Coder Model" },
|
|
66
|
+
],
|
|
67
|
+
if: [ // iFlow AI
|
|
68
|
+
{ id: "qwen3-coder-plus", name: "Qwen3 Coder Plus" },
|
|
69
|
+
{ id: "qwen3-max", name: "Qwen3 Max" },
|
|
70
|
+
{ id: "qwen3-vl-plus", name: "Qwen3 VL Plus" },
|
|
71
|
+
{ id: "qwen3-max-preview", name: "Qwen3 Max Preview" },
|
|
72
|
+
{ id: "qwen3-235b", name: "Qwen3 235B A22B" },
|
|
73
|
+
{ id: "qwen3-235b-a22b-instruct", name: "Qwen3 235B A22B Instruct" },
|
|
74
|
+
{ id: "qwen3-235b-a22b-thinking-2507", name: "Qwen3 235B A22B Thinking" },
|
|
75
|
+
{ id: "qwen3-32b", name: "Qwen3 32B" },
|
|
76
|
+
{ id: "kimi-k2", name: "Kimi K2" },
|
|
77
|
+
{ id: "deepseek-v3.2", name: "DeepSeek V3.2 Exp" },
|
|
78
|
+
{ id: "deepseek-v3.1", name: "DeepSeek V3.1 Terminus" },
|
|
79
|
+
{ id: "deepseek-v3", name: "DeepSeek V3 671B" },
|
|
80
|
+
{ id: "deepseek-r1", name: "DeepSeek R1" },
|
|
81
|
+
{ id: "glm-4.7", name: "GLM 4.7" },
|
|
82
|
+
{ id: "iflow-rome-30ba3b", name: "iFlow ROME" },
|
|
83
|
+
],
|
|
84
|
+
ag: [ // Antigravity - special case: models call different backends
|
|
85
|
+
{ id: "gemini-3-flash-agent", name: "Gemini 3.5 Flash (High)" },
|
|
86
|
+
{ id: "gemini-3.5-flash-low", name: "Gemini 3.5 Flash (Medium)" },
|
|
87
|
+
{ id: "gemini-3.5-flash-extra-low", name: "Gemini 3.5 Flash (Low)" },
|
|
88
|
+
{ id: "gemini-pro-agent", name: "Gemini 3.1 Pro (High)" },
|
|
89
|
+
{ id: "gemini-3.1-pro-low", name: "Gemini 3.1 Pro (Low)" },
|
|
90
|
+
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6 (Thinking)" },
|
|
91
|
+
{ id: "claude-opus-4-6-thinking", name: "Claude Opus 4.6 (Thinking)" },
|
|
92
|
+
{ id: "gpt-oss-120b-medium", name: "GPT-OSS 120B (Medium)" },
|
|
93
|
+
{ id: "gemini-3-flash", name: "Gemini 3 Flash", thinking: false }, // command model; AG strips thinking
|
|
94
|
+
],
|
|
95
|
+
gh: [ // GitHub Copilot - OpenAI models
|
|
96
|
+
{ id: "gpt-3.5-turbo", name: "GPT-3.5 Turbo" },
|
|
97
|
+
{ id: "gpt-4", name: "GPT-4" },
|
|
98
|
+
{ id: "gpt-4o", name: "GPT-4o" },
|
|
99
|
+
{ id: "gpt-4o-mini", name: "GPT-4o mini" },
|
|
100
|
+
{ id: "gpt-4.1", name: "GPT-4.1" },
|
|
101
|
+
{ id: "gpt-5-mini", name: "GPT-5 Mini" },
|
|
102
|
+
{ id: "gpt-5.2", name: "GPT-5.2" },
|
|
103
|
+
{ id: "gpt-5.2-codex", name: "GPT-5.2 Codex" },
|
|
104
|
+
{ id: "gpt-5.3-codex", name: "GPT-5.3 Codex" },
|
|
105
|
+
{ id: "gpt-5.4", name: "GPT-5.4" },
|
|
106
|
+
{ id: "gpt-5.4-mini", name: "GPT-5.4 Mini" },
|
|
107
|
+
// GitHub Copilot - Anthropic models
|
|
108
|
+
{ id: "claude-haiku-4.5", name: "Claude Haiku 4.5" },
|
|
109
|
+
{ id: "claude-opus-4.5", name: "Claude Opus 4.5" },
|
|
110
|
+
{ id: "claude-sonnet-4", name: "Claude Sonnet 4" },
|
|
111
|
+
{ id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5" },
|
|
112
|
+
{ id: "claude-sonnet-4.6", name: "Claude Sonnet 4.6" },
|
|
113
|
+
{ id: "claude-opus-4.6", name: "Claude Opus 4.6" },
|
|
114
|
+
{ id: "claude-opus-4.7", name: "Claude Opus 4.7" },
|
|
115
|
+
// GitHub Copilot - Google models
|
|
116
|
+
{ id: "gemini-2.5-pro", name: "Gemini 2.5 Pro" },
|
|
117
|
+
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash" },
|
|
118
|
+
{ id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro" },
|
|
119
|
+
// GitHub Copilot - Other models
|
|
120
|
+
{ id: "grok-code-fast-1", name: "Grok Code Fast 1" },
|
|
121
|
+
{ id: "oswe-vscode-prime", name: "Raptor Mini" },
|
|
122
|
+
{ id: "goldeneye-free-auto", name: "GoldenEye" },
|
|
123
|
+
// GitHub Copilot - Embedding models
|
|
124
|
+
{ id: "text-embedding-3-small", name: "Text Embedding 3 Small (GitHub)", type: "embedding" },
|
|
125
|
+
{ id: "text-embedding-3-large", name: "Text Embedding 3 Large (GitHub)", type: "embedding" },
|
|
126
|
+
],
|
|
127
|
+
kr: [ // Kiro AI
|
|
128
|
+
// --- Base Claude variants ---
|
|
129
|
+
// { id: "claude-opus-4.5", name: "Claude Opus 4.5" },
|
|
130
|
+
{ id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5" },
|
|
131
|
+
{ id: "claude-haiku-4.5", name: "Claude Haiku 4.5" },
|
|
132
|
+
{ id: "deepseek-3.2", name: "DeepSeek 3.2", strip: ["image", "audio"] },
|
|
133
|
+
{ id: "qwen3-coder-next", name: "Qwen3 Coder Next", strip: ["image", "audio"] },
|
|
134
|
+
{ id: "glm-5", name: "GLM 5" },
|
|
135
|
+
{ id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
136
|
+
// --- Thinking variants (alias to base; thinking is enabled at request time
|
|
137
|
+
// via <thinking_mode>enabled</thinking_mode> system-prompt injection) ---
|
|
138
|
+
{ id: "claude-sonnet-4.5-thinking", name: "Claude Sonnet 4.5 (Thinking)" },
|
|
139
|
+
{ id: "claude-haiku-4.5-thinking", name: "Claude Haiku 4.5 (Thinking)" },
|
|
140
|
+
// --- Agentic variants (synthetic; same upstream model + chunked-write
|
|
141
|
+
// system prompt to dodge Kiro's 2-3 min server timeout on big writes) ---
|
|
142
|
+
{ id: "claude-sonnet-4.5-agentic", name: "Claude Sonnet 4.5 (Agentic)" },
|
|
143
|
+
{ id: "claude-haiku-4.5-agentic", name: "Claude Haiku 4.5 (Agentic)" },
|
|
144
|
+
{ id: "claude-sonnet-4.5-thinking-agentic", name: "Claude Sonnet 4.5 (Thinking + Agentic)" },
|
|
145
|
+
{ id: "claude-haiku-4.5-thinking-agentic", name: "Claude Haiku 4.5 (Thinking + Agentic)" },
|
|
146
|
+
],
|
|
147
|
+
qd: [ // Qoder - tier + frontier models (server-published catalog)
|
|
148
|
+
// Tier models — pick a quality/cost tradeoff
|
|
149
|
+
{ id: "auto", name: "Qoder Auto" },
|
|
150
|
+
{ id: "ultimate", name: "Qoder Ultimate" },
|
|
151
|
+
{ id: "performance", name: "Qoder Performance" },
|
|
152
|
+
{ id: "efficient", name: "Qoder Efficient" },
|
|
153
|
+
{ id: "lite", name: "Qoder Lite" },
|
|
154
|
+
// Frontier models — pin a specific backing model
|
|
155
|
+
{ id: "qmodel", name: "Qwen 3.6 Plus (Qoder)" },
|
|
156
|
+
{ id: "qmodel_latest", name: "Qoder Qwen 3.7 Max" },
|
|
157
|
+
{ id: "dmodel", name: "DeepSeek V4 Pro (Qoder)" },
|
|
158
|
+
{ id: "dfmodel", name: "DeepSeek V4 Flash (Qoder)" },
|
|
159
|
+
{ id: "gm51model", name: "GLM 5.1 (Qoder)" },
|
|
160
|
+
{ id: "kmodel", name: "Kimi K2.6 (Qoder)" },
|
|
161
|
+
{ id: "mmodel", name: "MiniMax M2.7 (Qoder)" },
|
|
162
|
+
],
|
|
163
|
+
cb: [ // CodeBuddy - live smoke verified against www.codebuddy.ai on 2026-06-12.
|
|
164
|
+
{ id: "default-model", name: "Default", maxInputTokens: 176000, maxOutputTokens: 24000 },
|
|
165
|
+
{ id: "default-model-lite", name: "Default-Lite", maxInputTokens: 176000, maxOutputTokens: 24000 },
|
|
166
|
+
{ id: "claude-sonnet-4.6", name: "Claude Sonnet 4.6", maxInputTokens: 176000, maxOutputTokens: 24000 },
|
|
167
|
+
{ id: "claude-opus-4.7-1m", name: "Claude Opus 4.7 1M", maxInputTokens: 1000000, maxOutputTokens: 24000 },
|
|
168
|
+
{ id: "claude-opus-4.6", name: "Claude Opus 4.6", maxInputTokens: 176000, maxOutputTokens: 24000 },
|
|
169
|
+
{ id: "claude-haiku-4.5", name: "Claude Haiku 4.5", maxInputTokens: 176000, maxOutputTokens: 24000 },
|
|
170
|
+
{ id: "gpt-5.5", name: "GPT-5.5", maxInputTokens: 1000000, maxOutputTokens: 72000 },
|
|
171
|
+
{ id: "gpt-5.4", name: "GPT-5.4", maxInputTokens: 272000, maxOutputTokens: 128000 },
|
|
172
|
+
{ id: "gpt-5.3-codex", name: "GPT-5.3-Codex", maxInputTokens: 272000, maxOutputTokens: 128000 },
|
|
173
|
+
{ id: "gpt-5.1-codex", name: "GPT-5.1-Codex", maxInputTokens: 272000, maxOutputTokens: 128000 },
|
|
174
|
+
{ id: "gemini-3.1-pro", name: "Gemini-3.1-Pro", maxInputTokens: 400000, maxOutputTokens: 64000 },
|
|
175
|
+
{ id: "gemini-3.0-flash", name: "Gemini-3.0-Flash", maxInputTokens: 400000, maxOutputTokens: 64000 },
|
|
176
|
+
{ id: "gemini-3.5-flash", name: "Gemini-3.5-Flash", maxInputTokens: 1000000, maxOutputTokens: 65536 },
|
|
177
|
+
{ id: "gemini-2.5-flash", name: "Gemini-2.5-Flash", maxInputTokens: 400000, maxOutputTokens: 64000 },
|
|
178
|
+
{ id: "gemini-3.1-flash-lite", name: "Gemini-3.1-flash-lite", maxInputTokens: 200000, maxOutputTokens: 65536 },
|
|
179
|
+
{ id: "gemini-2.5-pro", name: "Gemini-2.5-Pro", maxInputTokens: 400000, maxOutputTokens: 64000 },
|
|
180
|
+
{ id: "deepseek-v3-0324", name: "DeepSeek-V3", maxInputTokens: 128000, maxOutputTokens: 8192, strip: ["image", "audio"] },
|
|
181
|
+
{ id: "glm-5.0", name: "GLM-5.0", maxInputTokens: 200000, maxOutputTokens: 48000, strip: ["image", "audio"] },
|
|
182
|
+
{ id: "glm-5v-turbo", name: "GLM-5V-Turbo", maxInputTokens: 200000, maxOutputTokens: 38000 },
|
|
183
|
+
{ id: "glm-4.6", name: "GLM-4.6", maxInputTokens: 168000, maxOutputTokens: 32000, strip: ["image", "audio"] },
|
|
184
|
+
{ id: "kimi-k2.6", name: "Kimi-K2.6", maxInputTokens: 256000, maxOutputTokens: 32000 },
|
|
185
|
+
{ id: "kimi-k2.5", name: "Kimi-K2.5", maxInputTokens: 164000, maxOutputTokens: 32000 },
|
|
186
|
+
],
|
|
187
|
+
cu: [ // Cursor IDE
|
|
188
|
+
{ id: "default", name: "Auto (Server Picks)" },
|
|
189
|
+
{ id: "claude-4.5-opus-high-thinking", name: "Claude 4.5 Opus High Thinking" },
|
|
190
|
+
{ id: "claude-4.5-opus-high", name: "Claude 4.5 Opus High" },
|
|
191
|
+
{ id: "claude-4.5-sonnet-thinking", name: "Claude 4.5 Sonnet Thinking" },
|
|
192
|
+
{ id: "claude-4.5-sonnet", name: "Claude 4.5 Sonnet" },
|
|
193
|
+
{ id: "claude-4.5-haiku", name: "Claude 4.5 Haiku" },
|
|
194
|
+
{ id: "claude-4.5-opus", name: "Claude 4.5 Opus" },
|
|
195
|
+
{ id: "gpt-5.2-codex", name: "GPT 5.2 Codex" },
|
|
196
|
+
{ id: "claude-4.6-opus-max", name: "Claude 4.6 Opus Max" },
|
|
197
|
+
{ id: "claude-4.6-sonnet-medium-thinking", name: "Claude 4.6 Sonnet Medium Thinking" },
|
|
198
|
+
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
199
|
+
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash Preview" },
|
|
200
|
+
{ id: "gpt-5.2", name: "GPT 5.2" },
|
|
201
|
+
{ id: "gpt-5.3-codex", name: "GPT 5.3 Codex" },
|
|
202
|
+
],
|
|
203
|
+
kmc: [ // Kimi Coding
|
|
204
|
+
{ id: "kimi-k2.6", name: "Kimi K2.6" },
|
|
205
|
+
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
206
|
+
{ id: "kimi-k2.5-thinking", name: "Kimi K2.5 Thinking" },
|
|
207
|
+
{ id: "kimi-latest", name: "Kimi Latest" },
|
|
208
|
+
],
|
|
209
|
+
kc: [ // KiloCode
|
|
210
|
+
{ id: "anthropic/claude-sonnet-4-20250514", name: "Claude Sonnet 4" },
|
|
211
|
+
{ id: "anthropic/claude-opus-4-20250514", name: "Claude Opus 4" },
|
|
212
|
+
{ id: "google/gemini-2.5-pro", name: "Gemini 2.5 Pro" },
|
|
213
|
+
{ id: "google/gemini-2.5-flash", name: "Gemini 2.5 Flash" },
|
|
214
|
+
{ id: "openai/gpt-4.1", name: "GPT-4.1" },
|
|
215
|
+
{ id: "openai/o3", name: "o3" },
|
|
216
|
+
{ id: "deepseek/deepseek-chat", name: "DeepSeek Chat" },
|
|
217
|
+
{ id: "deepseek/deepseek-reasoner", name: "DeepSeek Reasoner" },
|
|
218
|
+
],
|
|
219
|
+
"opencode-go": [ // OpenCode Go subscription (API key)
|
|
220
|
+
{ id: "kimi-k2.6", name: "Kimi K2.6" },
|
|
221
|
+
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
222
|
+
{ id: "glm-5.1", name: "GLM 5.1" },
|
|
223
|
+
{ id: "glm-5", name: "GLM 5" },
|
|
224
|
+
{ id: "qwen3.5-plus", name: "Qwen 3.5 Plus" },
|
|
225
|
+
{ id: "qwen3.6-plus", name: "Qwen 3.6 Plus" },
|
|
226
|
+
{ id: "mimo-v2-pro", name: "MiMo V2 Pro" },
|
|
227
|
+
{ id: "mimo-v2-omni", name: "MiMo V2 Omni" },
|
|
228
|
+
{ id: "minimax-m2.7", name: "MiniMax M2.7", targetFormat: "claude" },
|
|
229
|
+
{ id: "minimax-m2.5", name: "MiniMax M2.5", targetFormat: "claude" },
|
|
230
|
+
],
|
|
231
|
+
oc: [ // OpenCode
|
|
232
|
+
// { id: "nemotron-3-super-free", name: "Nemotron 3 Super" },
|
|
233
|
+
// { id: "qwen3.6-plus-free", name: "Qwen 3.6 Plus" },
|
|
234
|
+
// { id: "big-pickle", name: "Big Pickle", targetFormat: "claude" },
|
|
235
|
+
// { id: "minimax-m2.5-free", name: "MiniMax M2.5", targetFormat: "claude" },
|
|
236
|
+
// { id: "trinity-large-preview-free", name: "Trinity Large Preview" },
|
|
237
|
+
],
|
|
238
|
+
|
|
239
|
+
cl: [ // Cline
|
|
240
|
+
{ id: "anthropic/claude-opus-4.7", name: "Claude Opus 4.7" },
|
|
241
|
+
{ id: "anthropic/claude-sonnet-4.6", name: "Claude Sonnet 4.6" },
|
|
242
|
+
{ id: "anthropic/claude-opus-4.6", name: "Claude Opus 4.6" },
|
|
243
|
+
{ id: "openai/gpt-5.3-codex", name: "GPT-5.3 Codex" },
|
|
244
|
+
{ id: "openai/gpt-5.4", name: "GPT-5.4" },
|
|
245
|
+
{ id: "google/gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview" },
|
|
246
|
+
{ id: "google/gemini-3.1-flash-lite-preview", name: "Gemini 3.1 Flash Lite Preview" },
|
|
247
|
+
{ id: "kwaipilot/kat-coder-pro", name: "KAT Coder Pro" },
|
|
248
|
+
],
|
|
249
|
+
|
|
250
|
+
// API Key Providers (alias = id)
|
|
251
|
+
openai: [
|
|
252
|
+
// Flagship models
|
|
253
|
+
{ id: "gpt-5.4", name: "GPT-5.4" },
|
|
254
|
+
{ id: "gpt-5.4-mini", name: "GPT-5.4 Mini" },
|
|
255
|
+
{ id: "gpt-5.4-nano", name: "GPT-5.4 Nano" },
|
|
256
|
+
{ id: "gpt-5.2", name: "GPT-5.2" },
|
|
257
|
+
{ id: "gpt-5.1", name: "GPT-5.1" },
|
|
258
|
+
{ id: "gpt-5", name: "GPT-5" },
|
|
259
|
+
{ id: "gpt-5-mini", name: "GPT-5 Mini" },
|
|
260
|
+
{ id: "gpt-5-nano", name: "GPT-5 Nano" },
|
|
261
|
+
{ id: "gpt-4o", name: "GPT-4o" },
|
|
262
|
+
{ id: "gpt-4o-mini", name: "GPT-4o Mini" },
|
|
263
|
+
{ id: "gpt-4-turbo", name: "GPT-4 Turbo" },
|
|
264
|
+
{ id: "gpt-4.1", name: "GPT-4.1" },
|
|
265
|
+
{ id: "gpt-4.1-mini", name: "GPT-4.1 Mini" },
|
|
266
|
+
{ id: "gpt-4.1-nano", name: "GPT-4.1 Nano" },
|
|
267
|
+
// Reasoning models
|
|
268
|
+
{ id: "o3", name: "O3" },
|
|
269
|
+
{ id: "o3-mini", name: "O3 Mini" },
|
|
270
|
+
{ id: "o3-pro", name: "O3 Pro" },
|
|
271
|
+
{ id: "o4-mini", name: "O4 Mini" },
|
|
272
|
+
{ id: "o1", name: "O1" },
|
|
273
|
+
{ id: "o1-mini", name: "O1 Mini" },
|
|
274
|
+
// Embedding models
|
|
275
|
+
{ id: "text-embedding-3-large", name: "Text Embedding 3 Large", type: "embedding" },
|
|
276
|
+
{ id: "text-embedding-3-small", name: "Text Embedding 3 Small", type: "embedding" },
|
|
277
|
+
{ id: "text-embedding-ada-002", name: "Text Embedding Ada 002", type: "embedding" },
|
|
278
|
+
// TTS models
|
|
279
|
+
{ id: "tts-1", name: "TTS-1", type: "tts" },
|
|
280
|
+
{ id: "tts-1-hd", name: "TTS-1 HD", type: "tts" },
|
|
281
|
+
{ id: "gpt-4o-mini-tts", name: "GPT-4o Mini TTS", type: "tts" },
|
|
282
|
+
// STT models
|
|
283
|
+
{ id: "whisper-1", name: "Whisper 1", type: "stt", params: ["language", "response_format", "temperature", "prompt"] },
|
|
284
|
+
{ id: "gpt-4o-transcribe", name: "GPT-4o Transcribe", type: "stt", params: ["language", "response_format", "temperature", "prompt"] },
|
|
285
|
+
{ id: "gpt-4o-mini-transcribe", name: "GPT-4o Mini Transcribe", type: "stt", params: ["language", "response_format", "temperature", "prompt"] },
|
|
286
|
+
// Image models
|
|
287
|
+
{ id: "gpt-image-1", name: "GPT Image 1", type: "image", params: ["n", "size", "quality", "response_format"] },
|
|
288
|
+
{ id: "dall-e-3", name: "DALL-E 3", type: "image", params: ["size", "quality", "style", "response_format"] },
|
|
289
|
+
{ id: "dall-e-2", name: "DALL-E 2", type: "image", params: ["n", "size", "response_format"] },
|
|
290
|
+
],
|
|
291
|
+
anthropic: [
|
|
292
|
+
{ id: "claude-sonnet-4-20250514", name: "Claude Sonnet 4" },
|
|
293
|
+
{ id: "claude-opus-4-20250514", name: "Claude Opus 4" },
|
|
294
|
+
{ id: "claude-3-5-sonnet-20241022", name: "Claude 3.5 Sonnet" },
|
|
295
|
+
],
|
|
296
|
+
gemini: [
|
|
297
|
+
// Gemini 3.1 series
|
|
298
|
+
{ id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview" },
|
|
299
|
+
{ id: "gemini-3.1-flash-lite-preview", name: "Gemini 3.1 Flash Lite Preview" },
|
|
300
|
+
// Gemini 3 series
|
|
301
|
+
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash Preview" },
|
|
302
|
+
// Gemini 2.5 series
|
|
303
|
+
{ id: "gemini-2.5-pro", name: "Gemini 2.5 Pro" },
|
|
304
|
+
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash" },
|
|
305
|
+
{ id: "gemini-2.5-flash-lite", name: "Gemini 2.5 Flash Lite" },
|
|
306
|
+
// Gemini 2.0 series (retiring June 1, 2026)
|
|
307
|
+
{ id: "gemini-2.0-flash", name: "Gemini 2.0 Flash" },
|
|
308
|
+
{ id: "gemini-2.0-flash-lite", name: "Gemini 2.0 Flash Lite" },
|
|
309
|
+
{ id: "gemma-4-31b-it", name: "Gemma 4 31B IT" },
|
|
310
|
+
|
|
311
|
+
// Embedding models
|
|
312
|
+
{ id: "gemini-embedding-2-preview", name: "Gemini Embedding 2 Preview", type: "embedding" },
|
|
313
|
+
{ id: "gemini-embedding-001", name: "Gemini Embedding 001", type: "embedding" },
|
|
314
|
+
{ id: "text-embedding-005", name: "Text Embedding 005", type: "embedding" },
|
|
315
|
+
{ id: "text-embedding-004", name: "Text Embedding 004 (Legacy)", type: "embedding" },
|
|
316
|
+
// Image models (Nano Banana)
|
|
317
|
+
{ id: "gemini-3.1-flash-image-preview", name: "Gemini 3.1 Flash Image (Nano Banana 2)", type: "image", params: [] },
|
|
318
|
+
{ id: "gemini-3-pro-image-preview", name: "Gemini 3 Pro Image (Nano Banana Pro)", type: "image", params: [] },
|
|
319
|
+
{ id: "gemini-2.5-flash-image", name: "Gemini 2.5 Flash Image (Nano Banana)", type: "image", params: [] },
|
|
320
|
+
// STT models (multimodal generateContent)
|
|
321
|
+
{ id: "gemini-2.5-pro", name: "Gemini 2.5 Pro (Best)", type: "stt", params: ["language", "prompt"] },
|
|
322
|
+
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash", type: "stt", params: ["language", "prompt"] },
|
|
323
|
+
{ id: "gemini-2.5-flash-lite", name: "Gemini 2.5 Flash Lite (Cheapest)", type: "stt", params: ["language", "prompt"] },
|
|
324
|
+
{ id: "gemini-2.0-flash", name: "Gemini 2.0 Flash", type: "stt", params: ["language", "prompt"] },
|
|
325
|
+
],
|
|
326
|
+
openrouter: [
|
|
327
|
+
// Embedding models
|
|
328
|
+
{ id: "openai/text-embedding-3-large", name: "OpenAI Text Embedding 3 Large", type: "embedding" },
|
|
329
|
+
{ id: "openai/text-embedding-3-small", name: "OpenAI Text Embedding 3 Small", type: "embedding" },
|
|
330
|
+
{ id: "openai/text-embedding-ada-002", name: "OpenAI Text Embedding Ada 002", type: "embedding" },
|
|
331
|
+
{ id: "qwen/qwen3-embedding-8b", name: "Qwen3 Embedding 8B", type: "embedding" },
|
|
332
|
+
{ id: "perplexity/pplx-embed-v1-4b", name: "Perplexity Embed V1 4B", type: "embedding" },
|
|
333
|
+
{ id: "perplexity/pplx-embed-v1-0.6b", name: "Perplexity Embed V1 0.6B", type: "embedding" },
|
|
334
|
+
{ id: "nvidia/llama-nemotron-embed-vl-1b-v2:free", name: "NVIDIA Nemotron Embed VL 1B V2 (Free)", type: "embedding" },
|
|
335
|
+
// TTS models
|
|
336
|
+
{ id: "openai/gpt-4o-mini-tts", name: "GPT-4o Mini TTS", type: "tts" },
|
|
337
|
+
{ id: "openai/tts-1-hd", name: "TTS-1 HD", type: "tts" },
|
|
338
|
+
{ id: "openai/tts-1", name: "TTS-1", type: "tts" },
|
|
339
|
+
// Image models
|
|
340
|
+
{ id: "openai/dall-e-3", name: "DALL-E 3 (via OpenRouter)", type: "image", params: ["size", "quality", "style", "response_format"] },
|
|
341
|
+
{ id: "openai/gpt-image-1", name: "GPT Image 1 (via OpenRouter)", type: "image", params: ["n", "size", "quality", "response_format"] },
|
|
342
|
+
{ id: "google/imagen-3.0-generate-002", name: "Imagen 3 (via OpenRouter)", type: "image", params: ["n", "size"] },
|
|
343
|
+
{ id: "black-forest-labs/FLUX.1-schnell", name: "FLUX.1 Schnell (via OpenRouter)", type: "image", params: ["n", "size"] },
|
|
344
|
+
],
|
|
345
|
+
glm: [
|
|
346
|
+
{ id: "glm-5.1", name: "GLM 5.1" },
|
|
347
|
+
{ id: "glm-5", name: "GLM 5" },
|
|
348
|
+
{ id: "glm-4.7", name: "GLM 4.7" },
|
|
349
|
+
{ id: "glm-4.6v", name: "GLM 4.6V (Vision)" },
|
|
350
|
+
],
|
|
351
|
+
"glm-cn": [
|
|
352
|
+
{ id: "glm-5.1", name: "GLM 5.1" },
|
|
353
|
+
{ id: "glm-5", name: "GLM 5" },
|
|
354
|
+
{ id: "glm-4.7", name: "GLM-4.7" },
|
|
355
|
+
{ id: "glm-4.6", name: "GLM-4.6" },
|
|
356
|
+
{ id: "glm-4.5-air", name: "GLM-4.5-Air" },
|
|
357
|
+
],
|
|
358
|
+
kimi: [
|
|
359
|
+
{ id: "kimi-k2.6", name: "Kimi K2.6" },
|
|
360
|
+
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
361
|
+
{ id: "kimi-k2.5-thinking", name: "Kimi K2.5 Thinking" },
|
|
362
|
+
{ id: "kimi-latest", name: "Kimi Latest" },
|
|
363
|
+
],
|
|
364
|
+
minimax: [
|
|
365
|
+
{ id: "MiniMax-M3", name: "MiniMax M3", targetFormat: "claude" },
|
|
366
|
+
{ id: "MiniMax-M2.7", name: "MiniMax M2.7" },
|
|
367
|
+
{ id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
368
|
+
{ id: "MiniMax-M2.1", name: "MiniMax M2.1" },
|
|
369
|
+
// Image models
|
|
370
|
+
{ id: "minimax-image-01", name: "MiniMax Image 01", type: "image", params: ["n", "size", "response_format"] },
|
|
371
|
+
],
|
|
372
|
+
blackbox: [
|
|
373
|
+
{ id: "gpt-4o", name: "GPT-4o" },
|
|
374
|
+
{ id: "gpt-4o-mini", name: "GPT-4o mini" },
|
|
375
|
+
{ id: "claude-sonnet-4.6", name: "Claude Sonnet 4.6" },
|
|
376
|
+
{ id: "claude-sonnet-4.5", name: "Claude Sonnet 4.5" },
|
|
377
|
+
{ id: "claude-opus-4.6", name: "Claude Opus 4.6" },
|
|
378
|
+
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6 (Legacy)" },
|
|
379
|
+
{ id: "claude-opus-4-6", name: "Claude Opus 4.6 (Legacy)" },
|
|
380
|
+
{ id: "deepseek-chat", name: "DeepSeek Chat" },
|
|
381
|
+
{ id: "deepseek-v3-671b", name: "DeepSeek V3 671B" },
|
|
382
|
+
{ id: "deepseek-r1", name: "DeepSeek R1" },
|
|
383
|
+
{ id: "o1", name: "OpenAI o1" },
|
|
384
|
+
{ id: "o3-mini", name: "OpenAI o3-mini" },
|
|
385
|
+
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash" },
|
|
386
|
+
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash Preview" },
|
|
387
|
+
{ id: "qwen3-coder-plus", name: "Qwen3 Coder Plus" },
|
|
388
|
+
{ id: "qwen3-max", name: "Qwen3 Max" },
|
|
389
|
+
{ id: "qwen3-vl-plus", name: "Qwen3 VL Plus" },
|
|
390
|
+
],
|
|
391
|
+
"minimax-cn": [
|
|
392
|
+
{ id: "MiniMax-M3", name: "MiniMax M3", targetFormat: "claude" },
|
|
393
|
+
{ id: "MiniMax-M2.7", name: "MiniMax M2.7" },
|
|
394
|
+
{ id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
395
|
+
{ id: "MiniMax-M2.1", name: "MiniMax M2.1" },
|
|
396
|
+
],
|
|
397
|
+
alicode: [
|
|
398
|
+
{ id: "qwen3.5-plus", name: "Qwen3.5 Plus" },
|
|
399
|
+
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
400
|
+
{ id: "glm-5", name: "GLM 5" },
|
|
401
|
+
{ id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
402
|
+
{ id: "qwen3-max-2026-01-23", name: "Qwen3 Max" },
|
|
403
|
+
{ id: "qwen3-coder-next", name: "Qwen3 Coder Next" },
|
|
404
|
+
{ id: "qwen3-coder-plus", name: "Qwen3 Coder Plus" },
|
|
405
|
+
{ id: "glm-4.7", name: "GLM 4.7" },
|
|
406
|
+
],
|
|
407
|
+
"alicode-intl": [
|
|
408
|
+
{ id: "qwen3.5-plus", name: "Qwen3.5 Plus" },
|
|
409
|
+
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
410
|
+
{ id: "glm-5", name: "GLM 5" },
|
|
411
|
+
{ id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
412
|
+
{ id: "qwen3-coder-next", name: "Qwen3 Coder Next" },
|
|
413
|
+
{ id: "qwen3-coder-plus", name: "Qwen3 Coder Plus" },
|
|
414
|
+
{ id: "glm-4.7", name: "GLM 4.7" },
|
|
415
|
+
],
|
|
416
|
+
"volcengine-ark": [
|
|
417
|
+
{ id: "Doubao-Seed-2.0-Code", name: "Doubao-Seed-2.0-Code" },
|
|
418
|
+
{ id: "Doubao-Seed-2.0-pro", name: "Doubao-Seed-2.0-pro" },
|
|
419
|
+
{ id: "Doubao-Seed-2.0-lite", name: "Doubao-Seed-2.0-lite" },
|
|
420
|
+
{ id: "Doubao-Seed-Code", name: "Doubao-Seed-Code" },
|
|
421
|
+
{ id: "DeepSeek-V4-Flash", name: "DeepSeek-V4-Flash" },
|
|
422
|
+
{ id: "DeepSeek-V4-Pro", name: "DeepSeek-V4-Pro" },
|
|
423
|
+
{ id: "GLM-5.1", name: "GLM-5.1" },
|
|
424
|
+
{ id: "MiniMax-M2.7", name: "MiniMax-M2.7" },
|
|
425
|
+
{ id: "Kimi-K2.6", name: "Kimi-K2.6" },
|
|
426
|
+
],
|
|
427
|
+
"cloudflare-ai": [
|
|
428
|
+
{ id: "@cf/meta/llama-3.2-1b-instruct", name: "Llama 3.2 1B Instruct" },
|
|
429
|
+
{ id: "@cf/meta/llama-3.2-3b-instruct", name: "Llama 3.2 3B Instruct" },
|
|
430
|
+
{ id: "@cf/meta/llama-3.1-8b-instruct-fp8-fast", name: "Llama 3.1 8B Instruct FP8 Fast" },
|
|
431
|
+
{ id: "@cf/meta/llama-3.1-8b-instruct-awq", name: "Llama 3.1 8B Instruct AWQ" },
|
|
432
|
+
{ id: "@cf/mistralai/mistral-small-3.1-24b-instruct", name: "Mistral Small 3.1 24B Instruct" },
|
|
433
|
+
{ id: "@cf/meta/llama-3.1-70b-instruct-fp8-fast", name: "Llama 3.1 70B Instruct FP8 Fast" },
|
|
434
|
+
{ id: "@cf/meta/llama-3.3-70b-instruct-fp8-fast", name: "Llama 3.3 70B Instruct FP8 Fast" },
|
|
435
|
+
{ id: "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b", name: "DeepSeek R1 Distill Qwen 32B" },
|
|
436
|
+
{ id: "@cf/moonshotai/kimi-k2.5", name: "Kimi K2.5" },
|
|
437
|
+
{ id: "@cf/moonshotai/kimi-k2.6", name: "Kimi K2.6" },
|
|
438
|
+
{ id: "@cf/zai-org/glm-4.7-flash", name: "GLM 4.7 Flash" },
|
|
439
|
+
{ id: "@cf/qwen/qwq-32b", name: "QwQ 32B" },
|
|
440
|
+
{ id: "@cf/qwen/qwen2.5-coder-32b-instruct", name: "Qwen 2.5 Coder 32B Instruct" },
|
|
441
|
+
{ id: "@cf/black-forest-labs/flux-2-klein-9b", name: "FLUX.2 Klein 9B", type: "image", params: ["size"] },
|
|
442
|
+
{ id: "@cf/black-forest-labs/flux-2-klein-4b", name: "FLUX.2 Klein 4B", type: "image", params: ["size"] },
|
|
443
|
+
{ id: "@cf/black-forest-labs/flux-2-dev", name: "FLUX.2 Dev", type: "image", params: ["size"] },
|
|
444
|
+
{ id: "@cf/leonardo/lucid-origin", name: "Lucid Origin", type: "image", params: ["size"] },
|
|
445
|
+
{ id: "@cf/leonardo/phoenix-1.0", name: "Phoenix 1.0", type: "image", params: ["size"] },
|
|
446
|
+
{ id: "@cf/black-forest-labs/flux-1-schnell", name: "FLUX.1 Schnell", type: "image", params: ["size"] },
|
|
447
|
+
{ id: "@cf/bytedance/stable-diffusion-xl-lightning", name: "SDXL Lightning", type: "image", params: ["size"] },
|
|
448
|
+
{ id: "@cf/lykon/dreamshaper-8-lcm", name: "DreamShaper 8 LCM", type: "image", params: ["size"] },
|
|
449
|
+
{ id: "@cf/runwayml/stable-diffusion-v1-5-img2img", name: "Stable Diffusion v1.5 Img2Img", type: "image", params: ["size"], capabilities: ["edit"] },
|
|
450
|
+
{ id: "@cf/runwayml/stable-diffusion-v1-5-inpainting", name: "Stable Diffusion v1.5 Inpainting", type: "image", params: ["size"], capabilities: ["edit", "mask"] },
|
|
451
|
+
{ id: "@cf/stabilityai/stable-diffusion-xl-base-1.0", name: "SDXL Base 1.0", type: "image", params: ["size"] },
|
|
452
|
+
],
|
|
453
|
+
byteplus: [
|
|
454
|
+
{ id: "seed-2-0-pro-260328", name: "Seed 2.0 Pro" },
|
|
455
|
+
{ id: "seed-2-0-code-preview-260328", name: "Seed 2.0 Code Preview" },
|
|
456
|
+
{ id: "seed-2-0-mini-260215", name: "Seed 2.0 Mini" },
|
|
457
|
+
{ id: "seed-2-0-lite-260228", name: "Seed 2.0 Lite" },
|
|
458
|
+
{ id: "kimi-k2-thinking-251104", name: "Kimi K2 Thinking" },
|
|
459
|
+
{ id: "glm-4-7-251222", name: "GLM 4.7" },
|
|
460
|
+
{ id: "gpt-oss-120b-250805", name: "GPT-OSS-120B" },
|
|
461
|
+
],
|
|
462
|
+
deepseek: [
|
|
463
|
+
{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro" },
|
|
464
|
+
{ id: "deepseek-v4-pro-max", name: "DeepSeek V4 Pro Max", upstreamModelId: "deepseek-v4-pro" },
|
|
465
|
+
{ id: "deepseek-v4-pro-none", name: "DeepSeek V4 Pro No Thinking", upstreamModelId: "deepseek-v4-pro" },
|
|
466
|
+
{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash" },
|
|
467
|
+
{ id: "deepseek-chat", name: "DeepSeek V3.2 Chat" },
|
|
468
|
+
{ id: "deepseek-reasoner", name: "DeepSeek V3.2 Reasoner" },
|
|
469
|
+
],
|
|
470
|
+
commandcode: [
|
|
471
|
+
{ id: "deepseek/deepseek-v4-pro", name: "DeepSeek V4 Pro" },
|
|
472
|
+
{ id: "deepseek/deepseek-v4-flash", name: "DeepSeek V4 Flash" },
|
|
473
|
+
{ id: "moonshotai/Kimi-K2.6", name: "Kimi K2.6" },
|
|
474
|
+
{ id: "moonshotai/Kimi-K2.5", name: "Kimi K2.5" },
|
|
475
|
+
{ id: "zai-org/GLM-5.1", name: "GLM 5.1" },
|
|
476
|
+
{ id: "zai-org/GLM-5", name: "GLM 5" },
|
|
477
|
+
{ id: "MiniMaxAI/MiniMax-M2.7", name: "MiniMax M2.7" },
|
|
478
|
+
{ id: "MiniMaxAI/MiniMax-M2.5", name: "MiniMax M2.5" },
|
|
479
|
+
{ id: "Qwen/Qwen3.6-Max-Preview", name: "Qwen 3.6 Max Preview" },
|
|
480
|
+
{ id: "Qwen/Qwen3.6-Plus", name: "Qwen 3.6 Plus" },
|
|
481
|
+
{ id: "stepfun/Step-3.5-Flash", name: "Step 3.5 Flash" },
|
|
482
|
+
],
|
|
483
|
+
groq: [
|
|
484
|
+
{ id: "llama-3.3-70b-versatile", name: "Llama 3.3 70B" },
|
|
485
|
+
{ id: "meta-llama/llama-4-maverick-17b-128e-instruct", name: "Llama 4 Maverick" },
|
|
486
|
+
{ id: "qwen/qwen3-32b", name: "Qwen3 32B" },
|
|
487
|
+
{ id: "openai/gpt-oss-120b", name: "GPT-OSS 120B" },
|
|
488
|
+
// STT models
|
|
489
|
+
{ id: "whisper-large-v3", name: "Whisper Large v3", type: "stt", params: ["language", "response_format", "temperature", "prompt"] },
|
|
490
|
+
{ id: "whisper-large-v3-turbo", name: "Whisper Large v3 Turbo", type: "stt", params: ["language", "response_format", "temperature", "prompt"] },
|
|
491
|
+
{ id: "distil-whisper-large-v3-en", name: "Distil Whisper Large v3 EN", type: "stt", params: ["language", "response_format", "temperature", "prompt"] },
|
|
492
|
+
],
|
|
493
|
+
xai: [
|
|
494
|
+
{ id: "grok-4", name: "Grok 4" },
|
|
495
|
+
{ id: "grok-4-fast-reasoning", name: "Grok 4 Fast Reasoning" },
|
|
496
|
+
{ id: "grok-code-fast-1", name: "Grok Code Fast" },
|
|
497
|
+
{ id: "grok-3", name: "Grok 3" },
|
|
498
|
+
{ id: "grok-2-image-1212", name: "Grok 2 Image", type: "image", params: ["n", "response_format"] },
|
|
499
|
+
],
|
|
500
|
+
mistral: [
|
|
501
|
+
{ id: "mistral-large-latest", name: "Mistral Large 3" },
|
|
502
|
+
{ id: "codestral-latest", name: "Codestral" },
|
|
503
|
+
{ id: "mistral-medium-latest", name: "Mistral Medium 3" },
|
|
504
|
+
{ id: "mistral-embed", name: "Mistral Embed", type: "embedding" },
|
|
505
|
+
],
|
|
506
|
+
perplexity: [
|
|
507
|
+
{ id: "sonar-pro", name: "Sonar Pro" },
|
|
508
|
+
{ id: "sonar", name: "Sonar" },
|
|
509
|
+
],
|
|
510
|
+
together: [
|
|
511
|
+
{ id: "meta-llama/Llama-3.3-70B-Instruct-Turbo", name: "Llama 3.3 70B Turbo" },
|
|
512
|
+
{ id: "deepseek-ai/DeepSeek-R1", name: "DeepSeek R1" },
|
|
513
|
+
{ id: "Qwen/Qwen3-235B-A22B", name: "Qwen3 235B" },
|
|
514
|
+
{ id: "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8", name: "Llama 4 Maverick" },
|
|
515
|
+
{ id: "BAAI/bge-large-en-v1.5", name: "BGE Large EN v1.5", type: "embedding" },
|
|
516
|
+
{ id: "togethercomputer/m2-bert-80M-8k-retrieval", name: "M2 BERT 80M 8K", type: "embedding" },
|
|
517
|
+
],
|
|
518
|
+
fireworks: [
|
|
519
|
+
{ id: "accounts/fireworks/models/deepseek-v3p1", name: "DeepSeek V3.1" },
|
|
520
|
+
{ id: "accounts/fireworks/models/llama-v3p3-70b-instruct", name: "Llama 3.3 70B" },
|
|
521
|
+
{ id: "accounts/fireworks/models/qwen3-235b-a22b", name: "Qwen3 235B" },
|
|
522
|
+
{ id: "nomic-ai/nomic-embed-text-v1.5", name: "Nomic Embed Text v1.5", type: "embedding" },
|
|
523
|
+
],
|
|
524
|
+
cerebras: [
|
|
525
|
+
{ id: "gpt-oss-120b", name: "GPT OSS 120B" },
|
|
526
|
+
{ id: "zai-glm-4.7", name: "ZAI GLM 4.7" },
|
|
527
|
+
{ id: "llama-3.3-70b", name: "Llama 3.3 70B" },
|
|
528
|
+
{ id: "llama-4-scout-17b-16e-instruct", name: "Llama 4 Scout" },
|
|
529
|
+
{ id: "qwen-3-235b-a22b-instruct-2507", name: "Qwen3 235B A22B" },
|
|
530
|
+
{ id: "qwen-3-32b", name: "Qwen3 32B" },
|
|
531
|
+
],
|
|
532
|
+
cohere: [
|
|
533
|
+
{ id: "command-r-plus-08-2024", name: "Command R+ (Aug 2024)" },
|
|
534
|
+
{ id: "command-r-08-2024", name: "Command R (Aug 2024)" },
|
|
535
|
+
{ id: "command-a-03-2025", name: "Command A (Mar 2025)" },
|
|
536
|
+
],
|
|
537
|
+
nvidia: [
|
|
538
|
+
{ id: "minimaxai/minimax-m2.7", name: "Minimax M2.7" },
|
|
539
|
+
{ id: "z-ai/glm4.7", name: "GLM 4.7" },
|
|
540
|
+
{ id: "nvidia/nv-embedqa-e5-v5", name: "NV EmbedQA E5 v5", type: "embedding" },
|
|
541
|
+
// STT models
|
|
542
|
+
{ id: "nvidia/parakeet-ctc-1.1b-asr", name: "Parakeet CTC 1.1B", type: "stt", params: ["language"] },
|
|
543
|
+
],
|
|
544
|
+
nebius: [
|
|
545
|
+
{ id: "meta-llama/Llama-3.3-70B-Instruct", name: "Llama 3.3 70B Instruct" },
|
|
546
|
+
{ id: "Qwen/Qwen3-Embedding-8B", name: "Qwen3 Embedding 8B", type: "embedding" },
|
|
547
|
+
],
|
|
548
|
+
"voyage-ai": [
|
|
549
|
+
{ id: "voyage-3-large", name: "Voyage 3 Large", type: "embedding" },
|
|
550
|
+
{ id: "voyage-3.5", name: "Voyage 3.5", type: "embedding" },
|
|
551
|
+
{ id: "voyage-3.5-lite", name: "Voyage 3.5 Lite", type: "embedding" },
|
|
552
|
+
{ id: "voyage-code-3", name: "Voyage Code 3", type: "embedding" },
|
|
553
|
+
{ id: "voyage-finance-2", name: "Voyage Finance 2", type: "embedding" },
|
|
554
|
+
{ id: "voyage-law-2", name: "Voyage Law 2", type: "embedding" },
|
|
555
|
+
{ id: "voyage-multilingual-2", name: "Voyage Multilingual 2", type: "embedding" },
|
|
556
|
+
],
|
|
557
|
+
siliconflow: [
|
|
558
|
+
{ id: "deepseek-ai/DeepSeek-V3.2", name: "DeepSeek V3.2" },
|
|
559
|
+
{ id: "deepseek-ai/DeepSeek-V3.1", name: "DeepSeek V3.1" },
|
|
560
|
+
{ id: "deepseek-ai/DeepSeek-R1", name: "DeepSeek R1" },
|
|
561
|
+
{ id: "Qwen/Qwen3-235B-A22B-Instruct-2507", name: "Qwen3 235B" },
|
|
562
|
+
{ id: "Qwen/Qwen3-Coder-480B-A35B-Instruct", name: "Qwen3 Coder 480B" },
|
|
563
|
+
{ id: "Qwen/Qwen3-32B", name: "Qwen3 32B" },
|
|
564
|
+
{ id: "moonshotai/Kimi-K2.5", name: "Kimi K2.5" },
|
|
565
|
+
{ id: "zai-org/GLM-4.7", name: "GLM 4.7" },
|
|
566
|
+
{ id: "openai/gpt-oss-120b", name: "GPT OSS 120B" },
|
|
567
|
+
{ id: "baidu/ERNIE-4.5-300B-A47B", name: "ERNIE 4.5 300B" },
|
|
568
|
+
],
|
|
569
|
+
"xiaomi-mimo": [
|
|
570
|
+
{ id: "mimo-v2.5-pro", name: "MiMo V2.5 Pro" },
|
|
571
|
+
{ id: "mimo-v2.5", name: "MiMo V2.5" },
|
|
572
|
+
{ id: "mimo-v2-omni", name: "MiMo V2 Omni" },
|
|
573
|
+
{ id: "mimo-v2-flash", name: "MiMo V2 Flash" },
|
|
574
|
+
],
|
|
575
|
+
"xiaomi-tokenplan": [
|
|
576
|
+
{ id: "mimo-v2.5-pro", name: "MiMo V2.5 Pro" },
|
|
577
|
+
{ id: "mimo-v2.5-pro-claude", name: "MiMo V2.5 Pro (Claude Native)", targetFormat: "claude", upstreamModelId: "mimo-v2.5-pro" },
|
|
578
|
+
{ id: "mimo-v2.5", name: "MiMo V2.5" },
|
|
579
|
+
{ id: "mimo-v2-pro", name: "MiMo V2 Pro" },
|
|
580
|
+
{ id: "mimo-v2-omni", name: "MiMo V2 Omni" },
|
|
581
|
+
{ id: "mimo-v2-tts", name: "MiMo V2 TTS" },
|
|
582
|
+
{ id: "mimo-v2.5-tts", name: "MiMo V2.5 TTS" },
|
|
583
|
+
{ id: "mimo-v2.5-tts-voiceclone", name: "MiMo V2.5 TTS Voice Clone" },
|
|
584
|
+
{ id: "mimo-v2.5-tts-voicedesign", name: "MiMo V2.5 TTS Voice Design" },
|
|
585
|
+
],
|
|
586
|
+
hyperbolic: [
|
|
587
|
+
{ id: "Qwen/QwQ-32B", name: "QwQ 32B" },
|
|
588
|
+
{ id: "deepseek-ai/DeepSeek-R1", name: "DeepSeek R1" },
|
|
589
|
+
{ id: "deepseek-ai/DeepSeek-V3", name: "DeepSeek V3" },
|
|
590
|
+
{ id: "meta-llama/Llama-3.3-70B-Instruct", name: "Llama 3.3 70B" },
|
|
591
|
+
{ id: "meta-llama/Llama-3.2-3B-Instruct", name: "Llama 3.2 3B" },
|
|
592
|
+
{ id: "Qwen/Qwen2.5-72B-Instruct", name: "Qwen 2.5 72B" },
|
|
593
|
+
{ id: "Qwen/Qwen2.5-Coder-32B-Instruct", name: "Qwen 2.5 Coder 32B" },
|
|
594
|
+
{ id: "NousResearch/Hermes-3-Llama-3.1-70B", name: "Hermes 3 70B" },
|
|
595
|
+
],
|
|
596
|
+
ollama: [
|
|
597
|
+
{ id: "gpt-oss:120b", name: "GPT OSS 120B" },
|
|
598
|
+
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
599
|
+
{ id: "glm-5", name: "GLM 5" },
|
|
600
|
+
{ id: "minimax-m2.5", name: "MiniMax M2.5" },
|
|
601
|
+
{ id: "glm-4.7-flash", name: "GLM 4.7 Flash" },
|
|
602
|
+
{ id: "qwen3.5", name: "Qwen3.5" },
|
|
603
|
+
],
|
|
604
|
+
vertex: [
|
|
605
|
+
{ id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview" },
|
|
606
|
+
{ id: "gemini-3.1-flash-lite-preview", name: "Gemini 3.1 Flash Lite Preview" },
|
|
607
|
+
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash Preview" },
|
|
608
|
+
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash" },
|
|
609
|
+
],
|
|
610
|
+
"vertex-partner": [
|
|
611
|
+
{ id: "deepseek-ai/deepseek-v3.2-maas", name: "DeepSeek V3.2 (Vertex)" },
|
|
612
|
+
{ id: "qwen/qwen3-next-80b-a3b-thinking-maas", name: "Qwen3 Next 80B Thinking (Vertex)" },
|
|
613
|
+
{ id: "qwen/qwen3-next-80b-a3b-instruct-maas", name: "Qwen3 Next 80B Instruct (Vertex)" },
|
|
614
|
+
{ id: "zai-org/glm-5-maas", name: "GLM-5 (Vertex)" },
|
|
615
|
+
],
|
|
616
|
+
"grok-web": [
|
|
617
|
+
{ id: "grok-3", name: "Grok 3" },
|
|
618
|
+
{ id: "grok-3-mini", name: "Grok 3 Mini (Thinking)" },
|
|
619
|
+
{ id: "grok-3-thinking", name: "Grok 3 Thinking" },
|
|
620
|
+
{ id: "grok-4", name: "Grok 4" },
|
|
621
|
+
{ id: "grok-4-mini", name: "Grok 4 Mini (Thinking)" },
|
|
622
|
+
{ id: "grok-4-thinking", name: "Grok 4 Thinking" },
|
|
623
|
+
{ id: "grok-4-heavy", name: "Grok 4 Heavy (SuperGrok)" },
|
|
624
|
+
{ id: "grok-4.1-mini", name: "Grok 4.1 Mini (Thinking)" },
|
|
625
|
+
{ id: "grok-4.1-fast", name: "Grok 4.1 Fast" },
|
|
626
|
+
{ id: "grok-4.1-expert", name: "Grok 4.1 Expert" },
|
|
627
|
+
{ id: "grok-4.1-thinking", name: "Grok 4.1 Thinking" },
|
|
628
|
+
{ id: "grok-4.2", name: "Grok 4.2 (4.20 Beta)" },
|
|
629
|
+
],
|
|
630
|
+
"perplexity-web": [
|
|
631
|
+
{ id: "pplx-auto", name: "Perplexity Auto (Free)" },
|
|
632
|
+
{ id: "pplx-sonar", name: "Perplexity Sonar" },
|
|
633
|
+
{ id: "pplx-gpt", name: "GPT-5.4 (via Perplexity)" },
|
|
634
|
+
{ id: "pplx-gemini", name: "Gemini 3.1 Pro (via Perplexity)" },
|
|
635
|
+
{ id: "pplx-sonnet", name: "Claude Sonnet 4.6 (via Perplexity)" },
|
|
636
|
+
{ id: "pplx-opus", name: "Claude Opus 4.6 (via Perplexity)" },
|
|
637
|
+
{ id: "pplx-nemotron", name: "Nemotron 3 Super (via Perplexity)" },
|
|
638
|
+
],
|
|
639
|
+
|
|
640
|
+
// TTS entries are loaded from ttsModels.js via buildTtsProviderModels()
|
|
641
|
+
...buildTtsProviderModels(),
|
|
642
|
+
|
|
643
|
+
// Image providers
|
|
644
|
+
nanobanana: [
|
|
645
|
+
{ id: "nanobanana-flash", name: "NanoBanana Flash", type: "image", params: ["n", "size"] },
|
|
646
|
+
{ id: "nanobanana-pro", name: "NanoBanana Pro", type: "image", params: ["n", "size"] },
|
|
647
|
+
],
|
|
648
|
+
sdwebui: [
|
|
649
|
+
{ id: "stable-diffusion-v1-5", name: "Stable Diffusion v1.5", type: "image", params: ["n", "size"] },
|
|
650
|
+
{ id: "sdxl-base-1.0", name: "SDXL Base 1.0", type: "image", params: ["n", "size"] },
|
|
651
|
+
],
|
|
652
|
+
comfyui: [
|
|
653
|
+
{ id: "flux-dev", name: "FLUX Dev", type: "image", params: ["n", "size"] },
|
|
654
|
+
{ id: "sdxl", name: "SDXL", type: "image", params: ["n", "size"] },
|
|
655
|
+
],
|
|
656
|
+
huggingface: [
|
|
657
|
+
{ id: "black-forest-labs/FLUX.1-schnell", name: "FLUX.1 Schnell", type: "image", params: [] },
|
|
658
|
+
{ id: "stabilityai/stable-diffusion-xl-base-1.0", name: "SDXL Base 1.0", type: "image", params: [] },
|
|
659
|
+
// STT models
|
|
660
|
+
{ id: "openai/whisper-large-v3", name: "Whisper Large v3 (HF)", type: "stt", params: ["language"] },
|
|
661
|
+
{ id: "openai/whisper-small", name: "Whisper Small (HF)", type: "stt", params: ["language"] },
|
|
662
|
+
],
|
|
663
|
+
|
|
664
|
+
// === Free-tier providers (synced from OmniRoute) ===
|
|
665
|
+
agentrouter: [
|
|
666
|
+
{ id: "claude-opus-4-6", name: "Claude 4.6 Opus" },
|
|
667
|
+
{ id: "claude-haiku-4-5-20251001", name: "Claude 4.5 Haiku" },
|
|
668
|
+
{ id: "glm-5.1", name: "GLM 5.1" },
|
|
669
|
+
{ id: "deepseek-v3.2", name: "DeepSeek V3.2" },
|
|
670
|
+
],
|
|
671
|
+
aimlapi: [
|
|
672
|
+
{ id: "gpt-4o", name: "GPT-4o" },
|
|
673
|
+
{ id: "gpt-4o-mini", name: "GPT-4o Mini" },
|
|
674
|
+
{ id: "claude-3-5-sonnet-20241022", name: "Claude 3.5 Sonnet" },
|
|
675
|
+
{ id: "gemini-2.0-flash-exp", name: "Gemini 2.0 Flash" },
|
|
676
|
+
{ id: "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo", name: "Llama 3.1 70B" },
|
|
677
|
+
],
|
|
678
|
+
novita: [
|
|
679
|
+
{ id: "deepseek/deepseek-r1", name: "DeepSeek R1" },
|
|
680
|
+
{ id: "deepseek/deepseek-v3", name: "DeepSeek V3" },
|
|
681
|
+
{ id: "meta-llama/llama-3.3-70b-instruct", name: "Llama 3.3 70B" },
|
|
682
|
+
{ id: "qwen/qwen-2.5-72b-instruct", name: "Qwen 2.5 72B" },
|
|
683
|
+
],
|
|
684
|
+
modal: [
|
|
685
|
+
{ id: "auto", name: "Auto (User-hosted)" },
|
|
686
|
+
],
|
|
687
|
+
reka: [
|
|
688
|
+
{ id: "reka-flash-3", name: "Reka Flash 3" },
|
|
689
|
+
{ id: "reka-edge-2603", name: "Reka Edge 2603" },
|
|
690
|
+
],
|
|
691
|
+
nlpcloud: [
|
|
692
|
+
{ id: "chatdolphin", name: "ChatDolphin" },
|
|
693
|
+
{ id: "dolphin", name: "Dolphin" },
|
|
694
|
+
{ id: "finetuned-llama-3-70b", name: "Llama 3 70B (Finetuned)" },
|
|
695
|
+
],
|
|
696
|
+
bazaarlink: [
|
|
697
|
+
{ id: "auto:free", name: "Auto Free (Zero Cost)" },
|
|
698
|
+
{ id: "auto", name: "Auto (Best Model)" },
|
|
699
|
+
],
|
|
700
|
+
completions: [
|
|
701
|
+
{ id: "claude-opus-4", name: "Claude Opus 4" },
|
|
702
|
+
{ id: "claude-sonnet-4", name: "Claude Sonnet 4" },
|
|
703
|
+
{ id: "gpt-4o", name: "GPT-4o" },
|
|
704
|
+
{ id: "gemini-2.0-flash", name: "Gemini 2.0 Flash" },
|
|
705
|
+
],
|
|
706
|
+
enally: [
|
|
707
|
+
{ id: "gpt-4o", name: "GPT-4o" },
|
|
708
|
+
{ id: "gpt-4o-mini", name: "GPT-4o Mini" },
|
|
709
|
+
{ id: "claude-3-5-sonnet", name: "Claude 3.5 Sonnet" },
|
|
710
|
+
],
|
|
711
|
+
freetheai: [
|
|
712
|
+
{ id: "gpt-4o", name: "GPT-4o" },
|
|
713
|
+
{ id: "claude-3-5-sonnet", name: "Claude 3.5 Sonnet" },
|
|
714
|
+
{ id: "gemini-1.5-pro", name: "Gemini 1.5 Pro" },
|
|
715
|
+
{ id: "deepseek-chat", name: "DeepSeek Chat" },
|
|
716
|
+
],
|
|
717
|
+
llm7: [
|
|
718
|
+
{ id: "gpt-4o-mini", name: "GPT-4o Mini" },
|
|
719
|
+
{ id: "gpt-4.1-mini", name: "GPT-4.1 Mini" },
|
|
720
|
+
{ id: "gemini-1.5-flash", name: "Gemini 1.5 Flash" },
|
|
721
|
+
],
|
|
722
|
+
lepton: [
|
|
723
|
+
{ id: "llama3-1-405b", name: "Llama 3.1 405B" },
|
|
724
|
+
{ id: "llama3-1-70b", name: "Llama 3.1 70B" },
|
|
725
|
+
{ id: "llama3-1-8b", name: "Llama 3.1 8B" },
|
|
726
|
+
{ id: "mixtral-8x7b", name: "Mixtral 8x7B" },
|
|
727
|
+
],
|
|
728
|
+
kluster: [
|
|
729
|
+
{ id: "deepseek-ai/DeepSeek-R1", name: "DeepSeek R1" },
|
|
730
|
+
{ id: "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8", name: "Llama 4 Maverick" },
|
|
731
|
+
{ id: "meta-llama/Llama-4-Scout-17B-16E-Instruct", name: "Llama 4 Scout" },
|
|
732
|
+
{ id: "Qwen/Qwen3-235B-A22B-Instruct", name: "Qwen3 235B" },
|
|
733
|
+
],
|
|
734
|
+
ai21: [
|
|
735
|
+
{ id: "jamba-large", name: "Jamba 1.5 Large" },
|
|
736
|
+
{ id: "jamba-mini", name: "Jamba 1.5 Mini" },
|
|
737
|
+
],
|
|
738
|
+
"inference-net": [
|
|
739
|
+
{ id: "meta-llama/llama-3.3-70b-instruct/fp-16", name: "Llama 3.3 70B" },
|
|
740
|
+
{ id: "deepseek/deepseek-v3-0324", name: "DeepSeek V3" },
|
|
741
|
+
{ id: "mistralai/mistral-nemo-12b-instruct/fp-16", name: "Mistral Nemo 12B" },
|
|
742
|
+
],
|
|
743
|
+
predibase: [
|
|
744
|
+
{ id: "llama-3-2-3b-instruct", name: "Llama 3.2 3B" },
|
|
745
|
+
{ id: "llama-3-1-8b-instruct", name: "Llama 3.1 8B" },
|
|
746
|
+
{ id: "qwen2-5-7b-instruct", name: "Qwen 2.5 7B" },
|
|
747
|
+
],
|
|
748
|
+
bytez: [
|
|
749
|
+
{ id: "meta-llama/Llama-3.3-70B-Instruct", name: "Llama 3.3 70B" },
|
|
750
|
+
{ id: "mistralai/Mistral-7B-Instruct-v0.3", name: "Mistral 7B v0.3" },
|
|
751
|
+
{ id: "Qwen/Qwen2.5-72B-Instruct", name: "Qwen 2.5 72B" },
|
|
752
|
+
],
|
|
753
|
+
morph: [
|
|
754
|
+
{ id: "morph-v3-large", name: "Morph V3 Large" },
|
|
755
|
+
{ id: "morph-v3-fast", name: "Morph V3 Fast" },
|
|
756
|
+
],
|
|
757
|
+
longcat: [
|
|
758
|
+
{ id: "LongCat-Flash-Chat", name: "LongCat Flash Chat" },
|
|
759
|
+
{ id: "LongCat-Flash-Thinking", name: "LongCat Flash Thinking" },
|
|
760
|
+
{ id: "LongCat-Flash-Lite", name: "LongCat Flash Lite" },
|
|
761
|
+
],
|
|
762
|
+
puter: [
|
|
763
|
+
{ id: "gpt-5", name: "GPT-5" },
|
|
764
|
+
{ id: "claude-opus-4", name: "Claude Opus 4" },
|
|
765
|
+
{ id: "gemini-3-pro-preview", name: "Gemini 3 Pro" },
|
|
766
|
+
{ id: "grok-4", name: "Grok 4" },
|
|
767
|
+
{ id: "deepseek-chat", name: "DeepSeek V3" },
|
|
768
|
+
],
|
|
769
|
+
uncloseai: [
|
|
770
|
+
{ id: "auto", name: "Auto (Free)" },
|
|
771
|
+
{ id: "gpt-4o-mini", name: "GPT-4o Mini" },
|
|
772
|
+
],
|
|
773
|
+
scaleway: [
|
|
774
|
+
{ id: "qwen3-235b-a22b-instruct-2507", name: "Qwen3 235B" },
|
|
775
|
+
{ id: "llama-3.3-70b-instruct", name: "Llama 3.3 70B" },
|
|
776
|
+
{ id: "mistral-small-3.1-24b-instruct-2503", name: "Mistral Small 3.1" },
|
|
777
|
+
],
|
|
778
|
+
deepinfra: [
|
|
779
|
+
{ id: "meta-llama/Meta-Llama-3.1-70B-Instruct", name: "Llama 3.1 70B" },
|
|
780
|
+
{ id: "deepseek-ai/DeepSeek-V3", name: "DeepSeek V3" },
|
|
781
|
+
{ id: "Qwen/Qwen2.5-72B-Instruct", name: "Qwen 2.5 72B" },
|
|
782
|
+
],
|
|
783
|
+
sambanova: [
|
|
784
|
+
{ id: "Meta-Llama-3.1-405B-Instruct", name: "Llama 3.1 405B" },
|
|
785
|
+
{ id: "Meta-Llama-3.1-70B-Instruct", name: "Llama 3.1 70B" },
|
|
786
|
+
{ id: "Meta-Llama-3.1-8B-Instruct", name: "Llama 3.1 8B" },
|
|
787
|
+
],
|
|
788
|
+
nscale: [
|
|
789
|
+
{ id: "meta-llama/Llama-3.3-70B-Instruct", name: "Llama 3.3 70B" },
|
|
790
|
+
{ id: "Qwen/Qwen2.5-Coder-32B-Instruct", name: "Qwen 2.5 Coder 32B" },
|
|
791
|
+
],
|
|
792
|
+
baseten: [
|
|
793
|
+
{ id: "deepseek-ai/DeepSeek-R1", name: "DeepSeek R1" },
|
|
794
|
+
{ id: "meta-llama/Llama-3.3-70B-Instruct", name: "Llama 3.3 70B" },
|
|
795
|
+
],
|
|
796
|
+
publicai: [
|
|
797
|
+
{ id: "auto", name: "Auto (Community)" },
|
|
798
|
+
],
|
|
799
|
+
"nous-research": [
|
|
800
|
+
{ id: "Hermes-4-405B", name: "Hermes 4 405B" },
|
|
801
|
+
{ id: "Hermes-4-70B", name: "Hermes 4 70B" },
|
|
802
|
+
],
|
|
803
|
+
glhf: [
|
|
804
|
+
{ id: "hf:meta-llama/Meta-Llama-3.1-405B-Instruct", name: "Llama 3.1 405B" },
|
|
805
|
+
{ id: "hf:meta-llama/Meta-Llama-3.1-70B-Instruct", name: "Llama 3.1 70B" },
|
|
806
|
+
{ id: "hf:Qwen/Qwen2.5-72B-Instruct", name: "Qwen 2.5 72B" },
|
|
807
|
+
],
|
|
808
|
+
|
|
809
|
+
deepgram: [
|
|
810
|
+
{ id: "nova-3", name: "Nova 3", type: "stt", params: ["language"] },
|
|
811
|
+
{ id: "nova-2", name: "Nova 2", type: "stt", params: ["language"] },
|
|
812
|
+
{ id: "whisper-large", name: "Whisper Large", type: "stt", params: ["language"] },
|
|
813
|
+
],
|
|
814
|
+
assemblyai: [
|
|
815
|
+
{ id: "universal-3-pro", name: "Universal 3 Pro", type: "stt", params: ["language"] },
|
|
816
|
+
{ id: "universal-2", name: "Universal 2", type: "stt", params: ["language"] },
|
|
817
|
+
],
|
|
818
|
+
"fal-ai": [
|
|
819
|
+
{ id: "fal-ai/flux/schnell", name: "FLUX Schnell", type: "image", params: ["n", "size"] },
|
|
820
|
+
{ id: "fal-ai/flux/dev", name: "FLUX Dev", type: "image", params: ["n", "size"] },
|
|
821
|
+
{ id: "fal-ai/flux-pro/v1.1", name: "FLUX Pro v1.1", type: "image", params: ["n", "size"] },
|
|
822
|
+
{ id: "fal-ai/flux-pro/v1.1-ultra", name: "FLUX Pro v1.1 Ultra", type: "image", params: ["n", "size"] },
|
|
823
|
+
{ id: "fal-ai/recraft-v3", name: "Recraft V3", type: "image", params: ["n", "size", "style"] },
|
|
824
|
+
{ id: "fal-ai/ideogram/v2", name: "Ideogram V2", type: "image", params: ["n", "size", "style"] },
|
|
825
|
+
{ id: "fal-ai/stable-diffusion-v35-large", name: "SD 3.5 Large", type: "image", params: ["n", "size"] },
|
|
826
|
+
],
|
|
827
|
+
"stability-ai": [
|
|
828
|
+
{ id: "stable-image-ultra", name: "Stable Image Ultra", type: "image", params: ["size"] },
|
|
829
|
+
{ id: "stable-image-core", name: "Stable Image Core", type: "image", params: ["size", "style"] },
|
|
830
|
+
{ id: "sd3.5-large", name: "Stable Diffusion 3.5 Large", type: "image", params: ["size"] },
|
|
831
|
+
{ id: "sd3.5-large-turbo", name: "Stable Diffusion 3.5 Large Turbo", type: "image", params: ["size"] },
|
|
832
|
+
{ id: "sd3.5-medium", name: "Stable Diffusion 3.5 Medium", type: "image", params: ["size"] },
|
|
833
|
+
],
|
|
834
|
+
"black-forest-labs": [
|
|
835
|
+
{ id: "flux-pro-1.1", name: "FLUX Pro 1.1", type: "image", params: ["n", "size"] },
|
|
836
|
+
{ id: "flux-pro-1.1-ultra", name: "FLUX Pro 1.1 Ultra", type: "image", params: ["size"] },
|
|
837
|
+
{ id: "flux-pro", name: "FLUX Pro", type: "image", params: ["n", "size"] },
|
|
838
|
+
{ id: "flux-dev", name: "FLUX Dev", type: "image", params: ["n", "size"] },
|
|
839
|
+
{ id: "flux-kontext-pro", name: "FLUX Kontext Pro (Edit)", type: "image", params: ["size"], capabilities: ["edit"] },
|
|
840
|
+
{ id: "flux-kontext-max", name: "FLUX Kontext Max (Edit)", type: "image", params: ["size"], capabilities: ["edit"] },
|
|
841
|
+
],
|
|
842
|
+
recraft: [
|
|
843
|
+
{ id: "recraftv3", name: "Recraft V3", type: "image", params: ["n", "size", "style"] },
|
|
844
|
+
{ id: "recraftv2", name: "Recraft V2", type: "image", params: ["n", "size", "style"] },
|
|
845
|
+
],
|
|
846
|
+
runwayml: [
|
|
847
|
+
{ id: "gen4_image", name: "Gen-4 Image", type: "image", params: ["size"] },
|
|
848
|
+
{ id: "gen4_image_turbo", name: "Gen-4 Image Turbo", type: "image", params: ["size"] },
|
|
849
|
+
{ id: "gen4_turbo", name: "Gen-4 Turbo", type: "video", params: [] },
|
|
850
|
+
{ id: "gen3a_turbo", name: "Gen-3 Alpha Turbo", type: "video", params: [] },
|
|
851
|
+
],
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
// Helper functions
|
|
855
|
+
export function getProviderModels(aliasOrId) {
|
|
856
|
+
return PROVIDER_MODELS[aliasOrId] || [];
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export function getDefaultModel(aliasOrId) {
|
|
860
|
+
const models = PROVIDER_MODELS[aliasOrId];
|
|
861
|
+
return models?.[0]?.id || null;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export function isValidModel(aliasOrId, modelId, passthroughProviders = new Set()) {
|
|
865
|
+
if (passthroughProviders.has(aliasOrId)) return true;
|
|
866
|
+
const models = PROVIDER_MODELS[aliasOrId];
|
|
867
|
+
if (!models) return false;
|
|
868
|
+
return models.some(m => m.id === modelId);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export function findModelName(aliasOrId, modelId) {
|
|
872
|
+
const models = PROVIDER_MODELS[aliasOrId];
|
|
873
|
+
if (!models) return modelId;
|
|
874
|
+
const found = models.find(m => m.id === modelId);
|
|
875
|
+
return found?.name || modelId;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export function getModelTargetFormat(aliasOrId, modelId) {
|
|
879
|
+
const models = PROVIDER_MODELS[aliasOrId];
|
|
880
|
+
if (!models) return null;
|
|
881
|
+
const found = models.find(m => m.id === modelId);
|
|
882
|
+
return found?.targetFormat || null;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export function getModelType(aliasOrId, modelId) {
|
|
886
|
+
const models = PROVIDER_MODELS[aliasOrId];
|
|
887
|
+
if (!models) return null;
|
|
888
|
+
const found = models.find(m => m.id === modelId);
|
|
889
|
+
return found?.type || null;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
export function getModelUpstreamId(aliasOrId, modelId) {
|
|
893
|
+
const models = PROVIDER_MODELS[aliasOrId];
|
|
894
|
+
const found = models?.find(m => m.id === modelId);
|
|
895
|
+
if (found?.upstreamModelId) return found.upstreamModelId;
|
|
896
|
+
if (aliasOrId === "cx" && typeof modelId === "string" && modelId.endsWith(CODEX_REVIEW_SUFFIX)) {
|
|
897
|
+
return modelId.slice(0, -CODEX_REVIEW_SUFFIX.length);
|
|
898
|
+
}
|
|
899
|
+
return modelId;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export function getModelQuotaFamily(aliasOrId, modelId) {
|
|
903
|
+
const models = PROVIDER_MODELS[aliasOrId];
|
|
904
|
+
const found = models?.find(m => m.id === modelId);
|
|
905
|
+
return found?.quotaFamily || "normal";
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
// OAuth providers that use short aliases (everything else: alias = id)
|
|
909
|
+
const OAUTH_ALIASES = {
|
|
910
|
+
claude: "cc",
|
|
911
|
+
codex: "cx",
|
|
912
|
+
"gemini-cli": "gc",
|
|
913
|
+
qwen: "qw",
|
|
914
|
+
iflow: "if",
|
|
915
|
+
antigravity: "ag",
|
|
916
|
+
github: "gh",
|
|
917
|
+
kiro: "kr",
|
|
918
|
+
cursor: "cu",
|
|
919
|
+
"kimi-coding": "kmc",
|
|
920
|
+
kilocode: "kc",
|
|
921
|
+
cline: "cl",
|
|
922
|
+
opencode: "oc",
|
|
923
|
+
qoder: "qd",
|
|
924
|
+
codebuddy: "cb",
|
|
925
|
+
vertex: "vertex",
|
|
926
|
+
"vertex-partner": "vertex-partner",
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
// Derived from PROVIDERS — no need to maintain manually
|
|
930
|
+
export const PROVIDER_ID_TO_ALIAS = Object.fromEntries(
|
|
931
|
+
Object.keys(PROVIDERS).map(id => [id, OAUTH_ALIASES[id] || id])
|
|
932
|
+
);
|
|
933
|
+
|
|
934
|
+
export function getModelsByProviderId(providerId) {
|
|
935
|
+
const alias = PROVIDER_ID_TO_ALIAS[providerId] || providerId;
|
|
936
|
+
return PROVIDER_MODELS[alias] || [];
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
// Get strip list for a model entry (explicit opt-in only)
|
|
940
|
+
// Returns array of content types to strip, e.g. ["image", "audio"]
|
|
941
|
+
export function getModelStrip(alias, modelId) {
|
|
942
|
+
const entry = PROVIDER_MODELS[alias]?.find(m => m.id === modelId);
|
|
943
|
+
return entry?.strip || [];
|
|
944
|
+
}
|