Manual Tracking
Manual tracking gives you full control when you already know the exact token counts. Use manual tracking when:
- ✓ You’re calling AI APIs directly and have access to usage data
- ✓ You want maximum control over what’s reported
- ✓ You’re tracking non-OpenAI models or custom services
- ✓ You have your own token counting logic
Example: OpenAI Integration
Python
Node.js
Go
manual_openai.py
Automate Onboarding. To simplify your workflow, call client.create_or_get_customer() before tracking usage. This ensures the customer exists in Paygent without needing manual setup in the dashboard.
Example: Gemini Integration
Python
Node.js
Go
manual_gemini.py
