Skip to content
Download Get3W

Decision API ​

Jev is TypeSafe's structured decision model for classification, task routing and scoring. Send a state and named questions; receive typed answers in a synchronous JSON response.

http
POST https://api.get3w.com/v1/systemone
Authorization: Bearer YOUR_GET3W_API_KEY
Content-Type: application/json

Use a Get3W API key; see API authentication. This endpoint does not accept Chat Completions messages, stream responses or require result polling.

Models and pricing ​

  • jev-latest: pinned to Jev 1.14, identical to jev-1.14 (DMXAPI upstream jev-1.14.0).
  • jev-1.14: the pinned Jev 1.14 model.
  • jev-1.13: the pinned Jev 1.13 model.

All models cost $0.048 per million input tokens. Output is free, with no account-tier discount. Billing uses the supplier's actual usage.input_tokens, rounded to the ledger's $0.000001 precision per request. For example, 1,000 input tokens cost $0.000048. Failed or timed-out upstream calls and responses without valid usage are not charged.

Actual Jev calls made by Desktop Auto are also billed, in addition to the selected chat model. Reusing a cached decision within the same turn incurs no additional Jev charge.

Request fields ​

  • model: optional, jev-latest (default), jev-1.14 or jev-1.13.
  • state: required; a string, JSON object or array to evaluate.
  • questions: required; a nonempty object whose keys name the questions. Responses use these same keys under answers.

Each question has a type and optional instructions:

  • noul: yes/no judgment; returns the probability of yes as noul between 0 and 1.
  • choice: classification; criteria is a nonempty object mapping candidate names to descriptions. Returns choice, confidence and probabilities.
  • score: scoring; criteria contains 1–10 ordered rubric levels starting at zero. Returns a probability-weighted score, which may be fractional.

Get3W currently supports these text decision fields only. Images, assets, box questions and unknown top-level fields are not supported.

cURL example ​

bash
curl https://api.get3w.com/v1/systemone \
  -H "Authorization: Bearer $GET3W_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "jev-1.13",
    "state": "Investigate a Python service memory leak and propose a fix.",
    "questions": {
      "complexity": {
        "type": "score",
        "instructions": "How much complex reasoning does this task require?",
        "criteria": ["Simple question", "Some analysis", "Complex debugging or multi-step reasoning"]
      }
    }
  }'

Illustrative response; actual answers, usage and version identifiers vary:

json
{
  "model": "jev-1.13",
  "answers": {
    "complexity": {
      "type": "score",
      "score": 1.8,
      "confidence": 0.9,
      "legend": {"0": "Simple question", "1": "Some analysis", "2": "Complex debugging or multi-step reasoning"},
      "probabilities": {"0": 0.05, "1": 0.1, "2": 0.85}
    }
  },
  "usage": {"input_tokens": 120, "output_tokens": 12}
}

model identifies the version returned by the supplier. usage.output_tokens is reported but free. The X-Task-Id response header identifies the Get3W run and billing record.

Python example ​

python
import os
import requests

response = requests.post(
    "https://api.get3w.com/v1/systemone",
    headers={"Authorization": f"Bearer {os.environ['GET3W_API_KEY']}"},
    json={
        "model": "jev-latest",
        "state": {"message": "I was charged twice. Please refund me."},
        "questions": {
            "category": {
                "type": "choice",
                "instructions": "Select the best ticket category.",
                "criteria": {"billing": "Payments, invoices or refunds", "technical": "Technical issues"},
            },
            "needs_refund": {"type": "noul", "instructions": "Does the user want a refund?"},
        },
    },
    timeout=40,
)
response.raise_for_status()
result = response.json()
print(result["answers"]["category"]["choice"])
print(result["answers"]["needs_refund"]["noul"])
print(result["usage"])

Route uncertain results to review or a fallback, and validate accuracy on your own workload.

Model discovery and price quotes ​

GET /v1/models includes Jev with protocols: ["systemone"]. Use GET /v1/models/list?type=systemone for the full catalog, request schemas and prices.

bash
curl https://api.get3w.com/v1/models/price \
  -H "Authorization: Bearer $GET3W_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model_id":"typesafe/jev-1.13/systemone","inputs":{"input_tokens":1000}}'

Omit inputs for the base rate per million input tokens. Supply input_tokens for a usage estimate. See Pricing API.

Errors and retries ​

  • 401: missing or invalid API key.
  • 402: insufficient balance.
  • 400 / 422: invalid model, question type, criteria or request structure.
  • 503: supplier disabled or unconfigured.
  • 502: upstream failure, timeout or invalid usage response.

The public endpoint has a default total timeout of 30 seconds; an active admin policy can shorten it. Each submission is an independent request and is billed on success. Client-provided idempotency keys are not currently supported. A client timeout does not prove the server stopped or that no charge occurred; check run and consumption records before resubmitting.

See the official System One reference for protocol details. Get3W's supported features and pricing are defined on this page.

Released under the MIT License.