RAG-AS-A-SERVICE — OPENAI COMPATIBLE

African-language RAG.
3 lines of Python.

African languages make up ~0.03% of Common Crawl. Foreign LLMs hallucinate in Swahili at 34%+, isiZulu at ~40%— and serve Africa in English only. Langa gives your app grounded, cited answers in the language your users actually speak.

QUICKSTART · Python
import afriflow

# Initialise with your API key
client = afriflow.Client(api_key="langa-…")

# One call — grounded answer + citations
response = client.rag(
    query="Inkosi inamalungelo aphi?",  # isiZulu
    language="zul",
    namespace="legal-za"
)
print(response.answer, response.citations)

~0.03%
of Common Crawl is African-language data
34%+
Swahili hallucination rate in foreign LLMs
~40%
isiZulu hallucination rate in foreign LLMs
5
African languages supported at launch

SUPPORTED LANGUAGES

Grounded answers in the languages that matter

ZUL · South AfricaisiZulu
SWA · East AfricaSwahili
YOR · West AfricaYoruba
HAU · West AfricaHausa
POR · MozambiquePortuguese-Mozambique

Each language namespace is backed by curated, domain-specific corpora — not leftover Common Crawl noise. Answers come with verifiable source citations so your users know why they can trust the response.


API REFERENCE

OpenAI-compatible. Drop-in for your existing stack.

Use the OpenAI SDK you already know, or hit our endpoints directly.

POST/v1/lang-a/rag

Core RAG endpoint. Send a query, language code, and namespace — receive a grounded answer with source citations.

REQUEST
{
  "query": "Masharti ya kuhitimu ni yapi?",
  "language": "swa",
  "namespace": "education-ke",
  "top_k": 5
}
RESPONSE
{
  "answer": "Masharti ya kuhitimu ni…",
  "citations": [
    {"source": "MOE-KE-2023.pdf", "page": 12},
    {"source": "KNEC-guidelines.pdf", "page": 7}
  ],
  "confidence": 0.91
}
POST/v1/chat/completions

OpenAI-compatible chat. Pass your existing messages array — Langa handles grounding automatically.

REQUEST
{
  "model": "langa-zul-v1",
  "messages": [
    {"role": "user", "content": "Inkosi inamalungelo aphi?"}
  ]
}
RESPONSE
{
  "choices": [{
    "message": {
      "role": "assistant",
      "content": "Inkosi inalungelo loku…"
    }
  }],
  "citations": [...]
}
POST/v1/embeddings

Multilingual embeddings optimised for African-language semantic similarity.

REQUEST
{
  "input": ["Ninakupenda sana", "I love you"],
  "model": "langa-embed-v1",
  "language": "swa"
}
RESPONSE
{
  "data": [
    {"embedding": [0.023, -0.041, ...], "index": 0},
    {"embedding": [0.021, -0.039, ...], "index": 1}
  ]
}

WHY LANGA
⬡

Grounded, not hallucinated

Every answer is retrieved from your indexed corpus before generation. No fabrication. Citations attached.

◈

Managed infrastructure

No vector DB to provision, no embedding pipeline to maintain. Langa handles indexing, retrieval, and generation.

◉

African-language-first

Purpose-built tokenisation and retrieval tuning for isiZulu, Swahili, Yoruba, Hausa, and Mozambican Portuguese.

◍

OpenAI-compatible API

Swap the base URL. Your existing SDK calls, prompts, and tooling all work without changes.

◆

Namespace isolation

Each namespace is a separate knowledge base. Deploy different corpora for legal, health, education, and more.

◇

Verifiable citations

Every response includes structured source metadata — document, page, chunk — so users can verify answers.


LOCAL-CURRENCY PRICING

One plan. Pay locally.

Built for African developers. The AfriFlow site now uses Paystack for local-currency checkout; NanoCorp platform checkout links are no longer used for this purchase flow.

DEVELOPER EARLY ACCESS

Local-currency checkout for African builders.

Pay in a supported local currency through Paystack with local payment methods where available. We auto-select the best supported currency from your country, and you can override it before checkout.

$29/monthUSD

Anchor price: $29 USD. Amounts are explicit tiers, not live FX conversions.

  • ◆Full RAG API access — all 5 languages
  • ◆OpenAI-compatible endpoints
  • ◆Multilingual embeddings
  • ◆Verifiable source citations
  • ◆Up to 10,000 queries/month
  • ◆Email onboarding support
PAYSTACK CHECKOUT

Detecting country for local pricing…

AVAILABLE NOW

NGN ₦25,000USD $29

DISABLED IN CONFIG

KES KSh 3,500ZAR R450GHS ₵350

Live public key loaded client-side (live mode). Secret-key calls stay server-side.