1. OCR
OCR API
  • Valitract Public API v1
    • OCR
      • Extract text/content from an image
        POST
      • Extract tables from an image
        POST
      • Check remaining credits
        GET
    • Schemas
      • ExtractionSuccess
      • ApiError
  1. OCR

Check remaining credits

GET
/v1/credits
Returns the remaining credit balance for the API key's owner. Does not consume a credit.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or

Responses

🟢200
application/json
Current credit balance
Bodyapplication/json

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v1/credits' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "success": true,
    "credits_remaining": 41
}
Modified at 2026-07-18 10:58:45
Previous
Extract tables from an image
Next
ExtractionSuccess
Built with