ActivityItem - Go SDK
ActivityItem type definition
The Go SDK and docs are currently in beta. Report issues on GitHub.
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Date | string | ✔️ | Date of the activity (YYYY-MM-DD format) | 2025-08-24 |
Model | string | ✔️ | Model slug (e.g., “openai/gpt-4.1”) | openai/gpt-4.1 |
ModelPermaslug | string | ✔️ | Model permaslug (e.g., “openai/gpt-4.1-2025-04-14”) | openai/gpt-4.1-2025-04-14 |
EndpointID | string | ✔️ | Unique identifier for the endpoint | 550e8400-e29b-41d4-a716-446655440000 |
ProviderName | string | ✔️ | Name of the provider serving this endpoint | OpenAI |
Usage | float64 | ✔️ | Total cost in USD (OpenRouter credits spent) | 0.015 |
ByokUsageInference | float64 | ✔️ | BYOK inference cost in USD (external credits spent) | 0.012 |
Requests | int64 | ✔️ | Number of requests made | 5 |
PromptTokens | int64 | ✔️ | Total prompt tokens used | 50 |
CompletionTokens | int64 | ✔️ | Total completion tokens generated | 125 |
ReasoningTokens | int64 | ✔️ | Total reasoning tokens used | 25 |