GET
/v1/schemas/openai/chat/chat%2Fcompletions?kind=output
Accept:
Response body
10 properties · 5 required · 13 $defs| property | type | description | constraints |
|---|---|---|---|
| id* | string | A unique identifier for the chat completion. | |
| choices* | object[] | A list of chat completion choices. Can be more than one if `n` is greater than 1. | |
| created* | integer | The Unix timestamp (in seconds) of when the chat completion was created. | format: unixtime |
| model* | string | The model used for the chat completion. | |
| object* | const | The object type, which is always `chat.completion`. | "chat.completion" |
| metadata | object | Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. | nullable |
| service_tier | enum | Specifies the processing type used for serving the request. - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'. - If set to 'default', the… | auto | default | flex | scale | priority | fast · default: "auto" · nullable |
| system_fingerprint | string | This fingerprint represents the backend configuration that the model runs with. | deprecated |
| usage | CompletionUsage | Usage statistics for the completion request. | |
| moderation | ChatCompletionModeration | Moderation results for the request input and generated output, if moderated completions were requested. | nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"chat/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}