Skip to content

Quickstart

Every capability lives behind one base URL:

https://api.olaverselab.com
  1. Sign up at the developer console. New accounts start with $1 of free credit.

  2. Open API keys and create one. It is shown once, so store it somewhere safe.

  3. Set it in your environment:

    Terminal window
    export OLAVERSE_URL="https://api.olaverselab.com"
    export OLAVERSE_KEY="your-key"

This asks whether a customer wants a refund:

Terminal window
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."}}}'

A 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 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.