---
title: "Ollama-dialect embeddings (alias upstream itself deprecates) — successor: POST /v1/embeddings"
method: POST
path: "/legacy/ollama/api/embeddings"
tags: ["Legacy: Ollama-compatible API"]
deprecated: true
---

# Ollama-dialect embeddings (alias upstream itself deprecates) — successor: POST /v1/embeddings

`POST /legacy/ollama/api/embeddings`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/legacy/ollama/api/embeddings`
- Auth: HTTP bearer

> **Deprecated.**

Single-prompt spelling of /legacy/ollama/api/embed; returns one vector under `embedding`.

## Request body

- object
  - `model` string, required
  - `prompt` string, required

## Response `200`

Embedding

- object
  - `embedding` number[], required

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
