HTTP 400,type: invalid_request_error。认证其实已经过了。

30 秒判断
message 写的是 model is required、max_tokens、还是空 messages。
原因
客户端拼错字段。和 401、502 不同层。
处理
- 对照官方字段名:model、messages、max_tokens。
- 模型填接口 id。
- 空系统提示、空用户消息都会 400。
怎么确认好了
同一 body 变 200。不要为此去换 Base URL。
验证日期:2026-09-01。网页 / 官方订阅 / 官方 Key / 中转 / 本地 bot 分开查。改完配置请完全退出再开。

AI故障手册