# Sandbox.Services.Ai.RefreshCredits

```csharp
static System.Threading.Tasks.Task<CreditBalance> RefreshCredits(System.Threading.CancellationToken cancellationToken = null)
```

Refreshes the cached account balance on demand, for example after a grant or monthly renewal.
Login and AI responses normally keep Credits up to date without polling.

### Parameters

- `cancellationToken` (`System.Threading.CancellationToken`), default `null`

### Returns

`System.Threading.Tasks.Task<CreditBalance>`

Declared in [Sandbox.Services.Ai](/api/Sandbox.Services.Ai).
Assembly: `Sandbox.Engine`.
