> For the complete documentation index, see [/llms.txt](/llms.txt).

> Source: /api/embeddings

# Embeddings API

OpenAPI spec: `./openapi/openapi.yaml`

- `POST /embeddings`

<br />

## Response

A list of **embedding** objects.

**The embedding object**

Represents an embedding vector returned by the embeddings API endpoint.

<table><tbody><tr><td><strong>index</strong> integer<br />
The index of the embedding in the list of embeddings.</td></tr><tr><td><strong>embedding</strong> array<br />
The embedding vector is a sequence of floating-point numbers. Currently, the models utilize vectors with a dimensionality of 1024.</td></tr><tr><td><strong>object</strong> string<br />
The object type, which is always "embedding".</td></tr></tbody></table>

**Additional information**

<table><tbody><tr><td><strong>model</strong> string<br />
A string indicating the version of the model that was utilized for the request.</td></tr><tr><td><strong>usage</strong> object<br />
Usage statistics for the embedding request.</td></tr><tr><td><strong>usage.prompt\_tokens</strong> integer<br />
Number of tokens in the prompt.</td></tr><tr><td><strong>usage.total\_tokens</strong> integer<br />
Total number of tokens used in the request.</td></tr></tbody></table>

## Example

### Request

_Request/response examples: embeddings / request_

### Response

Success - HTTP Status 200 OK - Single input response

_Example: embeddings / response-200 / default_