developer · 开发者
Tank API Documentation
Public API reference for the Tank platform. All requests served behind a hardened reverse proxy at ideas.tempproject.online. LLM traffic flows exclusively through Ember Frontier + Ember Local.
Quick start
快速接入
# Coming soon — published as @tempproject/tank-sdk # For now, vendor the source from packages/tank-sdk/ git clone https://github.com/hanifibozok/tempproject-tank cd tempproject-tank/packages/tank-sdk pnpm build
import { TankClient } from "@tempproject/tank-sdk"
const tank = new TankClient({ token: process.env.TANK_TOKEN })
// public — no auth
const recent = await tank.getPublicDiscover({ limit: 10 })
// auth — bearer token
const top = await tank.getLeaderboard({ limit: 20 })
// SSE stream
for await (const ev of tank.streamDebate(debateId)) {
if (ev.type === "token") process.stdout.write(ev.text)
}Authentication
身份认证Tank uses JWT bearer tokens (HS256, 12h TTL). Local registration is invite-code protected. CoreAI SSO is available via /v1/auth/coreai when configured.
Ideas
创意库CRUD over the idea catalog. List supports cursor pagination, multi-facet filtering, and full-text search. Exports available in csv/json/markdown for both single ideas and the filtered list.
Debates
辩论流Multi-LLM agent debates across Ember Frontier and Ember Local. Stream tokens live via SSE, replay completed debates, fork into new branches, and score quality.
Patents
专利核查Live patent screening across CNIPA, EPO, USPTO, and Google Patents. Per-hit evidence with deduplication, claim diff against an idea draft, and family info from INPADOC.
Leaderboard
排行榜Top-100 idea ranking with delta vs. yesterday, market filtering, and rank explainability ("why this rank?").
Concept Generation
概念生成Generate net-new idea concepts via streaming SSE (LLM-driven brainstorm grounded in the live discovery corpus).
Admin
运维管理Operator-only. Token budgets, council bindings, prompt registry, adapter health, and platform metrics.
Notifications
通知中心Per-user notification feed (read/unread, dismissible).
Saved Views
保存的视图Persist named filter+sort combinations on the ideas list.
Activity Feed
活动流Cross-platform activity feed (debates done, ideas surfaced, patent updates). Paginated GET + SSE stream.
Training Exports
训练数据导出Export debate transcripts and rubric scores in jsonl/parquet for fine-tuning. Operator-gated.
Images
图像生成Admin-only proxy for image generation. Uses the gateway's approved image route.
Idea Versioning
版本管理Every idea carries an append-only version log. Diff any two versions to see what changed and why.
Evidence Gates
证据五关Five-gate evaluation: novelty, feasibility, market, patent, ethics. Each gate returns pass/fail with rationale.
Public Endpoints
公开接口No auth required. Safe for marketing pages, client demos, and SDK quick-starts.
Status Badges
状态徽章Embeddable SVG badges for README files, marketing pages, or external dashboards. Public, no auth required. CORS-open with 5-minute cache.
Webhooks
事件回调Subscribe to platform events and receive HTTP POST callbacks. Each delivery is signed with HMAC-SHA256 in the X-Tank-Signature header so you can verify the payload server-side. Active events: idea.created · debate.complete · patent.flagged · cover.generated · version.created · comment.created. Reserved (declared but not yet emitted): idea.updated · idea.archived · score.changed. Subscriptions auto-disable after 10 consecutive failures. Manage webhooks at /settings/webhooks.
Provider policy
提供商策略
Frontier reasoning, chat, and thinking tiers. Multi-region failover with automatic provider rotation. All traffic flows through the internal gateway — no third-party SDK calls.
CN-domain reasoning and chat with the lowest latency in the catalog. Direct path with full data residency. No third-party hop.
Single source of truth: packages/llm-gateway/src/llm_gateway/catalog.py
Try it — MCP Tools
Send JSON-RPC requests directly to the Tank MCP server. Requires a valid Bearer token.
Click "Try it" to send a request