Examples

Find every dog head in a photo

Open in playground →

A photo of four dogs in; a box around each head.

  • Image input
  • Box
  • array

Challenges

  • Four dogs pressed together, one sitting behind the others: each head gets a box of its own, and the array holds as many boxes as there are heads.
  • Each box comes back as top, bottom, left and right, fractions of the image, in a list as long as the photo calls for: an empty one when there is no match.
The image sent with this call0123

Laying out…

Time 1.12 s · Cost $0.000078

Generation(
    result={
        'dog_heads': [
            {
                'top': 0.313,
                'bottom': 0.625,
                'left': 0.117,
                'right': 0.34,
            },
            {
                'top': 0.097,
                'bottom': 0.365,
                'left': 0.395,
                'right': 0.575,
            },
            {
                'top': 0.387,
                'bottom': 0.685,
                'left': 0.448,
                'right': 0.659,
            },
            {
                'top': 0.317,
                'bottom': 0.615,
                'left': 0.684,
                'right': 0.887,
            },
        ],
    },
    thinking={},
    usage=Usage(input_tokens=1570, thinking_tokens=0),
)