MIXAPI

by aiprodcoderVerified

大模型API网关-全新AI大模型接口管理与API聚合分发系统 , 支持将多种大模型转换成统一的OpenAI兼容接口,Claude接口,Gemini接口,可供个人或者企业内部大模型API 统一管理和渠道分发使用(key管理与二次分发),支持国际国内所有主流大模型,gemini,claude,qwen3,kimi-k2,豆包等,提供单可执行文件, docker镜像,一键部署,开箱即用,完全开源,自主可控!本项目基于New-API和One-API,整合了NewAPI,OneAPI所有功能及众多第三方插件为一身,功能超强!

904
Stars
270
Forks
Go
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/aiprodcoder/MIXAPI

Getting Started

Guides for using skills like MIXAPI.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

中文 | English

MIXAPI

🍥新一代AI大模型网关,聚合大模型API调用,转换所有大模型API接口为标准的 OpenAI-API格式,提供统一访问接口,开箱即用

license

mixapi

全新AI大模型接口管理与API聚合分发系统,支持将多种大模型转换成统一的OpenAI兼容接口,Claude接口,Gemini接口,可供个人或者企业内部大模型API 统一管理和渠道分发使用(key管理与二次分发),支持国际国内所有主流大模型,gemini,claude,qwen3,kimi-k2,豆包等,提供单可执行文件, docker镜像,一键部署,开箱即用,完全开源,自主可控!

  • MixAPI基于New-API和One-API,整合了NewAPI,OneAPI所有重要功能及问题改进优化,内置众多第三方插件为一身,成为名副其实的全能六边形战士!
  • 超高性能优化,用魔法打败魔法,对主要转发通路的代码用AI大模型进行多轮特别优化,写出了人类想象不出的高效代码,提高大流量高并发场景性能50%以上!
  • MixAPI-PRO版本,专门针对公司企业客户,去掉收费,充值,用户注册等繁琐环节,聚焦公司内部大模型API统一管理,安全审计,隐私防泄漏,大模型调用次数限制,频率限制等企业内部管理核心问题,详情点这里 MixAPI-PRO(https://github.com/aiprodcoder/MixAPI-PRO)
mixapi

✨ 主要特性

MIXAPI提供了丰富的功能:

  • 🎨 全新的UI界面
  • 🌍 多语言支持
  • 💰 支持在线充值功能
  • 🔍 支持直接用key查询使用额度和充值(下面有截图展示)
  • 🔄 支持令牌选择套餐计费(计次套餐,包月套餐,下面有截图展示)
  • 💵 支持模型按次数收费 (下面有截图展示)
  • ⚖️ 支持渠道加权随机
  • 📈 数据看板新增多种统计查询功能(控制台)
  • 🔒 令牌分组、模型限制, 可以精确限制A令牌只能用A渠道且只能用某个D模型
  • 🤖 支持更多授权登陆方式(LinuxDO,Telegram、OIDC)
  • 🔄 支持Rerank模型(Cohere和Jina)
  • ⚡ 支持OpenAI Realtime API(包括Azure渠道)
  • ⚡ 支持最新Claude-sonnet-4.5模型
  • 💵 支持使用路由/chat2link进入聊天界面
  • 🔄 针对用户的模型限流功能
  • 💰 缓存计费支持,开启后可以在缓存命中时按照设定的比例计费:
  • 🔄 新增对token令牌的控制,可控制分钟请求次数限制和日请求次数限制
mixapi

  • 📊 新增用量日统计
mixapi

  • 📊 新增用量月统计
mixapi

  • 📋 新增令牌管理显示该令牌的今日次数和总次数
mixapi

  • 📝 新增通过令牌请求的内容记录显示
mixapi

  • 📝 支持通过令牌直接查询余额,自行完成充值,无需登录
mixapi

  • 📝 支持套餐管理模式,用户令牌绑定套餐,可以限制次数,周期,使用频率,指定渠道,指定模型
mixapi

  • 📝 新增套餐管理界面
mixapi

  • 📝 新增访问令牌界面,直接选择套餐即可,无需更多操作
mixapi

  • 📝 支持令牌中选择渠道组,设定该令牌只有渠道组下面的渠道可用,并结合选择渠道组,选择模型达到限制需求

  • 📝 API令牌中增加控制使用总次数限制,当达到总次数限制时返回额度已用完

  • 📝 增加在系统设置是否记录用户通过令牌请求api 开关控制

  • 📝 优化用户输入只采集中文,过滤代码字符

  • 📝 优化同一会话的多轮请求重复记录,只记录最后一次

  • 📝 优化增加系统设置清理日志的时间范围

  • 📝 调整默认配置不启用价格,采用token显示余额 (合规方向)

  • 📝 调整git任务流程打包发布名称输出

  • 📝 调整数据看板的Api默认配置

  • 📝 增加渠道导出excel 和导入excel

mixapi

部署

详细部署指南请参考下面教程

部署要求

  • 本地数据库(默认):SQLite(Docker部署默认使用SQLite)
  • 远程数据库:MySQL版本 >= 5.7.8,PgSQL版本 >= 9.6 (非必须)

部署方式

下载二进制程序双击运行 (小白推荐)

windows对应下载release里面的.exe文件双击运行,下载好.exe程序, 双击运行,运行起来后通过浏览器访问

http://localhost:3000

本地运行方式

下载本项目源码 安装好go环境, 然后在根目录运行命令 , 可用于本地开发测试

git clone https://github.com/aiprodcoder/MIXAPI
cd MIXAPI
go run main.go

#浏览器访问 http://localhost:3000 即可打开界面

自行构建docker镜像,容器运行

下载本项目Dockerfile文件,自行构建docker镜像,容器运行,可用于测试和正式运行

wget -O Dockerfile https://raw.githubusercontent.com/aiprodcoder/MIXAPI/main/Dockerfile
docker build -t mixapi .   

# 测试运行命令
mkdir mix-api   #创建工作目录
cd mix-api      #进入工作目录
docker run -it --rm  -p 3000:3000  -v $PWD:/data mixapi:latest    ($PWD为当前工作目录)

# 正式运行命令
docker run --name mixapi -d --restart always  -p 3000:3000  -v $PWD:/data  -e TZ=Asia/Shanghai mixapi:latest    ($PWD为当前工作目录)

# 浏览器访问 http://localhost:3000 即可打开界面

渠道重试与缓存

渠道重试功能已经实现,可以在设置->运营设置->通用设置设置重试次数,建议开启缓存功能。

缓存设置方法

  1. REDIS_CONN_STRING:设置Redis作为缓存
  2. MEMORY_CACHE_ENABLED:启用内存缓存(设置了Redis则无需手动设置)

接口文档

   OpenAI格式chat:   http://你的MixAPI服务器地址:3000/v1/chat/completions 
Anthropic格式chat:   http://你的MixAPI服务器地址:3000/v1/messages
   Gemini格式chat:   http://你的MixAPI服务器地址:3000/v1beta
       嵌入OpenAI:   http://你的MixAPI服务器地址:3000/v1/embeddings 

帮助支持 (请点亮右上角的星星支持我们一下吧,顺手的事,但对我们非常重要!)

社区交流 ,免费大模型API资源 ,软件定制,软件修改,商务咨询 请扫描加入微信群,我们一起把MixAPI做到最好

mixapi

Frequently Asked Questions

What is MIXAPI?

MIXAPI is an open-source api integration skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by aiprodcoder. 大模型API网关-全新AI大模型接口管理与API聚合分发系统 , 支持将多种大模型转换成统一的OpenAI兼容接口,Claude接口,Gemini接口,可供个人或者企业内部大模型API 统一管理和渠道分发使用(key管理与二次分发),支持国际国内所有主流大模型,gemini,claude,qwen3,kimi-k2,豆包等,提供单可执行文件, docker镜像,一键部署,开箱即用,完全开源,自主可控!本项目基于New-API和One-API,整合了NewAPI,OneAPI所有功能及众多第三方插件为一身,功能超强!. It has 904 GitHub stars.

Is MIXAPI safe to use?

Yes. MIXAPI passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install MIXAPI?

Clone the repository with "git clone https://github.com/aiprodcoder/MIXAPI" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is MIXAPI written in?

MIXAPI is primarily written in Go. It is open-source under aiprodcoder on GitHub, so you can review or fork the full source.

Are there alternatives to MIXAPI?

Yes. SkillsLLM lists many other API Integration skills you can browse and compare side by side. Open the API Integration category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh MIXAPI against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

CLIProxyAPI

by router-for-me

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.6 Series, Grok 4.5, Claude model through API

48,3767,452Go
API Integration
View details

sub2api

by Wei-Shaw

Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

38,8308,041Go
API Integration
View details

claude-code-hub

by ding113

一个现代化的 Claude Code & Codex API 代理服务,提供智能负载均衡、用户管理和使用统计功能。

3,328387TypeScript
API Integration
View details

cc-gateway

by motiful

AI API identity gateway — reverse proxy that normalizes device fingerprints and telemetry for privacy-preserving API proxying

3,013501TypeScript
API Integration
View details

octopus

by bestruirui

One Hub All LLMs For You | 为个人打造的 LLM API 聚合网关

2,483394TypeScript
API Integration
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details