OCR Document Scan Prompt (0.07 credits)
ocr_scan_gptReads an identity document photo using OCR and returns extracted fields such as name and document number for the selected document type and optional country.
Instructions
Reads an identity document from a photo. Returns the extracted fields for the document type, such as name and document number. Inputs: documentType, image (base64 or https URL), and an optional country. Use this general OCR. Use ocr_scan_studio for the studio reader and mexico_api_ine_ocr for an INE card. Costs 0.07 credits per successful call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"documentType": "<documentType>",
"image": "<image>"
},
"name": "ocr_scan_gpt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Face or document photo as a base64-encoded JPEG/PNG string (with or without a data:image/...;base64, prefix) or a public https:// image URL. | |
| country | No | Optional ISO country code to select the document template. | |
| documentType | Yes | Document type code for the GPT OCR template. Common values: CC, CC_BACK, CCVE, DNI, DNIES, PA, RUT, ENSAPA, RIFVE, TLCC, TLCC_FULL. Use an exact code supported by your template — invalid codes may fail. |