LatentKit

Embeddings

POST /v1/embeddings — create vector embeddings through the assigned route.

Request

curl https://ai.latentkit.com/v1/embeddings \
  -H "Authorization: Bearer $LATENTKIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": ["hello world", "LatentKit routes by API key"],
    "dimensions": 256
  }'

Fields

FieldDescription
inputString or array of strings to embed
dimensionsOptional output dimensionality when the route model supports it

SDK

const vectors = await client.embeddings.create({
  input: ['hello world'],
  dimensions: 256,
});
vectors = client.embeddings.create(
    input=["hello world"],
    dimensions=256,
)

Free plan note

Plain embeddings requests may count toward a workspace managed onboarding allowance on Free plans. After limits or without credits, add credits or use BYOK routes.

On this page