Use the DeepSeek V4.1 Flash API and pay with M-Pesa in KES: top up from $5 or take the KES 200 a week plan, then call deepseek-v4.1-flash on an OpenAI-compatible endpoint.
DeepSeek's own API wants a card. Fikra serves the same DeepSeek V4.1 Flash model on an OpenAI-compatible endpoint and takes M-Pesa, with the KES amount shown before you confirm.
from openai import OpenAI
client = OpenAI(base_url="https://api.fikraapi.co.ke/v1", api_key="fk_...")
response = client.chat.completions.create(
model="deepseek-v4.1-flash-1017",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Base URL: https://api.fikraapi.co.ke/v1. Default model: deepseek-v4.1-flash-1017.