Skip to main content
Image To Image.
This example constructs FalTools() with enable_image_to_image=False, the toolkit default, so the image_to_image tool is unavailable as written. Apply the migration below before running it.
image_to_image.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Enable image-to-image

Replace tools=[FalTools()] with tools=[FalTools(enable_generate_media=False, enable_image_to_image=True)] in the saved file.
5

Run the example

Save the code above as image_to_image.py, then run:
Full source: cookbook/02_agents/12_multimodal/image_to_image.py