---
title: "Train Embeddings"
method: POST
path: "/api/v1/ai/embeddings/train"
tags: ["AI & Transfer Learning"]
---

# Train Embeddings

`POST /api/v1/ai/embeddings/train`

## Request

- Base URL: `https://app.aimrank.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.aimrank.io/api/v1/ai/embeddings/train`
- Auth: none declared

Train or update embeddings from vote data (compute-heavy; Creator+).

## Query parameters

- `force` boolean: Force retraining even if up to date
- `background` boolean: Run training in background thread

## Response `200`

Successful Response

- TrainEmbeddingsResponse
  - `status` string, required
  - `users` integer, required
  - `entities` integer, required
  - `components` integer, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/aimrank/apis/aimrank-api.md) · [All operations](https://skmtc.dev/aimrank/apis/aimrank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aimrank/apis/aimrank-api/revisions/3574d0aff459?raw)
