$npx skillfedfor your agent

g4f

The official gpt4free repository | various collection of powerful language models

With conditionsPyPI Artificial IntelligenceReleased Aug 2026138.2K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — g4f-8.1.6-py3-none-any.whl
v8.1.6 · released 2026-08-13 · 5 runtime deps: requests, aiohttp, brotli, pycryptodome, nest-asyncio2

Yes, with conditions. Install if you need multi-provider LLM or media-generation access and can accept Pre-Alpha stability and an unclear license. The low install friction, active maintenance, and large community are strong signals. However, verify the license terms before production use, understand that underlying providers may change or restrict access, and test provider stability for your use case. Not suitable for mission-critical applications without additional due diligence.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Python 3.10+ required.
  • Some providers require Chrome/Chromium for browser automation; check provider-specific documentation.
  • Low install friction with a pure-Python wheel and five runtime dependencies.

License · maintenance · safety

(unclear) — License treatment is unclear—no SPDX identifier or raw license text is recorded. Verify the actual license terms at the project repository before use, particularly if integrating into proprietary or commercial work.

last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 66,551 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 138,223 downloads/mo, #11,336 on PyPI

Verify before relying

pip install -U g4f[all]

from g4f.client import Client

client = Client()
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
  • Stability and uptime guarantees for aggregated third-party providers are not documented in the fact sheet.
  • Terms of service compliance for accessing underlying providers through g4f is not specified.
  • Performance characteristics (latency, rate limits) across different providers are not quantified.
  • Data retention and privacy handling for requests routed through the aggregator are not detailed.
Same gist for agents: .md · .json

What it is and what it does

GPT4Free (g4f) is a community-driven aggregator that wraps multiple LLM and media-generation providers into a single Python client library, REST API, and web GUI. It abstracts away provider-specific authentication and API differences, presenting a unified OpenAI-compatible interface for text generation, image creation, and local inference. The package ships with five runtime dependencies (requests, aiohttp, brotli, pycryptodome, nest-asyncio2) and supports both synchronous and asynchronous usage patterns.

The project provides multiple deployment options: a pure Python pip install, Docker containers (full and slim variants for x86_64 and arm64), a Windows .exe launcher, and an MCP (Model Context Protocol) server for integration with AI assistants. It includes a web GUI, FastAPI-based Interference API, CLI tools, and a JavaScript browser client. While actively maintained and popular (66551 GitHub stars, 138223 monthly downloads), it carries Pre-Alpha status and an unclear license, so production use should be preceded by legal review and provider compliance verification.

Use it for

  • Build a chatbot or text-generation application that can switch between multiple LLM providers without code changes.
  • Generate images programmatically by routing requests to multiple image-generation services through a single interface.
  • Run a local web GUI or REST API server that aggregates free or accessible LLM access for team use.
  • Integrate web search, scraping, and image generation into Claude or other AI assistants via the MCP server.
  • Prototype or test AI features without committing to a single commercial provider's API and pricing.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, with conditions.

Install if you need multi-provider LLM or media-generation access and can accept Pre-Alpha stability and an unclear license. The low install friction, active maintenance, and large community are strong signals. However, verify the license terms before production use, understand that underlying providers may change or restrict access, and test provider stability for your use case. Not suitable for mission-critical applications without additional due diligence.

Install

g4f on PyPI

Before you install

Low install friction with a pure-Python wheel and five runtime dependencies. Actively maintained with a release one day old and 66551 GitHub stars, though classified as Pre-Alpha development status.

Python 3.10+ required. Some providers require Chrome/Chromium for browser automation; check provider-specific documentation.

License in practice

License treatment is unclear—no SPDX identifier or raw license text is recorded. Verify the actual license terms at the project repository before use, particularly if integrating into proprietary or commercial work.

Quickstart

pip install -U g4f[all]

from g4f.client import Client

client = Client()
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Verify before relying

  • Stability and uptime guarantees for aggregated third-party providers are not documented in the fact sheet.
  • Terms of service compliance for accessing underlying providers through g4f is not specified.
  • Performance characteristics (latency, rate limits) across different providers are not quantified.
  • Data retention and privacy handling for requests routed through the aggregator are not detailed.

Package facts

LicenseNot declared unclear
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
requestsaiohttpbrotlipycryptodomenest-asyncio2
MaintenanceActively maintained 1 days since the last release
Last repo commit
First released
Downloads138,223 / month, #11,336 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: Python :: 3

Evidence: g4f-8.1.6-py3-none-any.whl

Tags

Capabilities
multi-provider llm clientopenai-compatible api wrapperfree language model accessimage generation aggregatorgpt4free python sdk
Topics
llm-aggregatoropenai-compatiblemulti-provider
PyPI keywords
gpt4freegpt4free.jsg4fg4f.devjavascriptnpmbrowsergptchatgptdeepseekopenaiaiclientsdkfreeaigpt-4gpt-4ochatapibrowseraiaijsclienttextgenerationimagegenerationin-browseraifrontendaiopenaialternativejavascriptailibrarynodejspromptengineeringchatbotaiintegration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “free language model access”

  • g4fAggregates multiple LLM and media-generation providers into a unified…
  • llm-github-modelsA plugin for the llm command-line tool that provides access to GitHub…
  • systemrdl-compilerParses and elaborates SystemRDL 2.0 register description language…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also litellm-enterprise · ollama · unclecode-litellm · fhlmi · llm-github-models · abstract-hugpy-dev · oci-openai · instructor · any-llm-sdk