Skip to main content
Every labeler on the other pages takes text. To label other modalities, change the input argument and the model. The schema and the output_schema pattern stay the same.

Input argument per modality

All four classes accept url, filepath, or raw bytes via content. The cookbook examples fetch audio and video bytes first. Agno installs httpx.

Bounding boxes

For region detection, return normalized coordinates so the result is resolution-independent.
The per-field description on x, y, width, and height is load-bearing. Without it, and without the [0, 1] convention spelled out in the instructions, models return degenerate boxes (all-zero or whole-image). Spell out the coordinate system in both places.
The bounding boxes cookbook has runnable single-object, multi-object, and per-box confidence variants.

Transcription and diarization

Audio extraction covers transcription, speaker diarization, and timestamped segments. Each is a schema change over the same API.

Model choice

The cookbook uses gemini-3.5-flash across its text, image, audio, video, and PDF recipes. A replacement model must support the input modality and structured output.

Next steps

Developer Resources