{"type":"object","properties":{"model":{"type":"string","pattern":"^(clairic|@cf/cloudflare/clairic)$","default":"clairic","description":"Required. The model selector: \"clairic\"."},"state":{"type":"string","default":"","description":"The text to read and predict from. Must be non-empty unless images are sent. Text answers are spans of this string."},"fields":{"type":"object","description":"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.","minProperties":1,"propertyNames":{"pattern":"^[A-Za-z_][A-Za-z0-9_.\\-]{0,63}$"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["text","number","date","time","datetime","duration","list","estimate","forecast"]},"instructions":{"type":"string","description":"What the field should contain."},"unit":{"type":"string","description":"Unit label. For durations, one of seconds, minutes, hours, days, weeks, months, years (default seconds)."},"integer":{"type":"boolean","description":"Numbers and durations only."},"decimals":{"type":"integer","minimum":0,"maximum":6,"description":"Numbers, durations and number lists only."},"items":{"type":"string","enum":["text","number","date"],"description":"Required for list fields."},"min":{"description":"Required for estimate/forecast: a number, or an ISO date for date estimates."},"max":{"description":"Required for estimate/forecast: a number, or an ISO date for date estimates."},"step":{"description":"Estimate grid: a positive number (days for date estimates), or \"month\" / \"year\"."},"scale":{"type":"string","enum":["linear","log"],"default":"linear"},"null_threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Probability of null above which the value is null (default 0.5)."},"horizon":{"type":"integer","minimum":1,"maximum":64,"description":"Forecast only: number of steps."},"interval":{"type":"string","enum":["step","minute","hour","day","week","month","quarter","year"],"description":"Forecast only."}},"required":["type"]}},"images":{"type":"array","description":"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.","maxItems":4,"items":{"anyOf":[{"type":"string","title":"Data URL","pattern":"^[Dd][Aa][Tt][Aa]:"},{"type":"object","title":"Base64 image","properties":{"content_type":{"type":"string"},"base64":{"type":"string"}},"required":["content_type","base64"]}]}},"reference_date":{"type":"string","description":"ISO date that anchors dates written without a year."},"options":{"type":"object","properties":{"include_quantiles":{"type":"boolean","default":false,"description":"Add 99 percentiles to estimates."},"return_state_text":{"type":"boolean","default":false,"description":"Return the text that spans index into."}}}},"required":["model","fields"]}