GET
/v1/schemas/anthropic/chat/v1/complete?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace05e92b686382eeac1d8070f9f2aaf5fa8180e804b1b9fa1f498b70a0325b898c{
"fetchedAt": 1792041619,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
5 properties · 5 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| completion* | string | The resulting completion up to and excluding the stop sequences. | |
| id* | string | Unique object identifier. | |
| model* | string | The model that will complete your prompt. | 20 known values |
| stop_reason* | string | The reason that we stopped. This may be one the following values: * `"stop_sequence"`: we reached a stop sequence — either provided by you via the `stop_sequences` parameter, or a stop sequence built into the model * `"max_tokens"`: we exceeded `max_tokens_to_sample` or the model's maximum | nullable |
| type* | const | Object type. | "completion" · default: "completion" |
Types
1 $defsModelstring
The model that will complete your prompt.
20 known values
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"anthropic","endpointId":"v1/complete","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}