GET

/v1/schemas/moonshot/chat/v1/responses?kind=output

kind outputactivity chathash e41fa071…extracted Sep 19, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
3ae22621b735ced993ea3f670c119ae4b4c090dece83779ee3954414be11f6da
{
  "fetchedAt": 1789794729,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

26 properties · 0 required · 13 $defs
propertytypedescriptionconstraints
idstringUnique identifier of the response.
objectenumresponse
created_atintegerUnix timestamp of when the response was created.
completed_atanyUnix timestamp of when the response finished. Present when `status` is `completed` or `incomplete`; `null` when `status` is `in_progress` or `failed`.
statusenumResponse status. The opening snapshot of a stream is `in_progress`.in_progress | completed | incomplete | failed
modelstringModel that produced the response.
outputResponsesOutputItem[]The output item array, ordered as web_search_call (if any), reasoning, message, tool calls.
usageResponsesUsageToken usage for this response.nullable
incomplete_detailsobjectReason the response is `incomplete`.
errorobjectError information when `status` is `failed`.
instructionsany
reasoningany
textany
toolsany
tool_choiceenumControls tool-calling behavior. With `auto`, the model decides whether to call a tool.auto · nullable
max_output_tokensany
temperatureany
top_pany
metadataany
parallel_tool_callsboolean
service_tierany
storebooleanAlways `false`.
backgroundanyAlways `false`.
previous_response_idanyAlways `null`.
conversationanyAlways `null`.
prompt_cache_optionsobjectThe context cache write options actually applied by the server. When the request omits prompt_cache_options, refer to the mode and ttl returned here

Types

13 $defs

ResponsesCustomToolobject

A custom tool that takes free-form text input. Only the custom tool named `apply_patch` is supported, and it must define a `grammar` + `lark` format; when the model calls it, a `custom_tool_call` item is returned in the output.

type*enumcustom
name*enumTool name. Only `apply_patch` is supported.apply_patch
descriptionstring
format*objectInput format constraint. Only the `grammar` type with `lark` syntax is supported.

ResponsesFunctionToolobject

A function tool whose arguments are described by a JSON Schema.

type*enumfunction
name*stringFunction name. Must follow the regex: ^[a-zA-Z_][a-zA-Z0-9-_]{0,127}$
descriptionstring
parametersobjectJSON Schema describing the function arguments.
strictboolean

ResponsesNamespaceToolobject

Groups a set of function or custom tools under one namespace.

type*enumnamespace
name*string
description*string
tools*ResponsesFunctionTool | ResponsesCustomTool[]

ResponsesOutputCustomToolCallItemobject

A custom tool call initiated by the model.

typeenumcustom_tool_call
idstring
call_idstringUse this value in `custom_tool_call_output` when returning the result.
namestring
namespacestringReturned for namespace tool calls.
inputstringFree-form text input generated by the model.
statusenumin_progress | completed

ResponsesOutputFunctionCallItemobject

A function call initiated by the model.

typeenumfunction_call
idstring
call_idstringUse this value in `function_call_output` when returning the result.
namestring
namespacestringReturned for namespace tool calls.
argumentsstringJSON string of the function arguments.
statusenumin_progress | completed

ResponsesOutputItemReasoning | Message | Function call | …

An element of the output array, discriminated by `type`.

ResponsesOutputMessageItemobject

Text reply produced by the model.

typeenummessage
idstring
roleenumassistant
contentobject[]
statusenumin_progress | completed

ResponsesOutputReasoningItemobject

Reasoning content produced by the model.

typeenumreasoning
idstring
summaryobject[]The reasoning content.
encrypted_contentanyAlways `null`.
statusenumin_progress | completed

ResponsesOutputWebSearchCallItemobject

A web search call executed on the server side. Returned only when the request includes the `web_search` tool and the server decides a search is needed. It appears first in the output array.

typeenumweb_search_call
idstring
statusenumin_progress | completed
actionobjectThe action performed by this search.
resultsobject[]Image search results. Returned only when `include` contains `web_search_call.results` and `search_content_types` includes `image`.

ResponsesToolFunction tool | Custom tool | Namespace tool | …

A tool definition, discriminated by `type`. Supported types are `function`, `custom` (only `apply_patch`), `namespace`, and `web_search`; other tool types are not supported.

ResponsesToolChoiceenum

Controls tool-calling behavior. With `auto`, the model decides whether to call a tool.

auto

ResponsesUsageobject

Token usage for this response.

input_tokensintegerNumber of input tokens, including cached tokens.
input_tokens_detailsobject
output_tokensintegerNumber of output tokens, including reasoning tokens.
output_tokens_detailsobject
total_tokensintegerTotal number of tokens.

ResponsesWebSearchToolobject

A web search tool executed on the server side. When present, the server first decides from the input whether a search is needed; if so, it runs the search, injects the results into the model context, and returns a `web_search_call` item in the output. At most …

type*enumweb_search
filtersobjectSearch scope filters.
search_content_typesenum[]Result types to search for. Defaults to `text` only. Including `image` additionally runs an image search.default: ["text"]
image_settingsobjectImage search settings. Only effective when `search_content_types` includes `image`.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"moonshot","endpointId":"v1/responses","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}