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

# Get Text Embeddings

`POST /api/v1/aRole/embeddings`

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/fastapi.md) · [All operations](https://skmtc.dev/brandbooster/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brandbooster/fastapi/revisions/624917d53409/schema)
