> ## 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.

# Llama OpenAI Image Input File

> Attach a local image file to Llama 4 Maverick via the OpenAI-compatible client and stream a description.

```python image_input_file.py theme={null}
"""
Meta Image Input File
=====================

Cookbook example for `meta/llama_openai/image_input_file.py`.
"""

from pathlib import Path

from agno.agent import Agent
from agno.media import Image
from agno.models.meta import LlamaOpenAI
from agno.utils.media import download_image

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

agent = Agent(
    model=LlamaOpenAI(id="Llama-4-Maverick-17B-128E-Instruct-FP8"),
    markdown=True,
)

image_path = Path(__file__).parent.joinpath("sample.jpg")

download_image(
    url="https://upload.wikimedia.org/wikipedia/commons/0/0c/GoldenGateBridge-001.jpg",
    output_path=str(image_path),
)

agent.print_response(
    "Tell me about this image?",
    images=[Image(filepath=image_path)],
    stream=True,
)

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

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

## Run the Example

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

**1. Install dependencies**

```bash theme={null}
uv pip install -U agno llama-api-client openai
```

**2. Export your Meta Llama API key**

```bash Mac/Linux theme={null}
export LLAMA_API_KEY="your_llama_api_key_here"
```

```bash Windows theme={null}
$Env:LLAMA_API_KEY="your_llama_api_key_here"
```

**3. Run the example**

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

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

Full source: [cookbook/90\_models/meta/llama\_openai/image\_input\_file.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/90_models/meta/llama_openai/image_input_file.py)


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