typescript changedcli-sdks-libraries/sdks/typescript
Nearest release: v2.1.301, published 5 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+5added
Lines−1removed
From line
81
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits11to this page, all time
The whole hunk
from line 81, old and new numbered
/
from line 81
8181You can see the exact usage for a given request through the `usage` response property, for example:
8282
8383```typescript
84const message = await client.messages.create(/* ... */);
84const message = await client.messages.create({
85 max_tokens: 1024,
86 messages: [{ role: "user", content: "Hello, Claude" }],
87 model: "claude-opus-5-5"
88});
8589console.log(message.usage);
8690// { input_tokens: 25, output_tokens: 13 }
8791```
No line in this hunk matches that.