---
title: "Detokenize"
method: POST
path: "/v1/detokenize"
tags: ["Tokenizer"]
---

# Detokenize

`POST /v1/detokenize`

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Request body

- DetokenizeIn
  - `model` string, required — model name
  - `tokens` integer[] — token ids to detokenize

## Response `200`

Successful Response

- DetokenizeOut
  - `prompt` string, required — detokenized text

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/revisions/79ff347d29e2/schema)
