Alberei API · v1

Robots and apps don't need to be funny. We are.

Alberei is a modular humour engine. Plug it in and your product gets register-aware, culturally specific humour generation across 12 languages. Built for embodied agents, voice assistants, chatbots, game NPCs, and content tools.

Quickstart

One endpoint. JSON in, items out. Replace YOUR_TOKEN with a token issued through the access flow below.

curl -X POST https://api.llulllab.com/alberei/v1/generate \
  -H "Content-Type: application/json" \
  -H "X-Api-Token: YOUR_TOKEN" \
  -d '{
    "lang": "en",
    "context": "user just asked the robot why it'"'"'s slow today",
    "count": 3,
    "register": "wry"
  }'

Returns three short humour items in English, in the wry register, each tagged with its combinatorial structure.

Endpoint

POST /alberei/v1/generate

Generate humour items for a single context. One call, one to five items.

Request fields

FieldTypeRequiredDefaultNotes
langstringyesOne of the 12 codes below
contextstringyes1 to 600 characters
countintegerno31 to 5
registerstringnowrywry, absurd, deadpan, warm
lengthstringnoshortshort (≤140 chars) or medium (≤280)
audiencestringnogeneralFree-form metadata, ≤40 chars

Response (200 OK)

{
  "id": "alb_20260520_a1b2c3d4",
  "lang": "en",
  "context": "user just asked the robot why it's slow today",
  "register": "wry",
  "length": "short",
  "items": [
    { "text": "I'm running on yesterday's enthusiasm.",
      "register": "wry", "structure": "misdirection" },
    { "text": "Thinking is slower than pretending.",
      "register": "wry", "structure": "self-deprecation" },
    { "text": "I'm at the part of the day where I am the bug.",
      "register": "wry", "structure": "literal-overshoot" }
  ],
  "tier": "starter",
  "remaining_today": 142,
  "remaining_month": 4873
}

Status codes

CodeBody.errorCause
200Success
400invalid_request / invalid_lang / invalid_register / context_too_long / count_out_of_rangeValidation failure
401invalid_tokenMissing or unknown X-Api-Token
402quota_exceededTier limit reached for today or month
422unsafe_contextContext rejected by safety layer
429rate_limitedPer-minute burst limit reached
503upstream_unreachableBackend timeout, retry safely

Rate-limit headers

All responses carry: X-RateLimit-Tier, X-RateLimit-Daily-Remaining, X-RateLimit-Monthly-Remaining, X-RateLimit-Burst-Remaining. The Retry-After header is returned with 402 and 429.

Usage endpoint

GET /alberei/v1/usage

Return the current quota state for the token. Useful for dashboards, threshold alerts, and pre-flight checks before a batch. POST with the same header is also accepted for clients that prefer a uniform method.

curl https://api.llulllab.com/alberei/v1/usage \
  -H "X-Api-Token: YOUR_TOKEN"

Response (200 OK)

{
  "tier": "starter",
  "monthly_quota": 5000,
  "monthly_used": 127,
  "monthly_remaining": 4873,
  "daily_remaining": 142,
  "burst_remaining_per_minute": 58,
  "period_start": "2026-05-01T00:00:00.000Z",
  "period_end":   "2026-05-31T23:59:59.000Z"
}

The period_start and period_end bound the current monthly window in UTC. Quotas reset on the first of each calendar month.

Status codes

CodeBody.errorCause
200Success
401invalid_tokenMissing or unknown X-Api-Token

Registers

Four named registers. The set is locked for v1; pick the one that fits your product's voice.

wryDry, ironic, self-aware. Default.
absurdSurreal, logic-breaking, unexpected.
deadpanFlat, affect-less, unreactive delivery.
warmAffectionate, inclusive, kind humour.

Languages

All 12 languages available at launch. Each generates natively, with culturally specific framing, not translated from a base language.

arArabic bnBengali deGerman enEnglish esSpanish frFrench hiHindi itItalian jaJapanese ptPortuguese trTurkish zhChinese

Tiers

Free
€0
50 calls / month
6 calls / minute
"Powered by Alberei" attribution
For prototyping and evaluation.
Starter
€49 / mo
5,000 calls / month
60 calls / minute
Attribution optional
Indie products, small fleets.
Growth
€299 / mo
50,000 calls / month
60 calls / minute
Attribution optional
Production workloads, public apps.
Enterprise
Custom
Volume, SLA, co-branding,
and burst limits
set at contracting
Robotics fleets, large platforms.

All prices in EUR, excluding VAT where applicable. Billed monthly. Quotas reset on the first of each calendar month.

Where Alberei fits

Inaugural pilot. Phi-Yo Embodied, Llull Lab's wellbeing companion robot, uses Alberei as its humour module. The integration ships with the first production hardware run.

Get a token

Access is gated for v1. Tell us what you are building and we issue a token, usually within two working days.

Have an invite code already? Documentation includes the redemption endpoint.