EjoChat API

Shyira AI y'Ikinyarwanda muri porogaramu yawe

API ya EjoChat ifasha amakompanyi n'imishinga kwakira ibibazo, kohereza inyandiko cyangwa amakuru yabonetse, maze ikagarura igisubizo cyumvikana mu Kinyarwanda.

Buri konti yemejwe ibanza kubona amasaha 48 y' igerageza: 10 requests/min, 100 requests/day, nta conversation storage.
Secure request
v1
POST https://api.ejolabs.com/api/v1/subiza
X-API-Key: kgpt_...

{
  "messages": [
    { "role": "user", "content": "Sobanura uko malariya yirindwa." }
  ]
}

Chat + RAG

Send message history or retrieved documents.

API keys

Keys are issued after admin approval.

Usage limits

Each plan has request and response caps.

Kinyarwanda first

Designed for local-language production workflows.

Ingero za code

Koresha izi ngero kugira ngo uhamagare EjoChat API muri backend cyangwa mobile app yawe.

Endpoint
POST https://api.ejolabs.com/api/v1/subiza
curl -X POST "https://api.ejolabs.com/api/v1/subiza" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: kgpt_your_api_key_here" \
  -d '{
    "messages": [
      {"role": "user", "content": "Muraho! Mwadufasha?"}
    ]
  }'

Error codes

Izi ni codes zikunze kugaruka iyo request idakunze cyangwa hari limits zarenze.

Status
Code
400
INVALID_REQUEST
The request body does not match the selected mode.
Check whether you are sending chat fields or RAG fields.
401
UNAUTHORIZED
The API key is missing, invalid, or expired.
Send a valid ejochat_ key using X-API-Key or Authorization.
402
PAYMENT_REQUIRED
The trial ended or billing is not active.
Activate billing or contact Ejo Labs.
403
FORBIDDEN
The tenant or key exists but cannot use the API.
Check tenant status and whether the key was revoked.
422
VALIDATION_ERROR
Required fields are missing or limits were exceeded.
Review message count, document count, and character limits.
429
RATE_LIMITED
The tenant exceeded per-minute or daily quota.
Back off, retry later, or upgrade the plan.
503
PROVIDER_UNAVAILABLE
The upstream model provider is temporarily unavailable.
Retry with exponential backoff.
500/502
INTERNAL_ERROR
Unexpected server failure or strict JSON validation failure.
Retry once and report the request_id if it continues.

Subscription plans

Hitamo category ijyanye n'uko uteganya gukoresha API. Admin ayemeza mbere y'uko key itangwa.

Umukiriya wese wemejwe abanza igerageza ry’amasaha 48. Plan wahisemo itangira ubwishyu bwemejwe.

Ejo Free

Students, self-developers, learners

free
50 requests/day
1,500 response tokens
No payment required

A lightweight free plan for learning, experiments, and early prototypes.

Email supportServer-side API key accessSME-friendly starter limits
Tangira kuri iyi plan

Basic

researchers and early pilots

2,500 RWF/ bundle
250 requests/bundle
2,048 response tokens
Server-side API access

Best entry point for controlled pilots and research workflows.

Email supportServer-side API key accessSME-friendly starter limits
Tangira kuri iyi plan

Business

Growing businesses and product pilots

RWF 75,000/month
3,500 requests/day
2,048 response tokens
Priority support

Product pilots and operational workflows.

Higher request limitsUsage review supportPriority issue handling
Tangira kuri iyi plan

Enterprise

Large teams, SLA, or custom terms

Custom
Custom daily quota
4,096 response tokens
Custom terms and SLA

Custom commercial, governance, and support package.

Custom SLADedicated onboardingCustom quotasGovernance and procurement support
Tangira kuri iyi plan

Uko bikorwa

1

Kora konti cyangwa winjire muri tenant portal.

2

Hitamo plan, usobanure company, use case, n'ubwinshi bw'ibisabwa.

3

Admin yemeza application; free trial igahita itangira.

4

Urema API key, ukayibika server-side, ugatangira kohereza requests.