接入 API

通过 RESTful API 将灵境星途AI超市的智能体能力集成到你的产品中

1

注册获取 Key

注册灵境星途AI超市账号,在控制台生成 API Key

2

调用智能体

通过标准 RESTful API 调用平台上任意已上架的智能体

3

按量计费

按实际调用量计费,无需预充值,月度账单透明清晰

🚀 快速开始

通过 API Key 认证后即可调用。以下是一个调用「AI电商客服」智能体的示例:

cURL curl -X POST https://mart.lingjingxingtu.com/api/marketplace/agents/call \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agent_slug": "ai-ecommerce-customer-service", "messages": [ {"role": "user", "content": "你好,我的订单什么时候发货?"} ] }'
JavaScript const response = await fetch('https://mart.lingjingxingtu.com/api/marketplace/agents/call', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ agent_slug: 'ai-ecommerce-customer-service', messages: [{ role: 'user', content: '你好,我的订单什么时候发货?' }] }) }); const data = await response.json(); console.log(data.reply);

📡 API 端点

所有端点基础路径:https://mart.lingjingxingtu.com/api/marketplace

POST /agents/call 调用智能体对话
GET /agents 获取智能体列表
GET /agents/:slug 获取智能体详情
POST /orders/create 创建购买订单
GET /users/stats 查询账户用量统计

💰 定价方案

🆓

免费版

¥0

100次调用/月
限个人使用

💼

专业版

¥299/月

10,000次调用/月
支持团队协作

🏢

企业版

定制

无限调用
专属技术支持和SLA