1

Install Python & pip

G4F requires Python to run. Ensure that you have Python installed on your system. You can check if you have Python installed by running the following command in your terminal:

user@mac-air:~$ python3 --version
> Python 3.11.6
We recommend using the latest python version 3.12.0, or python 3.10+ at least.
2

Install g4f

You can install g4f using pip:

pip install -U g4f
3

Use g4f

All set ! You can now navigate to Basic Usage for further instructions.

Start using g4f

Basic Usage Instructions for g4f