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.0.tar.gz (123.7 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.0-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: image_creator_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 123.7 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.0.tar.gz
Algorithm Hash digest
SHA256 409ed4d2c0ebbe3f1ec3fe0e7d7178bf0e09a5999e50b77ce8ad6d2e83b2ad2d
MD5 123f6a14c5fdc86730bc0a3e0dc0b906
BLAKE2b-256 72bb975776d2ae47cc8cc34bdae526330b7b26a04a28e352aec90a2ccd755561

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for image_creator_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50c61dbec61af29098f174ab4604b824fe9a57098925cff6a267121c8a81836b
MD5 45a0784647f5fbff0e068ae20c7001f3
BLAKE2b-256 773090220a0e497f7d164b807dbfd8589671ff739f9106dd168c88c1d27c9b79

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