Skip to main content
POST
Generate embeddings

Embeddings API

The Embeddings API allows you to convert text into numerical vector representations that capture semantic meaning. These embeddings enable powerful operations like:
  • Semantic text search
  • Text clustering and classification
  • Content recommendation
  • Similarity comparisons

Available Models

Gately AI offers several embedding models with different dimensions and performance characteristics:

Example Usage

Response Format

The API returns a list of embedding vectors corresponding to each input text, along with usage information:

Best Practices

  • Use consistent embedding models for related datasets
  • For long texts, consider chunking into smaller segments
  • Normalize embeddings if performing cosine similarity
  • Cache embeddings for frequently used content

Authorizations

Authorization
string
header
required

Enter your API key prefixed with 'Bearer '

Body

application/json
model
string
required
Example:

"jina-embeddings-v3"

input
string[]
required

Response

200 - application/json

Successful response

The response is of type object.