---
title: "Generate embeddings for a text string given a model"
method: POST
path: "/v1/embeddings/"
tags: ["Embeddings"]
---

# Generate embeddings for a text string given a model

`POST /v1/embeddings/`

Provide a text string and model as input to generate embeddings.

## Request body

- EmbeddingRequest
  - `input` union, required
    - string
    - string[]
  - `instructions` union, required
    - string
    - string[]
  - `model` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/texel/apis/texel-api.md) · [All operations](https://skmtc.dev/texel/apis/texel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/texel/texel-api/revisions/b728014efdc8/schema)
