---
title: "Get Text Embeddings"
method: POST
path: "/api/v1/aRole/embeddings"
tags: ["aRole"]
---

# Get Text Embeddings

`POST /api/v1/aRole/embeddings`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/aRole/embeddings`
- Auth: HTTP bearer

Generate embeddings for a text string using OpenAI's embedding models.

Args:
    req: Request body containing text and optional model name
    user: The authenticated user

Returns:
    JSON response with the embedding vector

## Request body

- TextEmbeddingRequest
  - `text` string, required
  - `model` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/brandbooster/apis/brandbooster-api.md) - [All operations](https://skmtc.dev/brandbooster/apis/brandbooster-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brandbooster/apis/brandbooster-api/revisions/02d28bde684c?raw)
