# Image generation

Image generation allows your worker to create images, quotes, diagrams, and perform similar graphical tasks. Toolhouse adds this capability automatically if your worker needs it to complete their task. You can also add it manually.

## How image generation works

You can create a worker that needs to create image. For example, you can create a social media worker that posts on Linkedin for you. You want each post to have a quote from the post in big fonts.

In this case, Toolhouse detects the worker will need to create images and it will add Image generation  to it.

## Setting the style for the generated image

To specify the type of images the worker should generate, edit your agent in [Agent Editor](/toolhouse/toolhouse/agent-editor.md) and tell the editor something like: "I want my worker to always generate a hero quote against a starry background". You can use natural language and Toolhouse will translate it into proper prompt instructions for you.

## Generate an image and edit it for later

Your worker can use Image generation alongside [Image editing](/toolhouse/capabilites/image-editing.md) to modify the images it created.

## Adding Image generation manually

* Go to [Agents](https://toolhouse.app/agents) in your Toolhouse
* Click on your worker to edit it
* Select <i class="fa-wrench">:wrench:</i> **Integrations,** then click **Add Integration**
* Choose **Image Generation**
* Click **Save changes**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.toolhouse.ai/toolhouse/capabilites/image-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
