maxgent-ai/maxgent-plugin · Archived

image-gen

AI image generation and editing. Use when users ask to generate, create, or draw images with AI, or edit and modify existing images.

First seen Jan 28, 2026

Installation

$ npx skills add maxgent-ai/maxgent-plugin --skill image-gen

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from maxgent-ai/maxgent-plugin · top by installs.

npx skills add maxgent-ai/maxgent-plugin

Browse all from maxgent-ai/maxgent-plugin

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License MIT
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,478 B
  • docs SUMMARY.md 149 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 8 installs

SKILL.md

Image Generator

Generate or edit images via Maxgent FAL API proxy.

Prerequisites

  1. MAXAPIKEY environment variable (auto-injected by Max)
  2. Bun 1.0+ (built into Max)

Default Routing

  1. Text-to-image (default): fal-ai/nano-banana-pro
  2. Image editing (default): fal-ai/nano-banana-pro/edit

Usage

bun skills/image-gen/image-gen.js \
  --model MODEL --prompt "PROMPT" --aspect-ratio RATIO \
  --num-images N --output-dir DIR \
  [--input-image PATH] [--output-format FORMAT] \
  [--seed N] [--guidance-scale X] [--steps N]

Parameters:

  • --model: auto (recommended), gpt-image-1.5, nano-banana-pro, flux-dev
  • --prompt: image description or editing instruction
  • --aspect-ratio: 1:1, 4:3, 3:4, 16:9, 9:16
  • --num-images: number of images to generate (default 1)
  • --output-dir: output directory — default to $MAXPROJECTPATH (the user's project root)
  • --input-image: optional, for image editing mode
  • --output-format: png, jpg, webp (default png)
  • --seed: random seed for reproducibility
  • --guidance-scale: guidance scale for supported models
  • --steps: number of inference steps for supported models

Examples

# Default routing, text-to-image
bun skills/image-gen/image-gen.js --model auto --prompt "a cat under the starry sky" --aspect-ratio "1:1" --output-dir "$MAX_PROJECT_PATH"

# Specify model
bun skills/image-gen/image-gen.js --model gpt-image-1.5 --prompt "modern building facade, cinematic" --aspect-ratio "16:9" --num-images 2 --output-dir "$MAX_PROJECT_PATH"

# Image editing
bun skills/image-gen/image-gen.js --model auto --prompt "change background to a beach at sunset" --aspect-ratio "1:1" --output-dir "$MAX_PROJECT_PATH" --input-image "/path/to/input.jpg"

Instructions

  1. Check that MAXAPIKEY exists.
  2. Use AskUserQuestion to collect: edit or generate, prompt, aspect ratio, count. Default output path to $MAXPROJECTPATH.
  3. Run the script and wait for result.
  4. On success, report the output path.
  5. On failure:

- HTTP 402 (insufficient credits): Stop immediately. Do NOT retry. Tell the user their API credits are exhausted. - Other errors: retry once with a different model or simplified prompt. If it fails again, stop and report the error.