Billing
Get credit balance
client.AIGateway.Billing.CreditBalance(ctx, query) (*BillingCreditBalanceResponse, error)
GET/accounts/{account_id}/ai-gateway/billing/credit-balance
Get usage history
client.AIGateway.Billing.UsageHistory(ctx, params) (*BillingUsageHistoryResponse, error)
GET/accounts/{account_id}/ai-gateway/billing/usage-history
Get invoice history
client.AIGateway.Billing.InvoiceHistory(ctx, params) (*BillingInvoiceHistoryResponse, error)
GET/accounts/{account_id}/ai-gateway/billing/invoice-history
Get invoice preview
client.AIGateway.Billing.InvoicePreview(ctx, query) (*BillingInvoicePreviewResponse, error)
GET/accounts/{account_id}/ai-gateway/billing/invoice-preview
BillingTopup
Create a top-up
client.AIGateway.Billing.Topup.New(ctx, params) (*BillingTopupNewResponse, error)
POST/accounts/{account_id}/ai-gateway/billing/topup
Check top-up status
client.AIGateway.Billing.Topup.Status(ctx, params) (*BillingTopupStatusResponse, error)
POST/accounts/{account_id}/ai-gateway/billing/topup/status
BillingTopupConfig
Get auto top-up configuration
client.AIGateway.Billing.Topup.Config.Get(ctx, query) (*BillingTopupConfigGetResponse, error)
GET/accounts/{account_id}/ai-gateway/billing/topup/config
Set auto top-up configuration
client.AIGateway.Billing.Topup.Config.New(ctx, params) (*BillingTopupConfigNewResponse, error)
POST/accounts/{account_id}/ai-gateway/billing/topup/config
Delete auto top-up configuration
client.AIGateway.Billing.Topup.Config.Delete(ctx, body) (*BillingTopupConfigDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/billing/topup/config
BillingSpending Limit
Get spending limit
client.AIGateway.Billing.SpendingLimit.Get(ctx, query) (*BillingSpendingLimitGetResponse, error)
GET/accounts/{account_id}/ai-gateway/billing/spending-limit
Set spending limit
client.AIGateway.Billing.SpendingLimit.New(ctx, params) (*BillingSpendingLimitNewResponse, error)
POST/accounts/{account_id}/ai-gateway/billing/spending-limit
Delete spending limit
client.AIGateway.Billing.SpendingLimit.Delete(ctx, body) (*BillingSpendingLimitDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/billing/spending-limit