请教一下,怎么测试ai key的有效性呢?

搞了一批key直接加到new-api,轮询模式,经常因为失效key报错User not found,一次对话要重试好几次

13 Likes

什么渠道的

4 Likes

gemini,试试这个:GitHub - faithererer/checker: API Key 批量有效性检测工具
https://checker-git-main-faithererers-projects.vercel.app/

1 Like

openrouter的

1 Like

这个好使!

1 Like

openrouter好像不好测活

用这个中转站管理系统测
一测测key可以获取的模型列表
二测测key流式/非流式请求模型列表中的某些模型
https://linux.do/t/topic/1176375/

https://zau.me/uploads/2025-11-16/4c82d79519dd.js

之前ai写的,把user not found这个错误的key删掉就行

18 Likes