Creates an embedding vector from the input text.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum

ID of the embedding model.

Allowed:
required

Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings. The input must not exceed the max input tokens for the model (512 tokens) and cannot be an empty string.

string
enum
Defaults to passage

This model operate in passage or query mode, and thus require the input_type parameter. passage is used when generating embeddings during indexing. query is used when generating embeddings during querying. It is very important to use the correct input_type. Failure to do so will result in large drops in retrieval accuracy.

Allowed:
string
enum
Defaults to float

The format to return the embeddings in

Allowed:
string
enum
Defaults to NONE

Specifies how inputs longer than the maximum token length of the model are handled. Passing START discards the start of the input. END discards the end of the input. In both cases, input is discarded until the remaining input is exactly the maximum input token length for the model. If NONE is selected, when the input exceeds the maximum input token length an error will be returned.

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
country_code