Creates an embedding vector from the input text.

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 (8192 tokens) and cannot be an empty string.

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
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
country_code