Completions
Create embeddings
Creates an embedding vector representing the input text or token arrays.
post/v1/embeddings
Request
- Base URLhttps://api.us-east-1.langdb.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"model": "text-embedding-ada-002",
"dimensions": 1536
}Response
Successful response with embeddings
Changes
No recorded changes to this operation across all 1 revision of this API.