Skip to content

Document Understanding

POST
/v1beta/models/gemini-2.5-pro:generateContent
  • Upload PDFs and other documents via inline_data (base64)
  • Use text to specify tasks such as summarization or Q&A
  • Supports multi-page document understanding
  • Official docs: Document processing

Authorizations

bearer
Type
HTTP (bearer)

Request Body

application/json
object
object[]
Required

Responses

Success

application/json

Playground

Authorization
Body

Samples