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.
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.
Generate humour items for a single context. One call, one to five items.
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
lang | string | yes | One of the 12 codes below | |
context | string | yes | 1 to 600 characters | |
count | integer | no | 3 | 1 to 5 |
register | string | no | wry | wry, absurd, deadpan, warm |
length | string | no | short | short (≤140 chars) or medium (≤280) |
audience | string | no | general | Free-form metadata, ≤40 chars |
{
"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
}
| Code | Body.error | Cause |
|---|---|---|
| 200 | Success | |
| 400 | invalid_request / invalid_lang / invalid_register / context_too_long / count_out_of_range | Validation failure |
| 401 | invalid_token | Missing or unknown X-Api-Token |
| 402 | quota_exceeded | Tier limit reached for today or month |
| 422 | unsafe_context | Context rejected by safety layer |
| 429 | rate_limited | Per-minute burst limit reached |
| 503 | upstream_unreachable | Backend timeout, retry safely |
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.
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"
{
"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.
| Code | Body.error | Cause |
|---|---|---|
| 200 | Success | |
| 401 | invalid_token | Missing or unknown X-Api-Token |
Four named registers. The set is locked for v1; pick the one that fits your product's voice.
wry | Dry, ironic, self-aware. Default. |
absurd | Surreal, logic-breaking, unexpected. |
deadpan | Flat, affect-less, unreactive delivery. |
warm | Affectionate, inclusive, kind humour. |
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
All prices in EUR, excluding VAT where applicable. Billed monthly. Quotas reset on the first of each calendar month.
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.