需两次购买:①订购原厂商接口 ②免费接口,注册后直接调用;智谱AI开放平台连接器,需通过智谱AI开放平台注册购买调用量
适用于对反应速度和成本比较敏感,且任务较为简单的场景,比如聊天、客服、分类、提取等。原文档https://open.bigmodel.cn/dev/api#chatglm_lite
showapi_res_body
curl -X POST "https://connector.showapi.com/3045-3?appKey=YOUR_APPKEY" \ -H "content-type: application/x-www-form-urlencoded" \ -d "your_params=%7B%22prompt%22%3A%5B%7B%22role%22%3A%20%22user%22%2C%20%22content%22%3A%20%22%E4%BD%A0%E5%A5%BD%22%7D%5D%7D&ds_id="
{ "showapi_res_error": "", "showapi_fee_num": 0, "showapi_res_code": 0, "showapi_res_id": "64dec7b60de376f461a4d7ee", "showapi_res_body": { "data": { "request_id": "7854703982716144647", "choices": [ { "content": "\" 你好👋!我是人工智能助手 ChatGLM2-6B,很高兴见到你,欢迎问我任何问题。\"", "role": "assistant" } ], "task_status": "SUCCESS", "task_id": "7854703982716144647", "usage": { "total_tokens": 24 } }, "code": 200, "success": true, "msg": "操作成功" } }
在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。
{ "mcpServers": { "showapi-mcp-3045": { "url": "http://www.showapi.com.cn/mcp/3045/{your_appKey}" } } }
标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。
客服热线请拨打
400-998-8033