GET
/v1/schemas/perplexity/chat/v1%2Fsonar?kind=output
Accept:
Response body
10 properties · 4 required · 14 $defs| property | type | description | constraints |
|---|---|---|---|
| id* | string | Unique identifier for the completion | |
| model* | string | Model used for generation | |
| created* | integer | Unix timestamp when the completion was created | |
| choices* | Choice[] | Array of completion choices | |
| usage | UsageInfo | Token usage and cost information for a request | nullable |
| object | string | Object type identifier | default: "chat.completion" |
| citations | string[] | URLs of sources used to generate the response | nullable |
| search_results | ApiPublicSearchResult[] | Search results used for context in the response | nullable |
| images | ImageResult[] | Array of images returned when return_images is true | nullable |
| related_questions | string[] | Array of related questions returned when return_related_questions is true | nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"perplexity","endpointId":"v1/sonar","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}