← 返回
未分类 Key 中文

Ainative Api Discovery

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) Lookin...
帮助代理发现并导航 AINative 的 89+ API 端点。使用场景:(1) 询问"有哪些端点?",(2) 为任务寻找合适的API,(3) 查...
urbantech
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 508
下载
💾 1
安装
1
版本
#latest

概述

AINative API Discovery

AINative exposes 89+ REST API endpoints at https://api.ainative.studio.

Endpoint Categories

Authentication & Users

EndpointMethodDescription
-------------------------------
/api/v1/auth/loginPOSTEmail/password login → JWT
/api/v1/auth/registerPOSTCreate account
/api/v1/auth/refreshPOSTRefresh JWT token
/api/v1/auth/logoutPOSTInvalidate session
/api/v1/users/meGETGet current user profile

Chat & AI Completions

EndpointMethodDescription
-------------------------------
/v1/public/chat/completionsPOSTChat completion (streaming + non-streaming)
/api/v1/public/managed-chatPOSTManaged chat with session tracking
/api/v1/public/modelsGETList available AI models

Memory (ZeroMemory)

EndpointMethodDescription
-------------------------------
/api/v1/public/memory/v2/rememberPOSTStore a memory
/api/v1/public/memory/v2/recallPOSTSemantic search memories
/api/v1/public/memory/v2/forgetDELETERemove memories
/api/v1/public/memory/v2/reflectGETGet memory insights
/api/v1/public/memory/v2/profileGETBuild user profile from memories
/api/v1/public/memory/v2/graphGETMemory knowledge graph

Credits & Billing

EndpointMethodDescription
-------------------------------
/api/v1/public/credits/balanceGETGet current credit balance
/api/v1/public/credits/usageGETCredit usage history
/api/v1/billing/subscribePOSTSubscribe to a plan
/api/v1/billing/invoicesGETList invoices

Developer Program (Echo)

EndpointMethodDescription
-------------------------------
/api/v1/echo/registerPOSTRegister as a developer
/api/v1/echo/earningsGETGet earnings summary
/api/v1/echo/payoutsGETList payouts
/api/v1/echo/markupPUTSet your markup rate (0-40%)

ZeroDB (Vector/NoSQL/Storage)

EndpointMethodDescription
-------------------------------
/api/v1/public/zerodb/vectors/upsertPOSTUpsert vector embedding
/api/v1/public/zerodb/vectors/searchPOSTSemantic vector search
/api/v1/public/zerodb/tablesGET/POSTList/create NoSQL tables
/api/v1/public/zerodb/files/uploadPOSTUpload file

Admin & Monitoring

EndpointMethodDescription
-------------------------------
/admin/usersGETList all users (superuser)
/admin/monitoringGETSystem health metrics
/admin/databaseGETDatabase pool status
/healthGETHealth check (no auth)

Authentication

All public endpoints require an API key:

# Header format
X-API-Key: ak_your_key_here

# Or Bearer token (for user sessions)
Authorization: Bearer eyJ...

Code Examples

Python

import requests

API_KEY = "ak_your_key"
BASE = "https://api.ainative.studio"

# Chat completion
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"])

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

JavaScript/TypeScript

const API_KEY = "ak_your_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

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

References

  • docs/api/API_REFERENCE.md — Complete endpoint documentation
  • docs/api/API_ENDPOINTS_REFERENCE.md — Full endpoint index
  • src/backend/app/api/v1/endpoints/ — Implementation source

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 20:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Ainative Sdk Quickstart

urbantech
5分钟内快速上手 AINative SDK。适用场景:(1) 首次配置 AINative,(2) 在 React/Next.js/Svelte/Vue SDK 之间进行选择……
★ 0 📥 454

Database Query Best Practices

urbantech
防止连接池耗尽。适用于:1) 从本地环境查询 Railway PostgreSQL 数据库;2) 诊断...
★ 0 📥 481

Ci Cd Compliance

urbantech
CI/CD 流水线需求和部署标准。适用于:(1) 设置 CI/CD 流水线,(2) 调试 CI 失败问题,(3) 配置部署工作流
★ 0 📥 552