Javascript SDK
LLM Strategy
Wrap any LLM model from the@ai-sdk/* library, to automatically fire prompt- & completion tokens used by every model call.
Ingestion Payload
Python SDK
The Python SDK has no ingestion helper or strategies. Send usage events withpolar.events.ingest from the Python SDK instead.
Ingesting events
events.ingest sends the request synchronously. To avoid blocking your request path, batch events and send them from a background task, or use PolarAsync in asynchronous applications.

