Skip to main content

Multi-provider AI image generation CLI with style presets and platform sizing

Project description

image-creator-tool

Multi-provider AI image generation CLI with style presets, platform sizing, and variant generation.

Features

  • Multi-provider architecture — currently supports Google Gemini; extensible to other providers
  • Style presets — apply reusable prompt templates (editorial, blueprint, ink, risograph, etc.)
  • Platform sizing — auto-resize/crop to target dimensions (YouTube, slides, blog, X, Instagram)
  • Variant generation — generate N variants in parallel with contact sheet
  • Edit mode — modify existing images with text instructions
  • Reference images — anchor style/aesthetic from example images
  • History & replay — browse past generations, replay the last one with again
  • Structured logging — structured output via structlog for diagnostics
  • Sentry integration — optional error tracking

Installation

brew tap vladistan/gizmos
brew install image-creator-tool

Usage

# Generate an image
image-creator-tool generate "a robot playing chess" --preset editorial

# Dry run (see composed prompt without calling API)
image-creator-tool generate "sunset" --dry-run --preset grain --platform youtube

# List available options
image-creator-tool list-presets
image-creator-tool list-platforms
image-creator-tool list-providers

# Regenerate last image
image-creator-tool again

# View history
image-creator-tool history -n 10

# Show version
image-creator-tool --version

Configuration

Configuration file: ~/.config/image-creator-tool/config.toml

default_profile = "vertex-work"
sentry_dsn = ""  # optional

[profile.vertex-work]
provider = "vertex"
gcp_project = "my-project"
gcp_region = "us-central1"
default_model = "flash"

[profile.deepinfra]
provider = "deepinfra"
api_key = "your-key-here"  # pragma: allowlist secret
default_model = "flux-2-dev"

[profile.openrouter]
provider = "openrouter"
api_key = "sk-or-v1-..."  # pragma: allowlist secret

[profile.bedrock]
provider = "bedrock"
aws_profile = "my-aws-profile"
aws_region = "us-west-2"

[profile.openai]
provider = "openai"
api_key = "sk-..."  # pragma: allowlist secret

Switch profiles via --profile / -P flag: image-creator-tool generate "subject" -P deepinfra

Environment variables (override config): IMAGE_CREATOR_DEFAULT_PROVIDER, IMAGE_CREATOR_OUTPUT_DIR, etc.

See config.example.toml for full documentation.

Custom Presets & Platforms

Add your own presets at ~/.config/image-creator-tool/presets.yaml:

my-style:
  description: "My custom style"
  prompt: "{subject} in my unique artistic style"

Custom platforms at ~/.config/image-creator-tool/platforms.yaml:

my-size:
  description: "My custom size"
  width: 1600
  height: 1200

User presets/platforms merge with (and can override) the bundled defaults.

Requirements

  • Python >= 3.13
  • GEMINI_API_KEY environment variable
  • ImageMagick 7 (magick command) for platform resizing and contact sheets

Development

git clone https://github.com/vladistan/image-creator-tool.git
cd image-creator-tool
uv sync

Run checks:

uv run pytest
uv run ruff check src/
uv run mypy src/

Acknowledgments

This tool is an adaptation of the Nano Banana image generation skill by Gleb Kalinin, originally published in the claude-skills repository. The core concepts of multi-provider image generation, style presets, and the CLI workflow all originate from that work.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

image_creator_tool-0.1.1.tar.gz (124.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

image_creator_tool-0.1.1-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file image_creator_tool-0.1.1.tar.gz.

File metadata

  • Download URL: image_creator_tool-0.1.1.tar.gz
  • Upload date:
  • Size: 124.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for image_creator_tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c88ad42c242b0053b2a8779988195bd6f101a4be13e44d4fcec42c38fde91864
MD5 6a922ce3aab16c7068f388ef097fe723
BLAKE2b-256 670d79a622c1e0d65d67b24ce7af671fa73ffaa2ba1fb39d896d7f4892329ec0

See more details on using hashes here.

File details

Details for the file image_creator_tool-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for image_creator_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88d421ed9819978b16b41fa3780f5ce438be88af9908703c3d0e3031a1b93f65
MD5 ecbd786fccc328f33b9d8bff45fa9763
BLAKE2b-256 25b8c3004df314e4941d2baa2f99262f2fb1abf4360c39bc66d8d58305ebe767

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page