olysad-relay
AIHubMix 反向代理 · 带用量统计
调用方式
# token 写在 header(推荐)
curl https://api.aihubmix.com/v1/chat/completions \
-H "x-relay-token: <RELAY_TOKEN>" \
-H "Authorization: Bearer sk-xxx" \
-H "Content-Type: application/json" \
-d '{"model":"...","messages":[...]}'
# 或 token 写在路径第一段
curl https://api.aihubmix.com/<RELAY_TOKEN>/v1/chat/completions ...自检
当前 token:a718••••sA