跳至正文
Wener Notes

openrouter

约 1 分钟阅读
bash
curl https://openrouter.ai/api/v1/models

 TOKEN=
curl -H "Authorization: Bearer $TOKEN" https://openrouter.ai/api/v1/auth/key

time curl -sf -X POST -H "Authorization: Bearer $TOKEN" https://openrouter.ai/api/v1/chat/completions \
  --json '{"model":"deepseek/deepseek-r1:free","prompt":"Hello"}' | jq

curl -sf -X POST -H "Authorization: Bearer $TOKEN" https://openrouter.ai/api/v1/chat/completions \
  --json '{"model":"deepseek/deepseek-r1:free","messages":[{"role":"user","content":"What is the meaning of life?"}]}' | jq

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

其他外链2 条
最近更新commit d8b44e6编辑