LLM4Free Documentation Hub

June 26, 2026 ยท View on GitHub

Last updated: 2025-12-20
Maintained by LLM4Free

Welcome to the central entry point for everything you need to know about LLM4Free. This hub is organized around the actual modules that live inside the repository so you can quickly jump from high-level concepts to concrete implementation details.

๐Ÿ“š Complete Documentation Index โ†’

Navigate all docs, find learning paths, search by use case, and get started quickly!


๐Ÿ”— Quick Navigation

TopicWhy it mattersPrimary Reference
Overall architectureUnderstand how CLI, server, client, providers, and extras fit togetherdocs/architecture.md
Command line toolingDetailed reference for every llm4free CLI command and optiondocs/cli.md
Unified Python clientAuto-failover chat & image client backed by llm4free/client.pydocs/client.md
Model registryEnumerate LLM, TTS, and TTI models exposed via llm4free/models.pydocs/models.md
OpenAI-compatible API serverDeploy FastAPI server that proxies any LLM4Free providerdocs/openai-api-server.md
Search stackDuckDuckGo/Yep/Bing/Yahoo engines + CLI usagedocs/search.md
HTML parser & crawlerDeep dive into llm4free/scoutdocs/scout.md
Stream sanitizersAdvanced SSE/HTTP stream processing utilitiesdocs/sanitize.md
Decorators & utilitiesRetry/timing helpers from llm4free/AIutel.pydocs/decorators.md
Docker & deploymentImages, compose profiles, env varsdocs/DOCKER.md
GGUF toolingModel conversion helpers (llm4free/Extra/gguf.py)docs/gguf.md
Inferno local LLMsRun local servers compatible with LLM4Free providersdocs/inferno.md
LitPrinterDebug printing companion shipped with LLM4Freedocs/litprinter.md
LitAgentAdvanced User Agent & IP rotation toolkitdocs/litagent.md
Weather toolkitWeather + ASCII weather helpers inside llm4free/Extradocs/weather.md
ZeroArt ASCII generatorZero-dependency ASCII art text generator with multiple fonts and effectsdocs/zeroart.md
Provider matrixComplete list of providers and locationsProvider.md

๐Ÿงญ How to Use This Hub

  1. Start with the architecture overview if you are new to the codebase or planning a big change. It explains the flow between public interfaces, search engines, providers, and helper modules.
  2. Jump into topic-specific guides (CLI, client, server, search, etc.) once you know which layer you want to extend.
  3. Reference module-level docs (decorators, sanitizer, scout, GGUF, etc.) for implementation details or API signatures.
  4. Use the provider matrix whenever you need to locate a provider implementation quickly.

๐Ÿ—‚๏ธ Project Map at a Glance

  • llm4free/cli.py โ€“ Rich CLI built on swiftcli with commands for DuckDuckGo, Yep, Bing, Yahoo, and weather utilities.
  • llm4free/client.py โ€“ Unified chat + image client with intelligent provider/model resolution and automatic failover.
  • llm4free/server/ โ€“ FastAPI-based OpenAI-compatible server (docs/openai-api-server.md covers routes, config, env vars).
  • llm4free/search/ โ€“ Shared search abstractions (DuckDuckGo, Yep, Bing, Yahoo) plus result formatting helpers.
  • llm4free/Provider/ โ€“ Provider implementations (normal + OpenAI-compatible) including AI search, TTI, TTS, STT, and experiments.
  • llm4free/Extra/ โ€“ Auxiliary toolkits like GGUF conversion, weather clients, temp mail, Git/YouTube utilities.
  • docs/ โ€“ This folder: each guide is sourced directly from the modules above so it stays true to the code.

๐Ÿ†• Recently Added Docs

  • Architecture Overview โ€” visual + textual description of the runtime layers.
  • CLI Reference โ€” exhaustive explanation of llm4free command families.
  • Unified Client Guide โ€” how to leverage the Client failover logic from Python code.
  • Model Registry Guide โ€” using model.llm, model.tts, and model.tti helpers.

๐Ÿ™Œ Contributing to Documentation

  • When you add a feature, update or append the relevant topic in this hub so future contributors can find it.
  • If you introduce a brand new area (e.g., a new toolkit under llm4free/Extra), create a dedicated doc and list it in the table above.
  • Keep examples synchronized with the code (import paths, parameter names, defaults, and behaviors should match the actual modules).

Need something that is not documented yet? Open an issue or PR and link back to this hub so we can keep the map current.