v1

latestOpenAPI 3.1.0Elastic 2.02026-07-179371211.2 KB
Assistant

Get Assistant Balance

Retrieve the current balance/usage information for the AI assistant.

get/api/assistant/balance/{modelAndAdapter}

Path parameters

modelAndAdapterstring required

Model Id (including slashes) and Adapter Name to get balance for

Response

Current assistant balance and usage information

creditsinteger

The number of credits remaining after this message.

input_tokensinteger

The number of input tokens used.

output_tokensinteger

The number of output tokens used.

Example response

{
  "credits": 1,
  "input_tokens": 5,
  "output_tokens": 10
}