{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trymorse-ai/json-schema/trymorse-ai-responses-request-schema.json",
  "title": "ResponsesRequest",
  "description": "An OpenAI Responses request. Morse reads it as a chat completion and serves it on any chat model, with the same billing, privacy floors, and failover. Fields Morse does not use, such as include, prompt_cache_key, service_tier, text.verbosity, user, and client_metadata, are ignored.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trymorse-ai-openapi.json#/components/schemas/ResponsesRequest",
  "type": "object",
  "required": [
    "model",
    "input"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "A model id from GET /v1/models, named as on POST /v1/chat/completions."
    },
    "input": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      ],
      "description": "The whole conversation: a string, which is one user message, or items. A message (role user, assistant, system, or developer, which is sent as system) takes input_text and input_image (a base64 data URL) parts from the user and text from the others. function_call, function_call_output, custom_tool_call, and custom_tool_call_output items are taken; reasoning items are dropped. Every other item type is refused."
    },
    "instructions": {
      "type": "string",
      "description": "Sent as the first system message."
    },
    "stream": {
      "type": "boolean"
    },
    "max_output_tokens": {
      "type": "integer",
      "minimum": 1,
      "description": "The output limit, sent as max_completion_tokens."
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "function, custom, and namespace tools. Built-in tools are refused."
    },
    "tool_choice": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "auto",
            "none",
            "required"
          ]
        },
        {
          "type": "object"
        }
      ],
      "description": "A mode, or a function or custom tool by name."
    },
    "parallel_tool_calls": {
      "type": "boolean"
    },
    "reasoning": {
      "type": "object",
      "properties": {
        "effort": {
          "type": "string",
          "enum": [
            "none",
            "minimal",
            "low",
            "medium",
            "high",
            "xhigh",
            "max"
          ],
          "description": "Sent as reasoning_effort."
        },
        "summary": {
          "type": "string",
          "description": "Any value but none asks for the model's reasoning as a reasoning item, where the model streams it."
        }
      }
    },
    "temperature": {
      "type": "number",
      "description": "1 is dropped. Any other value needs forward_settings, as on a chat completion."
    },
    "top_p": {
      "type": "number",
      "description": "1 is dropped. Any other value needs forward_settings, as on a chat completion."
    },
    "store": {
      "type": "boolean",
      "description": "Only false. Absent is false."
    },
    "metadata": {
      "type": "object",
      "description": "Echoed in the Response."
    },
    "provider": {
      "type": "object",
      "description": "The privacy floor and endpoint choice, as on a chat completion."
    }
  }
}