---
title: "Decode input ids"
method: POST
path: "/decode"
tags: ["Text Embeddings Inference"]
---

# Decode input ids

`POST /decode`

## Request body

- DecodeRequest
  - `ids` union, required
    - integer[]
    - array[]
      - integer[]
  - `skip_special_tokens` boolean

## Response `200`

Decoded ids

- string[]

## Other responses

- `400` — Batch is empty
- `413` — Batch size error
- `422` — Tokenization error

## Changes

- **2025-09-01** `9988d0e89620` — 1 warning, 2 info
  - added the new `Empty` enum value to the `error_type` response property for the response status `422`
  - added the non-success response with the status `400`
  - added the non-success response with the status `413`
- **2024-03-22** `36fa20faa0bb` — 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/decode/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/f4c15add6d2b/schema)
