GPT
OpenAI
General-purpose flagship for chat, coding, tool use and structured output.
Antananarivo, Madagascar · Serving Africa
One API key for every AI model
Chat with GPT, Claude, Gemini, DeepSeek, GLM and Kimi. Create images with GPT Image 2.5, Grok Imagine and Nano Banana. Generate video with Seedance, Wan 3.0 and MiniMax H3. One endpoint and one balance, built for developers and businesses across Africa.
Pick a model and a language. The same key and the same base URL work for text, images and video.
curl https://api.madafri.com/v1/chat/completions \
-H "Authorization: Bearer $MADAFRI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"messages": [
{
"role": "user",
"content": "Explain how a mobile money payment API works, in three short sentences."
}
]
}'
Example request. Exact model IDs and parameters are listed in your console.
Switch models by changing one string. New versions are added as they ship.
OpenAI
General-purpose flagship for chat, coding, tool use and structured output.
Anthropic
Strong on long documents, careful writing, coding and agent workflows.
Multimodal by default: text, images, audio and very long context.
DeepSeek AI
High-value reasoning and coding models with open weights.
Zhipu AI · Z.ai
Bilingual general models with solid agent and coding skills at low cost.
Moonshot AI
Long-context models tuned for research, coding and agentic tasks.
OpenAI
OpenAI’s newest image model: faster generation, faithful edits and consistent style across a series.
xAI
xAI’s image model for quick, vivid drafts and social-ready visuals.
Google’s Gemini image model, strong at precise edits, layouts and legible text in images.
Not a model showroom: a shorter path from an idea to a working product.
Prototype with the best model for each job without opening six provider accounts.
Turn briefs into images and video for campaigns, social content and product pages.
Add assistants, document processing and translation to the tools your teams already use.
Give students and cohorts hands-on access to frontier models with one shared setup.
If your code already talks to the OpenAI API, you are one line away.
Sign up in the console and create an API key for each project or environment.
Top up your balance and pay only for what you use. Live per-model rates are shown in the console.
Set the base URL to api.madafri.com/v1, keep your existing SDK and choose any model.
Submit a job, poll the task, download the clip. Per-second rates are shown live in the console.
ByteDance
Billed per second · live rate in console
New-generation multimodal generation and editing, for longer takes and richer references.
ByteDance
Billed per second · live rate in console
A dependable workhorse for everyday commercial work, from quick drafts to key shots.
Alibaba
Billed per second · live rate in console
Long clips from almost any input, including documents and slides.
MiniMax · Hailuo
Billed per second · live rate in console
One multimodal model for generating, referencing and editing video with sound.
MadAfri speaks the OpenAI API format, so SDKs, agent frameworks and editors that accept a custom base URL work out of the box. Change two environment variables and ship.
Read the API docs# .env: the only two lines that change
OPENAI_BASE_URL="https://api.madafri.com/v1"
OPENAI_API_KEY="sk-madafri-..."
# then use any OpenAI-compatible client
from openai import OpenAI
client = OpenAI()
client.chat.completions.create(model="deepseek-v4", messages=[...])
The essentials on access, billing and compatibility.
An all-in-one AI platform from Antananarivo, Madagascar. You get one API key and one balance for text, image and video models from many providers, instead of managing a separate account for each.
Yes. The API follows the OpenAI format. Set the base URL to https://api.madafri.com/v1, use your MadAfri key and pick a model. Official OpenAI SDKs and most frameworks that accept a custom base URL work unchanged.
Pay as you go, with no subscription. Text models are billed by tokens, images per image and video per second. The current rate for every model is shown in the console before you call it.
GPT, Claude, Gemini, DeepSeek, GLM and Kimi for chat; GPT Image 2.5, Grok Imagine and Nano Banana for images; Seedance 2.5 and 2.0, Wan 3.0 and MiniMax H3 for video. The console always lists what is live.
Top-up options are shown in the console when you add credit. For help, message us on our Facebook page and we will reply in English or French.
No. MadAfri is an independent gateway. Model names and brands belong to their respective owners, and each provider’s usage policies still apply to your requests.