Claude API · Setup and first request
Pick a model
Model IDs for the current generation. Check the models overview for the latest list, context windows and prices.
claude-opus-5-5 # most capable general model
claude-sonnet-5-5 # fast, strong at coding and agents
claude-haiku-5-5 # fastest and cheapest
claude-fable-5-1 # most capable, for the hardest tasks
Official Claude API documentation
More setup and first request commands
- Install the Python SDK
- Install the TypeScript SDK
- Set your API key
- Send your first message (Python)
- Send your first message (TypeScript)
- Send your first message (curl)
All setup and first request commands · Claude API cheatsheet