Decisions

Create a decision

Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.

Supply input as a string or user messages containing text and inline images. Only user messages with input_text and input_image parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.

Each question can return a refusal instead of a scored answer. A refusal has type refusal and the corresponding question name, or null if unnamed.

post/decisions

Request body

modelstring required
safety_identifierstring nullable

Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity.

Response

The answers and token usage.

modelstring required

Changes

Changed in 2 of the 242 revisions of this API.11