DeepSeek API with M-Pesa

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.

Problem

What this solves.

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.

Steps

Do this in order.

  1. Create an account. qwen3.8-27b is free, no card needed, if you want to test first.
  2. Top up from $5.00 with M-Pesa (KES 133 = $1), or take the Kenya plan: KES 200 a week for every model.
  3. Copy an API key from the dashboard.
  4. Call model deepseek-v4.1-flash at https://api.fikraapi.co.ke/v1 with the OpenAI SDK, Cline, opencode or curl.
  5. Track spend per key and per model in the dashboard.
Quickstart

Copy the snippet.

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.

Get a free key

Troubleshooting

Common errors.

  • 401: the key is missing or inactive. Create a new key in the dashboard.
  • 402: no balance or plan for a paid model. Top up with M-Pesa or start the Kenya plan.
  • 429: the account hit its rate limit. Wait and retry with backoff.
  • Model not found: use the exact ID deepseek-v4.1-flash.

Start free. Pay only for what you use.

Top up from $5.00. No subscription.

Get a free key