GET
/v1/schemas/xiaomi/chat/anthropic/v1/messages
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. generated Source trace5aa307fb7ab2f67c2cce954fff6bb36f5a59ce999a104649ace1e44aaf2ded1a{
"fetchedAt": 1792559508,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
11 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| messages* | object[] | Input messages. Each input message must be an object with a role and content . Each input message content may be either a single string or an array of content blocks, where each block has a specific type . Using a string for content is shorthand for an array o… | |
| model* | enum | The model that will complete your prompt. Available options: mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed | mimo-v2.6-flash | mimo-v2.6-pro | mimo-v2.6-pro-ultraspeed |
| max_tokens | integer | The maximum number of tokens to generate before stopping. Note that our models may stop before reaching this maximum. This parameter only specifies the absolute maximum number of tokens to generate. mimo-v2.6-flash : default 131072 mimo-v2.6-pro : default 1310… | |
| stop_sequences | any[] | Custom text sequences that will cause the model to stop generating. Our models will normally stop when they have naturally completed their turn, which will result in a response stop_reason of end_turn . If you want the model to stop generating when it encounte… | |
| stream | boolean | Whether to incrementally stream the response using server-sent events. | |
| system | string | object[] | A system prompt is a way of providing context and instructions to model, such as specifying a particular goal or role. | |
| temperature | number | Sampling temperature controls the diversity of the text generated by the model. The higher the temperature, the more diverse the generated text will be; conversely, the lower the temperature, the more deterministic the generated text will be. In thinking mode,… | |
| thinking | object | Configuration for enabling model's extended thinking. Note: During the multi-turn tool calls process in thinking mode, the model returns a thinking content block alongside tool_use content block. To continue the conversation, it is recommended to keep all prev… | |
| tool_choice | object | How the model should use the provided tools. | |
| tools | object[] | Definitions of tools that the model may use. If you include tools in your API request, the model may return tool_use content blocks that represent the model's use of those tools. You can then run those tools using the tool input generated by the model and then… | |
| top_p | number | Use nucleus sampling. In nucleus sampling, we compute the cumulative distribution over all the options for each subsequent token in decreasing probability order and cut it off once it reaches a particular probability specified by top_p . You should either alte… |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"xiaomi","endpointId":"anthropic/v1/messages","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}