Create decision

http
POST /ai/v1/decisions

Evaluate evidence with predicate, choice, or score questions.

Servers

JSON
[  {    "url": "https://api.veryfront.com"  }]

Authentication

JSON
[  {    "bearerAuth": []  },  {    "apiKeyAuth": []  }]
JSON
{  "bearerAuth": {    "type": "http",    "scheme": "bearer",    "bearerFormat": "JWT or API Key",    "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."  },  "apiKeyAuth": {    "type": "apiKey",    "in": "header",    "name": "X-API-Key",    "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."  }}

Parameters

NameLocationRequiredDescription
x-veryfront-project-referenceheaderNo
x-veryfront-project-idheaderNo
x-veryfront-project-slugheaderNo
x-veryfront-agent-run-idheaderNo
x-veryfront-conversation-idheaderNo
x-veryfront-message-idheaderNo
x-veryfront-agent-idheaderNo
x-veryfront-billing-group-idheaderNo

Parameter contracts

JSON
[  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 255,      "description": "Canonical project selector: a UUID or slug for model access, inference and billing context. A signed project scope takes precedence. Otherwise, send only one project selector header."    },    "required": false,    "name": "x-veryfront-project-reference",    "in": "header"  },  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 255,      "description": "Compatibility selector accepting a project UUID. Prefer x-veryfront-project-reference."    },    "required": false,    "name": "x-veryfront-project-id",    "in": "header"  },  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 255,      "description": "Compatibility selector accepting a project slug. Prefer x-veryfront-project-reference."    },    "required": false,    "name": "x-veryfront-project-slug",    "in": "header"  },  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 245,      "description": "Durable run ID. Required for run-bound service-account credentials."    },    "required": false,    "name": "x-veryfront-agent-run-id",    "in": "header"  },  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 255,      "description": "Durable conversation ID. Required with agent run attribution."    },    "required": false,    "name": "x-veryfront-conversation-id",    "in": "header"  },  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 255,      "description": "Durable message ID. Required with agent run attribution."    },    "required": false,    "name": "x-veryfront-message-id",    "in": "header"  },  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 255,      "description": "Agent ID. Must match the authenticated run-bound credential."    },    "required": false,    "name": "x-veryfront-agent-id",    "in": "header"  },  {    "schema": {      "type": "string",      "minLength": 1,      "maxLength": 255,      "description": "Optional billing group. Run requests are pinned to agent-run:<run-id>."    },    "required": false,    "name": "x-veryfront-billing-group-id",    "in": "header"  }]

Request body

JSON
{  "required": true,  "content": {    "application/json": {      "schema": {        "type": "object",        "properties": {          "model": {            "type": "string",            "description": "Catalog model ID or alias used to select an explicitly supported deployment.",            "maxLength": 1048576,            "minLength": 1,            "pattern": "\\S"          },          "input": {            "anyOf": [              {                "type": "string",                "maxLength": 10485760              },              {                "type": "array",                "items": {                  "anyOf": [                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "message"                          ],                          "default": "message"                        },                        "role": {                          "type": "string",                          "enum": [                            "user"                          ],                          "default": "user"                        },                        "content": {                          "anyOf": [                            {                              "type": "string",                              "maxLength": 10485760                            },                            {                              "type": "array",                              "items": {                                "anyOf": [                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "input_text"                                        ],                                        "default": "input_text"                                      },                                      "text": {                                        "type": "string",                                        "maxLength": 10485760                                      },                                      "prompt_cache_breakpoint": {                                        "type": [                                          "object",                                          "null"                                        ],                                        "properties": {                                          "mode": {                                            "type": "string",                                            "enum": [                                              "explicit"                                            ],                                            "default": "explicit"                                          }                                        }                                      }                                    },                                    "required": [                                      "text"                                    ]                                  },                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "input_image"                                        ],                                        "default": "input_image"                                      },                                      "image_url": {                                        "type": "string",                                        "maxLength": 1073741824,                                        "pattern": "^(data:|https?://)"                                      },                                      "detail": {                                        "type": [                                          "string",                                          "null"                                        ],                                        "enum": [                                          "low",                                          "high",                                          "auto",                                          "original",                                          null                                        ]                                      },                                      "prompt_cache_breakpoint": {                                        "type": [                                          "object",                                          "null"                                        ],                                        "properties": {                                          "mode": {                                            "type": "string",                                            "enum": [                                              "explicit"                                            ],                                            "default": "explicit"                                          }                                        }                                      }                                    },                                    "required": [                                      "image_url"                                    ]                                  },                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "input_json"                                        ],                                        "default": "input_json"                                      },                                      "data": {                                        "anyOf": [                                          {                                            "type": "object",                                            "additionalProperties": {}                                          },                                          {                                            "type": "array",                                            "items": {                                              "type": "object",                                              "additionalProperties": {}                                            }                                          }                                        ],                                        "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                      }                                    },                                    "required": [                                      "data"                                    ]                                  }                                ]                              },                              "maxItems": 16384                            }                          ]                        }                      },                      "required": [                        "content"                      ]                    },                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "message"                          ],                          "default": "message"                        },                        "role": {                          "type": "string",                          "enum": [                            "developer"                          ]                        },                        "content": {                          "anyOf": [                            {                              "type": "string",                              "maxLength": 10485760                            },                            {                              "type": "array",                              "items": {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_text"                                    ],                                    "default": "input_text"                                  },                                  "text": {                                    "type": "string",                                    "maxLength": 10485760                                  },                                  "prompt_cache_breakpoint": {                                    "type": [                                      "object",                                      "null"                                    ],                                    "properties": {                                      "mode": {                                        "type": "string",                                        "enum": [                                          "explicit"                                        ],                                        "default": "explicit"                                      }                                    }                                  }                                },                                "required": [                                  "text"                                ]                              },                              "maxItems": 16384                            }                          ]                        }                      },                      "required": [                        "role",                        "content"                      ]                    },                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "message"                          ],                          "default": "message"                        },                        "role": {                          "type": "string",                          "enum": [                            "system"                          ]                        },                        "content": {                          "anyOf": [                            {                              "type": "string",                              "maxLength": 10485760                            },                            {                              "type": "array",                              "items": {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_text"                                    ],                                    "default": "input_text"                                  },                                  "text": {                                    "type": "string",                                    "maxLength": 10485760                                  },                                  "prompt_cache_breakpoint": {                                    "type": [                                      "object",                                      "null"                                    ],                                    "properties": {                                      "mode": {                                        "type": "string",                                        "enum": [                                          "explicit"                                        ],                                        "default": "explicit"                                      }                                    }                                  }                                },                                "required": [                                  "text"                                ]                              },                              "maxItems": 16384                            }                          ]                        }                      },                      "required": [                        "role",                        "content"                      ]                    },                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "message"                          ],                          "default": "message"                        },                        "role": {                          "type": "string",                          "enum": [                            "assistant"                          ],                          "default": "assistant"                        },                        "phase": {                          "type": [                            "string",                            "null"                          ],                          "enum": [                            "commentary",                            "final_answer",                            null                          ]                        },                        "content": {                          "anyOf": [                            {                              "type": "string",                              "maxLength": 10485760                            },                            {                              "type": "array",                              "items": {                                "anyOf": [                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "output_text"                                        ],                                        "default": "output_text"                                      },                                      "text": {                                        "type": "string",                                        "maxLength": 10485760                                      }                                    },                                    "required": [                                      "text"                                    ]                                  },                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "refusal"                                        ],                                        "default": "refusal"                                      },                                      "refusal": {                                        "type": "string",                                        "maxLength": 10485760                                      }                                    },                                    "required": [                                      "refusal"                                    ]                                  }                                ]                              },                              "maxItems": 16384                            }                          ]                        }                      },                      "required": [                        "content"                      ]                    },                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "function_call"                          ],                          "default": "function_call"                        },                        "call_id": {                          "type": "string",                          "maxLength": 64,                          "minLength": 1                        },                        "id": {                          "type": "string",                          "maxLength": 1048576                        },                        "status": {                          "type": [                            "string",                            "null"                          ],                          "enum": [                            "in_progress",                            "completed",                            "incomplete",                            null                          ]                        },                        "arguments": {                          "type": "string",                          "maxLength": 1048576                        },                        "namespace": {                          "type": "string",                          "maxLength": 64,                          "pattern": "^[a-zA-Z0-9_-]+$",                          "minLength": 1                        },                        "name": {                          "type": "string",                          "maxLength": 128,                          "pattern": "^[a-zA-Z0-9_.-]+$",                          "minLength": 1                        }                      },                      "required": [                        "call_id",                        "arguments",                        "name"                      ]                    },                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "function_call_output"                          ]                        },                        "call_id": {                          "type": "string",                          "maxLength": 64,                          "minLength": 1                        },                        "id": {                          "type": "string",                          "maxLength": 1048576                        },                        "status": {                          "type": [                            "string",                            "null"                          ],                          "enum": [                            "in_progress",                            "completed",                            "incomplete",                            null                          ]                        },                        "output": {                          "anyOf": [                            {                              "type": "string",                              "maxLength": 10485760                            },                            {                              "type": "array",                              "items": {                                "anyOf": [                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "input_text"                                        ],                                        "default": "input_text"                                      },                                      "text": {                                        "type": "string",                                        "maxLength": 10485760                                      },                                      "prompt_cache_breakpoint": {                                        "type": [                                          "object",                                          "null"                                        ],                                        "properties": {                                          "mode": {                                            "type": "string",                                            "enum": [                                              "explicit"                                            ],                                            "default": "explicit"                                          }                                        }                                      }                                    },                                    "required": [                                      "text"                                    ]                                  },                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "input_image"                                        ],                                        "default": "input_image"                                      },                                      "image_url": {                                        "type": "string",                                        "maxLength": 1073741824,                                        "pattern": "^(data:|https?://)"                                      },                                      "detail": {                                        "type": [                                          "string",                                          "null"                                        ],                                        "enum": [                                          "low",                                          "high",                                          "auto",                                          "original",                                          null                                        ]                                      },                                      "prompt_cache_breakpoint": {                                        "type": [                                          "object",                                          "null"                                        ],                                        "properties": {                                          "mode": {                                            "type": "string",                                            "enum": [                                              "explicit"                                            ],                                            "default": "explicit"                                          }                                        }                                      }                                    },                                    "required": [                                      "image_url"                                    ]                                  }                                ]                              },                              "maxItems": 16384                            }                          ]                        }                      },                      "required": [                        "call_id",                        "output"                      ]                    },                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "custom_tool_call"                          ],                          "default": "custom_tool_call"                        },                        "call_id": {                          "type": "string",                          "maxLength": 64,                          "minLength": 1                        },                        "id": {                          "type": "string",                          "maxLength": 1048576                        },                        "status": {                          "type": [                            "string",                            "null"                          ],                          "enum": [                            "in_progress",                            "completed",                            "incomplete",                            null                          ]                        },                        "input": {                          "type": "string",                          "maxLength": 1048576                        },                        "namespace": {                          "type": "string",                          "maxLength": 64,                          "pattern": "^[a-zA-Z0-9_-]+$",                          "minLength": 1                        },                        "name": {                          "type": "string",                          "maxLength": 64,                          "pattern": "^[a-zA-Z0-9_-]+$",                          "minLength": 1                        }                      },                      "required": [                        "call_id",                        "input",                        "name"                      ]                    },                    {                      "type": "object",                      "properties": {                        "type": {                          "type": "string",                          "enum": [                            "custom_tool_call_output"                          ]                        },                        "call_id": {                          "type": "string",                          "maxLength": 64,                          "minLength": 1                        },                        "id": {                          "type": "string",                          "maxLength": 1048576                        },                        "status": {                          "type": [                            "string",                            "null"                          ],                          "enum": [                            "in_progress",                            "completed",                            "incomplete",                            null                          ]                        },                        "output": {                          "anyOf": [                            {                              "type": "string",                              "maxLength": 10485760                            },                            {                              "type": "array",                              "items": {                                "anyOf": [                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "input_text"                                        ],                                        "default": "input_text"                                      },                                      "text": {                                        "type": "string",                                        "maxLength": 10485760                                      },                                      "prompt_cache_breakpoint": {                                        "type": [                                          "object",                                          "null"                                        ],                                        "properties": {                                          "mode": {                                            "type": "string",                                            "enum": [                                              "explicit"                                            ],                                            "default": "explicit"                                          }                                        }                                      }                                    },                                    "required": [                                      "text"                                    ]                                  },                                  {                                    "type": "object",                                    "properties": {                                      "type": {                                        "type": "string",                                        "enum": [                                          "input_image"                                        ],                                        "default": "input_image"                                      },                                      "image_url": {                                        "type": "string",                                        "maxLength": 1073741824,                                        "pattern": "^(data:|https?://)"                                      },                                      "detail": {                                        "type": [                                          "string",                                          "null"                                        ],                                        "enum": [                                          "low",                                          "high",                                          "auto",                                          "original",                                          null                                        ]                                      },                                      "prompt_cache_breakpoint": {                                        "type": [                                          "object",                                          "null"                                        ],                                        "properties": {                                          "mode": {                                            "type": "string",                                            "enum": [                                              "explicit"                                            ],                                            "default": "explicit"                                          }                                        }                                      }                                    },                                    "required": [                                      "image_url"                                    ]                                  }                                ]                              },                              "maxItems": 16384                            }                          ]                        }                      },                      "required": [                        "call_id",                        "output"                      ]                    }                  ]                },                "maxItems": 131072              }            ],            "description": "Shared evidence as text or an ordered conversation. Each tool output must match a preceding call by call_id and tool type."          },          "questions": {            "type": "array",            "items": {              "anyOf": [                {                  "type": "object",                  "properties": {                    "type": {                      "type": "string",                      "enum": [                        "predicate"                      ],                      "default": "predicate"                    },                    "instructions": {                      "anyOf": [                        {                          "type": "string",                          "maxLength": 1048576                        },                        {                          "type": "array",                          "items": {                            "anyOf": [                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_text"                                    ],                                    "default": "input_text"                                  },                                  "text": {                                    "type": "string",                                    "maxLength": 10485760                                  }                                },                                "required": [                                  "text"                                ]                              },                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_image"                                    ],                                    "default": "input_image"                                  },                                  "image_url": {                                    "type": "string",                                    "maxLength": 1073741824,                                    "pattern": "^(data:|https?://)"                                  },                                  "detail": {                                    "type": [                                      "string",                                      "null"                                    ],                                    "enum": [                                      "low",                                      "high",                                      "auto",                                      "original",                                      null                                    ]                                  }                                },                                "required": [                                  "image_url"                                ]                              },                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_json"                                    ],                                    "default": "input_json"                                  },                                  "data": {                                    "anyOf": [                                      {                                        "type": "object",                                        "additionalProperties": {}                                      },                                      {                                        "type": "array",                                        "items": {                                          "type": "object",                                          "additionalProperties": {}                                        }                                      }                                    ],                                    "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                  }                                },                                "required": [                                  "data"                                ]                              }                            ]                          },                          "minItems": 1,                          "maxItems": 16384                        }                      ],                      "description": "Question instructions as text or text, image, and JSON parts."                    },                    "name": {                      "type": "string",                      "description": "Optional name echoed in the corresponding answer.",                      "maxLength": 1048576                    }                  },                  "required": [                    "instructions"                  ]                },                {                  "type": "object",                  "properties": {                    "type": {                      "type": "string",                      "enum": [                        "choice"                      ]                    },                    "instructions": {                      "anyOf": [                        {                          "type": "string",                          "maxLength": 1048576                        },                        {                          "type": "array",                          "items": {                            "anyOf": [                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_text"                                    ],                                    "default": "input_text"                                  },                                  "text": {                                    "type": "string",                                    "maxLength": 10485760                                  }                                },                                "required": [                                  "text"                                ]                              },                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_image"                                    ],                                    "default": "input_image"                                  },                                  "image_url": {                                    "type": "string",                                    "maxLength": 1073741824,                                    "pattern": "^(data:|https?://)"                                  },                                  "detail": {                                    "type": [                                      "string",                                      "null"                                    ],                                    "enum": [                                      "low",                                      "high",                                      "auto",                                      "original",                                      null                                    ]                                  }                                },                                "required": [                                  "image_url"                                ]                              },                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_json"                                    ],                                    "default": "input_json"                                  },                                  "data": {                                    "anyOf": [                                      {                                        "type": "object",                                        "additionalProperties": {}                                      },                                      {                                        "type": "array",                                        "items": {                                          "type": "object",                                          "additionalProperties": {}                                        }                                      }                                    ],                                    "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                  }                                },                                "required": [                                  "data"                                ]                              }                            ]                          },                          "minItems": 1,                          "maxItems": 16384                        }                      ],                      "description": "Question instructions as text or text, image, and JSON parts."                    },                    "name": {                      "type": "string",                      "description": "Optional name echoed in the corresponding answer.",                      "maxLength": 1048576                    },                    "choices": {                      "type": "array",                      "items": {                        "type": "object",                        "properties": {                          "value": {                            "anyOf": [                              {                                "type": "string",                                "maxLength": 1048576                              },                              {                                "type": "boolean"                              }                            ]                          },                          "description": {                            "type": "string",                            "maxLength": 1048576                          }                        },                        "required": [                          "value"                        ]                      },                      "minItems": 2,                      "maxItems": 255                    }                  },                  "required": [                    "type",                    "instructions",                    "choices"                  ]                },                {                  "type": "object",                  "properties": {                    "type": {                      "type": "string",                      "enum": [                        "score"                      ]                    },                    "instructions": {                      "anyOf": [                        {                          "type": "string",                          "maxLength": 1048576                        },                        {                          "type": "array",                          "items": {                            "anyOf": [                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_text"                                    ],                                    "default": "input_text"                                  },                                  "text": {                                    "type": "string",                                    "maxLength": 10485760                                  }                                },                                "required": [                                  "text"                                ]                              },                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_image"                                    ],                                    "default": "input_image"                                  },                                  "image_url": {                                    "type": "string",                                    "maxLength": 1073741824,                                    "pattern": "^(data:|https?://)"                                  },                                  "detail": {                                    "type": [                                      "string",                                      "null"                                    ],                                    "enum": [                                      "low",                                      "high",                                      "auto",                                      "original",                                      null                                    ]                                  }                                },                                "required": [                                  "image_url"                                ]                              },                              {                                "type": "object",                                "properties": {                                  "type": {                                    "type": "string",                                    "enum": [                                      "input_json"                                    ],                                    "default": "input_json"                                  },                                  "data": {                                    "anyOf": [                                      {                                        "type": "object",                                        "additionalProperties": {}                                      },                                      {                                        "type": "array",                                        "items": {                                          "type": "object",                                          "additionalProperties": {}                                        }                                      }                                    ],                                    "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                  }                                },                                "required": [                                  "data"                                ]                              }                            ]                          },                          "minItems": 1,                          "maxItems": 16384                        }                      ],                      "description": "Question instructions as text or text, image, and JSON parts."                    },                    "name": {                      "type": "string",                      "description": "Optional name echoed in the corresponding answer.",                      "maxLength": 1048576                    },                    "levels": {                      "type": "array",                      "items": {                        "type": "object",                        "properties": {                          "label": {                            "type": "string",                            "maxLength": 1048576                          },                          "description": {                            "type": "string",                            "maxLength": 1048576                          }                        },                        "required": [                          "label"                        ]                      },                      "minItems": 2,                      "maxItems": 10                    }                  },                  "required": [                    "type",                    "instructions",                    "levels"                  ]                }              ],              "description": "Predicate (the default), choice, or score question."            },            "minItems": 1,            "maxItems": 400          },          "prompt_cache_key": {            "type": "string",            "maxLength": 64          },          "prompt_cache_options": {            "type": [              "object",              "null"            ],            "properties": {              "mode": {                "type": [                  "string",                  "null"                ],                "enum": [                  "implicit",                  "explicit",                  null                ]              },              "ttl": {                "type": "string",                "enum": [                  "30m"                ]              }            }          },          "safety_identifier": {            "type": "string",            "maxLength": 128          }        },        "required": [          "model",          "input",          "questions"        ],        "description": "OpenAI-compatible Decisions request on an explicitly supported deployment. Predicate is the default question type. Streaming and generation controls are not supported.",        "title": "NeutralDecisionsRequest"      }    }  }}

Responses

200

Upstream provider response (forwarded as-is)

JSON
{  "description": "Upstream provider response (forwarded as-is)"}

400

Invalid request

JSON
{  "description": "Invalid request",  "content": {    "application/json": {      "schema": {        "$ref": "#/components/schemas/NeutralOpenAiError"      }    }  }}

401

Unauthorized

JSON
{  "description": "Unauthorized",  "content": {    "application/json": {      "schema": {        "$ref": "#/components/schemas/NeutralOpenAiError"      }    }  }}

402

Insufficient AI credits, an exhausted monthly AI budget, or a provider spend limit

JSON
{  "description": "Insufficient AI credits, an exhausted monthly AI budget, or a provider spend limit",  "content": {    "application/json": {      "schema": {        "$ref": "#/components/schemas/NeutralOpenAiError"      }    }  }}

403

Project access denied

JSON
{  "description": "Project access denied",  "content": {    "application/json": {      "schema": {        "$ref": "#/components/schemas/NeutralOpenAiError"      }    }  }}

404

No deployment of this model speaks this protocol natively

JSON
{  "description": "No deployment of this model speaks this protocol natively",  "content": {    "application/json": {      "schema": {        "$ref": "#/components/schemas/NeutralOpenAiError"      }    }  }}

413

Request body over the 32 MiB limit (code request_too_large), or an upstream 413 re-rendered in this envelope

JSON
{  "description": "Request body over the 32 MiB limit (code request_too_large), or an upstream 413 re-rendered in this envelope"}

429

The calling API key's requests-per-minute limit (code key-rate-limited), or an upstream provider rate limit re-rendered in this envelope with its Retry-After

JSON
{  "description": "The calling API key's requests-per-minute limit (code key-rate-limited), or an upstream provider rate limit re-rendered in this envelope with its Retry-After"}

500

Gateway error, or an upstream 500 re-rendered in this envelope

JSON
{  "description": "Gateway error, or an upstream 500 re-rendered in this envelope"}

502

Gateway proxy error, or an upstream 502 re-rendered in this envelope

JSON
{  "description": "Gateway proxy error, or an upstream 502 re-rendered in this envelope"}

503

No available deployment, auth unavailable, or an upstream 503 re-rendered in this envelope

JSON
{  "description": "No available deployment, auth unavailable, or an upstream 503 re-rendered in this envelope"}

529

Upstream provider overloaded, re-rendered in this envelope

JSON
{  "description": "Upstream provider overloaded, re-rendered in this envelope"}

default

Any other status the upstream provider returned, with the upstream status and its body (if any) re-rendered in this envelope

JSON
{  "description": "Any other status the upstream provider returned, with the upstream status and its body (if any) re-rendered in this envelope"}

Referenced contracts

components/schemas/NeutralOpenAiError

JSON
{  "type": "object",  "properties": {    "error": {      "type": "object",      "properties": {        "message": {          "type": "string"        },        "type": {          "type": "string"        },        "param": {          "type": [            "string",            "null"          ]        },        "code": {          "type": [            "string",            "null"          ]        },        "veryfront": {          "type": "object",          "additionalProperties": {}        }      },      "required": [        "message",        "type",        "param",        "code"      ]    }  },  "required": [    "error"  ]}

Operation contract

JSON
{  "operationId": "neutralDecisions",  "tags": [    "ai-gateway/Inference/OpenAI Decisions"  ],  "summary": "Create decision",  "description": "Evaluate evidence with predicate, choice, or score questions.",  "parameters": [    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 255,        "description": "Canonical project selector: a UUID or slug for model access, inference and billing context. A signed project scope takes precedence. Otherwise, send only one project selector header."      },      "required": false,      "name": "x-veryfront-project-reference",      "in": "header"    },    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 255,        "description": "Compatibility selector accepting a project UUID. Prefer x-veryfront-project-reference."      },      "required": false,      "name": "x-veryfront-project-id",      "in": "header"    },    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 255,        "description": "Compatibility selector accepting a project slug. Prefer x-veryfront-project-reference."      },      "required": false,      "name": "x-veryfront-project-slug",      "in": "header"    },    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 245,        "description": "Durable run ID. Required for run-bound service-account credentials."      },      "required": false,      "name": "x-veryfront-agent-run-id",      "in": "header"    },    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 255,        "description": "Durable conversation ID. Required with agent run attribution."      },      "required": false,      "name": "x-veryfront-conversation-id",      "in": "header"    },    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 255,        "description": "Durable message ID. Required with agent run attribution."      },      "required": false,      "name": "x-veryfront-message-id",      "in": "header"    },    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 255,        "description": "Agent ID. Must match the authenticated run-bound credential."      },      "required": false,      "name": "x-veryfront-agent-id",      "in": "header"    },    {      "schema": {        "type": "string",        "minLength": 1,        "maxLength": 255,        "description": "Optional billing group. Run requests are pinned to agent-run:<run-id>."      },      "required": false,      "name": "x-veryfront-billing-group-id",      "in": "header"    }  ],  "requestBody": {    "required": true,    "content": {      "application/json": {        "schema": {          "type": "object",          "properties": {            "model": {              "type": "string",              "description": "Catalog model ID or alias used to select an explicitly supported deployment.",              "maxLength": 1048576,              "minLength": 1,              "pattern": "\\S"            },            "input": {              "anyOf": [                {                  "type": "string",                  "maxLength": 10485760                },                {                  "type": "array",                  "items": {                    "anyOf": [                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "message"                            ],                            "default": "message"                          },                          "role": {                            "type": "string",                            "enum": [                              "user"                            ],                            "default": "user"                          },                          "content": {                            "anyOf": [                              {                                "type": "string",                                "maxLength": 10485760                              },                              {                                "type": "array",                                "items": {                                  "anyOf": [                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "input_text"                                          ],                                          "default": "input_text"                                        },                                        "text": {                                          "type": "string",                                          "maxLength": 10485760                                        },                                        "prompt_cache_breakpoint": {                                          "type": [                                            "object",                                            "null"                                          ],                                          "properties": {                                            "mode": {                                              "type": "string",                                              "enum": [                                                "explicit"                                              ],                                              "default": "explicit"                                            }                                          }                                        }                                      },                                      "required": [                                        "text"                                      ]                                    },                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "input_image"                                          ],                                          "default": "input_image"                                        },                                        "image_url": {                                          "type": "string",                                          "maxLength": 1073741824,                                          "pattern": "^(data:|https?://)"                                        },                                        "detail": {                                          "type": [                                            "string",                                            "null"                                          ],                                          "enum": [                                            "low",                                            "high",                                            "auto",                                            "original",                                            null                                          ]                                        },                                        "prompt_cache_breakpoint": {                                          "type": [                                            "object",                                            "null"                                          ],                                          "properties": {                                            "mode": {                                              "type": "string",                                              "enum": [                                                "explicit"                                              ],                                              "default": "explicit"                                            }                                          }                                        }                                      },                                      "required": [                                        "image_url"                                      ]                                    },                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "input_json"                                          ],                                          "default": "input_json"                                        },                                        "data": {                                          "anyOf": [                                            {                                              "type": "object",                                              "additionalProperties": {}                                            },                                            {                                              "type": "array",                                              "items": {                                                "type": "object",                                                "additionalProperties": {}                                              }                                            }                                          ],                                          "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                        }                                      },                                      "required": [                                        "data"                                      ]                                    }                                  ]                                },                                "maxItems": 16384                              }                            ]                          }                        },                        "required": [                          "content"                        ]                      },                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "message"                            ],                            "default": "message"                          },                          "role": {                            "type": "string",                            "enum": [                              "developer"                            ]                          },                          "content": {                            "anyOf": [                              {                                "type": "string",                                "maxLength": 10485760                              },                              {                                "type": "array",                                "items": {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_text"                                      ],                                      "default": "input_text"                                    },                                    "text": {                                      "type": "string",                                      "maxLength": 10485760                                    },                                    "prompt_cache_breakpoint": {                                      "type": [                                        "object",                                        "null"                                      ],                                      "properties": {                                        "mode": {                                          "type": "string",                                          "enum": [                                            "explicit"                                          ],                                          "default": "explicit"                                        }                                      }                                    }                                  },                                  "required": [                                    "text"                                  ]                                },                                "maxItems": 16384                              }                            ]                          }                        },                        "required": [                          "role",                          "content"                        ]                      },                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "message"                            ],                            "default": "message"                          },                          "role": {                            "type": "string",                            "enum": [                              "system"                            ]                          },                          "content": {                            "anyOf": [                              {                                "type": "string",                                "maxLength": 10485760                              },                              {                                "type": "array",                                "items": {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_text"                                      ],                                      "default": "input_text"                                    },                                    "text": {                                      "type": "string",                                      "maxLength": 10485760                                    },                                    "prompt_cache_breakpoint": {                                      "type": [                                        "object",                                        "null"                                      ],                                      "properties": {                                        "mode": {                                          "type": "string",                                          "enum": [                                            "explicit"                                          ],                                          "default": "explicit"                                        }                                      }                                    }                                  },                                  "required": [                                    "text"                                  ]                                },                                "maxItems": 16384                              }                            ]                          }                        },                        "required": [                          "role",                          "content"                        ]                      },                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "message"                            ],                            "default": "message"                          },                          "role": {                            "type": "string",                            "enum": [                              "assistant"                            ],                            "default": "assistant"                          },                          "phase": {                            "type": [                              "string",                              "null"                            ],                            "enum": [                              "commentary",                              "final_answer",                              null                            ]                          },                          "content": {                            "anyOf": [                              {                                "type": "string",                                "maxLength": 10485760                              },                              {                                "type": "array",                                "items": {                                  "anyOf": [                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "output_text"                                          ],                                          "default": "output_text"                                        },                                        "text": {                                          "type": "string",                                          "maxLength": 10485760                                        }                                      },                                      "required": [                                        "text"                                      ]                                    },                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "refusal"                                          ],                                          "default": "refusal"                                        },                                        "refusal": {                                          "type": "string",                                          "maxLength": 10485760                                        }                                      },                                      "required": [                                        "refusal"                                      ]                                    }                                  ]                                },                                "maxItems": 16384                              }                            ]                          }                        },                        "required": [                          "content"                        ]                      },                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "function_call"                            ],                            "default": "function_call"                          },                          "call_id": {                            "type": "string",                            "maxLength": 64,                            "minLength": 1                          },                          "id": {                            "type": "string",                            "maxLength": 1048576                          },                          "status": {                            "type": [                              "string",                              "null"                            ],                            "enum": [                              "in_progress",                              "completed",                              "incomplete",                              null                            ]                          },                          "arguments": {                            "type": "string",                            "maxLength": 1048576                          },                          "namespace": {                            "type": "string",                            "maxLength": 64,                            "pattern": "^[a-zA-Z0-9_-]+$",                            "minLength": 1                          },                          "name": {                            "type": "string",                            "maxLength": 128,                            "pattern": "^[a-zA-Z0-9_.-]+$",                            "minLength": 1                          }                        },                        "required": [                          "call_id",                          "arguments",                          "name"                        ]                      },                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "function_call_output"                            ]                          },                          "call_id": {                            "type": "string",                            "maxLength": 64,                            "minLength": 1                          },                          "id": {                            "type": "string",                            "maxLength": 1048576                          },                          "status": {                            "type": [                              "string",                              "null"                            ],                            "enum": [                              "in_progress",                              "completed",                              "incomplete",                              null                            ]                          },                          "output": {                            "anyOf": [                              {                                "type": "string",                                "maxLength": 10485760                              },                              {                                "type": "array",                                "items": {                                  "anyOf": [                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "input_text"                                          ],                                          "default": "input_text"                                        },                                        "text": {                                          "type": "string",                                          "maxLength": 10485760                                        },                                        "prompt_cache_breakpoint": {                                          "type": [                                            "object",                                            "null"                                          ],                                          "properties": {                                            "mode": {                                              "type": "string",                                              "enum": [                                                "explicit"                                              ],                                              "default": "explicit"                                            }                                          }                                        }                                      },                                      "required": [                                        "text"                                      ]                                    },                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "input_image"                                          ],                                          "default": "input_image"                                        },                                        "image_url": {                                          "type": "string",                                          "maxLength": 1073741824,                                          "pattern": "^(data:|https?://)"                                        },                                        "detail": {                                          "type": [                                            "string",                                            "null"                                          ],                                          "enum": [                                            "low",                                            "high",                                            "auto",                                            "original",                                            null                                          ]                                        },                                        "prompt_cache_breakpoint": {                                          "type": [                                            "object",                                            "null"                                          ],                                          "properties": {                                            "mode": {                                              "type": "string",                                              "enum": [                                                "explicit"                                              ],                                              "default": "explicit"                                            }                                          }                                        }                                      },                                      "required": [                                        "image_url"                                      ]                                    }                                  ]                                },                                "maxItems": 16384                              }                            ]                          }                        },                        "required": [                          "call_id",                          "output"                        ]                      },                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "custom_tool_call"                            ],                            "default": "custom_tool_call"                          },                          "call_id": {                            "type": "string",                            "maxLength": 64,                            "minLength": 1                          },                          "id": {                            "type": "string",                            "maxLength": 1048576                          },                          "status": {                            "type": [                              "string",                              "null"                            ],                            "enum": [                              "in_progress",                              "completed",                              "incomplete",                              null                            ]                          },                          "input": {                            "type": "string",                            "maxLength": 1048576                          },                          "namespace": {                            "type": "string",                            "maxLength": 64,                            "pattern": "^[a-zA-Z0-9_-]+$",                            "minLength": 1                          },                          "name": {                            "type": "string",                            "maxLength": 64,                            "pattern": "^[a-zA-Z0-9_-]+$",                            "minLength": 1                          }                        },                        "required": [                          "call_id",                          "input",                          "name"                        ]                      },                      {                        "type": "object",                        "properties": {                          "type": {                            "type": "string",                            "enum": [                              "custom_tool_call_output"                            ]                          },                          "call_id": {                            "type": "string",                            "maxLength": 64,                            "minLength": 1                          },                          "id": {                            "type": "string",                            "maxLength": 1048576                          },                          "status": {                            "type": [                              "string",                              "null"                            ],                            "enum": [                              "in_progress",                              "completed",                              "incomplete",                              null                            ]                          },                          "output": {                            "anyOf": [                              {                                "type": "string",                                "maxLength": 10485760                              },                              {                                "type": "array",                                "items": {                                  "anyOf": [                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "input_text"                                          ],                                          "default": "input_text"                                        },                                        "text": {                                          "type": "string",                                          "maxLength": 10485760                                        },                                        "prompt_cache_breakpoint": {                                          "type": [                                            "object",                                            "null"                                          ],                                          "properties": {                                            "mode": {                                              "type": "string",                                              "enum": [                                                "explicit"                                              ],                                              "default": "explicit"                                            }                                          }                                        }                                      },                                      "required": [                                        "text"                                      ]                                    },                                    {                                      "type": "object",                                      "properties": {                                        "type": {                                          "type": "string",                                          "enum": [                                            "input_image"                                          ],                                          "default": "input_image"                                        },                                        "image_url": {                                          "type": "string",                                          "maxLength": 1073741824,                                          "pattern": "^(data:|https?://)"                                        },                                        "detail": {                                          "type": [                                            "string",                                            "null"                                          ],                                          "enum": [                                            "low",                                            "high",                                            "auto",                                            "original",                                            null                                          ]                                        },                                        "prompt_cache_breakpoint": {                                          "type": [                                            "object",                                            "null"                                          ],                                          "properties": {                                            "mode": {                                              "type": "string",                                              "enum": [                                                "explicit"                                              ],                                              "default": "explicit"                                            }                                          }                                        }                                      },                                      "required": [                                        "image_url"                                      ]                                    }                                  ]                                },                                "maxItems": 16384                              }                            ]                          }                        },                        "required": [                          "call_id",                          "output"                        ]                      }                    ]                  },                  "maxItems": 131072                }              ],              "description": "Shared evidence as text or an ordered conversation. Each tool output must match a preceding call by call_id and tool type."            },            "questions": {              "type": "array",              "items": {                "anyOf": [                  {                    "type": "object",                    "properties": {                      "type": {                        "type": "string",                        "enum": [                          "predicate"                        ],                        "default": "predicate"                      },                      "instructions": {                        "anyOf": [                          {                            "type": "string",                            "maxLength": 1048576                          },                          {                            "type": "array",                            "items": {                              "anyOf": [                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_text"                                      ],                                      "default": "input_text"                                    },                                    "text": {                                      "type": "string",                                      "maxLength": 10485760                                    }                                  },                                  "required": [                                    "text"                                  ]                                },                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_image"                                      ],                                      "default": "input_image"                                    },                                    "image_url": {                                      "type": "string",                                      "maxLength": 1073741824,                                      "pattern": "^(data:|https?://)"                                    },                                    "detail": {                                      "type": [                                        "string",                                        "null"                                      ],                                      "enum": [                                        "low",                                        "high",                                        "auto",                                        "original",                                        null                                      ]                                    }                                  },                                  "required": [                                    "image_url"                                  ]                                },                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_json"                                      ],                                      "default": "input_json"                                    },                                    "data": {                                      "anyOf": [                                        {                                          "type": "object",                                          "additionalProperties": {}                                        },                                        {                                          "type": "array",                                          "items": {                                            "type": "object",                                            "additionalProperties": {}                                          }                                        }                                      ],                                      "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                    }                                  },                                  "required": [                                    "data"                                  ]                                }                              ]                            },                            "minItems": 1,                            "maxItems": 16384                          }                        ],                        "description": "Question instructions as text or text, image, and JSON parts."                      },                      "name": {                        "type": "string",                        "description": "Optional name echoed in the corresponding answer.",                        "maxLength": 1048576                      }                    },                    "required": [                      "instructions"                    ]                  },                  {                    "type": "object",                    "properties": {                      "type": {                        "type": "string",                        "enum": [                          "choice"                        ]                      },                      "instructions": {                        "anyOf": [                          {                            "type": "string",                            "maxLength": 1048576                          },                          {                            "type": "array",                            "items": {                              "anyOf": [                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_text"                                      ],                                      "default": "input_text"                                    },                                    "text": {                                      "type": "string",                                      "maxLength": 10485760                                    }                                  },                                  "required": [                                    "text"                                  ]                                },                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_image"                                      ],                                      "default": "input_image"                                    },                                    "image_url": {                                      "type": "string",                                      "maxLength": 1073741824,                                      "pattern": "^(data:|https?://)"                                    },                                    "detail": {                                      "type": [                                        "string",                                        "null"                                      ],                                      "enum": [                                        "low",                                        "high",                                        "auto",                                        "original",                                        null                                      ]                                    }                                  },                                  "required": [                                    "image_url"                                  ]                                },                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_json"                                      ],                                      "default": "input_json"                                    },                                    "data": {                                      "anyOf": [                                        {                                          "type": "object",                                          "additionalProperties": {}                                        },                                        {                                          "type": "array",                                          "items": {                                            "type": "object",                                            "additionalProperties": {}                                          }                                        }                                      ],                                      "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                    }                                  },                                  "required": [                                    "data"                                  ]                                }                              ]                            },                            "minItems": 1,                            "maxItems": 16384                          }                        ],                        "description": "Question instructions as text or text, image, and JSON parts."                      },                      "name": {                        "type": "string",                        "description": "Optional name echoed in the corresponding answer.",                        "maxLength": 1048576                      },                      "choices": {                        "type": "array",                        "items": {                          "type": "object",                          "properties": {                            "value": {                              "anyOf": [                                {                                  "type": "string",                                  "maxLength": 1048576                                },                                {                                  "type": "boolean"                                }                              ]                            },                            "description": {                              "type": "string",                              "maxLength": 1048576                            }                          },                          "required": [                            "value"                          ]                        },                        "minItems": 2,                        "maxItems": 255                      }                    },                    "required": [                      "type",                      "instructions",                      "choices"                    ]                  },                  {                    "type": "object",                    "properties": {                      "type": {                        "type": "string",                        "enum": [                          "score"                        ]                      },                      "instructions": {                        "anyOf": [                          {                            "type": "string",                            "maxLength": 1048576                          },                          {                            "type": "array",                            "items": {                              "anyOf": [                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_text"                                      ],                                      "default": "input_text"                                    },                                    "text": {                                      "type": "string",                                      "maxLength": 10485760                                    }                                  },                                  "required": [                                    "text"                                  ]                                },                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_image"                                      ],                                      "default": "input_image"                                    },                                    "image_url": {                                      "type": "string",                                      "maxLength": 1073741824,                                      "pattern": "^(data:|https?://)"                                    },                                    "detail": {                                      "type": [                                        "string",                                        "null"                                      ],                                      "enum": [                                        "low",                                        "high",                                        "auto",                                        "original",                                        null                                      ]                                    }                                  },                                  "required": [                                    "image_url"                                  ]                                },                                {                                  "type": "object",                                  "properties": {                                    "type": {                                      "type": "string",                                      "enum": [                                        "input_json"                                      ],                                      "default": "input_json"                                    },                                    "data": {                                      "anyOf": [                                        {                                          "type": "object",                                          "additionalProperties": {}                                        },                                        {                                          "type": "array",                                          "items": {                                            "type": "object",                                            "additionalProperties": {}                                          }                                        }                                      ],                                      "description": "JSON object or array of objects, limited to 32 container levels, 10,000 values, and 256 KiB of compact UTF-8 JSON."                                    }                                  },                                  "required": [                                    "data"                                  ]                                }                              ]                            },                            "minItems": 1,                            "maxItems": 16384                          }                        ],                        "description": "Question instructions as text or text, image, and JSON parts."                      },                      "name": {                        "type": "string",                        "description": "Optional name echoed in the corresponding answer.",                        "maxLength": 1048576                      },                      "levels": {                        "type": "array",                        "items": {                          "type": "object",                          "properties": {                            "label": {                              "type": "string",                              "maxLength": 1048576                            },                            "description": {                              "type": "string",                              "maxLength": 1048576                            }                          },                          "required": [                            "label"                          ]                        },                        "minItems": 2,                        "maxItems": 10                      }                    },                    "required": [                      "type",                      "instructions",                      "levels"                    ]                  }                ],                "description": "Predicate (the default), choice, or score question."              },              "minItems": 1,              "maxItems": 400            },            "prompt_cache_key": {              "type": "string",              "maxLength": 64            },            "prompt_cache_options": {              "type": [                "object",                "null"              ],              "properties": {                "mode": {                  "type": [                    "string",                    "null"                  ],                  "enum": [                    "implicit",                    "explicit",                    null                  ]                },                "ttl": {                  "type": "string",                  "enum": [                    "30m"                  ]                }              }            },            "safety_identifier": {              "type": "string",              "maxLength": 128            }          },          "required": [            "model",            "input",            "questions"          ],          "description": "OpenAI-compatible Decisions request on an explicitly supported deployment. Predicate is the default question type. Streaming and generation controls are not supported.",          "title": "NeutralDecisionsRequest"        }      }    }  },  "responses": {    "200": {      "description": "Upstream provider response (forwarded as-is)"    },    "400": {      "description": "Invalid request",      "content": {        "application/json": {          "schema": {            "$ref": "#/components/schemas/NeutralOpenAiError"          }        }      }    },    "401": {      "description": "Unauthorized",      "content": {        "application/json": {          "schema": {            "$ref": "#/components/schemas/NeutralOpenAiError"          }        }      }    },    "402": {      "description": "Insufficient AI credits, an exhausted monthly AI budget, or a provider spend limit",      "content": {        "application/json": {          "schema": {            "$ref": "#/components/schemas/NeutralOpenAiError"          }        }      }    },    "403": {      "description": "Project access denied",      "content": {        "application/json": {          "schema": {            "$ref": "#/components/schemas/NeutralOpenAiError"          }        }      }    },    "404": {      "description": "No deployment of this model speaks this protocol natively",      "content": {        "application/json": {          "schema": {            "$ref": "#/components/schemas/NeutralOpenAiError"          }        }      }    },    "413": {      "description": "Request body over the 32 MiB limit (code request_too_large), or an upstream 413 re-rendered in this envelope"    },    "429": {      "description": "The calling API key's requests-per-minute limit (code key-rate-limited), or an upstream provider rate limit re-rendered in this envelope with its Retry-After"    },    "500": {      "description": "Gateway error, or an upstream 500 re-rendered in this envelope"    },    "502": {      "description": "Gateway proxy error, or an upstream 502 re-rendered in this envelope"    },    "503": {      "description": "No available deployment, auth unavailable, or an upstream 503 re-rendered in this envelope"    },    "529": {      "description": "Upstream provider overloaded, re-rendered in this envelope"    },    "default": {      "description": "Any other status the upstream provider returned, with the upstream status and its body (if any) re-rendered in this envelope"    }  },  "x-documentation-source-tag": "OpenAI Decisions",  "x-canonical-documentation": {    "domain": "ai-gateway",    "resource": "Inference",    "subgroup": "OpenAI Decisions",    "name": "Create decision",    "description": "Evaluate evidence with predicate, choice, or score questions.",    "operationId": "neutralDecisions"  },  "x-mint": {    "href": "/cloud/rest/api-reference/ai-gateway-inference-openai-decisions/create-decision"  }}