---
title: "Get Embeddings. Returns a 424 status code if the model is not an embedding model."
method: POST
path: "/embed"
tags: ["Text Embeddings Inference"]
---

# Get Embeddings. Returns a 424 status code if the model is not an embedding model.

`POST /embed`

Get Embeddings. Returns a 424 status code if the model is not an embedding model.

## Request body

- EmbedRequest
  - `inputs` union, required
    - string
    - string[]
  - `normalize` boolean
  - `truncate` boolean

## Response `200`

Embeddings

- array[]
  - number[]

## Other responses

- `413` — Batch size error
- `422` — Tokenization error
- `424` — Embedding Error
- `429` — Model is overloaded

## Changes

- **2023-11-15** `c4554b0fed8e` — 1 info
  - added the new optional request property `normalize`
- **2023-10-13** `8c00768ef703` — 2 breaking, 4 warning, 6 info
  - the request property `truncate` became not nullable
  - removed `#/components/schemas/InputType, subschema #2` from the `inputs` request property `oneOf` list
  - removed the request property `dimensions`
  - removed the request property `normalize`
  - …8 more

[Change history](https://skmtc.dev/huggingface/apis/text-embeddings-inference/changes/embed/post.md)

---

[API](https://skmtc.dev/huggingface/apis/text-embeddings-inference.md) · [All operations](https://skmtc.dev/huggingface/apis/text-embeddings-inference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/huggingface/text-embeddings-inference/revisions/36fa20faa0bb/schema)
