tank
sign in
← console

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

快速接入

Install (preview · 预览)
# 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
Quick example
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)
}
Endpoint groups
18
Endpoints documented
75
Auth scheme
JWT HS256
LLM providers
Ember Frontier + Ember Local

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).

Share Tokens

分享令牌

Issue scoped, revocable share tokens for individual ideas. Anonymous viewers hit /v1/share/{token} without auth. Per-token analytics included.

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

提供商策略

Ember Frontier · 全球加速

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.

Ember Local · CN 直连

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.

Response

Click "Try it" to send a request

Tank · public API reference · 75 endpoints across 18 groups · Ember Frontier + Ember Local