Files
openrouter-python-sdk-retry…/docs/models/activityitem.md
T
Matt Apperson 5fc522c72f Initial commit: OpenRouter Python SDK
Auto-generated Python SDK for OpenRouter API, providing comprehensive client library with:
- Chat completions and streaming support
- Embeddings API
- Model and provider information
- API key management
- Analytics and usage tracking
- OAuth authentication flows
- Full type hints and error handling
2025-11-13 10:56:25 -05:00

3.5 KiB

ActivityItem

Fields

Field Type Required Description Example
date_ str ✔️ Date of the activity (YYYY-MM-DD format) 2025-08-24
model str ✔️ Model slug (e.g., "openai/gpt-4.1") openai/gpt-4.1
model_permaslug str ✔️ Model permaslug (e.g., "openai/gpt-4.1-2025-04-14") openai/gpt-4.1-2025-04-14
endpoint_id str ✔️ Unique identifier for the endpoint 550e8400-e29b-41d4-a716-446655440000
provider_name str ✔️ Name of the provider serving this endpoint OpenAI
usage float ✔️ Total cost in USD (OpenRouter credits spent) 0.015
byok_usage_inference float ✔️ BYOK inference cost in USD (external credits spent) 0.012
requests float ✔️ Number of requests made 5
prompt_tokens float ✔️ Total prompt tokens used 50
completion_tokens float ✔️ Total completion tokens generated 125
reasoning_tokens float ✔️ Total reasoning tokens used 25