← All models
    Language identification

    Know the language of any text, even three words of it

    Which of 608 languages is this message, review or page in? LID-608 is built African-first and trained on the messy input real products get: chat, typos, missing accents, emoji and stray links.

    $1 of free credit · open weights on Hugging Face

    Short texts in Yorùbá, Swahili, Hausa, Igbo, Vietnamese, Arabic and German, each labelled with its language and confidence
    608
    Languages, plus a class for numbers, links and code
    0.906
    Accuracy on 1–5 word inputs (traffic mode)
    0.839
    Avg F1, 20 African languages (lid-lite-608; GlotLID 0.757)
    $0.30
    Per 1,000 texts on the API
    / What it does

    Short, messy text

    Greetings, search queries and chat messages, typos and missing accents included: 0.906 on 1–5 word inputs.

    608 languages

    African-first coverage, including the languages most detectors fold into a bigger neighbour.

    Knows noise from language

    Numbers, links and code get their own label (zxx_Zxxx), so junk is never forced into a real language.

    Two modes

    Traffic mode for user input, coverage mode for finding rare languages in a corpus, chosen per call.

    Fast and light

    lid-lite-608 is 37 MB and reads about 6,800 texts a second on one CPU thread.

    Open and commercial

    Apache-2.0 weights, trained on commercially usable data.

    / Live output

    See it identify languages

    Pick a text. The answer is exactly what lid-neural-608 returned on our API, with its top three guesses.

    Input text
    lid-neural-608

    Ẹ kú àárọ̀, ṣé dáadáa ni?

    Yorubayor_Latn
    Yoruba
    1.00
    Igbo
    0.00
    Bokobaru
    0.00

    Traffic mode. Labels are ISO 639-3 language codes with an ISO 15924 script.

    / Benchmarks

    Finds the languages others miss

    Published results.

    20 major African languages

    Average F1 across 20 African languages.

    • lid-lite-6080.839
    • GlotLID0.757

    lid-neural-608 on real input

    Accuracy in traffic mode, on held-out data.

    • Everyday phrases0.943
    • 1–5 word inputs0.906
    • All held-out text0.867
    Model card and evaluation details
    / Built for

    Route by language

    Send each message to the support queue, translator or model that speaks its language.

    Clean and build corpora

    Sort a web crawl by language and drop the noise, at thousands of texts a second on a CPU.

    Know your users

    See which languages your users actually write in, not just the ones your interface offers.

    / By sector

    Where it fits

    LID-608 tells you which of 608 languages a text is in, built African-first. It is usually a first step: route the text to the right model, team or index, or keep a corpus clean. That makes it useful in almost every sector that handles text from real people.

    Customer support and conversational products

    Short, messy user input is where most detectors fail and where routing matters most.

    • →Route chats, tickets and voice transcripts to the right agent, bot or model by language. In traffic mode lid-neural-608 reads 1-5 word inputs at 0.906 web-weighted accuracy.
    • →Tell Yorùbá, Hausa, Igbo, Swahili and Pidgin apart reliably, instead of filing them all under English or "unknown".

    WatchCode-mixed messages (English and Pidgin, Swahili and English) have no single right answer. Use the top-k list and the confidence, not only the top label.

    Search and e-commerce

    • →Detect the query’s language to pick the right index, analyser or translation step before searching.
    • →Tag product listings and reviews by language so multilingual catalogues search and filter properly.

    AI and data teams

    Building corpora for low-resource languages starts with finding them.

    • →Filter web crawls into per-language corpora on ordinary CPUs: lid-lite-608 is 37 MB and reads about 6,800 texts per second on one thread.
    • →Coverage mode treats every language as equally likely, so rare languages aren’t swallowed by big ones. Across 20 major African languages lid-lite-608 averages F1 0.839, against 0.757 for GlotLID.
    • →The noise class for numbers, URLs and code (F1 0.961) doubles as a cleaning pass.

    Trust and safety

    • →Send content to the moderation model or reviewer team for its language, so low-resource languages don’t slip through unreviewed.
    • →Spot spam and junk that is numbers, links or code rather than language.

    Telecoms, edge and mobile

    • →Run language ID on-device or in serverless functions: lid-lite-608 needs no deep-learning stack.
    • →Set keyboards, SMS services and voice menus to the user’s language automatically.

    Government, NGOs and public services

    • →Triage messages to hotlines and feedback channels by language, so each reaches someone who reads it.
    • →Measure which languages citizens actually write in, to decide what to translate first.

    A production pattern that works across sectors

    1. 01Pick the mode: traffic for user input (it leans on how often languages really appear), coverage for corpus building (every language equally likely).
    2. 02Put lid-lite-608 in front on CPU, and send only low-confidence texts to lid-neural-608.
    3. 03Drop or set aside texts labelled zxx_Zxxx (numbers, URLs, code) before anything downstream runs.
    4. 04Set a confidence threshold per route, and send what falls below it to a default language or a person.
    5. 05Review a sample per language each month, especially closely related languages and code-mixed text.
    / The lineup

    The LID-608 models

    LANGUAGE IDMOST ACCURATE

    lid-neural-608

    Know the language of any text, even when it is three words long.

    608
    Languages
    0.867
    Held-out accuracy
    0.906
    1-5 words, traffic mode
    140M
    Parameters
    Best for
    • Routing chat messages, search queries and support tickets, where text is short and typed by real users.
    • Products for African users that need to tell Yorùbá, Hausa, Igbo, Swahili and Pidgin apart reliably.
    • Accuracy-first pipelines with a GPU, with lid-lite-608 in front as a fast first pass at scale.
    LANGUAGE ID

    lid-lite-608

    608 languages in 37 MB, on a single CPU thread.

    608
    Languages
    37 MB
    Model size
    6,800/s
    Texts per CPU thread
    0.839
    Avg F1, 20 African languages
    Best for
    • Filtering web crawls and building language corpora at scale on ordinary CPUs.
    • Edge and serverless deployments, where a 37 MB model with no deep-learning stack matters.
    • Finding low-resource African languages that other detectors misfile.
    / Side by side

    Compare the LID-608 models

    lid-neural-608 →lid-lite-608 →
    Size140M parameters37 MB
    Speed~1,100 texts/s on an A100~6,800 texts/s on one CPU thread
    Held-out accuracy0.8670.858
    1-5 words, traffic mode0.9060.829
    Everyday phrases, traffic mode0.9430.838
    Best forUser input and short textBulk filtering, CPU and edge
    / Choosing

    Which one should you use?

    • Language ID on user input and short textlid-neural-608 →

      Traffic mode: 0.960 web-weighted accuracy, 0.906 on 1-5 word inputs.

    • Language ID at volume, CPU-only or at the edgelid-lite-608 →

      37 MB, about 6,800 texts/s on one CPU thread. Same 608 labels and modes.

    / Run it your way

    Choose how to run it

    Olaverse API

    The fastest start: an API key, pay as you go, $1 of free credit.

    • ✓$0.30 per 1,000 texts with lid-neural-608, or $0.05 with lid-lite-608.
    • ✓Calibrated outputs, no infrastructure
    • ✓Your data is never stored or used for training
    Get an API key

    Open weights

    Download the model and run it on your own GPUs.

    • ✓Hugging Face, open licence
    • ✓Keep every document in your environment
    • ✓Fine-tune on your own data
    Get the weights

    Enterprise

    A private deployment, tuned to your data and workflows.

    • ✓Private cloud or on-premises
    • ✓Fine-tuning on your labels
    • ✓Volume pricing and support
    Talk to us
    / FAQ

    Questions

    Traffic or coverage mode?+

    Traffic mode for user input: it leans on how often languages actually appear. Coverage mode treats every language as equally likely, which is better for finding rare languages in a corpus.

    What happens with numbers, links or code?+

    They get the label zxx_Zxxx (no language), so they never pollute your language counts.

    Which model should I use?+

    lid-neural-608 for the best accuracy, especially on short text. lid-lite-608 when you need to process huge volumes cheaply on CPUs. They return the same labels.

    Is my text stored?+

    No. Text is processed in memory, never logged and never used for training.