Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Total credits purchased and used

Example Usage

import { GetCreditsResponse } from "@openrouter/sdk/models/operations";

let value: GetCreditsResponse = {
  data: {
    totalCredits: 100.5,
    totalUsage: 25.75,
  },
};

Fields

FieldTypeRequiredDescriptionExample
dataoperations.GetCreditsData:heavy_check_mark:N/A{"total_credits": 100.5,"total_usage": 25.75}