Anthropic API
ELI5 — The Vibe Check
The API that lets you talk to Claude from your own code. Send a message, get a response — that's the basics. But it also does tool use (Claude can call your functions), streaming (words appear as they're generated), and vision (Claude can see images). It's how you build AI features into your app.
Real Talk
The Anthropic API provides programmatic access to Claude models via a REST API. It supports text generation, multi-turn conversations, tool use (function calling), vision inputs, and streaming responses. SDKs are available for Python and TypeScript. Pricing is per-token with different rates for input and output.
Show Me The Code
import Anthropic from '@anthropic-ai/sdk'
const client = new Anthropic()
const response = await client.messages.create({
model: 'claude-sonnet-4-20250514',
max_tokens: 1024,
messages: [{ role: 'user', content: 'Explain recursion' }]
})
console.log(response.content[0].text)
When You'll Hear This
"Integrate the Anthropic API for the chatbot feature." / "The Anthropic API's tool use is perfect for agentic workflows."
Related Terms
Anthropic
Anthropic is the company that built Claude — think of them as the responsible parent at the AI party.
API (Application Programming Interface)
An API is like a menu at a restaurant. The kitchen (server) can do a bunch of things, but you can only order what's on the menu.
Token
In AI-land, a token is a chunk of text — roughly 3/4 of a word.
Tool Use
Tool use is when an AI can call external functions, APIs, or programs to do things it can't do alone.