Generate image
generate_imageGenerate a blog-ready photograph from a subject-only prompt; uses Gemini and falls back to Grok. Writes a PNG to runs/ and returns the file path plus provider.
Instructions
Generate a photograph with Gemini, falling back to Grok. Pass prompt as the SUBJECT ONLY — what is happening and where; the photographic style is applied for you. Writes a PNG under the runs directory and returns its path plus which provider produced it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| look | No | The camera register from build_writing_brief's IMAGES block, passed verbatim so every image in one article matches. Omitted, one is derived from the prompt. | |
| slot | No | Filename stem, e.g. "hero" or "inline" | image |
| style | No | photoreal_people (default) — a photograph with people doing the work, for the hero/feature image. photoreal_scene — a photograph with no people required. diagram — no photographic styling at all; an escape hatch, and rarely right, since image models render text as gibberish. | photoreal_people |
| aspect | No | 16:9 | |
| prompt | Yes | The SUBJECT only — what is happening and where, specific to this article. Do not include camera, lighting, or style words; those are added for you. | |
| provider | No | Pin a provider; disables fallback |