<!-- Source: https://docs.squirro.com/en/latest/technical/api/services/genai/index.html -->
# GenAI Service API

The GenAI Service is Squirro’s AI/ML microservice that provides powerful language model capabilities, embeddings, and retrieval-augmented generation (RAG) features.

## Authentication

The GenAI Service REST API authenticates each request with a Squirro access token supplied as a bearer token in the `Authorization` header:

```text
Authorization: Bearer <access_token>
```

For details on obtaining a Squirro access token, see the [Authentication](../../authentication.md#api-authentication) page. If your deployment authenticates users through an external Identity Provider (IDP), see the [Calling the GenAI REST API with an IDP Token](../../../admin/external-authentication/jwt.md#jwt-genai-rest-api) section for how to exchange an IDP-issued JWT for a Squirro access token and call the GenAI REST API.

Access to a project endpoint additionally requires that the authenticated user has at least read access to that project. For how Squirro roles and project permissions govern API access, see the [Permissions Reference](../../squirro_client/sc-api-permissions.md#sc-api-permissions) page.

## API Versions

**v3.14.3 (Latest)**

- [Interactive API Docs](../../../../_static/html/specs/technical/api/services/genai/genai-3.14.3.html)
- [Download OpenAPI Spec](../../../../_static/html/specs/technical/api/services/genai/genai-3.14.3.json)
