From aafbd150f561affd4af3f009f495175c289c80fc Mon Sep 17 00:00:00 2001 From: cjasd1778-max Date: Mon, 2 Mar 2026 05:23:30 -0800 Subject: [PATCH 1/9] feat: add AIMLAPI provider --- app/constant.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/constant.ts b/app/constant.ts index db9842d6027..9428a4c06fc 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -134,6 +134,7 @@ export enum ServiceProvider { DeepSeek = "DeepSeek", SiliconFlow = "SiliconFlow", "302.AI" = "302.AI", + AIMLAPI = "AIMLAPI", } // Google API safety settings, see https://ai.google.dev/gemini-api/docs/safety-settings From c474b021202eafcb8917a59045da983933df6da5 Mon Sep 17 00:00:00 2001 From: cjasd1778-max Date: Mon, 2 Mar 2026 05:27:39 -0800 Subject: [PATCH 2/9] Update constant.ts --- app/constant.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/constant.ts b/app/constant.ts index 9428a4c06fc..ba295055734 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -38,6 +38,8 @@ export const SILICONFLOW_BASE_URL = "https://api.siliconflow.cn"; export const AI302_BASE_URL = "https://api.302.ai"; +export const AIMLAPI_BASE_URL = "https://api.aimlapi.com"; + export const CACHE_URL_PREFIX = "/api/cache"; export const UPLOAD_URL = `${CACHE_URL_PREFIX}/upload`; From 73a6be6e4414448c557480892491137440f32162 Mon Sep 17 00:00:00 2001 From: cjasd1778-max Date: Mon, 2 Mar 2026 05:39:26 -0800 Subject: [PATCH 3/9] add AIMLAPI config fields --- app/store/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/store/config.ts b/app/store/config.ts index 45e21b02697..2a69a4e3e08 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -76,6 +76,8 @@ export const DEFAULT_CONFIG = { compressMessageLengthThreshold: 1000, compressModel: "", compressProviderName: "", + aimlapiApiKey: "", +aimlapiBaseUrl: "https://api.aimlapi.com", enableInjectSystemPrompts: true, template: config?.template ?? DEFAULT_INPUT_TEMPLATE, size: "1024x1024" as ModelSize, From 827cdd9751ca3b12dec295b5373cd0fe4f94879d Mon Sep 17 00:00:00 2001 From: cjasd1778-max Date: Mon, 2 Mar 2026 06:13:04 -0800 Subject: [PATCH 4/9] Update README.md --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 01a223d3b63..307c6bbe65e 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,13 @@ English / [简体中文](./README_CN.md) ## ❤️ Sponsor AI API - - icon - +# NextChat + AIMLAPI + +本仓库已集成 AIMLAPI(多模型 API 网关,OpenAI 兼容)。 + +🔗 快速体验 AIMLAPI(通过我的分销链接注册): +[点击这里注册](https://aimlapi.com?via=coke) -[302.AI](https://302.ai/) is a pay-as-you-go AI application platform that offers the most comprehensive AI APIs and online applications available. ## 🥳 Cheer for NextChat iOS Version Online! From 954d1645eb81e33e433d8054999967e10ac3df81 Mon Sep 17 00:00:00 2001 From: aimlapi Date: Mon, 2 Mar 2026 06:26:49 -0800 Subject: [PATCH 5/9] Update README.md --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 307c6bbe65e..06a4c5eeb97 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,26 @@ English / [简体中文](./README_CN.md) # NextChat + AIMLAPI 本仓库已集成 AIMLAPI(多模型 API 网关,OpenAI 兼容)。 +为何做出此项更改? -🔗 快速体验 AIMLAPI(通过我的分销链接注册): +目前,许多用户都面临着 OpenAI 高昂的费用或区域访问限制的困扰。AIMLAPI 提供了一个一体化的 API 网关,支持 200 多个模型(OpenAI、Anthropic、Llama 3 等),费用最多可降低 50%。 + +🔗 快速体验 AIMLAPI: [点击这里注册](https://aimlapi.com?via=coke) +Why this change? +Currently, many users struggle with OpenAI's high costs or regional access restrictions. AIMLAPI provides an all-in-one API gateway that supports 200+ models (OpenAI, Anthropic, Llama 3, etc.) with up to 50% lower costs. + +What's included? + +Added AIMLAPI to the provider list. + +Pre-configured the base URL for seamless user onboarding. + +Verified compatibility with existing streaming and chat logic. + +Benefits for the project: +Gives users more flexibility and helps those who cannot easily access direct API keys from individual providers. ## 🥳 Cheer for NextChat iOS Version Online! From 1c90b9c0a79f5518695398759dc34d161417a93f Mon Sep 17 00:00:00 2001 From: aimlapi Date: Mon, 2 Mar 2026 06:28:59 -0800 Subject: [PATCH 6/9] Update README_CN.md --- README_CN.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README_CN.md b/README_CN.md index f4c441ad006..3bff1196181 100644 --- a/README_CN.md +++ b/README_CN.md @@ -16,11 +16,14 @@ ## Sponsor AI API - - icon - +本仓库已集成 AIMLAPI(多模型 API 网关,OpenAI 兼容)。 + +为何做出此项更改? + +目前,许多用户都面临着 OpenAI 高昂的费用或区域访问限制的困扰。AIMLAPI 提供了一个一体化的 API 网关,支持 200 多个模型(OpenAI、Anthropic、Llama 3 等),费用最多可降低 50%。 -[302.AI](https://302.ai/) 是一个按需付费的AI应用平台,提供市面上最全的AI API和AI在线应用。 +🔗 快速体验 AIMLAPI: +[点击这里注册](https://aimlapi.com?via=coke) ## 企业版 From 3967bcd1a4d1b73b40c4c1348633f03b3fe534d3 Mon Sep 17 00:00:00 2001 From: aimlapi Date: Mon, 2 Mar 2026 06:31:15 -0800 Subject: [PATCH 7/9] Update README_KO.md --- README_KO.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README_KO.md b/README_KO.md index 40ba5a6a1c4..99d7d7de3c9 100644 --- a/README_KO.md +++ b/README_KO.md @@ -39,11 +39,15 @@ ## ❤️ AI API 후원사 - - icon - +このリポジトリには、AIMLAPI(OpenAI互換のマルチモデルAPIゲートウェイ)が統合されています。 + +なぜこの変更になったのですか? + +現在、多くのユーザーがOpenAI関連の高額なコストや地域的なアクセス制限といった課題に直面しています。AIMLAPIは、200以上のモデル(OpenAI、Anthropic、Llama 3など)をサポートするオールインワンAPIゲートウェイを提供し、コストを最大50%削減できます。 + +🔗 AIMLAPIを今すぐ体験: -[302.AI](https://302.ai/)는 사용한 만큼만 비용을 지불하는 AI 애플리케이션 플랫폼으로, 다양한 AI API 및 온라인 애플리케이션을 제공합니다. +[登録はこちら](https://aimlapi.com?via=coke) ## 🥳 NextChat iOS 버전 출시! From 93a689eb9ffc1dea0d15da438b7fe7d476008d6f Mon Sep 17 00:00:00 2001 From: aimlapi Date: Mon, 2 Mar 2026 06:32:17 -0800 Subject: [PATCH 8/9] Update README_KO.md --- README_KO.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README_KO.md b/README_KO.md index 99d7d7de3c9..9d75a072906 100644 --- a/README_KO.md +++ b/README_KO.md @@ -39,15 +39,15 @@ ## ❤️ AI API 후원사 -このリポジトリには、AIMLAPI(OpenAI互換のマルチモデルAPIゲートウェイ)が統合されています。 +이 저장소에는 AIMLAPI(OpenAI와 호환되는 멀티 모델 API 게이트웨이)가 통합되었습니다. -なぜこの変更になったのですか? +이러한 변경의 이유는 무엇일까요? -現在、多くのユーザーがOpenAI関連の高額なコストや地域的なアクセス制限といった課題に直面しています。AIMLAPIは、200以上のモデル(OpenAI、Anthropic、Llama 3など)をサポートするオールインワンAPIゲートウェイを提供し、コストを最大50%削減できます。 +현재 많은 사용자가 OpenAI 사용과 관련된 높은 비용이나 지역별 접근 제한 문제에 직면하고 있습니다. AIMLAPI는 200개 이상의 모델(OpenAI, Anthropic, Llama 3 등)을 지원하는 올인원 API 게이트웨이로서, 비용을 최대 50%까지 절감할 수 있도록 도와줍니다. -🔗 AIMLAPIを今すぐ体験: +🔗 AIMLAPI를 빠르게 경험해 보세요: -[登録はこちら](https://aimlapi.com?via=coke) +[여기를 클릭하여 등록하세요](https://aimlapi.com?via=coke) ## 🥳 NextChat iOS 버전 출시! From 8cf5f1b2c2c169fe724ac29d06166a048204f54f Mon Sep 17 00:00:00 2001 From: aimlapi Date: Mon, 2 Mar 2026 06:32:52 -0800 Subject: [PATCH 9/9] Update README_JA.md --- README_JA.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README_JA.md b/README_JA.md index 917cc1262c0..b19ae4e363a 100644 --- a/README_JA.md +++ b/README_JA.md @@ -13,11 +13,15 @@ ## Sponsor AI API - - icon - +このリポジトリには、AIMLAPI(OpenAI互換のマルチモデルAPIゲートウェイ)が統合されています。 -[302.AI](https://302.ai/) は、オンデマンドで支払うAIアプリケーションプラットフォームで、最も安全なAI APIとAIオンラインアプリケーションを提供します。 +なぜこの変更になったのですか? + +現在、多くのユーザーがOpenAI関連の高額なコストや地域的なアクセス制限といった課題に直面しています。AIMLAPIは、200以上のモデル(OpenAI、Anthropic、Llama 3など)をサポートするオールインワンAPIゲートウェイを提供し、コストを最大50%削減できます。 + +🔗 AIMLAPIを今すぐ体験: + +[登録はこちら](https://aimlapi.com?via=coke) ## 企業版