BETA

Docs
Documentation

Create embeddings

POST/v1/embeddings

No completion axis, so max_tokens is never touched server-side — the body is forwarded exactly as sent.

Request body

model
required, string — an embedding-capable catalog id
input
required — string or array of strings

cURL example

terminal
curl https://apily.pro/v1/embeddings \
  -H "Authorization: Bearer apily_your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"<embedding-model-id>","input":"Your text string goes here"}'

Error response (model not in catalog)

response.json
{
  "error": "Model not found",
  "model": "text-embedding-3-small"
}