Purpose: Clef is a 27B multimodal decision model provided by Workers AI, with the explicit purpose of converting a state and a schema of typed questions into decision results. It does not merely generate a piece of text; instead, it returns a probability for each allowed option of each question in the schema.
Key capabilities: The model can read state in the form of text, JSON, images, or video. It is officially described as belonging to the text generation model category, and it explains how question types, probabilities, and confidence work in decision models. The API provides the raw schema, making it easy to organize inputs and outputs around structured questions. The model is hosted by Cloudflare and is marked as zero data retention.
Usage: When using it, you should provide a state and a question schema; the model returns probabilities for each allowed option of each question according to the schema. The specific API calling method, authentication method, request examples, and response structure are not fully given in the materials and require reference to the corresponding API schema and Decision models documentation.
Billing and media processing: The Clef model converts media inputs into input tokens and bills them at that model's input token rate; it is officially stated that the Clef model does not charge for output tokens. Specific per-model rates require reference to pricing; the materials do not give specific prices. Images are scaled while preserving aspect ratio, with each side rounded to a multiple of 32 pixels; areas below about 65,000 pixels (256×256) are upscaled to that area, and areas above about 1 megapixel are downscaled. Each 32×32 pixel block counts as one token, calculated as tokens = (width / 32) x (height / 32); an additional 3 tokens mark the start and end of the image; each image has a maximum of 1,024 tokens.
Context and limitations: Media tokens are counted together with questions toward the model's context window. If media tokens exceed the context window, the request fails; if not, the text state is truncated to fit the remaining space. The materials do not provide the specific size of the context window, rate limits, available regions, latency, complete API examples, or specific industry cases. Applicable scenarios: The materials do not list specific cases or industry lists; based on its explicit capabilities, it is suitable for decision tasks that require mapping multimodal states and structured questions to options with probabilities, provided that the input conforms to its schema and context window limits.