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…"}}
利率限额