Native OCR or privacy extraction: which path fits?
Compare native Mistral OCR with RN text extraction and personal data processing. Input type and policy change the integration.
Rota Nacional · Published · Reviewed
Reading a document is not the same as protecting its text
OCR converts visual content into text and structure. The privacy barrier processes personal data in content it can inspect. An image sent directly to a model is not protected merely because another part of the conversation passed through text rules.
Choose the path before integrating. If the organization requires processing before transmission, check protected extraction and available capabilities. If you need a provider-native contract, assess authorization to send the original document.
When to use native OCR
The /v1/providers/mistral/v1/ocr path preserves the body accepted by Mistral, including the model and supported provider options. Input can reference a document or image in the native format, or an owned file registered in the gateway.
This path requires an authorized connection and native consent. It sends the original document without the privacy barrier. An organization that requires the barrier receives 403 before transmission. The gateway preserves provider errors rather than modifying the request to make it pass.
When to use protected extraction
The /v1/privacy/extract endpoint is the entry for obtaining processed text before using protected chat. Check supported formats, maximum size and capacity availability in the API. The existence of a route does not mean a worker is available at that moment.
Start with a representative fictional document. Check reading order, tables and detected categories. OCR can misread characters and structure; personal data detection has limits too. A successful response does not establish perfect extraction or automatic legal compliance.
Frequently asked questions
Does native OCR apply the privacy barrier?
No. It preserves the document and provider contract. When the organization requires the barrier, this path is refused.
Can I put an image in chat for the barrier to read?
The text barrier cannot inspect pixels. Check protected extraction, supported formats and capacity availability before sending the content to chat.
Keep reading
Require privacy across your organization's API keys
An organization can require the RN privacy barrier. Understand native API blocking, the 403 error and the protected chat path.
Before AI: replace personal data, redact it or block it?
Compare RN personal data policies and choose the right treatment for your workflow. Learn why monitoring is not anonymization.
An AI gateway that preserves your application's model
Centralize AI connections in RN without converting provider request bodies. Understand native endpoints, authorized pools and migration limits.