POST
POST /decisions — OpenAI API
OpenAI API key (required); https://api.openai.com/v1
OpenAI APICreate a decision
- Base URL
- https://api.openai.com/v1
- Auth
- Authorization: Bearer <OPENAI_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 335 tokens · Vary: Accept
→ 335 tokens · Vary: Accept
Critical gotchas
The Responses API is the primary interface for new text and tool workflows; Chat Completions remains a separate compatibility API.
Audio transcription uploads use multipart form data rather than a JSON request body.
cURL
curl -X POST 'https://api.openai.com/v1/decisions' \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "model": "example-model", "input": "example-input", "questions": [ { "type": "predicate", "name": "example-name", "instructions": "example-instructions" } ]}'
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| model | body | string | Yes | The model to use. Only `gpt-6-luna` is supported. |
| input | body | string | Yes | 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. User messages and tool outputs can contain text and images; developer and system messages can contain only input text, and assistant messages can contain output text or refusals. Images can be base64 data URLs or publicly accessible HTTP(S) URLs; at most 128 images are allowed per request. Files, audio, and item references are not supported. |
| questions | body | object[] | Yes | Ask 1–400 questions about the input. Each question can be a predicate, choice, or score. Answers come back in the same order. |
| safety_identifier | body | string | No | Opaque caller-provided end-user identifier, scoped by the verified org. Match Responses' limit; this is never the authenticated user identity. |
| prompt_cache_key | body | string | No | Partition prompt cache reuse by caller-provided key. |
| prompt_cache_options | body | object | No | 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](https://developers.openai.com/api/docs/guides/prompt-caching) for current details. |
Response 200 OK
{
"model": "string",
"answers": [
{
"type": "predicate",
"name": "string",
"probability": 0
}
],
"usage": {
"input_tokens": 0,
"input_tokens_details": {
"cached_tokens": 0,
"cache_write_tokens": 0
},
"output_tokens": 0,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 0
}
} Get a free OpenAI API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.