Document Understanding
POST
/v1beta/models/gemini-2.5-pro:generateContent
- Upload PDFs and other documents via
inline_data(base64) - Use
textto 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
contents
object[]
Required
Responses
Success
application/json
object