Skip to main content
POST
Embeddings

Overview

Create embeddings for text inputs. Useful for semantic search, clustering, and RAG applications.

Request

Body Parameters

string
required
Embedding model ID (e.g., text-embedding-3-small, text-embedding-ada-002)
string or array
required
Text or array of texts to embed
string
default:"float"
Format for embeddings (float or base64)

Response

string
Object type (always list)
array
Array of embedding objects
string
Model used
object
Token usage

Examples

Batch Embeddings

Supported Models

Use Cases

Semantic Search

Find relevant documents based on meaning

Clustering

Group similar texts together

RAG Applications

Retrieval-augmented generation

Recommendations

Content recommendation systems