This page lists the IAM roles and permissions for Gemini API. To
search through all roles and permissions, see the [role and
permission index](https://docs.cloud.google.com/iam/docs/roles-permissions).

## Gemini API roles


Gemini API offers the following service agent roles.
Service agent roles should only be granted to [service agents](https://docs.cloud.google.com/iam/docs/service-agents.md.txt).

| Role | Permissions |
|---|---|
| #### Generative Language Service Agent (`roles/generativelanguage.serviceAgent`) Grants Generative Language Service Agent permissions required to read data from GCS buckets. > [!WARNING] > **Warning:** Do not grant service agent roles to any principals except [service agents](https://docs.cloud.google.com/iam/docs/service-agents.md.txt). | `storage.buckets.get` `storage.objects.get` |

## Gemini API permissions

There are no IAM permissions for this service.