---
title: "Ollama-dialect embeddings — successor: POST /v1/embeddings"
method: POST
path: "/legacy/ollama/api/embed"
tags: ["Legacy: Ollama-compatible API"]
deprecated: true
---

# Ollama-dialect embeddings — successor: POST /v1/embeddings

`POST /legacy/ollama/api/embed`

## Request

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

> **Deprecated.**

Fronts the free ANE embeddinggemma path. Installed chat models answer 400 "does not support embeddings" (matching upstream ≥0.30's own refusal); unknown models return the pull-guidance 404.

## Request body

- object
  - `model` string, required
  - `input` union, required
    - string
    - string[]

## Response `200`

Embeddings

- object
  - `model` string, required
  - `embeddings` array[], required
    - number[]

---

[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)
