LogoPatentFig AI Docs
LogoPatentFig AI Docs
Homepage

Getting Started

Quick StartAuthentication

Endpoints

Generate FiguresVectorizeEnhanceConvertCredits

Reference

Use with AI AgentsErrorsChangelog
X (Twitter)

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/credits

Request

curl https://patentfig.ai/api/v1/credits \
  -H "Authorization: Bearer pfig_xxx"

Response

{ "success": true, "data": { "balance": 480 } }

Pricing per call

EndpointCredits
POST /figures10
POST /vectorize20
POST /enhance20
POST /convert20
GET /credits0

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."
  }
}

Table of Contents

Request
Response
Pricing per call