diff --git a/README.md b/README.md index b52c8e0..1e78b0f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [ 中文 | English ] -![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg) +[![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)](LICENSE) ![](https://img.shields.io/github/stars/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/github/forks/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/docker/pulls/vinlic/kimi-free-api.svg) @@ -15,15 +15,17 @@ 与ChatGPT接口完全兼容。 -还有以下五个free-api欢迎关注: +还有以下六个free-api欢迎关注: 阶跃星辰 (跃问StepChat) 接口转API [step-free-api](https://github.com/LLM-Red-Team/step-free-api) 阿里通义 (Qwen) 接口转API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-free-api) -ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) +智谱AI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) -秘塔AI (metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) +秘塔AI (Metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) + +讯飞星火(Spark)接口转API [spark-free-api](https://github.com/LLM-Red-Team/spark-free-api) 聆心智能 (Emohaa) 接口转API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) @@ -38,6 +40,7 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te * [Docker-compose部署](#Docker-compose部署) * [Render部署](#Render部署) * [Vercel部署](#Vercel部署) +* [Zeabur部署](#Zeabur部署) * [原生部署](#原生部署) * [接口列表](#接口列表) * [对话补全](#对话补全) @@ -46,6 +49,8 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te * [refresh_token存活检测](#refresh_token存活检测) * [注意事项](#注意事项) * [Nginx反代优化](#Nginx反代优化) + * [Token统计](#Token统计) +* [Star History](#star-history) ## 免责声明 diff --git a/README_EN.md b/README_EN.md index 84abc2f..7835bc0 100644 --- a/README_EN.md +++ b/README_EN.md @@ -1,6 +1,9 @@ # KIMI AI Free Service -![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg) + +
+ +[![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)](LICENSE) ![](https://img.shields.io/github/stars/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/github/forks/llm-red-team/kimi-free-api.svg) ![](https://img.shields.io/docker/pulls/vinlic/kimi-free-api.svg) @@ -9,36 +12,41 @@ Supports high-speed streaming output, multi-turn dialogues, internet search, lon Fully compatible with the ChatGPT interface. -Also, the following four free APIs are available for your attention: +Also, the following six free APIs are available for your attention: -Step to the Stars (StepChat) API to API [step-free-api](https://github.com/LLM-Red-Team/step-free-api) +StepFun (StepChat) API to API [step-free-api](https://github.com/LLM-Red-Team/step-free-api) Ali Tongyi (Qwen) API to API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-free-api) -ZhipuAI (Wisdom Map Clear Words) API to API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) +ZhipuAI (ChatGLM) API to API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api) -MetaAI (metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) +MetaAI (metaso) API to API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api) -Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) +Iflytek Spark (Spark) API to API [spark-free-api](https://github.com/LLM-Red-Team/spark-free-api) + +Lingxin Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api) ## Table of Contents * [Disclaimer](#disclaimer) -*[Online experience](#在线experience) -* [Effect Example](#EffectExample) -* [Access preparation](#access preparation) - * [Multiple account access](#multiple account access) -* [Docker Deployment](#DockerDeployment) - * [Docker-compose deployment](#Docker-compose deployment) -* [Native Deployment](#nativedeployment) -* [Interface List](#Interface List) - * [Dialogue completion](#dialogue completion) - * [Document Interpretation](#document interpretation) - * [Image analysis](#imageanalysis) - * [refresh_token survival detection](#refresh_token survival detection) -* [Note](# NOTE) - * [Nginx anti-generation optimization](#Nginx anti-generation optimization) - +* [Online experience](#Online-Experience) +* [Effect Examples](#Effect-Examples) +* [Access preparation](#Access-Preparation) + * [Multiple account access](#Multi-Account-Access) +* [Docker Deployment](#Docker-Deployment) + * [Docker-compose deployment](#Docker-compose-deployment) +* [Zeabur Deployment](#Zeabur-Deployment) +* [Native Deployment](#Native-deployment) +* [Interface List](#Interface-List) + * [Conversation completion](#conversation-completion) + * [Document Interpretation](#document-interpretation) + * [Image analysis](#image-analysis) + * [refresh_token survival detection](#refresh_token-survival-detection) +* [Precautions](#Precautions) + * [Nginx anti-generation optimization](#Nginx-anti-generation-optimization) + * [Token statistics](#Token-statistics) +* [Star History](#star-history) + ## Disclaimer **This organization and individuals do not accept any financial donations and transactions. This project is purely for research, communication, and learning purposes!** @@ -145,6 +153,10 @@ services: - TZ=Asia/Shanghai ``` +## Zeabur Deployment + +[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/GRFYBP) + ## Native deployment Please prepare a server with a public IP and open port 8000. @@ -193,10 +205,6 @@ Out of service pm2 stop kimi-free-api ``` -## Zeabur Deployment - -[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/GRFYBP) - ## interface list Currently, the `/v1/chat/completions` interface compatible with openai is supported. You can use the client access interface compatible with openai or other clients, or use online services such as [dify](https://dify.ai/) Access and use. @@ -431,4 +439,4 @@ Since the inference side is not in kimi-free-api, the token cannot be counted an ## Star History -[![Star History Chart](https://api.star-history.com/svg?repos=LLM-Red-Team/kimi-free-api&type=Date)](https://star-history.com/ #LLM-Red-Team/kimi-free-api&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=LLM-Red-Team/kimi-free-api&type=Date)](https://star-history.com/#LLM-Red-Team/kimi-free-api&Date) diff --git a/src/api/routes/index.ts b/src/api/routes/index.ts index 72dc88f..c4dd754 100644 --- a/src/api/routes/index.ts +++ b/src/api/routes/index.ts @@ -4,6 +4,7 @@ import Response from '@/lib/response/Response.ts'; import chat from "./chat.ts"; import ping from "./ping.ts"; import token from './token.ts'; +import models from './models.ts'; export default [ { @@ -21,5 +22,6 @@ export default [ }, chat, ping, - token + token, + models ]; \ No newline at end of file diff --git a/src/api/routes/models.ts b/src/api/routes/models.ts new file mode 100644 index 0000000..2581d2e --- /dev/null +++ b/src/api/routes/models.ts @@ -0,0 +1,41 @@ +import _ from 'lodash'; + +export default { + + prefix: '/v1', + + get: { + '/models': async () => { + return { + "data": [ + { + "id": "moonshot-v1", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-8k", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-32k", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-128k", + "object": "model", + "owned_by": "kimi-free-api" + }, + { + "id": "moonshot-v1-vision", + "object": "model", + "owned_by": "kimi-free-api" + } + ] + }; + } + + } +} \ No newline at end of file