Skip to main content
You can combine vision input with structured outputs to extract typed data from an image. Pass an image_url content block and a response_format with a JSON schema; the model returns JSON that conforms to the schema. For example, you could extract a project name and a column count from a screenshot of a Trello board:
Example output:
JSON
For the full structured-outputs reference, see Structured outputs.