v1

latestOpenAPI 3.0.1raw.githubusercontent.com2026-06-02124.0 KB
Embeddings

Create embeddings

Generates embeddings for the given input text. Supports single strings or arrays of strings. Response includes token usage and cost information.

post/api/{workspaceID}/v1/embeddings

Path parameters

workspaceIDstring required

The workspace ID

Request body

modelstring required

Embedding model ID. Supported models:

  • google/gemini-embedding-2
  • intfloat/multilingual-e5-large
  • google/gemini-embedding-001
  • openai/text-embedding-3-small
  • openai/text-embedding-3-large
  • openai/text-embedding-ada-002
dimensionsnumber

Output dimensions (model-dependent)

encoding_formatstring

Encoding format for embeddings

userstring

End-user identifier

Example request

{
  "model": "openai/text-embedding-3-small"
}

Response

Successful response

object'list'
modelstring

Model ID used

All 1 operations