Show HN: JSON Schema for Google Gemini Image Generation

github.com

2 points by pauhu 10 hours ago

Been working with Gemini's image generation API and got frustrated with the lack of structure in prompt engineering. Built a JSON schema that validates prompts and ensures consistency.

Includes Python validator, examples covering different use cases (product photography, portraits, illustrations), and simple integration samples.

The schema is quite comprehensive - covers everything from basic subject/style to detailed technical parameters like camera settings and lighting.

Open source (MIT), would appreciate feedback from others working with Gemini or similar models.

GitHub: https://github.com/pauhu/gemini-image-prompting-handbook