diff --git a/README.md b/README.md
index 01a223d3b63..06a4c5eeb97 100644
--- a/README.md
+++ b/README.md
@@ -37,11 +37,29 @@ English / [简体中文](./README_CN.md)
## ❤️ Sponsor AI API
-
-
-
+# NextChat + AIMLAPI
+
+本仓库已集成 AIMLAPI(多模型 API 网关,OpenAI 兼容)。
+为何做出此项更改?
+
+目前,许多用户都面临着 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.
-[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.
+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!
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
-
-
-
+本仓库已集成 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)
## 企业版
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
-
-
-
+このリポジトリには、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)
## 企業版
diff --git a/README_KO.md b/README_KO.md
index 40ba5a6a1c4..9d75a072906 100644
--- a/README_KO.md
+++ b/README_KO.md
@@ -39,11 +39,15 @@
## ❤️ AI API 후원사
-
-
-
+이 저장소에는 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 버전 출시!
diff --git a/app/constant.ts b/app/constant.ts
index db9842d6027..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`;
@@ -134,6 +136,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
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,