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 sandboxOne 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_
| model | Reads | |
|---|---|---|
ramsey-1.1 | text and JSON | Default when you name no model. |
ramsey-1 | text and JSON | Previous version, if you want answers to stay the same. |
laplace-1.0 | images and video | Picked 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.0 | Cloudflare 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,014 | 0,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_
| Type | criteria | The response contains |
|---|---|---|
noul | valgfritt {"true": "…", "false": "…"} | noul, sannsynligheten for ja |
choice | {"navn": "beskrivelse"}, opptil 26 alternativer | choice, probabilities, confidence |
score | ["nivå 0", "nivå 1", …], 2–10 nivåer | score (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.1 | Ramsey 1 | Jev 1.13 | |
|---|---|---|---|
| Nimble 13 | 78,8 | 74,7 | 76,0 |
| JevBench, intelligence | 81,1 | 74,6 | 82,2 |
| JevBench, overall | 74,0 | 72,9 | 73,7 |
| Tenki, Norwegian test we never trained on | 69,6 | 68,4 | |
| Calibration (100 = the probabilities are accurate) | 77,2 | 86,1 |
Pricing and limits_
| Welcome credits | $25, does not expire |
| Input | $0.021 per million tokens |
| Output | free |
| 1,000 typical decisions (~800 tokens) | $0.017 |
| Per key | 300/min, 200,000/day |
| Sandbox, no account | 30/min per IP |
| Request | max 256 KB, 32 questions |
| With images or video | max 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.