返回顶部
a

ainative-api-discoveryAINative接口发现

Help agents discover and navigate AINative's 89+ API endpoints. Use when (1) Asking "what endpoints exist?", (2) Finding the right API for a task, (3) Looking up endpoint paths/methods, (4) Exploring API categories, (5) Getting code examples for specific endpoints. Closes #1516.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
175
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

ainative-api-discovery

AINative API 发现

AINative 在 https://api.ainative.studio 上公开了 89 个以上的 REST API 端点。

端点分类

认证与用户
端点方法描述
/api/v1/auth/loginPOST邮箱/密码登录 → JWT
/api/v1/auth/register
POST | 创建账户 |

| /api/v1/auth/refresh | POST | 刷新 JWT 令牌 | | /api/v1/auth/logout | POST | 使会话失效 | | /api/v1/users/me | GET | 获取当前用户资料 |

聊天与 AI 补全
端点方法描述
/v1/public/chat/completionsPOST聊天补全(流式 + 非流式)
/api/v1/public/managed-chat
POST | 带会话跟踪的托管聊天 |

| /api/v1/public/models | GET | 列出可用的 AI 模型 |

记忆(ZeroMemory)
端点方法描述
/api/v1/public/memory/v2/rememberPOST存储一条记忆
/api/v1/public/memory/v2/recall
POST | 语义搜索记忆 |

| /api/v1/public/memory/v2/forget | DELETE | 删除记忆 | | /api/v1/public/memory/v2/reflect | GET | 获取记忆洞察 | | /api/v1/public/memory/v2/profile | GET | 从记忆构建用户画像 | | /api/v1/public/memory/v2/graph | GET | 记忆知识图谱 |

积分与计费
端点方法描述
/api/v1/public/credits/balanceGET获取当前积分余额
/api/v1/public/credits/usage
GET | 积分使用历史 |

| /api/v1/billing/subscribe | POST | 订阅套餐 | | /api/v1/billing/invoices | GET | 列出发票 |

开发者计划(Echo)
端点方法描述
/api/v1/echo/registerPOST注册为开发者
/api/v1/echo/earnings
GET | 获取收益摘要 |

| /api/v1/echo/payouts | GET | 列出付款记录 | | /api/v1/echo/markup | PUT | 设置加价率(0-40%) |

ZeroDB(向量/NoSQL/存储)
端点方法描述
/api/v1/public/zerodb/vectors/upsertPOST插入或更新向量嵌入
/api/v1/public/zerodb/vectors/search
POST | 语义向量搜索 |

| /api/v1/public/zerodb/tables | GET/POST | 列出/创建 NoSQL 表 | | /api/v1/public/zerodb/files/upload | POST | 上传文件 |

管理与监控
端点方法描述
/admin/usersGET列出所有用户(超级用户)
/admin/monitoring
GET | 系统健康指标 |

| /admin/database | GET | 数据库连接池状态 | | /health | GET | 健康检查(无需认证) |

认证

所有公共端点都需要 API 密钥:
bash

请求头格式


X-API-Key: akyourkey_here

或 Bearer 令牌(用于用户会话)

Authorization: Bearer eyJ...

代码示例

Python

python import requests

APIKEY = akyour_key
BASE = https://api.ainative.studio

聊天补全

resp = requests.post(f{BASE}/v1/public/chat/completions, headers={X-API-Key: API_KEY}, json={model: claude-3-5-sonnet-20241022, messages: [{role: user, content: Hello}]} ) print(resp.json()[choices][0][message][content])

积分余额

balance = requests.get(f{BASE}/api/v1/public/credits/balance, headers={X-API-Key: API_KEY}).json() print(f积分: {balance[remaining_credits]})

JavaScript/TypeScript

typescript const APIKEY = akyour_key; const BASE = https://api.ainative.studio;

const resp = await fetch(${BASE}/v1/public/chat/completions, {
method: POST,
headers: { X-API-Key: API_KEY, Content-Type: application/json },
body: JSON.stringify({
model: claude-3-5-sonnet-20241022,
messages: [{ role: user, content: Hello }]
})
});
const data = await resp.json();

curl

bash curl -X POST https://api.ainative.studio/v1/public/chat/completions \ -H X-API-Key: akyourkey \ -H Content-Type: application/json \ -d {model:claude-3-5-sonnet-20241022,messages:[{role:user,content:Hello}]}

参考资料

  • - docs/api/APIREFERENCE.md — 完整的端点文档
  • docs/api/APIENDPOINTS_REFERENCE.md — 完整的端点索引
  • src/backend/app/api/v1/endpoints/ — 实现源代码

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ainative-api-discovery-1776064741 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ainative-api-discovery-1776064741 技能

通过命令行安装

skillhub install ainative-api-discovery-1776064741

下载

⬇ 下载 ainative-api-discovery v1.0.0(免费)

文件大小: 2.38 KB | 发布时间: 2026-4-14 10:07

v1.0.0 最新 2026-4-14 10:07
Initial release: provides comprehensive AINative API discovery and navigation.

- Lists and describes 89+ REST API endpoints categorized by feature (auth, chat, memory, billing, developer, storage, admin).
- Offers example code in Python, JavaScript/TypeScript, and curl for key endpoints.
- Details authentication methods (API key, bearer token).
- Includes quick references to full documentation and source code locations.
- Enables agents to search endpoints, find usage patterns, and explore API capabilities efficiently.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部