Embeddings

Create Embeddings

Changed on

Create embeddings for the given input text(s).

This endpoint creates embeddings using the Morpheus Network providers. It automatically manages sessions and routes requests to the appropriate embedding model.

Billing is applied to all requests:

  • Balance is checked before the request starts
  • 402 Payment Required is returned if insufficient credits
  • Usage is finalized after completion with actual token counts
  • Holds are voided on failures
post/api/v1/embeddings

Request

  • The document declares no server URL.
  • Auth
    API key in header Authorization

Request body

modelstring
encoding_formatstring
dimensionsinteger
userstring
session_idstring

Response

Successful Response

objectstring
modelstring required

Changes

    • breaking

      request body became required

    • info

      added the new optional request property

    • info

      the request property default value Sample text to generate embeddings was removed

    • info

      request property list-of-types was widened by adding types array to media type application/json

    • warning

      removed the request property