On this page
Build with router.africa
One API for the best models. Point your OpenAI or Anthropic SDK at https://api.router.africa/v1, add your key, and keep your code as it is.
Start here
Quickstart
Get a key and send a request with curl, Python or TypeScript in about five minutes.
Look it upAPI Reference
Every endpoint, with its parameters, responses, errors and code samples.
Switching takes one line
router.africa speaks the OpenAI and Anthropic wire formats. Change the base URL and the key; everything else in your app stays the same.
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.router.africa/v1", # the only change
api_key=os.environ["ROUTER_AFRICA_API_KEY"],
)