GET
/v1/schemas/openai/chat/completions?kind=output
Accept:
Response body
7 properties · 5 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| id* | string | A unique identifier for the completion. | |
| choices* | object[] | The list of completion choices the model generated for the input prompt. | |
| created* | integer | The Unix timestamp (in seconds) of when the completion was created. | format: unixtime |
| model* | string | The model used for completion. | |
| object* | enum | The object type, which is always "text_completion" | text_completion |
| system_fingerprint | string | This fingerprint represents the backend configuration that the model runs with. | |
| usage | CompletionUsage | Usage statistics for the completion request. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}