mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2025-10-15 23:00:33 +00:00
Compare commits
17 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e8284288c9 | ||
![]() |
04db70bec5 | ||
![]() |
f7c1fa7be3 | ||
![]() |
b9d479b9f6 | ||
![]() |
c9c26fdd31 | ||
![]() |
43e14b6e3e | ||
![]() |
65a3fed83b | ||
![]() |
4a225853af | ||
![]() |
6b343f4094 | ||
![]() |
e8c6622e83 | ||
![]() |
ae6dc4a79f | ||
![]() |
bdb8ced5ce | ||
![]() |
a0c1bba3c9 | ||
![]() |
c6da81a53e | ||
![]() |
77d42d9484 | ||
![]() |
d73a9bc95d | ||
![]() |
65f45697e8 |
@@ -6,7 +6,7 @@
|
||||
<span>[ 中文 | <a href="README_EN.md">English</a> ]</span>
|
||||
|
||||
|
||||

|
||||
[](LICENSE)
|
||||

|
||||

|
||||

|
||||
@@ -38,6 +38,7 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te
|
||||
* [Docker-compose部署](#Docker-compose部署)
|
||||
* [Render部署](#Render部署)
|
||||
* [Vercel部署](#Vercel部署)
|
||||
* [Zeabur部署](#Zeabur部署)
|
||||
* [原生部署](#原生部署)
|
||||
* [接口列表](#接口列表)
|
||||
* [对话补全](#对话补全)
|
||||
@@ -46,9 +47,12 @@ ZhipuAI (智谱清言) 接口转API [glm-free-api](https://github.com/LLM-Red-Te
|
||||
* [refresh_token存活检测](#refresh_token存活检测)
|
||||
* [注意事项](#注意事项)
|
||||
* [Nginx反代优化](#Nginx反代优化)
|
||||
* [Token统计](#Token统计)
|
||||
|
||||
## 免责声明
|
||||
|
||||
**逆向API是不稳定的,建议前往MoonshotAI官方 https://platform.moonshot.cn/ 付费使用API,避免封禁的风险。**
|
||||
|
||||
**本组织和个人不接受任何资金捐助和交易,此项目是纯粹研究交流学习性质!**
|
||||
|
||||
**仅限自用,禁止对外提供服务或商用,避免对官方造成服务压力,否则风险自担!**
|
||||
@@ -425,7 +429,7 @@ Authorization: Bearer [refresh_token]
|
||||
|
||||
### refresh_token存活检测
|
||||
|
||||
检测refresh_token是否存活,如果存活live未true,否则为false,请不要频繁(小于10分钟)调用此接口。
|
||||
检测refresh_token是否存活,如果存活live为true,否则为false,请不要频繁(小于10分钟)调用此接口。
|
||||
|
||||
**POST /token/check**
|
||||
|
||||
|
36
README_EN.md
36
README_EN.md
@@ -1,6 +1,9 @@
|
||||
# KIMI AI Free Service
|
||||
|
||||

|
||||
|
||||
<hr>
|
||||
|
||||
[](LICENSE)
|
||||

|
||||

|
||||

|
||||
@@ -24,20 +27,21 @@ Listening Intelligence (Emohaa) API to API [emohaa-free-api](https://github.com/
|
||||
## 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)
|
||||
* [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)
|
||||
|
||||
## Disclaimer
|
||||
|
||||
@@ -431,4 +435,4 @@ Since the inference side is not in kimi-free-api, the token cannot be counted an
|
||||
|
||||
## Star History
|
||||
|
||||
[](https://star-history.com/ #LLM-Red-Team/kimi-free-api&Date)
|
||||
[](https://star-history.com/#LLM-Red-Team/kimi-free-api&Date)
|
||||
|
@@ -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
|
||||
];
|
41
src/api/routes/models.ts
Normal file
41
src/api/routes/models.ts
Normal file
@@ -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"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user