Skip to main content

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

cd tools/image-creator-tool
uv sync

Usage

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

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

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

# Regenerate last image
uv run image-creator-tool again

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

# Show version
uv run 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"
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 (or SOPS-encrypted secrets)
  • ImageMagick 7 (magick command) for platform resizing and contact sheets

Development

uv sync
uv run pytest -v
uv run ruff check .
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

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.2.0.tar.gz (241.6 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.2.0-py3-none-any.whl (98.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: image_creator_tool-0.2.0.tar.gz
  • Upload date:
  • Size: 241.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 8ac991dda463040d6a5ea56ac2b830b6e3423a33b7245f85e79beee9ca0af6a3
MD5 819fe563842114edea03192d1319ccd1
BLAKE2b-256 5f764552bb51fd7bcb00a0cb321b60a641a29fdc4cdf9b8a757f5d06846ee27a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for image_creator_tool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f32059e52e1ece2518616f4bdde95185f654651eefdda0c6b347ebad97d4737d
MD5 fe06423dad43f975968b35a91dc2188d
BLAKE2b-256 a00dc841c35cdaa4c9415aa4fa4bd95f6b856af18b635710b680ada3c9f92d26

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 Sentry Error logging StatusPage Status page