---
title: "Get Predictions. Returns a 424 status code if the model is not a Sequence Classification model"
method: POST
path: "/predict"
tags: ["Text Embeddings Inference"]
---

# Get Predictions. Returns a 424 status code if the model is not a Sequence Classification model

`POST /predict`

Get Predictions. Returns a 424 status code if the model is not a Sequence Classification model

## Request body

- PredictRequest
  - `inputs` union, required
    - string
    - string[]
  - `raw_scores` boolean
  - `truncate` boolean

## Response `200`

Predictions

- Prediction[]
  - `label` string, required
  - `score` number, float, required

## Other responses

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

## Changes

- **2023-11-15** `c4554b0fed8e` — 1 info
  - endpoint added
- **2023-10-13** `8c00768ef703` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/huggingface/apis/text-embeddings-inference/changes/predict/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/c4554b0fed8e/schema)
