海纳百川计划 Baichuan-M3 Plus API
api
- EndpointEndpoint
https://api.baichuan-ai.com/v1/chat/completions- 认证Authentication
- Authorization: Bearer API key
前置条件Prerequisites
- 获批机构See official terms
- 临床辅助决策或医学教育真实服务场景See official terms
- Baichuan API KeyBaichuan API Key
操作步骤Steps
- 完成准入审核
通过百川智能官网申请海纳百川计划;申请审核与解释权归百川智能。
- 检查合规条件
仅用于真实服务场景,不用于数据生产;产品需展示 Powered by 百川,且不得对模型输出做影响准确性的修改。
- 调用模型
使用标准 chat/completions endpoint 与 Baichuan-M3-Plus 模型 ID 发起请求。
可复制命令Copyable commandexport BAICHUAN_API_KEY="你的 Key" curl https://api.baichuan-ai.com/v1/chat/completions -H "Authorization: Bearer $BAICHUAN_API_KEY" -H 'Content-Type: application/json' -d '{"model":"Baichuan-M3-Plus","messages":[{"role":"user","content":"Hello"}]}'预期结果Expected:获批账号返回 chat completion;普通未获批账号不能据此假定免费。
确认账号已获批海纳百川计划,并在实际账单/资源页验证计划内 Baichuan-M3 Plus 调用不收费。