For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
  • Go SDK
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • ActivityItem
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Fields
Go SDKAPI ReferenceModels

ActivityItem - Go SDK

ActivityItem type definition
Was this page helpful?
Previous

OAuth - Go SDK

OAuth method reference
Next
Built with

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

Fields

FieldTypeRequiredDescriptionExample
ByokUsageInferencefloat64✔️BYOK inference cost in USD (external credits spent)0.012
CompletionTokensint64✔️Total completion tokens generated125
Datestring✔️Date of the activity (YYYY-MM-DD format)2025-08-24
EndpointIDstring✔️Unique identifier for the endpoint550e8400-e29b-41d4-a716-446655440000
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
PromptTokensint64✔️Total prompt tokens used50
ProviderNamestring✔️Name of the provider serving this endpointOpenAI
ReasoningTokensint64✔️Total reasoning tokens used25
Requestsint64✔️Number of requests made5
Usagefloat64✔️Total cost in USD (OpenRouter credits spent)0.015