File Analysis
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | ✅ Yes | gemini-2.5-pro | The model to use for the request. gemini-2.5-pro |
messages | array | ✅ Yes | - | Array of message objects for the conversation * role:user,The role of the message. * role:assistant,The role of the message. * role:system,The role of the message. |
content | array | ✅ Yes | - | text , image_url |
text | string | ✅ Yes | - | * type:text,The prompt for file analysis. |
image_url | object | ✅ Yes | - | * type:image_url,The URL of the file to analyze (PDF, images, etc.). |
stream | boolean | ❌ No | true | Whether to stream the response |