You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add reference image support for style-consistent generation
generate_image now accepts an optional reference_image path so the
model can match an existing image's art style, color palette, and
visual mood when creating new images. This solves cross-session
consistency problems (e.g. game characters that all share the same
look) by sending the reference pixels alongside the prompt via
Gemini's multimodal contents API.
Key changes:
- gemini_client: generate_image_gemini builds multi-part contents
when reference image bytes are provided
- image_gen: threads reference_image through generate_with_gemini
and auto_generate with style-reference prompt framing; auto-loads
from style profile when no explicit reference is passed
- server: adds reference_image to generate_image and
init_style_profile MCP tool schemas
- style_profile: adds reference_image field to DEFAULT_PROFILE and
create_profile for cross-session persistence
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments