Create decision
Answers classification and scoring questions about an input with typed answers and probabilities instead of generated text. OpenAI Decisions and Gemini Decisions share this endpoint, and the shape of questions tells them apart. An array is an OpenAI Decisions request, and an object keyed by question name is a Gemini Decisions request. Each request and response follows its provider's format. Billing follows the token usage the model reports, at the prices in GET /v1/models.
Authorization<token>application/json- body
input*|array<|||||||>The input to evaluate for every question. Provide a text string or an ordered array of messages, function calls and outputs, or custom tool calls and outputs. Each tool output must identify a matching call by call ID.
model*stringThe model to use. Only gpt-6-luna is supported.
0 <= length <= 1048576prompt_cache_key?|Partition prompt cache reuse by caller-provided key.
0 <= length <= 64prompt_cache_options?|Options for prompt caching. Supported for gpt-5.6 and later models. By default, OpenAI automatically chooses one implicit cache breakpoint. You can add explicit breakpoints to content blocks with prompt_cache_breakpoint. Each request can write up to four breakpoints. For cache matching, OpenAI considers up to the latest 80 breakpoints in the conversation, without a content-block lookback limit. Set mode to explicit to disable the implicit breakpoint. The ttl defaults to 30m, which is currently the only supported value. See the prompt caching guide for current details.
questions*array<||>Ask 1–400 questions about the input. Each question can be a predicate, choice, or score. Answers come back in the same order.
1 <= items <= 400safety_identifier?|Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity.
0 <= length <= 128Successful response
application/json- response
answers*array<|||>Answers in question order. Any question can return a refusal instead of an answer; other questions can still receive answers. A refusal has type: "refusal" and the question's name, or null if it was unnamed.
0 <= items <= 2000model*stringThe model used.
0 <= lengthusage*Token usage for the request.
curl -X POST 'https://api.ohmygpt.com/v1/decisions' \ -H 'Content-Type: application/json' \ -d '{ "input": "string", "model": "string", "questions": [ { "instructions": "string", "type": "predicate" } ]}'{ "answers": [], "model": "string", "usage": { "input_tokens": -2147483648, "input_tokens_details": { "cache_write_tokens": -2147483648, "cached_tokens": -2147483648 }, "output_tokens": -2147483648, "output_tokens_details": { "reasoning_tokens": -2147483648 }, "total_tokens": -2147483648 }}Still stuck? Live chat · [email protected] · Telegram group
Decisions
Typed answers to classification questions with OpenAI Decisions, and TypeSafe System One.
Evaluate with System One POST
TypeSafe System One answers named questions about `state` with typed answers and calibrated confidence. Requests and responses follow TypeSafe's format. Send JSON, or `multipart/form-data` with the JSON in a first part named `request` followed by one part per image. Request headers that start with `TypeSafe-Danger-Zone-` reach the model as sent. Billing follows the token usage the model reports, at the prices in `GET /v1/models`.