---
title: "Embeddings (OpenAI-compatible)"
method: POST
path: "/api/v1/embeddings"
tags: ["OpenAI-compatible"]
---

# Embeddings (OpenAI-compatible)

`POST /api/v1/embeddings`

## Request

- Base URL: `https://api.llm-broker.net`
- URL: `https://api.llm-broker.net/api/v1/embeddings`
- Auth: API key in header `Authorization`

`input` is a string or an array of strings; returns `data[].embedding`.

## Request body

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

## Response `200`

Embeddings

- object

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `402`: Insufficient balance

---

[API](https://skmtc.dev/llm-broker/apis/astrioncore-core-api.md) · [All operations](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/revisions/f85835487bf5?raw)
