GET

/v1/schemas/cloudflare-workers-ai/chat/accounts/{account_id}/ai/run/@cf/cloudflare/clairic

kind inputactivity chathash de9a33d5…extracted Oct 20, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
4ab4f2224d8b8881c41af63bab9bc98c4ae9ed04c7830265b55e8366a45bb23c
{
  "fetchedAt": 1792473647,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

6 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
model*stringRequired. The model selector: "clairic".default: "clairic"
fields*objectRequired. 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.
statestringThe text to read and predict from. Must be non-empty unless images are sent. Text answers are spans of this string.default: ""
imagesstring | 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_datestringISO date that anchors dates written without a year.
optionsobject

Validate a payload

before you spend tokens
shell
$ 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", …}]}