> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # ActivityItem ## Example Usage ```typescript theme={null} import { ActivityItem } from "@openrouter/sdk/models"; let value: ActivityItem = { byokUsageInference: 0.012, completionTokens: 125, date: "2025-08-24", endpointId: "550e8400-e29b-41d4-a716-446655440000", model: "openai/gpt-4.1", modelPermaslug: "openai/gpt-4.1-2025-04-14", promptTokens: 50, providerName: "OpenAI", reasoningTokens: 25, requests: 5, usage: 0.015, }; ``` ## Fields | Field | Type | Required | Description | Example | | -------------------- | -------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | | `byokUsageInference` | *number* | :heavy\_check\_mark: | BYOK inference cost in USD (external credits spent) | 0.012 | | `completionTokens` | *number* | :heavy\_check\_mark: | Total completion tokens generated | 125 | | `date` | *string* | :heavy\_check\_mark: | Date of the activity (YYYY-MM-DD format) | 2025-08-24 | | `endpointId` | *string* | :heavy\_check\_mark: | Unique identifier for the endpoint | 550e8400-e29b-41d4-a716-446655440000 | | `model` | *string* | :heavy\_check\_mark: | Model slug (e.g., "openai/gpt-4.1") | openai/gpt-4.1 | | `modelPermaslug` | *string* | :heavy\_check\_mark: | Model permaslug (e.g., "openai/gpt-4.1-2025-04-14") | openai/gpt-4.1-2025-04-14 | | `promptTokens` | *number* | :heavy\_check\_mark: | Total prompt tokens used | 50 | | `providerName` | *string* | :heavy\_check\_mark: | Name of the provider serving this endpoint | OpenAI | | `reasoningTokens` | *number* | :heavy\_check\_mark: | Total reasoning tokens used | 25 | | `requests` | *number* | :heavy\_check\_mark: | Number of requests made | 5 | | `usage` | *number* | :heavy\_check\_mark: | Total cost in USD (OpenRouter credits spent) | 0.015 | | `workspaceId` | *string* | :heavy\_minus\_sign: | ID of the workspace this activity is attributed to. Only present when `group_by=workspace` is passed; the response is then split per workspace. Activity recorded before workspace resolution existed is attributed to the account default workspace. | 550e8400-e29b-41d4-a716-446655440000 |