FreeLLMAPI aggregates 1,313 free model endpoints into one API

FreeLLMAPI provides a single OpenAI-compatible endpoint to access free tiers from 87 LLM providers, offering up to 10.1 billion tokens per month.

cpaua3 min457
FreeLLMAPI aggregates 1,313 free model endpoints into one API

Tashfeen Ahmed has released tashfeenahmed/freellmapigithub.com/tashfeenahmed/freellmapi, an open-source tool that aggregates free tiers from dozens of AI providers into a single OpenAI-compatible API. The system allows users to combine fragmented free quotas from 87 providers and 1,313 model endpoints, resulting in a total capacity of approximately 10.1 billion tokens per month. This eliminates the need to manage multiple SDKs or manually switch between different provider interfaces.

Automated routing and quota management

The tool functions as a router that manages requests across various providers based on the API keys the user provides. It handles routing between models, tracks request limits, and performs automatic failover by switching to another provider when a rate limit is reached. This ensures that the user stays under the free-tier caps of each individual service while maintaining a steady stream of inference.

The system uses six different routing strategies, utilizing live scores for speed, capability, and reliability to rank the chain of models. It also supports load balancing between providers and encrypted storage for API keys to maintain security during personal experimentation.

Support for diverse modalities and formats

Beyond standard chat completions, the tool supports a wide range of OpenAI-style surfaces, including embeddings, image generation, video generation, and audio speech or transcriptions. It can route these requests to providers that serve media models or to custom OpenAI-compatible endpoints such as vLLM, LM Studio, or a local Ollama instance.

The API also implements the Anthropic Messages format via the /v1/messages endpoint, allowing official Anthropic SDKs and tools like Claude Code to operate against the aggregated free pool. For those building AI agents, the system provides native Gemini and Ollama emulation to support clients like Zed and JetBrains AI.

Multi-model synthesis and tool calling

A specific feature called Fusion allows users to request a virtual fusion model. The router sends the prompt to several diverse free models in parallel, and a separate judge model then synthesizes a single final answer from those drafts. This approach leverages multiple free tiers to improve the quality of a single response.

The system also handles OpenAI-style tool calling and structured outputs. It can rescue plain-text tool calls and convert them into real tool_calls across different providers. It passes through sampling parameters such as seed, logprobs, and penalties to the respective providers.

Integration with coding agents and CLIs

The tool is compatible with numerous coding agents and CLIs, including Cursor, Aider, Cline, and Roo Code. Many of these agents can be configured using a single command that reads the live model catalog and merges it into the existing configuration.

For example, the setup for Claude Code is performed with the following command:

bash
npx freellmapi setup-claude --url http://localhost:3001 --api-key <unified-key>

This integration allows developers to use high-performance code models without managing individual provider accounts for every single request.

Dynamic catalog updates and deployment

The router maintains an updated list of 736 model families by pulling a signed feed from freellmapi.co. This allows the system to incorporate new free models, quota changes, and compatibility fixes without requiring the user to perform a git pull. Free installations receive these updates via a monthly snapshot, while premium routers receive them on the same day.

The project is written in TypeScript and is available for deployment via Docker, as well as through dedicated applications for Windows, macOS, Google Play, and the App Store. It is released under the MIT license for personal experimentation.

Related reading

Sources

tashfeenahmed/freellmapigithub.com/tashfeenahmed/freellmapi
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.