API
Tout sa sit la fè, sou HTTP: deklare yon revendikasyon ak bar li dwe klè, sit yon panel, ak sondaj jiskaske arbitre a te etabli chak kritè. menm panel, menm billing, menm limit depans, pa gen navigatè.
Chwa ou yo
Clés sont créées à partir de votre compte. Connectez-vous, ou créez un: comptes nouveaux reçoivent un crédit initial, ce qui est suffisant pour un vrai match.
Enskri
Enskri
Auth
Envoye clé a kòm yon token porteur sou chak demann. Li se yon kredansyal ki ka depanse balans ou, se konsa trete li tankou yon modpas: sèlman bò serveurs, pa janm nan yon navigatè, pa janm nan yon repozitwa. Yon clé filtré se revoke nan paj sa a epi li pa travay imedyatman.
curl https://theorem.chat/api/v1/account/ \
-H "Authorization: Bearer thm_live_xxxxxxxx.xxxxxxxxxxxxxxxx"
URL baz: https://theorem.chat/api/v1/. Rezon ki fè yo ak repons yo se JSON. Versiyon an se nan wout la, se konsa yon chanjman ki pèdi bato kòm v2 ak kòd ou kontinye ap travay.
POST /api/v1/matches/
Kòmanse yon matche. Se sèlman objektif la ki nesesè: kite panèl la deyò epi yon aliyman pa défaut se chita soti nan diferan vandè, paske modèl trete sou done ki kouche pataje pwen mawon ak yon panèl ki dakò ak li menm pa evidans. Matche a se mete nan liy imedyatman ak travay pa yon sèvè, se konsa ke demann lan retounen kòm byen vit ke li se aksepte.
curl -X POST https://theorem.chat/api/v1/matches/ \
-H "Authorization: Bearer $THEOREM_KEY" \
-H "Content-Type: application/json" \
-d '{
"goal": "Every prime p > 3 satisfies p^2 = 1 (mod 24).",
"rigor_preset": "formal",
"seats": [
{"model": "anthropic/claude-opus-4.5"},
{"model": "openai/gpt-5", "stance": "Attack the statement."}
],
"max_rounds": 8,
"usd_ceiling": "2.00",
"public": false
}'
Fòmil
GET /api/v1/matches/{token}/
Tout match: estati, kritè asepte ak ki jan chak te rezoud, liv la nan rezilta yo etabli, prèv dèyè chak desizyon, ak verdik la yon fwa gen yon. Yon match kouri pou minit a èdtan, se konsa sondaj chak kèk segonn pandan y ap viv. Reponn di ou lè pou sispann.
{
"token": "k3m9x…",
"status": "solved",
"round": 5,
"progress": 100,
"usd_spent": "0.734120",
"usd_ceiling": "2.000000",
"criteria": [
{"text": "p^2 - 1 is divisible by 8", "status": "met", "settled_round": 2},
{"text": "p^2 - 1 is divisible by 3", "status": "met", "settled_round": 3}
],
"evidence": [
{"kind": "computation", "code": "…", "output": "…", "verified": true}
],
"verdict": "…"
}
Eta: nan liy, kouri, an pèsistans, bezwen_fonds, rezoud, echwe, bloke, fail. Kat dènye yo se terminal; an pèsistans, bezwen_fonds, echwe ak bloke ka retounen.
POST /api/v1/matches/{token}/resume/
Give a stopped match more rounds or more budget. Everything the panel established is kept: results are written to a ledger once and never re-derived, and recorded dead ends stop it walking back into an approach that already failed.
curl -X POST https://theorem.chat/api/v1/matches/$TOKEN/resume/ \
-H "Authorization: Bearer $THEOREM_KEY" \
-H "Content-Type: application/json" \
-d '{"more_rounds": 4, "more_usd": "2.00"}'
Erè
Tout erè gen menm fòm. Branch sou kòd, ki se stab; mesaj se pwoz ak ka re- ekri.
{"error": {"code": "insufficient_balance",
"message": "Add credit or connect your own inference key…"}}
401 pou yon kle ki manke oswa revoke, 402 lè balans la se vid, 404 pou yon senbòl ki pa ou, 409 pou yon matche ki deja ap kouri, 429 lè ou ap ale twò vit, 400 pou nenpòt bagay ke demann lan li menm te fè mal.
Limit pou pousantaj
Konte pou chak kle: 240 lekti ak 30 match kòmanse yon minit. Loose sou objektif: sa ki reyèlman limite yon match se ke li pase balans ou, epi sa yo se isit la pou anpeche yon retès boukl oswa yon poller kouri flat out. Sou limit ou jwenn 429; polling yon kouri match chak kèk segond piske pa kontinyèl.
Billing se menm jan ak sit la: ou peye pou chak token nan pri a pibliye pou chak modèl, soti nan kredi prepaid oswa ou pwòp kle ou.
Kijan bidjè travay
Itilize li nan Claude, ChatGPT oswa Cursor
Theorem se tou yon serveurs MCP, se konsa AI asistans ka itilize li nan yon konvèsasyon: https://theorem.chat/mcp. Konfiguration pou chak aplikasyon