Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Documentation for Quickstart
from tokensense import observe import anthropic client = observe(anthropic.Anthropic())
response = client.messages.create( model="claude-sonnet-4-6", max_tokens=1024, messages=[{"role": "user", "content": "Explain async/await in Python"}] ) print(response.content[0].text)
→ ✓ model=claude-sonnet-4-6 | in=18 out=312 tokens | $0.0052 | 847ms
Was this page helpful?