---
title: "Create Embedding"
method: POST
path: "/v1/embeddings"
tags: ["embeddings"]
---

# Create Embedding

`POST /v1/embeddings`

OpenAI-compatible embeddings endpoint.

Authentication modes:
- Master key + user field: Use specified user (must exist)
- API key + user field: Use specified user (must exist)
- API key without user field: Use the shared "default" user

## Request body

- EmbeddingRequest — OpenAI-compatible embedding request.
  - `dimensions` integer, nullable
  - `encoding_format` string, nullable
  - `input` union, required — Input text to embed
    - string
    - string[]
  - `model` string, required
  - `user` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.net/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/c05befed4db4/schema)
