Skip to main content
POST
/
api
/
v1
/
runtime
/
v1
/
embeddings
Generate embeddings
curl --request POST \
  --url https://api.runflow.ai/api/v1/runtime/v1/embeddings \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": [
    "Hello, world!",
    "How are you?"
  ],
  "model": "text-embedding-3-small",
  "provider": "openai",
  "providerName": "My OpenAI Production",
  "dimensions": 1536
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.runflow.ai/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
input
string[]
required

Array of texts to generate embeddings for

Example:
["Hello, world!", "How are you?"]
model
string
default:text-embedding-3-small

Embeddings model

Example:

"text-embedding-3-small"

provider
enum<string>
default:openai

Embeddings provider

Available options:
openai,
azure_openai,
cohere
providerName
string

Provider name (configured in LLM Providers) for credential resolution

Example:

"My OpenAI Production"

dimensions
number

Embedding dimensions (only for models that support it)

Example:

1536

Response

Embeddings generated successfully