Copy
Ask AI
"""
Vertexai Image Input Url
========================
Cookbook example for `vertexai/claude/image_input_url.py`.
"""
from agno.agent import Agent
from agno.media import Image
from agno.models.vertexai.claude import Claude
from agno.tools.websearch import WebSearchTools
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(
model=Claude(id="claude-sonnet-4@20250514"),
tools=[WebSearchTools()],
markdown=True,
)
agent.print_response(
"Tell me about this image and search the web for more information.",
images=[
Image(
url="https://fastly.picsum.photos/id/237/200/300.jpg?hmac=TmmQSbShHz9CdQm0NkEjx1Dyh_Y984R9LpNrpvH2D_U"
),
],
stream=True,
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
pass
Run the Example
Copy
Ask AI
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/90_models/vertexai/claude
# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate
python image_input_url.py