Use the Mansa API to add multilingual chat, translation, transcription, speech, and web tools to your application through one REST API.
The API is available at https://api.mymansa.ai. New to Mansa? Follow the Quickstart to create a key, add credits, and send your first request.
Prerequisites
To use the Mansa API, you need:
- A Mansa account
- A Mansa API key stored on your server
- A funded Mansa Credits balance
Manage keys and credits in the Mansa console.
Available APIs
Open an API guide for its request fields, supported languages, examples, and response details.
Authentication
Every public /v1 endpoint requires a Mansa API key as a Bearer token:
Authorization: Bearer <MANSA_API_KEY>Create a key on the API keys page and keep it in a server-side environment variable or secret manager. Never expose it in browser code, mobile applications, public repositories, or URLs. See Authentication for rotation and legacy-key guidance.
Request and response format
Send request bodies as JSON with Content-Type: application/json. Successful JSON responses place the result under data:
{
"data": {
"message": "Akwaaba! How can I help?"
}
}TTS is the exception: a successful request returns binary WAV audio instead of JSON. Non-success responses use a shared RFC 7807-inspired error shape with a stable context value for application logic. See Errors.
Billing and limits
Requests debit your Mansa Credits balance according to the API used. Chat usage is metered by input and output tokens; other capabilities use the units described in their guides. See Pricing.
The current default limit is 120 requests per minute per API key and per IP address. Chat supports up to 24 concurrent streams. Handle 429 responses with bounded exponential backoff and jitter. See Rate limits for recovery guidance.
Next steps
- Quickstart — send your first authenticated Chat request
- Authentication — create, store, rotate, and revoke API keys
- Pricing — understand Mansa Credits and usage costs
- Errors — handle validation, authentication, credit, and service failures