Skip to content

Conversation

@khali
Copy link

@khali khali commented Dec 30, 2025

New Feature:
Support multiple reference images for improved character/style consistency with NanoBanana Pro (Gemini 3 Pro Image) model.

Changes:

  • Changed referenceImage to referenceImages array (line 83)
  • Multiple --reference-image flags can now be specified
  • Added validation: max 14 images total (5 for humans, 6 for objects)
  • Updated help text with multi-reference examples
  • Function signature updated to accept array
  • Loops through all reference images when generating

API Limits:

  • Up to 5 human reference images for character consistency
  • Up to 6 object reference images
  • Maximum 14 total reference images

Usage Example:
bun run generate-ulart-image.ts --model nano-banana-pro --prompt "Person from references at a party..." --reference-image face1.jpg --reference-image face2.jpg --reference-image face3.jpg --size 2K --aspect-ratio 16:9

Testing:

  • Multiple reference images tested with Paul Chenard reference photos
  • Significantly improves likeness consistency across generated images

Also Includes:

  • PAI_DIR constant definition to fix help text ReferenceError
  • Updated source paths to use PAI_DIR variable

**New Feature:**
Support multiple reference images for improved character/style consistency with
NanoBanana Pro (Gemini 3 Pro Image) model.

**Changes:**
- Changed referenceImage to referenceImages array (line 83)
- Multiple --reference-image flags can now be specified
- Added validation: max 14 images total (5 for humans, 6 for objects)
- Updated help text with multi-reference examples
- Function signature updated to accept array
- Loops through all reference images when generating

**API Limits:**
- Up to 5 human reference images for character consistency
- Up to 6 object reference images
- Maximum 14 total reference images

**Usage Example:**
bun run generate-ulart-image.ts   --model nano-banana-pro   --prompt "Person from references at a party..."   --reference-image face1.jpg   --reference-image face2.jpg   --reference-image face3.jpg   --size 2K --aspect-ratio 16:9

**Testing:**
- Multiple reference images tested with Paul Chenard reference photos
- Significantly improves likeness consistency across generated images

**Also Includes:**
- PAI_DIR constant definition to fix help text ReferenceError
- Updated source paths to use PAI_DIR variable
@danielmiessler
Copy link
Owner

Fixed in the new system. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants