Class DeepSeekUserBalance
Implements
Inherited Members
Namespace: Glitch9.AIDevKit.DeepSeek
Assembly: Glitch9.AIDevKit.Provider.DeepSeek.dll
Syntax
public sealed class DeepSeekUserBalance : ICreditInfo
Properties
| Edit this page View SourceBalanceInfos
Required. The list of balance information.
Declaration
[JsonProperty("balance_infos")]
public DeepSeekUserBalance.BalanceInfo[] BalanceInfos { get; set; }
Property Value
| Type | Description |
|---|---|
| BalanceInfo[] |
IsAvailable
Required. Whether the user's balance is sufficient for API calls.
Declaration
[JsonProperty("is_available")]
public bool IsAvailable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TotalCredits
DeepSeek API only exposes remaining balance per currency. This returns the sum of total_balance across all entries (as double).
Declaration
[JsonIgnore]
public double TotalCredits { get; }
Property Value
| Type | Description |
|---|---|
| double |
UsedCredits
DeepSeek does not provide "used credits" via the balance API. We only know current remaining balance, not historical usage. Use 0 (or treat this as "unknown") for now.
Declaration
[JsonIgnore]
public double UsedCredits { get; }
Property Value
| Type | Description |
|---|---|
| double |