Skip to main content
GET
/
account
/
billing
Account Billing
curl --request GET \
  --url https://api.fal.ai/v1/account/billing \
  --header 'Authorization: <api-key>'
import requests

url = "https://api.fal.ai/v1/account/billing"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://api.fal.ai/v1/account/billing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "username": "my-team",
  "credits": {
    "current_balance": 24.5,
    "currency": "USD"
  }
}
{
"error": {
"type": "validation_error",
"message": "Invalid request parameters"
}
}
{
"error": {
"type": "authorization_error",
"message": "Authentication required"
}
}
{
"error": {
"type": "authorization_error",
"message": "Access denied"
}
}
{
"error": {
"type": "rate_limited",
"message": "Rate limit exceeded"
}
}
{
"error": {
"type": "server_error",
"message": "An unexpected error occurred"
}
}

Authorizations

Authorization
string
header
required

Admin API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_ADMIN_API_KEY

Query Parameters

expand

Data to include in the response. Use 'credits' to include current credit balance.

Example:

"credits"

Response

Account billing information retrieved successfully

Account billing information with optional expanded details

username
string
required

Account username

Example:

"my-team"

credits
object

Credit balance details. Only present when 'credits' is included in expand parameter.