text-embedding-ada-002

This documentation is valid for the following list of our models:

  • text-embedding-ada-002

Model Overview

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.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.

Submit a request

API Schema

post
Authorizations
Body
modelundefined · enumRequiredPossible values:
inputany ofRequired

Input text to embed, encoded as a string or array of tokens.

string · min: 1Optional
or
string[] · min: 1Optional
encoding_formatstring · enum | nullableOptional

The format in which to return the embeddings.

Default: floatPossible values:
dimensionsnumber | nullableOptional

The number of dimensions the resulting output embeddings should have.

Responses
201Success
post
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
}
201Success

No content

Last updated

Was this helpful?