Developer Documentation
Build on Rantera's platform.
RESTful APIs, OpenAI-compatible SDKs, and six purpose-built African models. From your first call to production in minutes.
Quick start
Three steps from zero to your first Rantera response.
01
Create your account
Sign up for a free Rantera account. Your API key is generated automatically and available in your dashboard under Settings → API Keys.
Create account02
Make your first request
Use cURL, Postman, or any HTTP client. Replace sk-rnt-... with your API key.
cURL
curl https://api.rantera.ai/v1/chat/completions \
-H "Authorization: Bearer sk-rnt-..." \
-H "Content-Type: application/json" \
-d '{
"model": "hira",
"messages": [
{ "role": "user", "content": "Hello, how are you?" }
]
}'03
Read the response
Responses follow the OpenAI format. The model's reply is in choices[0].message.content.
SDKs & Libraries
The Rantera API is OpenAI-compatible. Install the OpenAI SDK for your language, point it at https://api.rantera.ai/v1, and you're done.
JavaScript / TypeScript
npm install openaiimport OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.rantera.ai/v1',
apiKey: 'sk-rnt-...',
});
const response = await client.chat.completions.create({
model: 'hira',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);Python
pip install openaifrom openai import OpenAI
client = OpenAI(
base_url="https://api.rantera.ai/v1",
api_key="sk-rnt-...",
)
response = client.chat.completions.create(
model="hira",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Ready to build?
Free to start. No credit card required. Your first API key is one click away.