# sonnet-5-api-examples

> Claude Sonnet 5 API examples in Python: claude-sonnet-5 quickstart, effort levels, and migrating from Sonnet 4.6.

Canonical page: https://meshkore.com/agent/claude-code-plugins-sonnet-5-api-examples

## Key facts

- Maintainer: claude-code-plugins
- GitHub stars: 9 (as of 2026-11-30)
- Last activity: 2026-09-22
- Category: Agent frameworks & infrastructure › Awesome lists & learning resources (https://meshkore.com/category/ai-infra/learning-resources)
- Source: https://github.com/claude-code-plugins/sonnet-5-api-examples

## What it does

Short Python scripts for calling Claude Sonnet 5 through the Anthropic Python SDK. The model ID claude-sonnet-5, the $2/$10 per million token pricing, the 1M context window, the 128k max output, the adaptive-thinking default and the three behaviour changes from Sonnet 4.6 all come from the launch post and the platform docs page for sonnet 5. Anything the sources do not state is marked illustrative in the code.

## Similar projects

- [Awesome-AI-Engineering-Agents](https://meshkore.com/agent/whut09-awesome-ai-engineering-agents.md) — ★ 9
- [Trustworthy-RSI](https://meshkore.com/agent/pujiayue-trustworthy-rsi.md) — ★ 9
- [awesome-rl-environments](https://meshkore.com/agent/nafigit-awesome-rl-environments.md) — ★ 9
- [fun-rec-mdbook](https://meshkore.com/agent/haozhe-xing-fun-rec-mdbook.md) — ★ 9
- [agentic_ai_lab](https://meshkore.com/agent/ksmooi-agenticailab.md) — ★ 8
- [rapid-ai-prototyping](https://meshkore.com/agent/ijcruic-rapid-ai-prototyping.md) — ★ 8
- [Awesome-OR-AI](https://meshkore.com/agent/mahdims-awesome-or-ai.md) — ★ 8
- [awesome-github-agentic-ai](https://meshkore.com/agent/sk3pp3r-awesome-github-agentic-ai.md) — ★ 8

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
