genai
embedding

Create an embedding

post/genai/{connection_id}/embedding

Request

  • Base URL: https://api.unified.to
  • URL: https://api.unified.to/genai/{connection_id}/embedding
  • Auth: API key in header authorization

Path parameters

connection_idstring required

ID of the connection

Query parameters

fieldsstring[]

Fields to return

rawstring

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

Request body

model_idstring
enconding_format'FLOAT' | 'UINT8' | 'INT8' | 'BINARY' | 'UBINARY' | 'BASE64'
typestring

'SEARCH_DOC' | 'SEARCH_QUERY' | 'CLUSTERING' | 'CLASSIFICATION';

dimensionnumber

256, 512, 1024, and 1536

max_tokensnumber
embeddingsstring

JSON string based off of the format

tokens_usednumber
rawobject
idstring

Response

Successful

model_idstring
enconding_format'FLOAT' | 'UINT8' | 'INT8' | 'BINARY' | 'UBINARY' | 'BASE64'
typestring

'SEARCH_DOC' | 'SEARCH_QUERY' | 'CLUSTERING' | 'CLASSIFICATION';

dimensionnumber

256, 512, 1024, and 1536

max_tokensnumber
embeddingsstring

JSON string based off of the format

tokens_usednumber
rawobject
idstring

Changes

No recorded changes to this operation across all 48 revisions of this API.