Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

providers: add API Route card

dennyho09171761ab8761a9
diff --git a/docs/providers-and-models.md b/docs/providers-and-models.md
index 681b761dd..46a164730 100644
--- a/docs/providers-and-models.md
+++ b/docs/providers-and-models.md
@@ -515,7 +515,7 @@ difference is the Chromium-only in-browser WebGPU runtime.
| IDs |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `302ai`, `abacus`, `aihubmix`, `alibaba-coding-plan`, `alibaba-coding-plan-cn`, `azure-cognitive-services`, `bailing`, `baseten`, `berget`, `cerebras`, `cheaperinference`, `chutes`, `clarifai`, `cloudferro-sherlock`, `cohere`, `cortecs`, `deepinfra`, `digitalocean`, `dinference`, `drun`, `evroc`, `fastrouter`, `friendli` |
+| `api-route`, `302ai`, `abacus`, `aihubmix`, `alibaba-coding-plan`, `alibaba-coding-plan-cn`, `azure-cognitive-services`, `bailing`, `baseten`, `berget`, `cerebras`, `cheaperinference`, `chutes`, `clarifai`, `cloudferro-sherlock`, `cohere`, `cortecs`, `deepinfra`, `digitalocean`, `dinference`, `drun`, `evroc`, `fastrouter`, `friendli` |
| `freebuff2api`, `google-vertex`, `google-vertex-anthropic`, `helicone`, `iflowcn`, `inception`, `inference`, `io-net`, `jiekou`, `kilo`, `kimi-for-coding`, `kuae-cloud-coding-plan`, `llama`, `lucidquery`, `meganova`, `minimax-cn-coding-plan`, `minimax-coding-plan`, `moark`, `modelscope`, `morph` |
| `nano-gpt`, `nearai`, `nebius`, `nova`, `novita-ai`, `ollama-cloud`, `opencode`, `opencode-go`, `opper`, `orcarouter`, `ovhcloud`, `perplexity`, `perplexity-agent`, `poe`, `pollinations`, `privatemode-ai`, `qihang-ai`, `qiniu-ai`, `requesty`, `scaleway`, `siliconflow`, `siliconflow-cn`, `stackit` |
| `stepfun`, `submodel`, `synthetic`, `tencent-coding-plan`, `upstage`, `v0`, `venice`, `vercel`, `vivgrid`, `vultr`, `wandb`, `xiaomi`, `zai-coding-plan`, `zenmux`, `zhipuai`, `zhipuai-coding-plan` |
@@ -1210,3 +1210,9 @@ myprovider: {
```
Vision is auto-detected via model-name regex. If the provider has a known set of vision models, extend `_modelNameSniffedVision()` in `openai.js`, or add a vendor subclass the way `providers/deepseek.js` does. Set `supportsStreamUsageOptions: true` only for providers that accept OpenAI-style `stream_options.include_usage`; leave it false when a provider returns usage without accepting that request field.
+
+## API Route
+
+[API Route](https://api-route.com) is an OpenAI-compatible provider. Open **Providers -> LLM -> API Route**, enter your own API key, keep the default model gpt-6.1-sol, and click **Test Connection**. Requests use https://global.api-route.com/v1; API Route bills usage separately. The card starts disabled.
+
+Text chat, Ask streaming and tool calls use the existing compatible adapter. Vision is disabled by default. The 32768-token context setting is a conservative WebBrain budget, not a claim about the model or upstream context limit; adjust it only to a limit verified for your selected model and account. No price metadata is assumed.
diff --git a/src/chrome/icons/providers/SOURCES.md b/src/chrome/icons/providers/SOURCES.md
index abf9b2d5b..696df2e40 100644
--- a/src/chrome/icons/providers/SOURCES.md
+++ b/src/chrome/icons/providers/SOURCES.md
@@ -29,3 +29,4 @@ Brand trademarks remain property of their owners; used only for provider identif
| Where | Source |
|-------|--------|
| Settings β†’ Advanced β†’ Vision mode (inline SVG in `src/ui/settings.html`) | [Simple Icons](https://simpleicons.org/) `tesla` path data (CC0). Tesla is a trademark of Tesla, Inc.; the mark only illustrates the "Tesla" mode analogy and implies no affiliation. |
+| api-route.png | API Route official two-color ginkgo logo, supplied by the contributor affiliated with [API Route](https://api-route.com) |
diff --git a/src/chrome/icons/providers/api-route.png b/src/chrome/icons/providers/api-route.png
new file mode 100644
index 000000000..d740a303a
Binary files /dev/null and b/src/chrome/icons/providers/api-route.png differ
diff --git a/src/chrome/src/providers/provider-catalog.js b/src/chrome/src/providers/provider-catalog.js
index 503f294d3..7994a1872 100644
--- a/src/chrome/src/providers/provider-catalog.js
+++ b/src/chrome/src/providers/provider-catalog.js
@@ -60,6 +60,8 @@ function provider(id, label, baseUrl, model, contextWindow, options = {}) {
}
const PROVIDERS = [
+ // Conservative application budget, not an advertised model context limit.
+ provider('api-route', 'API Route', 'https://global.api-route.com/v1', 'gpt-6.1-sol', 32768, { apiKeyUrl: 'https://api-route.com' }),
provider('302ai', '302.AI', 'https://api.302.ai/v1', 'gpt-5.4-mini-2026-03-17', 400000, { apiKeyUrl: 'https://doc.302.ai', supportsVision: true, inputCostPerMillionUsd: 0.75, outputCostPerMillionUsd: 4.5 }),
provider('abacus', 'Abacus', 'https://routellm.abacus.ai/v1', 'o3', 200000, { apiKeyUrl: 'https://abacus.ai/help/api', supportsVision: true, inputCostPerMillionUsd: 2, cacheReadCostPerMillionUsd: 0.5, outputCostPerMillionUsd: 8 }),
provider('aihubmix', 'AIHubMix', 'https://aihubmix.com/v1', 'coding-minimax-m2.7', 204800, { apiKeyUrl: 'https://docs.aihubmix.com', inputCostPerMillionUsd: 0.2, outputCostPerMillionUsd: 0.2 }),
diff --git a/src/chrome/src/ui/provider-icons.js b/src/chrome/src/ui/provider-icons.js
index 9c8db9af0..5a4044672 100644
--- a/src/chrome/src/ui/provider-icons.js
+++ b/src/chrome/src/ui/provider-icons.js
@@ -48,6 +48,7 @@ export const PROVIDER_ICON_FILES = {
fireworks: 'fireworks.svg',
z_ai: 'z_ai.svg',
...Object.fromEntries(ADDITIONAL_PROVIDER_IDS.map((id) => [id, `${id}.svg`])),
+ 'api-route': 'api-route.png',
};
export function providerIconUrl(id) {
diff --git a/src/firefox/icons/providers/SOURCES.md b/src/firefox/icons/providers/SOURCES.md
index 2d879c9e3..cd9b82c5d 100644
--- a/src/firefox/icons/providers/SOURCES.md
+++ b/src/firefox/icons/providers/SOURCES.md
@@ -29,3 +29,4 @@ Brand trademarks remain property of their owners; used only for provider identif
| Where | Source |
|-------|--------|
| Settings β†’ Advanced β†’ Vision mode (inline SVG in `src/ui/settings.html`) | [Simple Icons](https://simpleicons.org/) `tesla` path data (CC0). Tesla is a trademark of Tesla, Inc.; the mark only illustrates the "Tesla" mode analogy and implies no affiliation. |
+| api-route.png | API Route official two-color ginkgo logo, supplied by the contributor affiliated with [API Route](https://api-route.com) |
diff --git a/src/firefox/icons/providers/api-route.png b/src/firefox/icons/providers/api-route.png
new file mode 100644
index 000000000..d740a303a
Binary files /dev/null and b/src/firefox/icons/providers/api-route.png differ
diff --git a/src/firefox/src/providers/provider-catalog.js b/src/firefox/src/providers/provider-catalog.js
index 503f294d3..7994a1872 100644
--- a/src/firefox/src/providers/provider-catalog.js
+++ b/src/firefox/src/providers/provider-catalog.js
@@ -60,6 +60,8 @@ function provider(id, label, baseUrl, model, contextWindow, options = {}) {
}
const PROVIDERS = [
+ // Conservative application budget, not an advertised model context limit.
+ provider('api-route', 'API Route', 'https://global.api-route.com/v1', 'gpt-6.1-sol', 32768, { apiKeyUrl: 'https://api-route.com' }),
provider('302ai', '302.AI', 'https://api.302.ai/v1', 'gpt-5.4-mini-2026-03-17', 400000, { apiKeyUrl: 'https://doc.302.ai', supportsVision: true, inputCostPerMillionUsd: 0.75, outputCostPerMillionUsd: 4.5 }),
provider('abacus', 'Abacus', 'https://routellm.abacus.ai/v1', 'o3', 200000, { apiKeyUrl: 'https://abacus.ai/help/api', supportsVision: true, inputCostPerMillionUsd: 2, cacheReadCostPerMillionUsd: 0.5, outputCostPerMillionUsd: 8 }),
provider('aihubmix', 'AIHubMix', 'https://aihubmix.com/v1', 'coding-minimax-m2.7', 204800, { apiKeyUrl: 'https://docs.aihubmix.com', inputCostPerMillionUsd: 0.2, outputCostPerMillionUsd: 0.2 }),
diff --git a/src/firefox/src/ui/provider-icons.js b/src/firefox/src/ui/provider-icons.js
index 79d00b17f..5a4044672 100644
--- a/src/firefox/src/ui/provider-icons.js
+++ b/src/firefox/src/ui/provider-icons.js
@@ -27,6 +27,7 @@ export const PROVIDER_ICON_FILES = {
gpt4all: 'gpt4all.svg',
local_openai_proxy: 'local_openai_proxy.svg',
unsloth: 'unsloth.svg',
+ webgpu: 'webgpu.svg',
azure_openai: 'azure_openai.svg',
aws_bedrock: 'aws_bedrock.svg',
openai: 'openai.svg',
@@ -47,6 +48,7 @@ export const PROVIDER_ICON_FILES = {
fireworks: 'fireworks.svg',
z_ai: 'z_ai.svg',
...Object.fromEntries(ADDITIONAL_PROVIDER_IDS.map((id) => [id, `${id}.svg`])),
+ 'api-route': 'api-route.png',
};
export function providerIconUrl(id) {
@@ -97,6 +99,7 @@ export const PROVIDER_SHORT_LABELS = {
gpt4all: 'GPT4All',
local_openai_proxy: 'Local Proxy',
unsloth: 'Unsloth Studio',
+ webgpu: 'WebGPU',
azure_openai: 'Azure OpenAI',
aws_bedrock: 'AWS Bedrock',
openai: 'OpenAI',
diff --git a/test/provider-catalog-integrations.mjs b/test/provider-catalog-integrations.mjs
index eb589b95b..ef715907e 100644
--- a/test/provider-catalog-integrations.mjs
+++ b/test/provider-catalog-integrations.mjs
@@ -11,6 +11,20 @@ for (const browser of ['chrome', 'firefox']) {
pathToFileURL(path.join(prefix, 'providers', 'provider-catalog.js')).href
);
+ const apiRoute = ADDITIONAL_PROVIDER_DEFAULTS['api-route'];
+ assert.equal(apiRoute.type, 'openai');
+ assert.equal(apiRoute.baseUrl, 'https://global.api-route.com/v1');
+ assert.equal(apiRoute.model, 'gpt-6.1-sol');
+ assert.equal(apiRoute.contextWindow, 32768);
+ assert.equal(apiRoute.enabled, false);
+ assert.equal(apiRoute.apiKey, '');
+ assert.equal(apiRoute.supportsVision, false);
+ assert.equal(apiRoute.supportsTools, true);
+ assert.equal(apiRoute.supportsAskStreaming, true);
+ assert.deepEqual(ADDITIONAL_PROVIDER_UI['api-route'].suggestions, ['gpt-6.1-sol']);
+ const { providerIconUrl } = await import(pathToFileURL(path.join(prefix, 'ui', 'provider-icons.js')).href);
+ assert.ok(providerIconUrl('api-route').endsWith('/api-route.png'));
+
const ioNet = ADDITIONAL_PROVIDER_DEFAULTS['io-net'];
assert.equal(ioNet.type, 'openai', `${browser}: IO.NET must use the OpenAI-compatible adapter`);
assert.equal(ioNet.baseUrl, 'https://api.intelligence.io.solutions/api/v1', `${browser}: IO.NET endpoint changed`);
diff --git a/test/run.js b/test/run.js
index c6faa5ce2..ff7f024eb 100644
--- a/test/run.js
+++ b/test/run.js
@@ -76458,7 +76458,7 @@ test('_defaultConfigs: every entry carries an explicit category', () => {
test('extended provider catalog is complete, mirrored, safe, and excluded-provider clean', async () => {
const expectedIds = `
- 302ai abacus aihubmix alibaba-coding-plan alibaba-coding-plan-cn
+ api-route 302ai abacus aihubmix alibaba-coding-plan alibaba-coding-plan-cn
azure-cognitive-services bailing baseten berget cerebras cheaperinference chutes clarifai
cloudferro-sherlock cohere cortecs deepinfra digitalocean dinference drun
evroc fastrouter freebuff2api friendli google-vertex google-vertex-anthropic helicone
@@ -76508,6 +76508,11 @@ test('extended provider catalog is complete, mirrored, safe, and excluded-provid
);
assert.ok(config.model || config.requiresModel === true || id === 'azure-cognitive-services', `${label}: ${id} missing model`);
+ if (id === 'api-route') {
+ const icon = fs.readFileSync(path.join(ROOT, prefix, 'icons/providers/api-route.png'));
+ assert.deepEqual([...icon.subarray(0, 8)], [137, 80, 78, 71, 13, 10, 26, 10]);
+ continue;
+ }
const icon = path.join(ROOT, prefix, 'icons/providers', `${id}.svg`);
assert.equal(fs.existsSync(icon), true, `${label}: missing icon for ${id}`);
const svg = fs.readFileSync(icon, 'utf8');