Credits
GET /v1/credits — balance lookup and API pricing
Returns the current credit balance of the account that owns the API key. Free to call — also the simplest connectivity check for a new key.
GET https://patentfig.ai/api/v1/creditsRequest
curl https://patentfig.ai/api/v1/credits \
-H "Authorization: Bearer pfig_xxx"Response
{ "success": true, "data": { "balance": 480 } }Pricing per call
| Endpoint | Credits |
|---|---|
POST /figures | 10 |
POST /vectorize | 20 |
POST /enhance | 20 |
POST /convert | 20 |
GET /credits | 0 |
API calls draw from the same balance as the web app. Credits are only charged on success — failed requests are not billed. Top up or subscribe on the pricing page.
Requests that would exceed the balance return 402:
{
"success": false,
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "Insufficient credits. This request costs 10 credits."
}
}
PatentFig AI Docs