Skip to content

script for bulk Kandinsky/FusionBrain AI image generation with API key rotation, auto-saving, rate-limiting, progress tracking, and failover handling, perfect for datasets, content creation & API testing

Notifications You must be signed in to change notification settings

serpo-dev/python-kandinsky-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Python Kandinsky API

Async Multi-Key AI Image Generator Kandinsky API

  • ⚡ Asynchronous requests
  • 🔑 Supports multiple API keys
  • 📊 Progress tracking
  • 🖼️ Automatic image saving with unique names
  • ⚙️ Configurable image size and count

Quick Start

  1. Install requirements

    pip install aiohttp tqdm
  2. Create keys.txt with your API keys (format: token:key)

    echo "YOUR_TOKEN:YOUR_KEY" > keys.txt
  3. Run the generator

    python main.py

Configuration

Edit these variables in main.py:

  • prompt - Your generation prompt
  • total_images_per_key - Images to generate per API key
  • output_dir - Output directory (default: "output")

Keywords

AI, image-generation, fusionbrain, kandinsky, python, async, api, bulk-processing, content-creation, dataset-generator, neural-networks, automation

Releases

No releases published

Packages

No packages published

Languages