Skip to main content
Glama

nanobanana_process_queue

Process queued prompt files to generate images using Gemini models, with validation, dry-run, and overwrite options for batch image creation.

Instructions

Process all prompt files in the queue directory and generate images.

Modes:

  • validate_only=true: Only validate prompts, no API calls

  • dry_run=true: Show what would be generated, no API calls

  • Both false: Actually generate images

Overwrite Strategies:

  • skip: Skip if output file exists (default)

  • overwrite: Replace existing files

  • rename: Generate with suffix (e.g., hero_1.png)

After successful generation, prompt files are moved to completed_dir with timestamp.

Example:

queue_dir: "nanobanana/queue"
dry_run: true
overwrite: "skip"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queue_dirNoDirectory containing prompt markdown filesnanobanana/queue
output_dirNoDefault directory to save generated images (used if prompt has relative path)assets/generated
completed_dirNoDirectory to move processed prompts tonanobanana/completed
modelNoGemini model to use for all generations (overrides prompt settings)gemini-2.5-flash-image
validate_onlyNoIf true, only validate prompt files without generating images
dry_runNoIf true, show what would be generated without actually calling API
overwriteNoStrategy when output file exists: skip, overwrite, or rename with suffixskip

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/keeponfirst/kof-nanobanana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server