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…"}}
අනුපාත සීමා