跳到主要内容

快速开始

在配置编码工具前,先确认网关 URL、API 密钥和模型名可以正常工作。

准备三个值

  • 网关 URL:https://www.prysmapi.cn
  • API 密钥:Console 中显示的 Prysm API 密钥
  • 模型名:模型路由或模型市场中显示的准确公开模型名

发送测试请求

curl https://www.prysmapi.cn/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PRYSM_API_KEY" \
-d '{
"model": "MODEL_NAME",
"messages": [
{"role": "user", "content": "Reply with the word connected."}
]
}'

预期结果

响应里应包含助手消息 connected

下一步

打开工具配置,选择你的编码工具对应的配置方式。