Image Understanding
POST
/v1beta/models/gemini-2.5-pro:generateContent
- Use
gemini-2.5-profor image understanding and description - Upload images via
contents.parts.inline_data(base64) - Use the
textpart to specify the understanding task (e.g., generate a caption) - Official docs: Image understanding
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
contents
object[]
Required
generationConfig
object
Required
Responses
Success
application/json
object