$ curl https://api.rightnowai.co/v1/system-zero/decide \ -H "Authorization: Bearer $SYSTEM_ZERO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "system-zero", "state": "The blender I ordered arrived with a cracked jar.", "questions": { "damaged": {"type": "boolean", "instructions": "Did the item arrive damaged?"} } }' | jq .answers# Recorded 2026-10-26{ "damaged": { "type": "boolean", "probability": 0.999501, "confidence": 0.999501, "calibration_version": "cal-2026-10-g", "decision": true, "calibrated": false, "alternatives": [ { "decision": false, "confidence": 0.000499 } ] }}$ █
import osimport requestsreply = requests.post( "https://api.rightnowai.co/v1/system-zero/decide", headers={"Authorization": f"Bearer {os.environ['SYSTEM_ZERO_API_KEY']}"}, json={ "model": "system-zero", "state": "The blender I ordered arrived with a cracked jar.", "questions": { "damaged": { "type": "boolean", "instructions": "Did the item arrive damaged?", } }, }, timeout=130,)print(reply.json()["answers"])
const reply = await fetch("https://api.rightnowai.co/v1/system-zero/decide", { method: "POST", headers: { Authorization: `Bearer ${process.env.SYSTEM_ZERO_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ model: "system-zero", state: "The blender I ordered arrived with a cracked jar.", questions: { damaged: { type: "boolean", instructions: "Did the item arrive damaged?", }, }, }),}).then((response) => response.json());console.log(reply.answers);