Skip to main content
Describe images, detect objects, and read scenes with a single Agent backed by a vision model.
Image analysis agent using vision models for object detection and description.

Quick Start

1

Simple Usage

Pass an image to a task and let the vision model describe it.
2

With Configuration

Return structured fields with a Pydantic schema.

How It Works


Simple

Agents: 1 — Single agent with vision capabilities analyzes images.

Workflow

  1. Receive image (URL or local file)
  2. Process with vision model
  3. Generate detailed description

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Advanced Workflow (All Features)

Agents: 1 — Single agent with memory, persistence, structured output, and session resumability.

Workflow

  1. Initialize session for image analysis tracking
  2. Configure SQLite persistence for analysis history
  3. Analyze image with structured output
  4. Store results in memory for comparison
  5. Resume session for follow-up analysis

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Monitor / Verify

Cleanup

Features Demonstrated

Best Practices

Vision models read images from the images=[...] field on a Task. Embedding file paths in the instruction text does nothing — the model never sees the pixels.
Set llm="gpt-4o-mini" or another multimodal model. Text-only models silently ignore the image and describe nothing.
When results feed a database or UI, add output_pydantic so objects, scene, and colours arrive as typed fields instead of free text.
For text extraction use the Image to Text Agent; to create new images from prompts use the Image generation flow rather than this analysis agent.

Extract text from images with an OCR-focused agent.

Analyze video content frame by frame.