Run an AI pass over items
analyses_runRead a set of items with one AI pass. Charges credits: 1 credit per 50 items for group, classify and summarise, and 1 credit per 25 for agent — the agent answers your own fields per item, which is heavier than a single verdict. The response's meta.credits_used is what was actually charged; a batch the provider could not answer is not billed. Estimate first with analyses_estimate if the cost matters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | group: cluster the items by an instruction. classify: sort them into buckets you define. agent: apply your instruction and schema to each item. summarise: answer one question about the set. | |
| items | No | The items to read. Use exactly one of items or keywordId. | |
| limit | No | ||
| since | No | With keywordId: ISO instant, defaults to 24h ago. | |
| schema | No | Required for kind=agent: 1-12 flat fields to answer per item. No nesting, no arrays. Every field may answer null — that is a real answer. | |
| buckets | No | Required for kind=classify. | |
| question | No | Required for kind=summarise. | |
| keywordId | No | Read a keyword's own recent mentions instead of passing items. The id comes from list_keywords. | |
| instruction | No | Required for kind=group and kind=agent. |