Skip to main content
POST
Estimate the price of an image OCR request
Estimate the cost of an OCR job before submitting it.

Authorizations

Authorization
string
header
required

Sanctum personal access token, sent as Authorization: Bearer <token>. The token is opaque — it carries no claims and no embedded expiry, so do not attempt to decode it. Issue and revoke tokens from your account dashboard.

Headers

Accept
enum<string>
default:application/json
required
Available options:
application/json

Body

multipart/form-data

Image to text conversion parameters

Every example in this schema is a working set for the model example shown — they are not defaults and not portable. Sizes, step counts, frame counts and frame rates are all per-model: read info.limits and info.defaults for the model you actually intend to use from GET /api/v2/models. Substituting a different model while keeping these values is the most common source of a 422.

image
file
required

Image file to extract text from. Supported formats: JPG, JPEG, PNG, GIF, BMP, WebP. Maximum file size: 10 MB.

model
string
required

The OCR model to use for text extraction. Available models can be retrieved via the GET /api/v2/models endpoint.

Example:

"Nanonets_Ocr_S_F16"

language
string | null

Language code for OCR processing (optional)

Example:

"en"

format
enum<string> | null

Output format for extracted text

Available options:
text,
json,
null
Example:

"text"

Response

Calculated price for img2txt inference.

data
object