Skip to content

Commit 09250f2

Browse files
committed
2 parents a2d5ab9 + fe58418 commit 09250f2

File tree

4 files changed

+87
-31
lines changed

4 files changed

+87
-31
lines changed

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<span>[ 中文 | <a href="README_EN.md">English</a> ]</span>
77

88

9-
![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)
9+
[![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)](LICENSE)
1010
![](https://img.shields.io/github/stars/llm-red-team/kimi-free-api.svg)
1111
![](https://img.shields.io/github/forks/llm-red-team/kimi-free-api.svg)
1212
![](https://img.shields.io/docker/pulls/vinlic/kimi-free-api.svg)
@@ -15,15 +15,17 @@
1515

1616
与ChatGPT接口完全兼容。
1717

18-
还有以下五个free-api欢迎关注:
18+
还有以下六个free-api欢迎关注:
1919

2020
阶跃星辰 (跃问StepChat) 接口转API [step-free-api](https://github.com/LLM-Red-Team/step-free-api)
2121

2222
阿里通义 (Qwen) 接口转API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-free-api)
2323

24-
ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api)
24+
智谱AI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api)
2525

26-
秘塔AI (metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api)
26+
秘塔AI (Metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api)
27+
28+
讯飞星火(Spark)接口转API [spark-free-api](https://github.com/LLM-Red-Team/spark-free-api)
2729

2830
聆心智能 (Emohaa) 接口转API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api)
2931

@@ -38,6 +40,7 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te
3840
* [Docker-compose部署](#Docker-compose部署)
3941
* [Render部署](#Render部署)
4042
* [Vercel部署](#Vercel部署)
43+
* [Zeabur部署](#Zeabur部署)
4144
* [原生部署](#原生部署)
4245
* [接口列表](#接口列表)
4346
* [对话补全](#对话补全)
@@ -46,6 +49,8 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te
4649
* [refresh_token存活检测](#refresh_token存活检测)
4750
* [注意事项](#注意事项)
4851
* [Nginx反代优化](#Nginx反代优化)
52+
* [Token统计](#Token统计)
53+
* [Star History](#star-history)
4954

5055
## 免责声明
5156

README_EN.md

+34-26
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# KIMI AI Free Service
22

3-
![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)
3+
4+
<hr>
5+
6+
[![](https://img.shields.io/github/license/llm-red-team/kimi-free-api.svg)](LICENSE)
47
![](https://img.shields.io/github/stars/llm-red-team/kimi-free-api.svg)
58
![](https://img.shields.io/github/forks/llm-red-team/kimi-free-api.svg)
69
![](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
912

1013
Fully compatible with the ChatGPT interface.
1114

12-
Also, the following four free APIs are available for your attention:
15+
Also, the following six free APIs are available for your attention:
1316

14-
Step to the Stars (StepChat) API to API [step-free-api](https://github.com/LLM-Red-Team/step-free-api)
17+
StepFun (StepChat) API to API [step-free-api](https://github.com/LLM-Red-Team/step-free-api)
1518

1619
Ali Tongyi (Qwen) API to API [qwen-free-api](https://github.com/LLM-Red-Team/qwen-free-api)
1720

18-
ZhipuAI (Wisdom Map Clear Words) API to API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api)
21+
ZhipuAI (ChatGLM) API to API [glm-free-api](https://github.com/LLM-Red-Team/glm-free-api)
22+
23+
MetaAI (metaso) API to API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api)
1924

20-
MetaAI (metaso) 接口转API [metaso-free-api](https://github.com/LLM-Red-Team/metaso-free-api)
25+
Iflytek Spark (Spark) API to API [spark-free-api](https://github.com/LLM-Red-Team/spark-free-api)
2126

22-
Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api)
27+
Lingxin Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/LLM-Red-Team/emohaa-free-api)
2328

2429
## Table of Contents
2530

2631
* [Disclaimer](#disclaimer)
27-
*[Online experience](#在线experience)
28-
* [Effect Example](#EffectExample)
29-
* [Access preparation](#access preparation)
30-
* [Multiple account access](#multiple account access)
31-
* [Docker Deployment](#DockerDeployment)
32-
* [Docker-compose deployment](#Docker-compose deployment)
33-
* [Native Deployment](#nativedeployment)
34-
* [Interface List](#Interface List)
35-
* [Dialogue completion](#dialogue completion)
36-
* [Document Interpretation](#document interpretation)
37-
* [Image analysis](#imageanalysis)
38-
* [refresh_token survival detection](#refresh_token survival detection)
39-
* [Note](# NOTE)
40-
* [Nginx anti-generation optimization](#Nginx anti-generation optimization)
41-
32+
* [Online experience](#Online-Experience)
33+
* [Effect Examples](#Effect-Examples)
34+
* [Access preparation](#Access-Preparation)
35+
* [Multiple account access](#Multi-Account-Access)
36+
* [Docker Deployment](#Docker-Deployment)
37+
* [Docker-compose deployment](#Docker-compose-deployment)
38+
* [Zeabur Deployment](#Zeabur-Deployment)
39+
* [Native Deployment](#Native-deployment)
40+
* [Interface List](#Interface-List)
41+
* [Conversation completion](#conversation-completion)
42+
* [Document Interpretation](#document-interpretation)
43+
* [Image analysis](#image-analysis)
44+
* [refresh_token survival detection](#refresh_token-survival-detection)
45+
* [Precautions](#Precautions)
46+
* [Nginx anti-generation optimization](#Nginx-anti-generation-optimization)
47+
* [Token statistics](#Token-statistics)
48+
* [Star History](#star-history)
49+
4250
## Disclaimer
4351

4452
**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:
145153
- TZ=Asia/Shanghai
146154
```
147155
156+
## Zeabur Deployment
157+
158+
[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/GRFYBP)
159+
148160
## Native deployment
149161
150162
Please prepare a server with a public IP and open port 8000.
@@ -193,10 +205,6 @@ Out of service
193205
pm2 stop kimi-free-api
194206
```
195207

196-
## Zeabur Deployment
197-
198-
[![Deploy on Zeabur](https://zeabur.com/button.svg)](https://zeabur.com/templates/GRFYBP)
199-
200208
## interface list
201209

202210
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
431439

432440
## Star History
433441

434-
[![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)
442+
[![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)

src/api/routes/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Response from '@/lib/response/Response.ts';
44
import chat from "./chat.ts";
55
import ping from "./ping.ts";
66
import token from './token.ts';
7+
import models from './models.ts';
78

89
export default [
910
{
@@ -21,5 +22,6 @@ export default [
2122
},
2223
chat,
2324
ping,
24-
token
25+
token,
26+
models
2527
];

src/api/routes/models.ts

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import _ from 'lodash';
2+
3+
export default {
4+
5+
prefix: '/v1',
6+
7+
get: {
8+
'/models': async () => {
9+
return {
10+
"data": [
11+
{
12+
"id": "moonshot-v1",
13+
"object": "model",
14+
"owned_by": "kimi-free-api"
15+
},
16+
{
17+
"id": "moonshot-v1-8k",
18+
"object": "model",
19+
"owned_by": "kimi-free-api"
20+
},
21+
{
22+
"id": "moonshot-v1-32k",
23+
"object": "model",
24+
"owned_by": "kimi-free-api"
25+
},
26+
{
27+
"id": "moonshot-v1-128k",
28+
"object": "model",
29+
"owned_by": "kimi-free-api"
30+
},
31+
{
32+
"id": "moonshot-v1-vision",
33+
"object": "model",
34+
"owned_by": "kimi-free-api"
35+
}
36+
]
37+
};
38+
}
39+
40+
}
41+
}

0 commit comments

Comments
 (0)