Skip to content

Billing Get Usage Returns Usage Data

This example assumes using Fal; is in scope and apiKey contains your Fal API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
var client = GetAuthorizedApi();

try
{
    var response = await client.Models.GetUsageAsync(limit: 5);

}
catch (ApiException ex) when (ex.Message.Contains("Admin API key"))
{
}