Process and understand documents using Gemini models
Official documentation: https://ai.google.dev/gemini-api/docs/document-processingProcess and extract information from various document formats including PDFs, Word documents, and other text-based files using Google Gemini models.
role (string): Role (user or model)parts (array): Content parts array, can include:
text (string): Text prompt or question about the documentinline_data (object): Document data
mime_type (string): Document MIME type (e.g., “application/pdf”)data (string): Base64-encoded document datatemperature (number): Sampling temperaturetopP (number): Nucleus sampling parametermaxOutputTokens (integer): Maximum output tokens