Embeddings

Turn text into vectors

Changed on

Turns text into vectors for search, retrieval, clustering and deduplication in the OpenAI embeddings shape, served by openrelay/bge-m3 today. openrelay/bge-m3 is multilingual and returns 1024-dimension dense vectors; check a model's supported_apis on GET /v1/models for embeddings.

Requires a funded balance. No output rate: billed only on usage.prompt_tokens. stream is dropped. Limits: 8192 tokens per input item, 1024 items per request, 10 MiB request body. Also runs through the Batch API at endpoint /v1/embeddings, at the batch rate.

Requires the inference.invoke permission. See Permissions for the roles and API key permissions that include it.

post/v1/embeddings

Request

  • Base URL
    https://inference.openrelay.inc
  • URL
    https://inference.openrelay.inc/v1/embeddings
  • Auth
    HTTP bearer

Request body

modelstring required

An OpenRelay public model id, e.g. openrelay/bge-m3.

Response

OK

dataobject[]
modelstring
object'list'
usageobject

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      endpoint added