Usage
Usage - Increment Agent Queries
This endpoint allows you to track and charge credits based on AI model token consumption for your organization.
POST
This endpoint is used to register credit consumption based on AI model usage. It tracks token usage (input/output) and automatically calculates the credit cost based on the model provider and configuration. Use Cases:Documentation Index
Fetch the complete documentation index at: https://docs.laburen.com/llms.txt
Use this file to discover all available pages before exploring further.
- Track AI agent interactions and their associated costs
- Bill custom integrations that use AI models
- Monitor and control credit spending per agent or feature
- Implement usage-based billing for your organization
This endpoint requires a valid subscription or sufficient credit balance. The request will fail if the organization has exceeded its usage limits.
Body
The AI model provider. Accepted values:
azureazure-2openaigeminideepseekbedrock
The specific model name used for the request. Available models per provider:
| Provider | Available Models |
|---|---|
azure | gpt-4o-mini, gpt-4o |
azure-2 | gpt-4.1-nano, gpt-4.1-mini, gpt-4.1, gpt-5-nano, gpt-5-mini, gpt-5-chat, gpt-5 |
openai | gpt-4.1, gpt-4.1-mini |
gemini | gemini-2.0-flash, gemini-2.0-flash-exp, gemini-2.5-flash, gemini-2.5-pro, gemini-3-pro, gemini-3-flash |
deepseek | deepseek-chat, DeepSeek-V3.2, DeepSeek-V3.2-thinking |
bedrock | claude-4-sonnet, global.anthropic.claude-sonnet-4-20250514-v1:0 |
The number of input tokens consumed in the request. Must be a non-negative integer.
The number of output tokens generated in the response. Must be a non-negative integer.
Optional multiplier for credit calculation (between 1 and 10). Useful for premium features or custom pricing tiers.
The feature or action that triggered this credit spend (e.g.,
agent_run, chat_completion, embedding).Optional. The ID of the agent associated with this usage. Useful for per-agent analytics and billing.
Optional. Additional metadata to associate with this credit event. Can include any custom fields for tracking purposes.
Response
Indicates whether the credit spend was successfully recorded.
The ID of the organization that was charged.
A unique identifier for this credit spend event. Useful for auditing and reconciliation.

