tenkiOne
Decision API

Ramsey_

Ramsey reads a text or a JSON object and answers questions with fixed answer options. It returns a probability for each option, never free text. It is built for the many small decisions in a workflow: routing, triage, checks and classification.

Get a free key Read the documentation   Try it in the sandbox
$25i credits ved oppstart, ca. 1 488 095 beslutninger
$0.021per million input tokens, half of Jev's price. Output is free.
0.6 stypical response time for a short decision
78,8Nimble 13 for Ramsey 1.1 (Jev: 76.0)

One request, three decisions_

Samme API som Jev: POST /v1/systemone med en tilstand og navngitte spørsmål. Eksisterende Jev-klienter virker ved å bytte adresse og nøkkel.

Request

{
  "state": "Hei! Fakturaen for september er trukket to ganger fra kontoen min. Dette må ordnes i dag.",
  "model": "ramsey-1",
  "questions": {
    "team": {
      "type": "choice",
      "instructions": "Hvem bør ta saken?",
      "criteria": {
        "faktura": "betaling og refusjon",
        "teknisk": "feil og nedetid",
        "salg": "nye kunder"
      }
    },
    "urgent": {
      "type": "noul",
      "instructions": "Haster det?",
      "criteria": {
        "true": "tidskritisk",
        "false": "kan vente"
      }
    },
    "anger": {
      "type": "score",
      "instructions": "Hvor irritert er kunden?",
      "criteria": [
        "Rolig",
        "Litt irritert",
        "Sint"
      ]
    }
  }
}

Response

{
  "model": "ramsey-1",
  "answers": {
    "team": {
      "type": "choice",
      "choice": "faktura",
      "probabilities": {
        "faktura": 0.986,
        "teknisk": 0.011,
        "salg": 0.003
      },
      "confidence": 0.9
    },
    "urgent": {
      "type": "noul",
      "noul": 0.93
    },
    "anger": {
      "type": "score",
      "score": 1.62,
      "median": 2,
      "interval": [
        1,
        2
      ],
      "probabilities": {
        "0": 0.04,
        "1": 0.3,
        "2": 0.66
      }
    }
  },
  "usage": {
    "input_tokens": 354,
    "output_tokens": 0
  }
}
curl https://one.tenki.no/v1/systemone \
  -H "Authorization: Bearer tk_..." \
  -H "Content-Type: application/json" \
  -d @request.json

Models_

modelReads
ramsey-1.1text and JSONDefault when you name no model.
ramsey-1text and JSONPrevious version, if you want answers to stay the same.
laplace-1.0images and videoPicked automatically when the request has images or video.

Images and video with Laplace_

Laplace svarer på samme typer spørsmål, men ser på bilder og korte videoklipp. Legg dem i assets som base64.

Request

{
  "model": "laplace-1.0",
  "state": "Bilde fra mottakskontrollen.",
  "assets": {
    "pakke": {
      "type": "image",
      "data_base64": "/9j/4AAQSkZJRg…"
    }
  },
  "questions": {
    "skadet": {
      "type": "noul",
      "instructions": "Er pakken synlig skadet?"
    },
    "type": {
      "type": "choice",
      "instructions": "Hva slags forsendelse er det?",
      "criteria": {
        "eske": "pappeske",
        "konvolutt": "konvolutt eller pose",
        "pall": "pall"
      }
    }
  }
}

Response

{
  "model": "laplace-1.0",
  "answers": {
    "skadet": {
      "type": "noul",
      "noul": 0.87
    },
    "type": {
      "type": "choice",
      "choice": "eske",
      "probabilities": {
        "eske": 0.962,
        "konvolutt": 0.031,
        "pall": 0.007
      },
      "confidence": 0.86
    }
  },
  "usage": {
    "input_tokens": 268,
    "output_tokens": 0
  }
}
Laplace 1.0Cloudflare Clef-flash
Images (A-OKVQA, 1145 questions)90,3 %89,7 %
Video (NExT-QA, 1000 questions)81,4 %78,0 %
Calibration error, images (lower is better)0,0140,035
Document layout (tasksource-vision)61,6 %75,2 %

Measured by us on the same questions. Clef-flash is better at document layout, and we are working on it. How to send images and video

Question types_

TypecriteriaThe response contains
noulvalgfritt {"true": "…", "false": "…"}noul, sannsynligheten for ja
choice{"navn": "beskrivelse"}, opptil 26 alternativerchoice, probabilities, confidence
score["nivå 0", "nivå 1", …], 2–10 nivåerscore (forventning), median, interval, probabilities

How good is it_

Measured by us with the same setup for every model. JevBench is the 231 public tasks scored with the benchmark's own formulas (v1.3). The hidden set has not been run, so these are not official numbers.

Ramsey 1.1Ramsey 1Jev 1.13
Nimble 1378,874,776,0
JevBench, intelligence81,174,682,2
JevBench, overall74,072,973,7
Tenki, Norwegian test we never trained on69,668,4
Calibration (100 = the probabilities are accurate)77,286,1
Ramsey 1.1 is right more often than Ramsey 1 and beats Jev on Nimble 13, but it is less well calibrated. If you need the probabilities to be as accurate as possible, choose ramsey-1. Use the probability either way: let Ramsey decide what it is sure of, and pass the rest on.

Pricing and limits_

Welcome credits$25, does not expire
Input$0.021 per million tokens
Outputfree
1,000 typical decisions (~800 tokens)$0.017
Per key300/min, 200,000/day
Sandbox, no account30/min per IP
Requestmax 256 KB, 32 questions
With images or videomax 24 MB

Over grensen: 429 med Retry-After. Alle maskiner opptatt: 529. Tomt for credits: 402. Feil har formen {"error": {"code": "…", "message": "…"}}.

Privacy_

The model runs on hardware Tenki owns, in Norway. Request content is not stored, only time, number of tokens and response time per key, for statistics and billing. Do not send personal data you are not allowed to share.