Skip to main content

Usage

Credit balance

Amounts use minor credits: 100 minor credits equals THB 1. Keep these values as integers in your application. balance_minor is the aggregate net balance across credit kinds for the key owner and the organization ID stored on the key, when present. It is an account summary, not proof that a particular route can spend: route admission uses general plus that route’s credit kind. spent_minor is lifetime debited usage for the same context.

Per-request usage

Successful chat responses include x-prism-trace-id. Use that value to retrieve the customer-visible metering record:
Usage lookup is scoped to the user who owns the calling key. Unknown or cross-user request IDs return 404.
cost_credits_minor is what the customer was charged after organization pricing. Prism does not expose provider cost or internal margin through this endpoint.
อ่านภาษาไทย