GET
/v1/schemas/cloudflare-workers-ai/chat/accounts/{account_id}/ai/run/@cf/cloudflare/clef
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracedb0292c3b66712e25763500f172e97b11c047a38d07b3b9390a8f23b976aef84{
"fetchedAt": 1791349950,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
4 properties · 3 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | Required. The model selector: "clef" for @cf/cloudflare/clef, "clef-flash" for @cf/cloudflare/clef-flash. | |
| state* | any | Required. The content to evaluate: a string, or structured data (object/array) such as records, chat logs, or application state. Long text state is truncated to fit the model's token limit. | |
| questions* | object | Map of question id to a typed question (noul, choice, or score). 1 to 64 questions; ids may use letters, digits, '_', '.', '-' (max 100 chars). Answers are returned under the same ids. | |
| images | string | Base64 image[] | Clef extension to the System One API. Optional embedded PNG, JPEG, or WebP images placed before the state (max 4; 4 MiB and 16 megapixels each, 8 MiB total decoded; whole request body max 13 MiB). Remote URLs are not accepted. | items ≤ 4 |
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/cloudflare/clef","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}