This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.
Unofficial reverse engineered free api for imageFX from labs.google
Unofficial reverse engineered free api for imageFX from labs.google
# imageFX-api (imagen) Unofficial free reverse engineered api for imageFX(imagen) service provided by [labs.google](https://labs.google) Try live demo [here](https://imagefx.rohitsharma.com.np). *(Can be down)*  ## Installation ```bash npm i -g @rohitaryal/imagefx-api # or bun i -g @rohitaryal/imagefx-api ``` ## Features 1. Text to image using `IMAGEN_4` 2. Image to text 3. Command line support ## Usage `imagefx` can be invoked through both command line and as a module. Command Line Make sure you have: 1. Installed `imagefx` globally ([How to install?](#installation)) 2. Obtained your google account cookies ([How to get cookies?](#help)) 3. Set env variable `GOOGLE_COOKIE` containing your cookie Bash: ```bash export GOOGLE_COOKIE="__YOUR__COOKIE__HERE__" ``` Command Prompt: ```bat set "GOOGLE_COOKIE=__YOUR__COOKIE__HERE__" ``` Powershell: ```ps $GOOGLE_COOKIE = "__YOUR__GOOGLE__COOKIE__HERE__" ``` #### Basic Usages > **NOTE:** > If you are using environment variables, keep the quotes around cookie to avoid word-splitting and authentication errors. > > - Linux/macOS: `"$GOOGLE_COOKIE"` > - PowerShell: `"$env:GOOGLE_COOKIE"` > - Command Prompt: `"%GOOGLE_COOKIE%"` - Generating image with prompt ```bash # saves generated image at current directory imagefx generate --prompt "A bad friend" --cookie "$GOOGLE_COOKIE" ``` - Selecting a specific model ```bash # please refer to --help for listing all models imagefx generate --prompt "An evil company" --model "IMAGEN_3_5" --cookie "$GOOGLE_COOKIE" ``` - Selecting a specific aspect ratio ```bash # please refer to --help for listing all aspect ratio imagefx generate --prompt "Reptil
Ask questions or discuss this product. New comments are reviewed before publishing.
Loading comments...