# Outpainting Image Generation Tool

This tool allows LLMs to generate images using outpainting, where an input image is altered outside of the area specified by a mask image according to a prompt. The input and mask images can be provided either by their file path or by their [Task Memory](../../griptape-framework/structures/task-memory.md) references.

```python
--8<-- "docs/griptape-tools/official-tools/src/outpainting_image_generation_tool_1.py"
```
