GET

/v1/schemas/openai/chat/completions?kind=output

kind outputactivity chathash 244cca42…extracted Sep 2, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
7a3da399920fee54b0324a48e9d55a7a87695f9ae184854cde987efe90a19f18
{
  "fetchedAt": 1788325860,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

7 properties · 5 required · 1 $defs
propertytypedescriptionconstraints
id*stringA unique identifier for the completion.
choices*object[]The list of completion choices the model generated for the input prompt.
created*integerThe Unix timestamp (in seconds) of when the completion was created.format: unixtime
model*stringThe model used for completion.
object*enumThe object type, which is always "text_completion"text_completion
system_fingerprintstringThis fingerprint represents the backend configuration that the model runs with.
usageCompletionUsageUsage statistics for the completion request.

Types

1 $defs

CompletionUsageobject

Usage statistics for the completion request.

completion_tokens*integerNumber of tokens in the generated completion.default: 0
prompt_tokens*integerNumber of tokens in the prompt.default: 0
total_tokens*integerTotal number of tokens used in the request (prompt + completion).default: 0
completion_tokens_detailsobjectBreakdown of tokens used in a completion.
prompt_tokens_detailsobjectBreakdown of tokens used in the prompt.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"openai","endpointId":"completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}