GET
/v1/schemas/anthropic/chat/v1%2Fcomplete?kind=output
Accept:
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. | 17 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" |
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", …}]}