GET

/v1/schemas/perplexity/embeddings/v1/contextualizedembeddings?kind=output

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

upstream-spec

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

Response body

4 properties · 0 required · 3 $defs
propertytypedescriptionconstraints
objectstringThe object type
dataContextualizedEmbeddingObject[]List of contextualized embedding objects
modelstringThe model used to generate embeddings
usageEmbeddingsUsageToken usage for the embeddings request

Types

3 $defs

ContextualizedEmbeddingObjectobject

A single contextualized embedding result

objectstringThe object type
indexintegerThe index of the document this chunk belongs to
dataEmbeddingObject[]List of embedding objects for chunks in this document

EmbeddingObjectobject

A single embedding result

objectstringThe object type
indexintegerThe index of the input text this embedding corresponds to
embeddingstringBase64-encoded embedding vector. For base64_int8: decode to signed int8 array (length = dimensions). For base64_binary: decode to packed bits (length = dimensions / 8 bytes).

EmbeddingsUsageobject

Token usage for the embeddings request

prompt_tokensintegerNumber of tokens in the input texts
total_tokensintegerTotal number of tokens processed
costobjectCost breakdown for the request

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", …}]}