Course map
Stage 1: Foundations
Stage 2: Machine Learning
Stage 3: Deep Learning
Stage 4: LLMs & Generative AI
Stage 5: Production & Specialization

Part 14 / Topic 5 of 7

Images and PDFs as input

Messages accept more than text: content blocks can carry images (photos, screenshots, charts) and PDFs, mixed with text in one user message. The pattern is the same typed-blocks idea in reverse — you send {"type": "image", ...} / document blocks alongside text blocks. Use cases that work well: reading dashboards, extracting tables from documents, describing UI screenshots. See the official vision and PDF support guides for the exact block shapes and size limits.

Done here? The practice set for Part 14 — 4 exercises with solutions — is on the part page.

Search the guide