Getting Started With Vision
claude-cookbooksmultimodal
Export
Getting started - how to pass images into Claude
The Claude 3 model family supports image inputs in the API. Here’s how you can pass images to Claude:
[ ]
[1]
[2]
Upon the rocky shore, a beacon bright, Its steadfast light a guide through darkest night. While sun descends in hues of pink and red, The lighthouse stands, a stalwart figure head. The waves crash 'gainst the weathered stone below, A ceaseless rhythm, ancient ebb and flow. Yet still the tower remains, resolute, A guardian watching, ever vigilant mute. The vast expanse of sea and sky surround, Horizon's line where heaven meets the ground. This timeless scene, a testament to might, Of nature's power and the human fight. The lighthouse, proud amid the fading day, Eternal symbol, showing safe the way.
Passing an image through a url
If you only have a URL of the image you can still pass it to Claude with just a few short lines of code.
[3]
[4]
The image depicts the ancient Inca city of Machu Picchu, perched high in the Andes Mountains of Peru. The well-preserved stone ruins, including terraces, plazas, and buildings, are set against a stunning backdrop of steep, verdant mountains under a partly cloudy sky.