GET
/v1/schemas/baseten/chat/v1%2Fchat%2Fcompletions?kind=output
Accept:
Response body
6 properties · 2 required · 10 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | The model used for the completion. | |
| choices* | ChatCompletionResponseStreamChoice[] | A list of chat completion choices. | |
| id | string | A unique identifier for the chat completion. | |
| object | const | The object type, always `chat.completion` or `chat.completion.chunk` for streaming. | "chat.completion.chunk" · default: "chat.completion.chunk" |
| created | integer | The Unix timestamp (in seconds) of when the completion was created. | |
| usage | UsageInfo | Token usage statistics for the request. Only present when streaming with `stream_options.include_usage: true`. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"baseten","endpointId":"v1/chat/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}