Submit a decisions request
Evaluate a state against named questions with a decisions-output model. This alpha endpoint returns non-streaming JSON. Find available model ids with GET /v1/models?output_modalities=decisions; use this endpoint for Clef instead of chat/completions. Input tokens are billed at the selected model's customer price. Sufficient credits are required. Set BAZAARLINK_API_KEY to your API key; the sample builds its complete Authorization header in BAZAARLINK_AUTH_HEADER.
/v1/alpha/decisions인증
Authorization필수Authorization 헤더에 Bearer 토큰으로 API 키를 전달합니다.
Body
model필수An available decisions-output model id from /v1/models?output_modalities=decisions.
"cloudflare/clef-flash"state필수The evidence to evaluate, supplied as a string, JSON object, or array. Structured content parts are preserved. Image interpretation depends on the selected model's supported state format; input_tokens includes image tokens when they are counted.
imagesOptional inline images, up to 4 per request: PNG, JPEG or WebP as a data URI or raw base64, each up to 4 MiB and 8 MiB in total. Remote URLs are not accepted. Images are added to the state for the model; input_tokens includes the image tokens. A request with an unsupported or invalid image is rejected with 400 invalid_images.
questions필수Named questions. Each answer uses the same question id as its key.
type필수noul returns a number for a yes/no decision; choice selects an option; score returns a numeric score.
noulchoicescoreinstructions필수Instructions explaining the decision to make.
criteriaOptional true/false guidance for noul. Required option-to-guidance map for choice, with null allowed as option guidance. Required ordered guidance array with at least one item for score.
streamOmit this field or set false. Streaming requests are rejected with HTTP 400.
false