#!/usr/bin/env bash set -euo pipefail IMG=/home/jm/Downloads/receipt.jpeg B64=$(base64 -w0 "$IMG") OUT=response.json curl -s https://api.anthropic.com/v1/messages \ -H "x-api-key: $CLAUDE_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -o "$OUT" \ -d @- <