Skip to content

Embeddings

POST /v1/embeddings
FieldTypeDefaultNotes
modelstring(the deployment’s model)Optional; must match if set
inputstring | string[]requiredOne text or a batch
encoding_formatstring"float"
Terminal window
curl https://<your-deployment>.inference.meshive.ai/v1/embeddings \
-H "Authorization: Bearer $MESHIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": ["first text", "second text"]}'

The response is OpenAI’s embedding list object (data[].embedding, usage).

Rate limits (RPM/TPD) apply as on the other text endpoints — see the overview.