די API
אַלץ װאָס דער פּלאַץ טוט, איבער HTTP: באַשטעטיקן אַ קײן און דער װאַרד מוז זײַן קלאָר, אַרײַנשטעלן אַ פּאַנעל, און װײַזן אױף ביז דער װײַזער האָט אױסגעפֿירט װאָסער קריטעריום ער װיל. דער זעלבער פּאַנעל, דער זעלבער צאָלונג, דער זעלבער צאָלונג־גראָבער — ניט קיין בלעטערער
אױטענטיפֿאַקאַציע
curl https://theorem.chat/api/v1/account/ \ -H "Authorization: Bearer thm_live_xxxxxxxx.xxxxxxxxxxxxxxxx"
POST /api/v1/matches/
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
}'
GET /api/v1/matches/{token}/
{
"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": "…"
}
POST /api/v1/matches/{token}/resume/
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"}'
די װײַז
טעותן
{"error": {"code": "insufficient_balance",
"message": "Add credit or connect your own inference key…"}}
װײַז װײַז