GigaChat API icon

GigaChat API

Consume GigaChat API functions

Токены → Получить остатки

AI-generated

Summary

Retrieve the current token balances for various GigaChat usage types from the GigaChat API.

Inputs

  • unofficialWarning — Notice that this is an unofficial project and usage is at your own risk, with a link for more details.

Output shape

a list with a single JSON object containing the token balances for different usage categories (GigaChat, GigaChat-Pro, GigaChat-Max, embeddings).

The output includes a 'response' JSON key with token counts for each usage type, always returned as a single-item array. Errors are returned as execution errors or within the item if continueOnFail is enabled.

Examples

Example 1: Retrieve token balances to monitor usage before making further API calls.

No additional input parameters required other than credentials and selecting the 'Получить остатки' operation under 'Токены' resource.

Links

Discussion