メインコンテンツへスキップ
更新日: 2026-06-06

Gemini Document Understanding

As of March 23, 2026, Crazyrouter production has verified that gemini-3.1-pro supports:
  • Reading PDFs through inlineData
  • Returning parseable JSON when responseMimeType and responseSchema are provided

PDF Summary

The following request successfully read a PDF and returned a summary in production:
In the production check, the model returned a one-sentence summary of the attached PDF.

PDF + Structured Output

The following request returned JSON text that could be parsed directly with json.loads() in production:
Observed production response:
You can parse it directly:
This page only confirms the PDF-input path and JSON structured output path. For table extraction, long-document comparison, or other higher-variance workflows, revalidate with your own sample documents first.
Large PDFs materially increase input-token usage. Validate prompts and schemas with small documents first, then scale up.