OEvortex/llm4free

LLM4Free — All-in-one Python toolkit for web search, AI interaction (40+ free providers), digital utilities, and more. Formerly WebScout.

What it solves

LLM4Free provides a unified Python interface for accessing over 40 different AI models, including free and paid providers. It eliminates the need to learn multiple different SDKs or manage numerous API keys by wrapping them in a single, consistent API that is compatible with the OpenAI SDK.

How it works

The toolkit uses a unified Client that implements the client.chat.completions.create method. Users can specify a specific provider (e.g., HeckAI/google/gemini-2.5-flash-preview) or use model="auto" to let the library automatically select a working provider and handle failover if an endpoint goes down. It also includes a local FastAPI server that allows any OpenAI-compatible application to point to LLM4Free as a backend.

Who it’s for

Developers who want to integrate multiple AI models (text, image, and voice) into their applications without being locked into a single provider, and those looking for free AI model access without requiring API keys.

Highlights

  • OpenAI Compatibility: Uses the same interface as the OpenAI Python SDK for seamless switching between providers.
  • Auto-Failover: Automatically retries across different providers to ensure high availability.
  • Multi-Modal Support: Integrated support for text-to-image (TTI) and text-to-speech (TTS) generation.
  • Web Search Integration: Built-in access to multiple search engines like DuckDuckGo, Bing, and Brave.
  • Local API Server: A drop-in OpenAI-compatible server to serve any supported provider locally.
  • Developer Toolbox: Includes utility tools for web crawling (Scout), GitHub data extraction, and GGUF conversion.