Get AI Credit Transactions
get_credit_transactionsGet recent AI credit movements for the account this token belongs to, newest first.
USAGE INSTRUCTIONS FOR LLM:
Use this to explain WHERE credit went, or to show that a purchase was recorded.
Each row is one movement: a negative `amountUsd` is a charge, a positive one is
a top-up or an adjustment. `source` says what kind of usage it was (for example
`direct_mcp` for tool calls made from an external client like this one,
`image_generation`, `opik_ai_chat`, `maxio_topup` for a purchase).
WHEN TO USE THIS TOOL:
- User asks "what have I been charged for?" or "where did my credits go?"
- User disputes a charge and wants the detail behind it
- After a payment, to show the customer the top-up on their history
- To find the `referenceId` of a purchase so you can pass it to
`get_payment_status`
EXPECTED RESPONSE FORMAT:
{
"account_id": "1234",
"transactions": [
{"amountUsd": -0.04, "source": "direct_mcp", "description": "MCP tool: ...",
"referenceId": "...", "createdAt": "...", "markup": "4.000000"}
],
"total_elements": 210, "total_pages": 9, "page": 0
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based page number. Defaults to 0 (most recent). | |
| size | No | Rows per page, 1-100. Defaults to 25. |