A Node.js bot designed to automate image generation on the FluxAI platform using private keys and 2Captcha for reCAPTCHA solving. The bot generates images based on predefined prompts and manages daily credit limits for multiple wallets.
- Automates login and image generation on the FluxAI platform.
- Supports multiple private keys for different wallets.
- Solves reCAPTCHA (v2 and v3) using the 2Captcha service.
- Includes a variety of creative prompts for image generation.
- Schedules daily runs with a countdown timer for the next execution.
- Provides colorful console logging for better monitoring.
- Node.js (v14 or higher)
- A 2Captcha account with an API key
- A
.env
file with your 2Captcha API key and wallet private keys
-
Clone the repository:
git clone https://github.com/vikitoshi/FluxAI-Auto-Bot.git cd FluxAI-Auto-Bot
-
Install dependencies:
npm install
-
Create a
.env
file in the project root and add your 2Captcha API key and private keys:2captchakey=your_2captcha_api_key PRIVATE_KEY_1=your_first_private_key PRIVATE_KEY_2=your_second_private_key
Run the bot with the default maximum of 3 image generations per wallet per day:
node index.js
The bot will:
- Log in to the FluxAI platform using each private key.
- Check available credits for each wallet.
- Solve reCAPTCHA (v2 or v3) using 2Captcha.
- Generate images based on random prompts until the maximum generations or credits are exhausted.
- Schedule the next run 24 hours later, displaying a countdown.
- Prompts: The bot uses a predefined list of creative prompts for image generation. You can modify the
prompts
array in the code to customize them. - Max Generations: By default, the bot attempts up to 3 image generations per wallet per day. Adjust the
maxGenerations
parameter when running the script to change this. - reCAPTCHA: The bot first attempts to solve reCAPTCHA v2, falling back to v3 if needed. Ensure your 2Captcha API key is valid and funded.
The bot uses colored console logs for better visibility:
- Green: Success messages and completions.
- Yellow: Warnings (e.g., no credits left).
- Red: Errors (e.g., login or reCAPTCHA failures).
- Cyan: Loading states and countdown timer.
- White: Step-by-step progress.
- No valid private keys found: Ensure your
.env
file contains valid private keys prefixed withPRIVATE_KEY_
. - 2captchakey not defined: Add your 2Captcha API key to the
.env
file. - reCAPTCHA solving fails: Verify your 2Captcha account has sufficient funds and the API key is correct.
- Login errors: Check the FluxAI platform status and ensure your private keys are valid.
Contributions are welcome! Please:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m "Add your feature"
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
This bot is for educational purposes only. Ensure compliance with the FluxAI platform's terms of service and 2Captcha's usage policies. The author is not responsible for any misuse or consequences of using this bot.