Skip to content

Credits on the API

One wallet. One credit is one dollar. GET is free. Only generate spends. The product guide is Understanding credits.

01What a call costs

OperationCreditsRoute
Article generate1.5POST /api/v1/articles/generate
Social generate0.6 per platformPOST /api/v1/social/generate
Publish or schedule0POST /api/v1/social/publish
Every GET0lists, detail, status, credits, usage

Two platforms cost 1.2. All 13 live channels in one call cost 7.8. You still get one content_id.

02Read the wallet

curl https://www.brainpercent.app/api/v1/user/credits \
  -H "Authorization: Bearer bp_your_key"
200Response
{
  "success": true,
  "data": {
    "available_credits": 52,
    "subscription_credits": 60,
    "purchased_credits": 0,
    "credits_used_this_month": 8,
    "plan": "Creator",
    "current_period_end": "2026-03-01T00:00:00Z"
  }
}
FieldMeaning
available_creditsThe number to check. Whole balance.
subscription_creditsPlan grant. Spent first.
purchased_creditsTop-ups. Never expire. Spent second.
planInternal name: Creator, Professional, Business, Agency, or Free.

03402

Do not retry. Top up or shrink the platform list, then send a new request.

402Response
{
  "success": false,
  "error": {
    "code": "INSUFFICIENT_CREDITS",
    "message": "This operation requires 2.4 credits but your balance is 1.2"
  },
  "meta": {
    "request_id": "req_abc123",
    "timestamp": "2026-02-01T12:00:00Z"
  }
}