GET
/v1/schemas/anthropic/chat/v1%2Fcomplete
Accept:
Request body
9 properties · 3 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | The model that will complete your prompt. | 17 known values |
| prompt* | string | The prompt that you want Claude to complete. | length ≥ 1 |
| max_tokens_to_sample* | integer | The maximum number of tokens to generate before stopping. | n ≥ 1 |
| stop_sequences | string[] | Sequences that will cause the model to stop generating. | |
| temperature | number | Amount of randomness injected into the response. | 0 ≤ n ≤ 1 · deprecated |
| top_p | number | Use nucleus sampling. | 0 ≤ n ≤ 1 · deprecated |
| top_k | integer | Only sample from the top K options for each subsequent token. | n ≥ 0 · deprecated |
| metadata | Metadata | An object describing metadata about the request. | |
| stream | boolean | Whether to incrementally stream the response using server-sent events. |
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", …}]}