ActivityItem - TypeScript SDK

ActivityItem method reference

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

Fields

FieldTypeRequiredDescriptionExample
datestring✔️Date of the activity (YYYY-MM-DD format)2025-08-24
modelstring✔️Model slug (e.g., “openai/gpt-4.1”)openai/gpt-4.1
modelPermaslugstring✔️Model permaslug (e.g., “openai/gpt-4.1-2025-04-14”)openai/gpt-4.1-2025-04-14
endpointIdstring✔️Unique identifier for the endpoint550e8400-e29b-41d4-a716-446655440000
providerNamestring✔️Name of the provider serving this endpointOpenAI
usagenumber✔️Total cost in USD (OpenRouter credits spent)0.015
byokUsageInferencenumber✔️BYOK inference cost in USD (external credits spent)0.012
requestsnumber✔️Number of requests made5
promptTokensnumber✔️Total prompt tokens used50
completionTokensnumber✔️Total completion tokens generated125
reasoningTokensnumber✔️Total reasoning tokens used25