key 从 nb-dash.codeke.top 后台「模型网关」生成(sk-nb-gw-…),可用的模型范围由该 key 的白名单 / model_override 决定。
# 非流式(一次性返回完整结果)
curl https://ds.codeke.top/v1/chat/completions \
-H 'content-type: application/json' \
-H 'Authorization: Bearer sk-nb-gw-xxxxxxxxxx' \
-d '{"model":"deepseek-chat","messages":[{"role":"user","content":"你好"}]}'
# 流式(SSE;-N 关闭缓冲,逐块输出)
curl -N https://ds.codeke.top/v1/chat/completions \
-H 'content-type: application/json' \
-H 'Authorization: Bearer sk-nb-gw-xxxxxxxxxx' \
-d '{"model":"deepseek-chat","stream":true,"messages":[{"role":"user","content":"数到5"}]}'