[ Resources / API Reference ]

API Reference

Complete reference for all LocaleNLP API endpoints, parameters, request formats, and response schemas. All endpoints use REST over HTTPS.

~/api/base-url
Base URL: https://api.localenlp.comAuth: Bearer YOUR_API_KEY
HTTPS / REST
POSTspeech

Speech Recognition

Convert spoken audio in African languages to text with high-accuracy ASR.

~//v1/speech/recognize
POST https://api.localenlp.com/v1/speech/recognize
POST
POSTspeech

Text to Speech

Generate natural-sounding speech from text in multiple African languages.

~//v1/speech/synthesize
POST https://api.localenlp.com/v1/speech/synthesize
POST
POSTtext

Language Detection

Automatically identify the African language used in a given text sample.

~//v1/text/detect-language
POST https://api.localenlp.com/v1/text/detect-language
POST
POSTtranslation

Machine Translation

Translate text between English and various African languages with high accuracy.

~//v1/translation/translate
POST https://api.localenlp.com/v1/translation/translate
POST
POSTtext

Named Entity Recognition

Identify and classify named entities — people, organizations, locations — in African text.

~//v1/text/ner
POST https://api.localenlp.com/v1/text/ner
POST
POSTtext

Sentiment Analysis

Determine the sentiment expressed in African language text.

~//v1/text/sentiment
POST https://api.localenlp.com/v1/text/sentiment
POST
POSTtext

Text Summarization

Generate concise summaries of longer texts in various African languages.

~//v1/text/summarize
POST https://api.localenlp.com/v1/text/summarize
POST
GETutility

Language Support

Get information about supported languages and their capabilities.

~//v1/languages
POST https://api.localenlp.com/v1/languages
GET
POSTspeech

Audio Transcription

Transcribe longer audio files with timestamps and speaker diarization.

~//v1/speech/transcribe
POST https://api.localenlp.com/v1/speech/transcribe
POST
POSTcustom

Custom Model Training

Train custom language models on domain-specific data for improved accuracy.

~//v1/custom/train
POST https://api.localenlp.com/v1/custom/train
POST
[ Ready to build? ]

Get your API key

Free tier includes 10,000 ASR minutes and 100,000 translation characters per month. No credit card required.