Video #07 — Claude API in Go Series
Publish date: 2026-07-13
Type: Lightweight
Est. duration: ~15 min
- Passing images to Claude via public URL
- Encoding local images as base64 and sending them via the Go SDK
- Building mixed text-and-image messages with
NewImageBlockParam - Practical examples: screenshot analysis, document parsing
- Go 1.23+
- An Anthropic API key
- Familiarity with episodes 01–02 (basic completions and message structure)
cd 07-vision
export ANTHROPIC_API_KEY=your_key_here
go run main.goFor the file-based example, drop a screenshot.png in the directory.
.
├── README.md
├── go.mod
├── go.sum
└── main.go