GET

/v1/schemas/perplexity/embeddings/v1/contextualizedembeddings

kind inputactivity embeddingshash f2371d58…extracted Aug 15, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
95305c44ed99cf4e51463de55994b3bd26063194b78668d5e8753534ee3551ab
{
  "fetchedAt": 1786772001,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

4 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
input*string[][]Nested array structure where each inner array contains chunks from a single document. Chunks within the same document are encoded with document-level context awareness. Maximum 512 documents. Total chunks across all documents must not exceed 16,000. Total toke…items ≥ 1 · items ≤ 512
model*enumThe contextualized embedding model to usepplx-embed-context-v1-0.6b | pplx-embed-context-v1-4b
dimensionsintegerNumber of dimensions for output embeddings (Matryoshka). Range: 128-1024 for pplx-embed-context-v1-0.6b, 128-2560 for pplx-embed-context-v1-4b. Defaults to full dimensions (1024 or 2560).128 ≤ n ≤ 2560
encoding_formatenumOutput encoding format for embeddings. base64_int8 returns base64-encoded signed int8 values. base64_binary returns base64-encoded packed binary (1 bit per dimension).base64_int8 | base64_binary · default: "base64_int8"

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"perplexity","endpointId":"v1/contextualizedembeddings","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}