Actions3
- Изображение Actions
- Токены Actions
Токены → Получить остатки
AI-generatedSummary
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.