---
title: "Embed"
method: POST
path: "/embed"
tags: ["docs"]
---

# Embed

`POST /embed`

## Request body

- union
  - SingleEmbedQueryRequest
    - `text` string, required
    - `embed_instruction` string
  - MultipleEmbedQueryRequest
    - `text` string[], required
    - `embed_instruction` string

## Response `200`

Successful Response

- EmbedQueryResponse
  - `vectors` array[], required
    - number[]

## Other responses

- `422` — Validation Error

---

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