← All work
03 — The strategist / tool / PersonalOpen source

freelm.

Free LLM API Gateway for Python & Node.js

01 / The idea

freelm is an open-source Python and Node.js gateway that pools free-tier LLM providers behind one fault-tolerant, OpenAI-compatible call.

freelm is an open-source gateway that pools six free-tier LLM providers—OpenRouter, Google AI Studio (Gemini), NVIDIA NIM, Groq, Cerebras, and Mistral—behind one fault-tolerant, OpenAI-compatible call. It handles automatic failover, circuit breaking, rate-limit awareness, and live free-model discovery. Available on PyPI and npm.

02 / What matters
  • 01

    Combine OpenRouter, Gemini, NIM, Groq, Cerebras, and Mistral

  • 02

    Automatic Failover across keys and providers

  • 03

    Drop-in OpenAI API shim (`freelm.compat.OpenAI`)

  • 04

    Available for Python (PyPI) and Node.js/TypeScript (npm)

Next / Keep exploring

There’s more.

Have a challenge in this space?

Let’s talk about it ↗
Shihab portraying Goku in an anime-inspired costume, keeping his own facial identity
The other lives of Shihab

01/ 08

The pursuit of better.

Goku — Dragon Ball

A training arc never really ends.

Personal cosplay artwork. Same face. A different world.Enter the six-form training arc ↗
A little energy from the whole world.
1 of 8