diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 4085d3798b7..c32444bce1e 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -54,6 +54,7 @@ const PROVIDER_HANDLES_TEMPLATING: string[] = [ "msty", "anthropic", "bedrock", + "brainiall", "cohere", "sagemaker", "continue-proxy", @@ -118,6 +119,7 @@ const PROVIDER_SUPPORTS_IMAGES: string[] = [ "msty", "anthropic", "bedrock", + "brainiall", "sagemaker", "continue-proxy", "openrouter", @@ -231,6 +233,7 @@ function modelSupportsReasoning( const PARALLEL_PROVIDERS: string[] = [ "anthropic", "bedrock", + "brainiall", "cohere", "sagemaker", "deepinfra", diff --git a/core/llm/llms/Brainiall.ts b/core/llm/llms/Brainiall.ts new file mode 100644 index 00000000000..a48d1b30be3 --- /dev/null +++ b/core/llm/llms/Brainiall.ts @@ -0,0 +1,13 @@ +import { LLMOptions } from "../.."; + +import OpenAI from "./OpenAI"; + +class Brainiall extends OpenAI { + static providerName = "brainiall"; + static defaultOptions: Partial = { + apiBase: "https://apim-ai-apis.azure-api.net/v1/", + useLegacyCompletionsEndpoint: false, + }; +} + +export default Brainiall; diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 04f58e393de..0f81b2180be 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -14,6 +14,7 @@ import Asksage from "./Asksage"; import Azure from "./Azure"; import Bedrock from "./Bedrock"; import BedrockImport from "./BedrockImport"; +import Brainiall from "./Brainiall"; import Cerebras from "./Cerebras"; import Cloudflare from "./Cloudflare"; import Cohere from "./Cohere"; @@ -94,6 +95,7 @@ export const LLMClasses = [ Mimo, Bedrock, BedrockImport, + Brainiall, SageMaker, DeepInfra, Flowise, diff --git a/docs/customize/model-providers/more/brainiall.mdx b/docs/customize/model-providers/more/brainiall.mdx new file mode 100644 index 00000000000..7d591073ff0 --- /dev/null +++ b/docs/customize/model-providers/more/brainiall.mdx @@ -0,0 +1,59 @@ +--- +title: "Brainiall" +description: "Configure Brainiall with Continue to access 100+ AI models including Claude, DeepSeek, Llama, Mistral, and more through a single OpenAI-compatible endpoint" +--- + +Brainiall is an AI API gateway providing access to 100+ models including Claude, DeepSeek, Llama, Mistral, Nova, and more through a single OpenAI-compatible endpoint powered by AWS Bedrock. + +You can get an API key at [app.brainiall.com](https://app.brainiall.com) + +## Available Models + +| Model | Context | Input $/M | Output $/M | +| ----- | ------- | --------- | ---------- | +| claude-opus-4-6 | 200K | $5.00 | $25.00 | +| claude-sonnet-4-6 | 200K | $3.00 | $15.00 | +| claude-haiku-4-5 | 200K | $1.00 | $5.00 | +| deepseek-r1 | 128K | $1.35 | $5.40 | +| deepseek-v3 | 128K | $0.27 | $1.10 | +| llama-3.3-70b | 128K | $0.72 | $0.72 | +| llama-4-scout | 3.5M | $0.17 | $0.66 | +| nova-pro | 300K | $0.80 | $3.20 | +| mistral-large-3 | 262K | $2.00 | $6.00 | +| qwen3-80b | 262K | $0.14 | $1.40 | +| minimax-m2 | 204K | $0.30 | $1.20 | +| kimi-k2.5 | 256K | $0.60 | $3.00 | + +[View all models](https://app.brainiall.com/docs-page) + +## Chat Model + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: Claude Sonnet 4.6 + provider: brainiall + model: claude-sonnet-4-6 + apiKey: + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Claude Sonnet 4.6", + "provider": "brainiall", + "model": "claude-sonnet-4-6", + "apiKey": "" + } + ] + } + ``` + + diff --git a/docs/docs.json b/docs/docs.json index 379837394d8..ebe5468962e 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -169,6 +169,7 @@ "group": "More Providers", "pages": [ "customize/model-providers/more/asksage", + "customize/model-providers/more/brainiall", "customize/model-providers/more/deepseek", "customize/model-providers/more/deepinfra", "customize/model-providers/more/groq", diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index c7bd24175d5..b7a6c118bea 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -192,6 +192,7 @@ "cohere", "bedrock", "bedrockimport", + "brainiall", "sagemaker", "together", "novita", @@ -243,6 +244,7 @@ "### Cohere\nTo use Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.\n\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/cohere)", "### Bedrock\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", "### Bedrock Imported Models\nTo get started with Bedrock you need to sign up on AWS [here](https://aws.amazon.com/bedrock)", + "### Brainiall\nBrainiall is an AI API gateway providing access to 100+ models including Claude, DeepSeek, Llama, and more. Get an API key at [app.brainiall.com](https://app.brainiall.com).\n\n> [Reference](https://docs.continue.dev/customize/model-providers/more/brainiall)", "### Sagemaker\nSagemaker is AWS' machine learning platform.", "### Together\nTogether is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together:\n1. Obtain an API key from [here](https://together.ai)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/togetherllm)", "### Novita AI\n[Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM APIs](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. To get started with Novita AI:\n1. Obtain an API key from [here](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link)\n2. Paste below\n3. Select a model preset\n> [Reference](https://docs.continue.dev/reference/Model%20Providers/novita)", @@ -518,6 +520,7 @@ "enum": [ "openai", "anthropic", + "brainiall", "cohere", "gemini", "huggingface-inference-api", @@ -2859,6 +2862,7 @@ "voyage", "nvidia", "bedrock", + "brainiall", "sagemaker", "nebius", "vertexai", diff --git a/gui/public/logos/brainiall.png b/gui/public/logos/brainiall.png new file mode 100644 index 00000000000..5d7cfb7160e Binary files /dev/null and b/gui/public/logos/brainiall.png differ diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index d15db3f3d1d..dea126084da 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -3225,4 +3225,94 @@ export const models: { [key: string]: ModelPackage } = { icon: "mimo.png", isOpenSource: false, }, + + // Brainiall models + brainiallClaudeOpus46: { + title: "Claude Opus 4.6", + description: + "Anthropic's most capable model with 200K context, available via Brainiall gateway.", + refUrl: "https://app.brainiall.com", + params: { + title: "Claude Opus 4.6", + model: "claude-opus-4-6", + contextLength: 200_000, + apiKey: "", + }, + providerOptions: ["brainiall"], + icon: "brainiall.png", + isOpenSource: false, + }, + brainiallClaudeSonnet46: { + title: "Claude Sonnet 4.6", + description: + "Anthropic's balanced model with strong coding and reasoning at lower cost.", + refUrl: "https://app.brainiall.com", + params: { + title: "Claude Sonnet 4.6", + model: "claude-sonnet-4-6", + contextLength: 200_000, + apiKey: "", + }, + providerOptions: ["brainiall"], + icon: "brainiall.png", + isOpenSource: false, + }, + brainiallClaudeHaiku45: { + title: "Claude Haiku 4.5", + description: "Fast and affordable Claude model for lightweight tasks.", + refUrl: "https://app.brainiall.com", + params: { + title: "Claude Haiku 4.5", + model: "claude-haiku-4-5", + contextLength: 200_000, + apiKey: "", + }, + providerOptions: ["brainiall"], + icon: "brainiall.png", + isOpenSource: false, + }, + brainiallDeepseekR1: { + title: "DeepSeek R1", + description: + "DeepSeek's reasoning model with chain-of-thought capabilities.", + refUrl: "https://app.brainiall.com", + params: { + title: "DeepSeek R1", + model: "deepseek-r1", + contextLength: 128_000, + apiKey: "", + }, + providerOptions: ["brainiall"], + icon: "brainiall.png", + isOpenSource: true, + }, + brainiallDeepseekV3: { + title: "DeepSeek V3", + description: "DeepSeek's general-purpose model, fast and cost-effective.", + refUrl: "https://app.brainiall.com", + params: { + title: "DeepSeek V3", + model: "deepseek-v3", + contextLength: 128_000, + apiKey: "", + }, + providerOptions: ["brainiall"], + icon: "brainiall.png", + isOpenSource: true, + }, + brainiallLlama33_70b: { + title: "Llama 3.3 70B", + description: + "Meta's Llama 3.3 70B instruction-tuned model with strong general capabilities.", + refUrl: "https://app.brainiall.com", + params: { + title: "Llama 3.3 70B", + model: "llama-3.3-70b", + contextLength: 128_000, + apiKey: "", + }, + providerOptions: ["brainiall"], + icon: "brainiall.png", + isOpenSource: true, + }, }; diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index 5dfb7220b14..54905fd766f 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -1294,4 +1294,34 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo ], apiKeyUrl: "https://portal.nousresearch.com", }, + brainiall: { + title: "Brainiall", + provider: "brainiall", + refPage: "brainiall", + description: + "Access Claude, DeepSeek, Llama and more through a single OpenAI-compatible API gateway.", + longDescription: + "Brainiall provides 100+ AI models including Claude Opus/Sonnet/Haiku, DeepSeek, Llama, and more through a unified OpenAI-compatible endpoint. Get an API key at [app.brainiall.com](https://app.brainiall.com).", + icon: "brainiall.png", + tags: [ModelProviderTags.RequiresApiKey], + collectInputFor: [ + { + inputType: "text", + key: "apiKey", + label: "API Key", + placeholder: "Enter your Brainiall API key", + required: true, + }, + ...completionParamsInputsConfigs, + ], + packages: [ + models.brainiallClaudeOpus46, + models.brainiallClaudeSonnet46, + models.brainiallClaudeHaiku45, + models.brainiallDeepseekR1, + models.brainiallDeepseekV3, + models.brainiallLlama33_70b, + ], + apiKeyUrl: "https://app.brainiall.com", + }, };