mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
export default {
|
|
id: "vercel-ai-gateway",
|
|
priority: 160,
|
|
alias: "vercel-ai-gateway",
|
|
aliases: [
|
|
"vercel",
|
|
],
|
|
uiAlias: "vercel",
|
|
display: {
|
|
name: "Vercel AI Gateway",
|
|
icon: "deployed_code",
|
|
color: "#111827",
|
|
textIcon: "VG",
|
|
website: "https://vercel.com/ai-gateway",
|
|
notice: {
|
|
text: "Unified OpenAI-compatible endpoint from Vercel. Use your AI Gateway API key, then pick models with provider/model IDs like anthropic/claude-sonnet-4.6 or openai/gpt-5.4.",
|
|
apiKeyUrl: "https://vercel.com/dashboard/~/ai-gateway",
|
|
},
|
|
},
|
|
category: "apikey",
|
|
transport: {
|
|
baseUrl: "https://ai-gateway.vercel.sh/v1/chat/completions",
|
|
thinkingFormat: "openai",
|
|
retry: {
|
|
"429": 2,
|
|
},
|
|
usage: {
|
|
url: "https://ai-gateway.vercel.sh/v1/credits",
|
|
},
|
|
},
|
|
serviceKinds: ["llm","embedding","image","imageToText","webSearch"],
|
|
embeddingConfig: { baseUrl: "https://ai-gateway.vercel.sh/v1/embeddings" },
|
|
imageConfig: { baseUrl: "https://ai-gateway.vercel.sh/v1/images/generations" },
|
|
searchViaChat: { defaultModel: "openai/gpt-4o-mini", pricingUrl: "https://vercel.com/docs/ai-gateway/pricing" },
|
|
modelsFetcher: { url: "https://ai-gateway.vercel.sh/v1/models", type: "openai" },
|
|
passthroughModels: true,
|
|
features: {
|
|
usage: true,
|
|
usageApikey: true,
|
|
},
|
|
};
|