U API

Uhuru API

Build AI-powered apps with Africa's intelligence. OpenAI SDK compatible.

Uhuru API

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.

Quick Start

1

Generate an API key

Go to → API Keys and create a new key.

2

Make your first request

bash
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!"}
    ]
  }'
3

Or use the OpenAI Python SDK

python
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)

Key Features

African Context Awareness

Regionally optimised responses with support for Setswana, Swahili, and more.

OpenAI-Compatible

Drop-in replacement — works with the OpenAI Python & Node SDKs.

Streaming Support

Real-time SSE streaming with data: [DONE] termination.

Secure by Default

SHA-256 hashed API keys, per-minute + monthly rate limiting, HTTPS only.

Base URL

https://ucloud.orionx.xyz/functions/v1/uhuru-public-api/v1

Available Models

ModelDescription
uhuru-4U4 frontier agentic model with U Cloud tools, vision, and web search. Default model.
uhuru-3.1Legacy compatibility alias for uhuru-3.5.
uhuru-3.1-polymathAdvanced reasoning and multi-document generation.
uhuru-3.5-multimodalImage understanding and vision capabilities.

Rate Limits

TierPer MinutePer Month
Free100 requests1,000 requests
Essential100 requests10,000 requests
Pro100 requests100,000 requests
Plus100 requests500,000 requests

Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.