GET
/v1/schemas/cloudflare-workers-ai/chat/accounts/{account_id}/ai/run/@cf/meta/llama-guard-3-8b
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace6bc63364daed79fcf0c060b23148c89b8664dae0f888dc89fdd22413ec1285c9{
"fetchedAt": 1791349950,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
4 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| messages* | object[] | An array of message objects representing the conversation history. | |
| max_tokens | integer | The maximum number of tokens to generate in the response. | default: 256 |
| temperature | number | Controls the randomness of the output; higher values produce more random results. | 0 ≤ n ≤ 5 · default: 0.6 |
| response_format | object | Dictate the output format of the generated response. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"cloudflare-workers-ai","endpointId":"accounts/{account_id}/ai/run/@cf/meta/llama-guard-3-8b","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}