Skip to main content
The source-fidelity code uses a retired Azure AI Foundry model. Replace it with Llama 4 Scout before running the example.
Microsoft retired Llama-3.2-11B-Vision-Instruct on June 13, 2026. Deploy Llama-4-Scout-17B-16E-Instruct, point AZURE_ENDPOINT at that deployment, and replace the model ID before running. See the Azure model retirement schedule.
image_agent_bytes.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Use Llama 4 Scout

Deploy Llama-4-Scout-17B-16E-Instruct, update AZURE_ENDPOINT, and replace Llama-3.2-11B-Vision-Instruct in the saved file.
5

Run the example

Save the code above as image_agent_bytes.py, then run:
Full source: cookbook/90_models/azure/ai_foundry/image_agent_bytes.py