GET
/v1/schemas/fireworks/chat/v1%2Fchat%2Fcompletions?kind=output
Accept:
Response body
8 properties · 4 required · 15 $defs| property | type | description | constraints |
|---|---|---|---|
| id* | string | A unique identifier of the response | |
| created* | integer | The Unix time in seconds when the response was generated | |
| model* | string | The model used for the chat completion | |
| choices* | ChatCompletionResponseChoice[] | The list of chat completion choices | |
| object | string | The object type, which is always "chat.completion" | default: "chat.completion" |
| usage | UsageInfo | Usage statistics. | nullable |
| perf_metrics | object | See parameter [perf_metrics_in_response](#body-perf-metrics-in-response) | nullable |
| prompt_token_ids | integer[] | Token IDs for the prompt (when return_token_ids=true) | nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fireworks","endpointId":"v1/chat/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}