更新日: 2026-06-06
Gemini Document Understanding
gemini-3.1-pro supports:
- Reading PDFs through
inlineData - Returning parseable JSON when
responseMimeTypeandresponseSchemaare provided
PDF Summary
The following request successfully read a PDF and returned a summary in production:PDF + Structured Output
The following request returned JSON text that could be parsed directly withjson.loads() in production:
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.