Quickstart
Every capability lives behind one base URL:
https://api.olaverselab.comSet up your API key
Section titled “Set up your API key”-
Sign up at the developer console. New accounts start with $1 of free credit.
-
Open API keys and create one. It is shown once, so store it somewhere safe.
-
Set it in your environment:
Terminal window export OLAVERSE_URL="https://api.olaverselab.com"export OLAVERSE_KEY="your-key"Terminal window $env:OLAVERSE_URL = "https://api.olaverselab.com"$env:OLAVERSE_KEY = "your-key"
Make your first call
Section titled “Make your first call”This asks whether a customer wants a refund:
curl -X POST "$OLAVERSE_URL/v1/decide" \ -H "Authorization: Bearer $OLAVERSE_KEY" \ -H "Content-Type: application/json" \ -d '{"state": "I was charged twice, please refund me", "questions": {"refund": {"type": "noul", "instructions": "The customer asks for money back."}}}'import os, requests
URL = os.environ["OLAVERSE_URL"]HEADERS = {"Authorization": f"Bearer {os.environ['OLAVERSE_KEY']}"}
def call(path, body): r = requests.post(f"{URL}{path}", json=body, headers=HEADERS, timeout=120) r.raise_for_status() return r.json()
result = call("/v1/decide", { "state": "I was charged twice, please refund me", "questions": {"refund": {"type": "noul", "instructions": "The customer asks for money back."}},})print(result["answers"]["refund"]["noul"]) # e.g. 0.97const res = await fetch(`${process.env.OLAVERSE_URL}/v1/decide`, { method: 'POST', headers: { Authorization: `Bearer ${process.env.OLAVERSE_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ state: 'I was charged twice, please refund me', questions: { refund: { type: 'noul', instructions: 'The customer asks for money back.' } }, }),});const result = await res.json();console.log(result.answers.refund.noul); // e.g. 0.97A successful call returns the probability that the statement is true, and the usage it was billed on (values are illustrative):
{ "model": "purplemist-mini-2.0", "answers": {"refund": {"type": "noul", "noul": 0.97}}, "usage": {"input_tokens": 41, "output_tokens": 0, "decisions": 1}}The rest of these docs use the small call helper above in their Python examples.
What’s available
Section titled “What’s available”| What you want | Endpoint | Price |
|---|---|---|
| Typed decisions about a message or record | POST /v1/decide |
from $0.02 / 1M tokens |
| A document as JSON, with a confidence per field | POST /v1/extract |
from $0.80 / 1M tokens |
| The language of a text (608 languages) | POST /v1/language-id |
from $0.05 / 1,000 requests |
| Diacritics and tone marks restored (11 languages) | POST /v1/diacritize |
from $0.20 / 1M characters |
| Questions a passage answers (324 languages, cross-lingual) | POST /v1/questions/generate |
from $0.10 / 1M tokens |
| What’s available | GET /v1/models |
free |
Each POST endpoint also has a /batch version. Prices depend on the model; see Pricing.
Next steps
Section titled “Next steps”DecisionsChoice, yes/no and score questions, and how to read calibrated probabilities.
Document extractionTemplates, field types, photos and per-field confidence.
Inference APIBatches, usage, model names and timeouts, common to every endpoint.
OpenAI & OpenRouter clientsKeep your existing SDK and change the base URL.