Mavuto anu
Mavuto ndi opangidwa kuchokera ku akaunti yanu. Kulowa, kapena kupanga imodzi: akaunti yatsopano kupeza kuyamba ngongole, zomwe ndi zokwanira kwa match weniweni.
Kulembetsa
Kulowa
Kutsimikizira
Kutumiza chingwe ngati chingwe chonyamula pazosowa zonse. Ndi chitsimikizo chomwe chimagwiritsa ntchito ndalama zanu, choncho gwiritsani ntchito ngati mawu achinsinsi: pa server-side okha, nthawi zonse m'masamba osakira, nthawi zonse m'ma repository. Chingwe chotuluka chimatulutsidwa kuchokera patsambali ndipo chimalephera ntchito mwamsanga.
curl https://theorem.chat/api/v1/account/ \
-H "Authorization: Bearer thm_live_xxxxxxxx.xxxxxxxxxxxxxxxx"
Base URL: https://theorem.chat/api/v1/. Mafunso ndi mayankho ndi JSON. Version ndi m'njira, kotero kugunda kusintha nsomba monga v2 ndi code yanu imakhala yogwira ntchito.
POST /api/v1/matches/
Kuyambira match. Koma zofuna zofunikira: kuchotsa panel ndi default lineup ndi kulowa kuchokera kwa opanga ena, chifukwa mafano ophunzira pa kugwirizana deta kugawana blind spots ndi panel kuti amagwirizana ndi yekha si umboni. The match ndi kunyamula mwamsanga ndi ntchito ndi m'modzi server, kotero kuti lamulo limakhalanso nthawi yomweyo pamene anavomerezedwa.
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
}'
Madera
GET /api/v1/matches/{token}/
The whole match: status, the acceptance criteria and how each was settled, the ledger of established results, the evidence behind every ruling, and the verdict once there is one. A match runs for minutes to hours, so poll every few seconds while live. The response tells you when to stop.
{
"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": "…"
}
Statuses: queued, kuyendetsa, paused, needs_funds, anathamangitsa, exhausted, kulephera, analephera. The 4 zapitazo ndi terminal; paused, needs_funds, exhausted ndi kulephera angayambenso.
POST /api/v1/matches/{token}/resume/
Kupatsa match analephera zojambula zambiri kapena ndalama zambiri. Zonse paneli anakhazikitsa anasunga: zotsatira analemba ku ledar nthawi imodzi ndi nthawi zonse re-zochokera, ndi analemba ziwanda kuletsa kunyamula kumbuyo ku njira imene kale inalephera.
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"}'
Mavuto
Kulephera kuli ndi mtundu umenewu. Chigawo pa code, yomwe ndi yolimba; uthenga ndi malemba ndi angagwiritsidwe ntchito.
{"error": {"code": "insufficient_balance",
"message": "Add credit or connect your own inference key…"}}
401 kwa kulephera kapena kulephera koyamba, 402 pamene malire ndi wosanjikiza, 404 kwa token kuti si wanu, 409 kwa match kuti ndi kale kuyendetsa, 429 pamene inu mukupitabe mofulumira, 400 kwa chilichonse lamulo la m'malo anaipa.
Kusinthanitsa
Kuwerengedwa pa batani: 240 amawerenga ndi 30 match amayamba mphindi. Loose pa ntchito: zimene zachidziwikire amaletsa match ndi kuti amagwiritsa ndalama zanu, ndipo izi ndizipita kuletsa retry loop kapena poller kuyendetsa flat out. Pambuyo pa malire mupeza 429; kufunsa match kuyendetsa nthawi zonse masekondi angapo kuposa mosalekeza.
Kulipira ndi chimodzimodzi ndi tsambalo: mumalipira per token pa mtengo wosindikizidwa pa-model, kuchokera ku credit yolipira kapena chida chanu chokha.
Momwe kulipira kumagwira ntchito
Yambitsani kuchokera ku Claude, ChatGPT kapena Cursor
Theorem ndi MCP server, kotero AI othandizira akhoza kugwiritsa ntchito mu mgwirizano: https://theorem.chat/mcp. Setup kwa aliyense app