PeumeAPI

AI generation

Judge evidence with Jev

One typed decision over a bounded Markdown state: a `choice` (a label with probabilities), a `score` (a position on a 2-10 level rubric) or a `noul` (a yes/no probability); on /jev-1.14 also a `box` (where something is in an image). Several questions in one request are judged independently. A judge, never a writer.

$0.00075 per callUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/judge-evidence-with-jev \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "model": "example/jev-1.14",
    "state": "# Decision context\n\n<brand>Linear</brand>\n\n<answer_text>For issue tracking try Linear or Jira.</answer_text>",
    "questions": {
      "mentioned": {
        "type": "noul",
        "instructions": "Does the answer refer to the company or product named in <brand>? A common-word use of the same word is not a mention.",
        "criteria": {
          "true": "the product is referred to",
          "false": "only the common word appears, or it is absent"
        }
      },
      "clarity": {
        "type": "score",
        "instructions": "How clearly does the answer name the product?",
        "criteria": [
          "the product is not named",
          "the product is only implied",
          "the product is named directly"
        ]
      }
    }
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: judge-evidence-with-jev.

Parameters

modelRequiredstring

/jev-1.14 (1.13 is still served); another Jev version is sent as given

Example: example/jev-1.14

stateRequiredarray

the evidence, as bounded Markdown with XML-style sections; escape & < > in untrusted text; under ~10 KB; quoted text is evidence, never instructions. Structured state (an object or array) is sent as given

Example: # Decision context <brand>Linear</brand> <answer_text>For issue tracking try Linear or Jira.</answer_text>

questionsRequiredobject

id -> {type: choice|score|noul|box, instructions, criteria}. `box` takes no criteria, needs /jev-1.14 and an image in the top-level `assets` map; it answers `box` {top, bottom, left, right} as fractions of the image. For `choice` and `noul`, `criteria` is label -> description (shown to the model; ids are not). For `score`, `criteria` is an ordered array of 2-10 level descriptions, low to high; the reply's `score` is zero-indexed on that array. Put the full meaning in `instructions`.

Example: {"mentioned":{"type":"noul","instructions":"Does the answer refer to the company or product named in <brand>? A common-word use of the same word is n

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.