Skip to content

Quickstart

Every capability lives behind one base URL:

https://api.olaverselab.com
  1. Create an API key. Sign in to the developer console, open API keys and create one. It is shown once, so store it somewhere safe.

  2. Set your environment.

    Terminal window
    export OLAVERSE_URL="https://api.olaverselab.com"
    export OLAVERSE_KEY="your-key"
  3. Make a call. 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."}}}'

The rest of these docs use the small call helper above in their Python examples.

What you want Endpoint Billed per
Typed decisions about a message or record POST /v1/decide decision
A document as JSON, with a confidence per field POST /v1/extract document
The language of a text (608 languages) POST /v1/language-id text
Diacritics and tone marks restored (11 languages) POST /v1/diacritize 1,000 characters
Search-style questions from a passage (25 languages) POST /v1/questions/generate passage
What’s available GET /v1/models free

Each POST endpoint also has a /batch version. Every billable response includes a usage block in its billing unit.