GET
/v1/schemas/cloudflare-workers-ai/chat/accounts/{account_id}/ai/run/@cf/cloudflare/clairic
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace4ab4f2224d8b8881c41af63bab9bc98c4ae9ed04c7830265b55e8366a45bb23c{
"fetchedAt": 1792473647,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
6 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | Required. The model selector: "clairic". | default: "clairic" |
| fields* | object | Required. Map of field name to a typed field spec. At least one field; no upper limit. Fields that do not fit next to the state in one 8,192-token pass are split across parallel passes. | |
| state | string | The text to read and predict from. Must be non-empty unless images are sent. Text answers are spans of this string. | default: "" |
| images | string | Base64 image[] | Optional embedded PNG, JPEG or WebP images placed before the state (max 4; 4 MiB each, 8 MiB total decoded; request body max 16 MiB). Remote URLs are not accepted. | items ≤ 4 |
| reference_date | string | ISO date that anchors dates written without a year. | |
| options | object |
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/clairic","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}