Skip to main content
POST
Native OpenAI format

Introduction

Convert text to vector embeddings for semantic search, similarity, and clustering. Compatible with the OpenAI Embeddings API.

Authentication

string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

Request body

string
required
Model name, e.g. text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002
string | array
required
Text to embed (string or array of strings)
string
default:"float"
float or base64
integer
Output dimensions (some models only)

Example

Python example

Supported models

  • Pass an array to input for batch embedding
  • Some models support custom dimensions