Settings

Theme

Show HN: JSON Schema for Google Gemini Image Generation

github.com

2 points by pauhu 5 months ago · 0 comments · 1 min read

Reader

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

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection