Skip to content
Guide
Parse
Processing Options

OCR Options

OCR options allow you to configure optical character recognition settings for processing images within documents. These options are available for all tiers.

Use processing_options.ocr_parameters to configure these options.

Specify which languages to use for OCR processing of images. This only affects text extracted from images, not native text in the document.

{
"tier": "agentic",
"version": "latest",
"processing_options": {
"ocr_parameters": {
"languages": ["en", "zh", "ja"]
}
}
}
{
"tier": "fast",
"version": "latest",
"processing_options": {
"ocr_parameters": {
"languages": ["en"]
}
}
}
{
"tier": "agentic_plus",
"version": "latest",
"processing_options": {
"ocr_parameters": {
"languages": ["en", "fr", "de", "es"]
}
}
}
Terminal window
curl -X 'POST' \
'https://api.cloud.llamaindex.ai/api/v2/parse' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" \
--data '{
"file_id": "<file_id>",
"tier": "agentic",
"version": "latest",
"processing_options": {
"ocr_parameters": {
"languages": ["en", "es"]
}
}
}'