YBX.

Products · · 简体中文

Gemini Decisions API for routing incoming documents

Google’s Gemini Decision 1 scores predefined choices. For a document queue, use one shared input to decide where it belongs, whether required fields are present, and when your app should ask for a human review.

Define the choices before sending a document

Google introduced the endpoint on November 11, 2026. It accepts a shared multimodal input and can score multiple questions against it. The three decision types cover yes/no, multiple choice and ordered rubric scoring. Google lists support for PDFs as well as text, images, audio and video.

For an incoming document queue, ask one multiple-choice question with invoice, purchase order, and other as the options. For a candidate invoice, ask separately whether a purchase order reference is visible. Route to review if the document falls into other or a required check is uncertain. Keep the routing and any subsequent write in your own application.

Estimate cost and test the hard cases

At launch, Google quoted $0.10 per million input tokens and no output-token charge. It bills the shared input once per request, with question instructions and criteria adding input tokens. If the total billable input averages 1,000 tokens per document, 100,000 documents would use 100 million tokens, or $10 at that rate.

Build a labeled sample that includes blurry scans, templates from smaller suppliers, and documents that contain several form types. Set confidence cutoffs after reviewing errors on that sample. The routing workflow and token count here are illustrative.

Sources

Related reading