models

Run a model

Validates the inputs against the contract (unknown keys, missing inputs and out-of-domain values are rejected — never clamped) and runs the verified engine. Keyless for emergency-fund, relocation, side-business; every other model requires a paid key (402 otherwise) when billing is enforced.

post/api/v1/models/{model}

Request

  • Base URL: https://worthune.com
  • URL: https://worthune.com/api/v1/models/{model}
  • Auth: one of:
    • none
    • HTTP bearer
    • API key in header X-Api-Key

Request body

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Response

The run envelope: inputs echoed, verified outputs, sentinels, assumptions, facts and the evidence record.

okunknown required
modelstring required
specVersionstring required
contractUrlstring required
specUrlstring required
inputsobject required

Echo of the request inputs (the hashed inputs).

outputsobject required

The verified outputs, untouched except: display-only formula strings dropped; non-finite numbers encoded as "Infinity" / "-Infinity" / "NaN". Sentinel values are annotated, never rewritten.

assumptionsstring[] required
disclaimerstring required

Changes

No recorded changes to this operation across all 1 revision of this API.