MedAgent Logo
MedAgent API

API 概览

MedAgent API 提供了一套强大的 RESTful 接口,允许开发者将硅基鲲鹏的医疗 AI 能力集成到自己的应用中。 通过我们的 API,您可以访问包括智能分诊、辅助诊断、病历生成及医学知识检索在内的核心功能。

Base URL
https://api.medagent.com/v1
认证方式
Bearer Token (JWT)
数据格式
JSON

快速开始

curl -X POST "https://api.medagent.com/v1/agents/chat" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "clinical-assistant-v1",
    "message": "患者主诉头痛伴恶心3天...",
    "context": {
      "patient_id": "p_123456",
      "history": ["hypertension"]
    }
  }'

错误码说明

CodeMessageDescription
401UnauthorizedAPI Key 无效或已过期
429Too Many Requests超过每分钟请求限制 (默认 60 RPM)
500Internal Server Error服务器内部错误,请联系支持