API Reference
A clean API for African AI.
RESTful and familiar. If you've used any major LLM API, you'll feel at home in minutes. Full documentation is on its way.
Authentication
Authenticate requests using a Bearer token in the Authorization header. API keys are prefixed with sk-rnt-.
Authorization header
Authorization: Bearer sk-rnt-xxxxxxxxxxxxChat Completions
Send messages to any Rantera model and receive completions. The primary endpoint for all conversational, reasoning, and generative tasks.
RequestPOST
POST https://api.rantera.ai/v1/chat/completions
Authorization: Bearer sk-rnt-...
Content-Type: application/json
{
"model": "rant-ai",
"messages": [
{
"role": "system",
"content": "You are a cybersecurity specialist with deep knowledge of African threat landscapes."
},
{
"role": "user",
"content": "Analyze this vulnerability report and suggest remediation steps..."
}
],
"max_tokens": 1024,
"temperature": 0.3
}Response200 OK
{
"id": "rnt-chat-a7f3b2c1d0e9",
"object": "chat.completion",
"created": 1751400000,
"model": "rant-ai",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Based on the vulnerability report, here are the key findings and remediation steps..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 87,
"completion_tokens": 412,
"total_tokens": 499
}
}Full documentation, including all endpoints, SDKs, and guides, is coming soon.
Want early access to the API? Join the Rantera developer waitlist.
Get early API access