OCR service configuration
For detailed OCR provider configuration (AWS Textract, Azure Vision, GCP Vision API, cross-cloud OCR, and GPU OCR deployment), see the dedicated OCR provider configuration page.LLM provider environment variables
Reducto supports multiple LLM providers through environment variables. Below is a complete list of supported providers and their required environment variables.LiteLLM proxy
OpenAI
Azure OpenAI
Anthropic
Gemini
AWS Bedrock
GPU-based extraction models
Reducto offers GPU-based models for structured data extraction and fine-grained citations. For best results, deploy both models together. Model weights are downloaded from HuggingFace using a scoped token provided by Reducto.Prerequisites
Create a Kubernetes secret with the HuggingFace token provided by Reducto:modelStorage to cache weights on a PVC so restarts don’t re-download.
YAML extraction model (30B)
GPU requirement: 1x NVIDIA H200 (will not fit on H100/A100/A10G).REDUCTO_YAML_EXTRACT_URL is automatically injected into all worker and HTTP pods.
Citation model (7B)
GPU requirement: 1x NVIDIA H100 or H200.REDUCTO_CITATION_URL is automatically injected into all worker and HTTP pods. If not deployed, citations fall back to your configured external LLM provider.
Model path overrides
Both deployments expose amodelPath field that can be updated if Reducto ships new model weights:
Extraction without GPU models
If you do not deploy either GPU model, extraction uses your configured external LLM provider (OpenAI, Anthropic, Google, Azure, or Bedrock). No additional configuration is needed.Fine-tuned OpenAI extraction model (alternative)
When set, this takes priority over the self-hosted extraction model.
Request-level LLM overrides
In addition to environment variables, on-prem deployments can override LLM configuration at the request level using theoverrides parameter in experimental_options.
Key-value processing overrides
Override the model and add custom instructions for key-value (form) region processing:Resolution order
Model resolution:- Request override -
experimental_options.overrides.key_value.model - Environment variable -
LOCAL_KV_MODEL - Code default - Based on deployment configuration
- Base prompt -
LOCAL_KV_PROMPTenv var, or built-in default - Custom instructions - Appended from
overrides.key_value.custom_instructions
Environment variable defaults
AI usage tracking
Reducto includes a comprehensive AI usage tracking system that monitors language model consumption throughout the document processing pipeline. This feature provides detailed insights into token usage, request counts, and model utilization for billing and optimization purposes.How AI usage tracking works
The AI usage tracking system operates at the block level within the parsing pipeline:- Token Counting: Each AI operation (table summarization, figure analysis, key-value extraction, etc.) records token consumption
- Request Tracking: The system counts API calls made to each model
- Model Identification: Usage is tracked per model type with provider information
- Aggregation: Usage is aggregated across all blocks and pages for comprehensive reporting
Available via /parse API
AI usage information is currently only available through the/parse API endpoint using the custom_format parameter. This feature is not available in other API endpoints.
Usage information structure
When enabled, the system returns anAIUsageInfo object containing:
Field descriptions
did_use_ai_models: Boolean indicating whether any AI models were used during processingai_usage_info: Array of usage information objects, one per model type usedpromptTokenCount: Total input tokens sent to the modelcompletionTokenCount: Total output tokens generated by the modelcachedTokenCount: Total cached tokens used (when supported by provider)requestCount: Number of API calls made to this modelmodelType: Standardized model identifiermodelProvider: Provider name (e.g., “anthropic”, “openai”)modelRateLimitFamily: Rate limiting group for the model
Enabling AI usage tracking
To retrieve AI usage information, set thecustom_format parameter to "ai_usage" in your /parse request:
Tracked AI operations
The system tracks usage from these AI-powered features:- Table Summarization: Analysis and description of complex tables
- Figure Summarization: Analysis and description of images and charts
- Key-Value enrichment: Enrichment for form-like regions within documents
Model name standardization
The system automatically standardizes model names for consistent reporting:- Internal model identifiers are mapped to standard formats
- Provider information is automatically added
- Rate limit families are identified for capacity planning
Possible model identifiers
The following model identifiers may appear in themodelType field of AI usage tracking responses, if you have OpenAI and Anthropic access enabled:
OpenAI models
gpt-4o-2024-08-06gpt-4o-mini-2024-07-18
Anthropic models
claude-haiku-4-5-20251001claude-3-7-sonnet-20250219