cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/credits' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"balance": 4200,
"unlimited": false,
"pricing_version": 2,
"free_brand_creations": 0,
"credit_costs": {
"brand_creation": 500,
"brand_edit": 300,
"brief": 100,
"review": 200,
"image_2k": 100,
"image_4k": 200
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "WORKSPACE_NOT_FOUND",
"status": 404,
"message": "Workspace not found or not accessible",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_SERVER_ERROR",
"status": 500,
"message": "Failed to check credit balance",
"data": "<unknown>"
}
}Account
Get credit balance
Read the credit balance and action costs for your personal account or a team. See Credits and limits for billing and recovery.
GET
/
credits
cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/credits' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"balance": 4200,
"unlimited": false,
"pricing_version": 2,
"free_brand_creations": 0,
"credit_costs": {
"brand_creation": 500,
"brand_edit": 300,
"brief": 100,
"review": 200,
"image_2k": 100,
"image_4k": 200
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "WORKSPACE_NOT_FOUND",
"status": 404,
"message": "Workspace not found or not accessible",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_SERVER_ERROR",
"status": 500,
"message": "Failed to check credit balance",
"data": "<unknown>"
}
}Was this page helpful?