Skip to main content
Embeddings turn text into high‑dimensional vectors. Use them for semantic search, clustering, or similarity scoring across your own data.

Prerequisites

Before you start

  • Order matters: data[index] aligns with your input order.
  • Store the vectors in your database or vector index to power search and similarity.
  • Use consistent preprocessing (same casing and formatting) for better similarity results.

Create embeddings

Generate embeddings with POST /embeddings. The input can be a single string or an array.

Errors and edge cases

  • 401/403: token missing or invalid.
  • 413: input too large.
  • 400: invalid JSON or input type.