The Messages API takes a conversation and returns Claude's reply. With tool use, you describe functions with a JSON schema. When Claude wants one, the response stops with a tool_use block, your code runs it and sends a tool_result back. Some tools, such as web search and code execution, run on Anthropic's side instead. Structured outputs constrain the reply to your JSON schema, and strict tool definitions do the same for tool inputs. Claude reads JPEG, PNG, GIF and WebP images, and PDFs, where each page is read as text and as an image. Citations return the exact passage behind each claim. The Message Batches API processes large sets of requests asynchronously at a reduced cost. Prompt caching lets requests resume from a prefix that was already processed.