POST

Generate a 384-dimension embedding vector for input text, optionally normalized. Powered by all-MiniLM-L6-v2

/v1/embed/query

Powered by Hugging Face

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/embed/query
Content-Type: application/json

{
  "text": "Hello, world!",
  "normalize": true
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Generate a 384-dimension embedding vector for input text, optionally normalized. Powered by all-MiniLM-L6-v2.

Platform hosting open-source machine learning models and datasets.

Request schema

Body: JSON · application/json

FieldTypeDescription
textstringrequired
normalizebooleanrequired
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/embed/query \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Hello, world!",
  "normalize": true
}'

402 payment flow omitted — see Integrations for settlement.