Claude API · Setup and first request
Install the Python SDK
Install the official Anthropic SDK for Python.
pip install anthropic
Official Claude API documentation
More setup and first request commands
- Install the TypeScript SDK
- Set your API key
- Send your first message (Python)
- Send your first message (TypeScript)
- Send your first message (curl)
- Pick a model
All setup and first request commands · Claude API cheatsheet