GET

/v1/schemas/perplexity/chat/v1%2Fsonar?kind=output

kind outputactivity chathash a6de4b6d…extracted Oct 3, 2026version currentsource upstream spec ↗

Response body

10 properties · 4 required · 14 $defs
propertytypedescriptionconstraints
id*stringUnique identifier for the completion
model*stringModel used for generation
created*integerUnix timestamp when the completion was created
choices*Choice[]Array of completion choices
usageUsageInfoToken usage and cost information for a requestnullable
objectstringObject type identifierdefault: "chat.completion"
citationsstring[]URLs of sources used to generate the responsenullable
search_resultsApiPublicSearchResult[]Search results used for context in the responsenullable
imagesImageResult[]Array of images returned when return_images is truenullable
related_questionsstring[]Array of related questions returned when return_related_questions is truenullable

Validate a payload

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