Embeddings
Create embeddings
Generates embeddings for the given input text. Supports single strings or arrays of strings. Response includes token usage and cost information.
post/api/{workspaceID}/v1/embeddings
Request
- Base URLhttps://ai.liara.ir
- URLhttps://ai.liara.ir/api/{workspaceID}/v1/embeddings
- AuthAPI key in header Authorization
Path parameters
workspaceIDstring required
The workspace ID
Request body
Example request
{
"model": "openai/text-embedding-3-small"
}Response
Successful response
Changes
No recorded changes to this operation across all 4 revisions of this API.