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

# Agent with Image Input

> Analyze images with a vision model on Azure AI Foundry.

Azure AI Foundry supports image input with models like `Llama-3.2-11B-Vision-Instruct`. You can use this to analyze images and get information about them.

## Code

```python image_agent.py theme={null}
from agno.agent import Agent
from agno.media import Image
from agno.models.azure import AzureAIFoundry

agent = Agent(
    model=AzureAIFoundry(id="Llama-3.2-11B-Vision-Instruct"),
    markdown=True,
)

agent.print_response(
    "Tell me about this image.",
    images=[
        Image(
            url="https://raw.githubusercontent.com/Azure/azure-sdk-for-python/main/sdk/ai/azure-ai-inference/samples/sample1.png",
            detail="high",
        )
    ],
    stream=True,
)
```

## Usage

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

**1. Set your API key**

```bash theme={null}
export AZURE_API_KEY=xxx
export AZURE_ENDPOINT=xxx
```

**2. Install dependencies**

```bash theme={null}
uv pip install -U azure-ai-inference aiohttp agno
```

**3. Run Agent**

Save the code above as `image_agent.py`, then run:

```bash theme={null}
python image_agent.py
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.