curl https://api.iagent.dpdns.org/v1/chat/completions \
-H "Authorization: Bearer sk-你的令牌" \
-H "Content-Type: application/json" \
-d '{"model": "模型名",
"messages": [{"role": "user", "content": "你好"}]}'
Cherry Studio、NextChat、LobeChat 等支持自定义地址的应用,填入地址和令牌即可使用。
每次请求的模型、用量和扣费,都能在控制台的日志里查到。
每个令牌可以单独设置额度上限和可用模型,方便分给不同的人或应用。
https://api.iagent.dpdns.org。I-αgenT API 本站基于 New API 搭建