text-embedding-ada-002
Last updated
Was this helpful?
Last updated
Was this helpful?
An efficient and reliable embedding model designed to convert text into numerical representations. It serves as a foundational tool for various natural language processing (NLP) applications, enabling machines to understand and process human language more effectively.
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
Input text to embed, encoded as a string or array of tokens.
The format in which to return the embeddings.
float
Possible values: The number of dimensions the resulting output embeddings should have.
POST /v1/embeddings HTTP/1.1
Host: api.aimlapi.com
Authorization: Bearer <YOUR_AIMLAPI_KEY>
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"model": "text-embedding-ada-002",
"input": "text",
"encoding_format": "float",
"dimensions": 1
}
No content