Creates an embedding vector representing the input text.
The authentication header format is Bearer <API_KEY>, where <API_KEY> is your API token.
ID of the model to use
Text input to embed, which can be encoded as a string or an array of tokens. To embed multiple inputs in a single request, pass an array of string arrays or an array of token arrays. The input cannot exceed the model's maximum number of input tokens (8192 tokens for all embedding models), cannot be an empty string, and the dimension of any array must be 2048 or less. Example Python code for counting tokens. In addition to the token limit per input, all embedding models enforce a limit of 300,000 total tokens for all inputs in a single request.
"The food was delicious and the waiter..."
Returns the embedded format
float, base64 Output the number of dimensions of the embedding