v10

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-0643140398.0 KB
Embeddings
Embeddings

Generate embeddings for text input

Generate vector embeddings from input text.

This endpoint converts text into high-dimensional vector representations that capture semantic meaning. These embeddings preserve semantic relationships between texts and can be used for various machine learning tasks.

Notes:

  • Empty strings or arrays are not accepted
  • Results include index numbers for mapping back to original inputs
  • All embeddings are generated as query vectors. If the embeddings have two modes (e.g., query and document), this endpoint only returns query vectors.
post/v1/embeddings

Request body

modelstring

Model identifier or alias.

Example request

{
  "input": "The quick brown fox jumps over the lazy dog"
}

Response

Successfully generated embeddings

object'list'

The type of object returned

model'private-gpt'

The model used to generate embeddings

Example response

{
  "data": [
    {
      "embedding": [
        0.123,
        -0.456,
        0.789,
        0.234,
        -0.567,
        0.891
      ],
      "index": 0,
      "object": "embedding"
    }
  ],
  "model": "private-gpt",
  "object": "list"
}