Skip to main content

Create decision

POST 

/decisions

Preview. Answers typed questions about an input with calibrated probabilities instead of generated text, in the format of OpenAI's Decisions API (client.decisions.create in OpenAI's Python SDK). Each question is a predicate (yes or no), a choice (one of several typed values) or a score (one of 2 to 10 ordered levels); the answers come back in question order.

Only decision models can be used: GET /v1/models?format=openai lists them, each with endpoints. Only input tokens are billed. There is no streaming. Only Serenity Edge API keys can use this route; a key from a Serenity Star account gets 403 permission_denied for now. Until the service is enabled, the route answers 404 like an unknown path. See the Decisions guide.

Request​

Responses​

The answers, one per question in question order, with the versioned id of the model that answered and the token usage.