Dedicated.Embeddings
Embeddings
Creates an embedding vector representing the input text.
post/dedicated/v1/embeddings
Request
- Base URLhttps://api.friendli.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Friendli-Teamstring nullable
ID of team to run requests as (optional parameter).
Request body
Example request
{
"encoding_format": "float",
"input": "The food was delicious and the waiter...",
"model": "(endpoint-id)"
}Response
Successfully generated embeddings.
Example response
{
"usage": {
"prompt_tokens": 5,
"completion_tokens": 7,
"total_tokens": 12
}
}Changes
No recorded changes to this operation across all 1 revision of this API.