Install gpt4free using Winget - wingetCollections
Go back Packages gpt4free
Use this command to install gpt4free:
winget install --id=gpt4free.g4fexe -e Copy WinGet command to clipboard Primary Purpose:
GPT4Free is an official one-click Windows installer designed to simplify the setup and use of GPT4Free, making it accessible for users seeking efficient AI solutions without complex installations.
Key Features:
One-Click Installation: Requires no technical expertise, enabling seamless setup.
Portability: Operates without system changes, ensuring a clean installation process.
Optimized Size: Installs in just 149 MB, minimizing resource usage.
Compatibility: Supports multiple Windows versions from Vista to 11.
API and GUI Options: Offers both web interface and REST API for versatile access.
Winget Installation: Can be installed via winget, providing a straightforward method for users familiar with package managers.
Audience & Benefits:
Ideal for users seeking an efficient AI experience, GPT4Free saves time through its ease of use, reduces system impact with minimal resource usage, and ensures compatibility across various operating systems. It benefits those who value simplicity and efficiency in their AI tools, offering a user-friendly platform without the need for extensive technical knowledge.
README g4f.exe - Official Windows Launcher
Official one-click installer for g4f (gpt4free) !
⨠Features
š One-click installation - No technical knowledge needed
š¦ Portable - No system changes, everything self-contained
š¾ Optimized - Only 149 MB installed (75% smaller than full install)
š API + GUI - Both web interface and REST API included
š„ļø Wide compatibility - Windows Vista/7/8.1/10/11 support
š Desktop shortcut - Easy server startup
ā” Fast - 2-5 minute installation
š„ Download
Download Latest Release
š„ Download Options
Option 1: Installer (Recommended)
Download g4f_launcher.exe (~500 KB)
Automatically downloads and installs Python + g4f
Choose Optimized (300 MB) or Full (600 MB)
Option 2: Portable (Pre-installed)
Download gpt4free_portable_preinstalled.zip (~600 MB)
Python and g4f already installed
Just extract and run
No installation needed
This is for when youre having trouble with option 1
Or build from source (see below)
šÆ System Requirements
Recommended
Windows 10 or Windows 11 (64-bit)
4 GB RAM
500 MB free disk space
Minimum
Windows 8.1 (64-bit)
2 GB RAM
200 MB free disk space
ā ļø Windows Vista/7 (Experimental Support)
Windows Vista and 7 have limited support due to outdated TLS/SSL:
1.0.2
Copy WinGet command to clipboard
ā
Launcher detects Vista/7 automatically
ā
Offers community-built Python 3.12.10 (Vista/7 compatible)
ā
All g4f features work once installed
ā Automatic downloads may fail due to TLS 1.0/1.1 limitations
ā Vista/7 cannot connect to modern HTTPS sites (GitHub, python.org require TLS 1.2+)
ā Microsoft ended support (Vista: 2017, Win7: 2020)
Manual Installation Workaround:
If automatic downloads fail on Vista/7:
On a modern computer , download:
Transfer to Vista/7 (USB, network, etc.)
Extract to python-embed folder next to g4f_launcher.exe
Run launcher again - continues installation automatically
Recommendation: Upgrade to Windows 10/11 for better security and compatibility.
š Quick Start
Download g4f_launcher.exe from releases
Run the executable
Choose installation type:
Optimized (149 MB) ā Recommended - API + GUI + all providers
Full (600 MB) - Everything + extras (markdown converters, etc.)
Wait for installation (~1-2 minutes for optimized)
Browser opens automatically to http://localhost:8080/chat/
Start chatting! š
š Installation Types Type Size Install Time What's Included Optimized ā149 MB 1-2 min API, GUI, all providers, essential dependencies Full 600 MB 4-5 min Everything + markdown converters & extras
What's Skipped in Optimized?
Markdown file converters (Word/Excel/PDF ā markdown)
Browser automation (nodriver)
Desktop webview components
Other rarely-used extras
All chat, API, and provider features work perfectly in Optimized mode!
š ļø What Gets Installed
ā
Portable Python 3.12 (3.12.10 for Vista/7)
ā
g4f (gpt4free) package
ā
FastAPI + Uvicorn (API server)
ā
Flask + Werkzeug (Web GUI)
ā
All provider dependencies
ā
Desktop shortcut: "Start G4F Server"
Everything is portable - no system changes, no registry entries!
š® Usage
Starting the Server Method 1: Double-click "Start G4F Server" desktop shortcut
cd path\to\g4f
python-embed\python.exe -m g4f.cli api --port 8080
Accessing g4f
API Example curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Stopping the Server Close the server console window or press Ctrl+C
š§ Troubleshooting
Server won't start
Check if port 8080 is in use: netstat -ano | findstr :8080
Try different port: python-embed\python.exe -m g4f.cli api --port 8081
Check Windows Firewall settings
"Module not found" errors python-embed\python.exe -m pip install g4f
python-embed\python.exe -m pip install fastapi uvicorn flask werkzeug a2wsgi
Browser doesn't open automatically
Vista/7 download failures
šļø Building from Source
Prerequisites
Windows 10/11
Visual Studio 2019 or newer (with C++ tools)
CMake 3.10+
Git
Build Steps # Clone repository
git clone https://github.com/gpt4free/g4f.exe.git
cd g4f.exe
# Build with CMake
mkdir build
cd build
cmake ..
cmake --build . --config Release
# Output: g4f.exe in build/Release/
Using CLion (Recommended)
Open project in CLion
Select Release configuration
Build ā Build Project
Output in cmake-build-release/
š Project Structure g4f.exe/
āāā main.cpp # Main launcher logic
āāā gui.cpp # GUI implementation
āāā gui.h # GUI header
āāā version.rc # Version info & resources
āāā CMakeLists.txt # Build configuration
āāā README.md # This file
āāā VISTA-SUPPORT.md # Vista/7 detailed guide
š¤ Contributing Contributions are welcome!
Fork the repository
Create feature branch: git checkout -b feature-name
Commit changes: git commit -am 'Add feature'
Push to branch: git push origin feature-name
Submit Pull Request
š Credits
š License MIT License - See LICENSE file for details
ā ļø Disclaimer This is the official Windows launcher for g4f.
š Issues & Support
Star ā the repo if you find it useful!