Build AI-powered apps with Africa's intelligence. OpenAI SDK compatible.
Build AI-powered applications with Uhuru's Chat Completions API. The API is fully compatible with the OpenAI SDK format, so you can drop it into existing projects by changing the base URL and API key.
Generate an API key
Go to → API Keys and create a new key.
Make your first request
curl -X POST https://ucloud.orionx.xyz/functions/v1/uhuru-public-api/v1/chat/completions \
-H "Authorization: Bearer uhuru_sk_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"model": "uhuru-4",
"messages": [
{"role": "user", "content": "Hello from Africa!"}
]
}'Or use the OpenAI Python SDK
from openai import OpenAI
client = OpenAI(
api_key="uhuru_sk_YOUR_KEY_HERE",
base_url="https://ucloud.orionx.xyz/functions/v1/uhuru-public-api/v1",
)
response = client.chat.completions.create(
model="uhuru-4",
messages=[{"role": "user", "content": "Hello from Africa!"}],
)
print(response.choices[0].message.content)Regionally optimised responses with support for Setswana, Swahili, and more.
Drop-in replacement — works with the OpenAI Python & Node SDKs.
Real-time SSE streaming with data: [DONE] termination.
SHA-256 hashed API keys, per-minute + monthly rate limiting, HTTPS only.
https://ucloud.orionx.xyz/functions/v1/uhuru-public-api/v1| Model | Description |
|---|---|
uhuru-4 | U4 frontier agentic model with U Cloud tools, vision, and web search. Default model. |
uhuru-3.1 | Legacy compatibility alias for uhuru-3.5. |
uhuru-3.1-polymath | Advanced reasoning and multi-document generation. |
uhuru-3.5-multimodal | Image understanding and vision capabilities. |
| Tier | Per Minute | Per Month |
|---|---|---|
| Free | 100 requests | 1,000 requests |
| Essential | 100 requests | 10,000 requests |
| Pro | 100 requests | 100,000 requests |
| Plus | 100 requests | 500,000 requests |
Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.