GigaChat API icon

GigaChat API

Consume GigaChat API functions

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

AI-generated

Overview

This node interacts with the GigaChat API to retrieve the balance of tokens available in the user's account. It is useful for monitoring token usage and managing limits when working with GigaChat services.

Use Case Examples

  1. A user wants to check how many tokens remain in their GigaChat account before sending more requests.
  2. An automation workflow includes a step to verify token balance to avoid exceeding usage limits.

Properties

Name Meaning
Resource Specifies the resource to interact with, in this case 'Tokens' for token monitoring.
Operation Specifies the operation to perform on the selected resource, here 'Получить остатки' to get the token balance.

Output

JSON

  • balance - The current balance of tokens available in the account.

Dependencies

  • Requires GigaChat API credentials for authentication.

Troubleshooting

  • Ensure the GigaChat API credentials are correctly configured and valid.
  • Check network connectivity to the GigaChat API endpoint.
  • Verify that the selected resource and operation are supported by the API version used.

Links

Discussion