Image Generation
Intent
- Use for generating new images, editing existing images, inpainting, background work, and batch image production.
Default operating pattern
- Decide whether the request is generate, edit, or batch before choosing flags or output paths.
- Collect the concrete constraints up front: prompt, exact text, required style, invariants, avoid list, and any input images or masks.
- Prefer the bundled
scripts/image_gen.pyso runs stay reproducible and easy to rerun. - For edit flows, explicitly list what must stay unchanged so the output does not drift away from the source asset.
- Validate the result against the user's actual use case, then iterate with one targeted change at a time.
Bundled helper
scripts/image_gen.pyhandles OpenAI Image API generation, edits, and batches.
Pack fit
- Included in:
docs-media - Best for teams that want reusable media generation workflows rather than one-off prompts.
Boundary
- Do not ask the user to paste
OPENAI_API_KEYinto chat; ask them to set it locally. - Do not invent new creative requirements that were not requested or clearly implied.