Jev decisions

Jev is a decision model, not a chat model. It takes a state and typed questions and returns probabilities · never free-form text. It therefore has its own endpoint, does not stream, and is not listed in /v1/models. Coding CLIs such as OpenCode and Pi cannot use it.

Endpoint

POST https://api.firesafety.men/v1/systemone

Authenticate with the same bearer key as the chat API. The request and response follow TypeSafe's System One shape and are forwarded to Command Code unchanged.

Request

curl https://api.firesafety.men/v1/systemone \
  -H "Authorization: Bearer $FREEGATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "typesafe/jev",
    "state": "My payments have failed for three days and I am losing sales.",
    "questions": {
      "is_urgent": { "type": "noul", "instructions": "Does this need urgent attention?" },
      "department": {
        "type": "choice",
        "instructions": "Which team should handle it?",
        "criteria": { "billing": "charges and payments", "shipping": "delivery", "returns": "refunds" }
      }
    }
  }'

Up to 100 questions per request. Jev's own budget is 64K tokens for the state plus all questions, and 32K for the state plus the longest single question.

Response

{
  "model": "typesafe/jev",
  "answers": {
    "is_urgent": { "type": "noul", "noul": 0.96 },
    "department": {
      "type": "choice",
      "choice": "billing",
      "confidence": 0.89,
      "probabilities": { "billing": 0.91, "shipping": 0.05, "returns": 0.04 }
    }
  },
  "usage": { "input_tokens": 84, "output_tokens": 3 }
}

Question types: noul (yes/no probability), choice (one option plus probabilities), and score (a point on a rubric).

Limits

  • 2,000 requests per account per day. It resets at 00:00 UTC.
  • No token limit. Input and output tokens are recorded for visibility but never gated.
  • Requests that reach the provider count, including invalid bodies that the provider rejects.
  • Over the cap you get 429 quota_exceeded with a retry-after header.

Errors

  • 400 unsupported_model · only typesafe/jev and typesafe/jev-1.14.0 are served.
  • 400 invalid_request_error · missing state, empty/oversized questions, or stream: true.
  • 429 quota_exceeded · the 2,000-request allowance is spent.
  • 502 / 503 · the provider is unreachable or Command Code is not configured.