> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ollama Image Agent

> Describe a local image file with Llama 3.2 Vision running on Ollama.

```python image_agent.py theme={null}
"""
Ollama Image Agent
==================

Cookbook example for `ollama/chat/image_agent.py`.
"""

from pathlib import Path

from agno.agent import Agent
from agno.media import Image
from agno.models.ollama import Ollama

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------

agent = Agent(
    model=Ollama(id="llama3.2-vision"),
    markdown=True,
)

image_path = Path(__file__).parent.joinpath("super-agents.png")
agent.print_response(
    "Write a 3 sentence fiction story about the image",
    images=[Image(filepath=image_path)],
)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    pass
```

## Run the Example

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno ollama
    ```
  </Step>

  <Step title="Prepare Ollama">
    Install and start Ollama, then pull the model used by this example:

    ```bash theme={null}
    ollama pull llama3.2-vision
    ```
  </Step>

  <Step title="Add the sample image">
    Place an image named `super-agents.png` in the same directory as the script, or update `image_path` to point to your own image.
  </Step>

  <Step title="Run the example">
    Save the code above as `image_agent.py`, then run:

    ```bash theme={null}
    python image_agent.py
    ```
  </Step>
</Steps>

Full source: [cookbook/90\_models/ollama/chat/image\_agent.py](https://github.com/agno-agi/agno/blob/main/cookbook/90_models/ollama/chat/image_agent.py)
