GET
/v1/schemas/moonshotai-cn/chat/v1%2Fresponses?kind=output
Accept:
Response body
26 properties · 0 required · 13 $defs| property | type | description | constraints |
|---|---|---|---|
| id | string | 响应的唯一标识符。 | |
| object | enum | response | |
| created_at | integer | 响应创建时的 Unix 时间戳。 | |
| completed_at | any | 响应结束时的 Unix 时间戳。`status` 为 `completed` 或 `incomplete` 时给出,为 `in_progress` 或 `failed` 时是 `null`。 | |
| status | enum | 响应状态。流式的起手快照为 `in_progress`。 | in_progress | completed | incomplete | failed |
| model | string | 产生本次响应的模型。 | |
| output | ResponsesOutputItem[] | 输出 item 数组,顺序为 web_search_call(如有)、reasoning、message、工具调用。 | |
| usage | ResponsesUsage | 本次响应的 Token 用量。 | nullable |
| incomplete_details | object | `status` 为 `incomplete` 时给出原因。 | |
| error | object | `status` 为 `failed` 时给出错误信息。 | |
| instructions | any | ||
| reasoning | any | ||
| text | any | ||
| tools | any | ||
| tool_choice | enum | 控制工具调用行为。取 `auto` 时由模型自行决定是否调用工具。 | auto · nullable |
| max_output_tokens | any | ||
| temperature | any | ||
| top_p | any | ||
| metadata | any | ||
| parallel_tool_calls | boolean | ||
| service_tier | any | ||
| store | boolean | 固定为 `false`。 | |
| background | any | 固定为 `false`。 | |
| previous_response_id | any | 固定为 `null`。 | |
| conversation | any | 固定为 `null`。 | |
| prompt_cache_options | object | 服务端实际应用的上下文缓存写入选项。当请求省略 prompt_cache_options 时,以此处返回的 mode 和 ttl 为准 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"moonshotai-cn","endpointId":"v1/responses","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}