heysnap-image-gen
v0.1.1
Published
Opinionated GPT Image 2 CLI for VM agents.
Readme
image-gen
Opinionated GPT Image 2 CLI for VM agents.
image-gen sends image generation and image edit requests through the HeySnap
gateway, reads the VM machine token automatically, and writes the resulting
image files locally.
Install
npm install -g heysnap-image-genUsage
image-gen "A polished product photo of a matte black coffee mug" -o mug.pngShow the installed version:
image-gen --versionUse a reference image:
image-gen "Restyle this screenshot as a polished SaaS dashboard" \
--image screenshot.png \
-o dashboard.pngGenerate multiple images:
image-gen "Three calm finance app logo concepts" --n 3 --out-dir logosRead a long prompt from a file:
image-gen --prompt-file prompt.txt -o result.pngAuth
The CLI checks token sources in this order:
ANK1015_IMAGE_GATEWAY_TOKENANK1015_CODEX_GATEWAY_TOKENANK1015_MACHINE_TOKEN_FILE/opt/ank1015/machine-token
The default gateway base URL is:
https://api.heysnap.xyz/llm/openai/v1See docs/usage.md for the full CLI contract.
