Skip to main content
The Embeddings API turns text into vectors you can use for semantic search, retrieval, clustering, and ranking.

Quick start

Request fields

Batch input in a single request

You can embed multiple strings in one API call:
The returned data array matches the order of your input array.

Response shape

Choosing a model

Use GET /v1/models to inspect available embedding models and their pricing. For embeddings, the most useful fields are:
  • model_type
  • context_length
  • pricing
  • is_free

SDK coverage

The official SDKs all expose first-class embeddings resources:
  • Node: client.embeddings.create(...)
  • Python: client.embeddings.create(...)
  • Go: client.Embeddings.Create(...)
  • Java: client.embeddings().create(...)

Common errors


Available models

Check GET /v1/models with the type=embedding filter to see the full live list of enabled embedding models.

RAG with file uploads

For retrieval-augmented generation over your own documents, use the Files & RAG workflow — upload files, trigger embedding, and search with POST /v1/files/search. This is more scalable than calling the embeddings endpoint directly for large document corpora.