Migrating from V1Beta2

Document AI'sv1beta2 API is now deprecated in favor of thev1 API.

Unlikev1beta2, Document AIv1is a stateful API, meaning you need to create aProcessorbefore you can send requests toProcessandBatchProcessdocuments.

NOTE: This deprecation only affects the version of the API used to call any processor.It does not affect the availability of any processor.

The major areas of v1 API backward incompatibility with v1beta2 API are discussedlater in this document.

Creating a processor

To migrate tov1 for processor creation, first create aProcessor. The following table serves as a general guideline for choosing an appropriateProcessorTypeto create, but you can consult the fullprocessor list.

document_typeparamsProcessor type
invoiceINVOICE_PROCESSOR
generalOCR_PROCESSOR
generaltable_extraction_paramsFORM_PARSER_PROCESSOR
generalform_extraction_paramsFORM_PARSER_PROCESSOR
generalentity_extraction_paramsFORM_PARSER_PROCESSOR
generalautoml_paramsCUSTOM_EXTRACTION_PROCESSOR

For a step-by-step guide to creating a processor, view theguide.

Processing documents

Document AIv1 has two APIs to accept documents:Process andBatchProcess.Each of these methods corresponds to a method fromv1beta2. The methods andtheir differences are highlighted:

v1beta2 Methodv1 MethodMigration notes
ProcessDocumentProcessInputConfig.Cloud Storage_source not supported inv1, useBatchProcess to process documents on Cloud Storage.
BatchProcessDocumentsBatchProcessIn addition to accepting individual documents on Cloud Storage,v1 supports a Cloud Storage prefix to process many documents at once.

Client libraries

If using theClient Libraries to interact withDocument AI, switch from using theDocumentUnderstandingService to theDocumentProcessorService. For a detailed example of using the client librariesforv1, seeclient libraries.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.