GET

/v1/schemas/xiaomi/chat/v1%2Fchat%2Fcompletions

kind inputactivity chathash c1a6f9e4…extracted Oct 21, 2026version currentsource upstream spec ↗

Request body

0 properties · 0 required · 0 $defs

This schema isn’t a plain object with properties — showing the raw JSON instead.

application/json
{
  "provider": "xiaomi",
  "activity": "chat",
  "endpointId": "v1/chat/completions",
  "kind": "input",
  "contentHash": "c1a6f9e43c4ba83f521f89f385d0f41e3ead4707c0aa627bcf6853bb0ea1ba99",
  "specRevision": null,
  "provenance": {
    "sourceUrl": "https://mimo.mi.com/static/docs/api/chat/openai-api.md",
    "sourceHash": "5aa307fb7ab2f67c2cce954fff6bb36f5a59ce999a104649ace1e44aaf2ded1a",
    "fetchedAt": 1792559508,
    "extractorVersion": "1",
    "derivation": "generated",
    "verifiedAt": null
  },
  "createdAt": 1792559508,
  "supersededAt": null,
  "schema": {
    "anyOf": [
      {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "content": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The contents of the developer message."
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "text": {
                                "type": "string",
                                "description": "The text content."
                              },
                              "type": {
                                "type": "string",
                                "description": "The type of the content part."
                              }
                            },
                            "required": [
                              "text",
                              "type"
                            ]
                          },
                          "description": "An array of content parts with a defined type. For developer messages, only type text is supported."
                        }
                      ],
                      "description": "The contents of the developer message."
                    },
                    "role": {
                      "type": "string",
                      "description": "The role of the message author. Available options: developer",
                      "enum": [
                        "developer"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role."
                    }
                  },
                  "required": [
                    "content",
                    "role"
                  ],
                  "description": "Developer-provided instructions that the model should follow, regardless of messages sent by the user."
                },
                {
                  "type": "object",
                  "properties": {
                    "content": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The contents of the system message."
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "text": {
                                "type": "string",
                                "description": "The text content."
                              },
                              "type": {
                                "type": "string",
                                "description": "The type of the content part."
                              }
                            },
                            "required": [
                              "text",
                              "type"
                            ]
                          },
                          "description": "An array of content parts with a defined type. For system messages, only type text is supported."
                        }
                      ],
                      "description": "The contents of the system message."
                    },
                    "role": {
                      "type": "string",
                      "description": "Role of the message author. Available options: system",
                      "enum": [
                        "system"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "An optional name for the participant. Provides the model information to differentiate between participants of the same role."
                    }
                  },
                  "required": [
                    "content",
                    "role"
                  ],
                  "description": "Developer-provided instructions that the model should follow, regardless of messages sent by the user."
                },
                {
                  "type": "object",
                  "properties": {
                    "content": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The text contents of the message."
                        },
                        {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "description": "The text content."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part."
                                  }
                                },
                                "required": [
                                  "text",
                                  "type"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "image_url": {
                                    "type": "object",
                                    "properties": {
                                      "url": {
                                        "type": "string",
                                        "description": "Either a URL of the image or the base64 encoded image data."
                                      }
                                    },
                                    "required": [
                                      "url"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part. Available options: image_url",
                                    "enum": [
                                      "image_url"
                                    ]
                                  }
                                },
                                "required": [
                                  "image_url",
                                  "type"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "input_audio": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "string",
                                        "description": "Either a URL of the audio or the base64 encoded audio data."
                                      }
                                    },
                                    "required": [
                                      "data"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part. Available options: input_audio",
                                    "enum": [
                                      "input_audio"
                                    ]
                                  }
                                },
                                "required": [
                                  "input_audio",
                                  "type"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "video_url": {
                                    "type": "object",
                                    "properties": {
                                      "url": {
                                        "type": "string",
                                        "description": "Either a URL of the video or the base64 encoded video data."
                                      }
                                    },
                                    "required": [
                                      "url"
                                    ]
                                  },
                                  "fps": {
                                    "type": "number",
                                    "description": "Number of frames sampled per second. Required range: [0.1, 10.0]"
                                  },
                                  "media_resolution": {
                                    "type": "string",
                                    "description": "Resolution level. Available options: default , max",
                                    "enum": [
                                      "default",
                                      "max"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part. Available options: video_url",
                                    "enum": [
                                      "video_url"
                                    ]
                                  }
                                },
                                "required": [
                                  "video_url",
                                  "type"
                                ]
                              }
                            ]
                          },
                          "description": "An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, audio or video inputs. Currently, the mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed models support image, audio or video input."
                        }
                      ],
                      "description": "The contents of the user message."
                    },
                    "role": {
                      "type": "string",
                      "description": "Role of the message author. Available options: user",
                      "enum": [
                        "user"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "An optional name for the participant. Provides model information to differentiate between participants of the same role."
                    }
                  },
                  "required": [
                    "content",
                    "role"
                  ],
                  "description": "Messages sent by an end user, containing prompts or additional context information."
                },
                {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string",
                      "description": "Role of the message author. Available options: assistant",
                      "enum": [
                        "assistant"
                      ]
                    },
                    "content": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The contents of the assistant message."
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "text": {
                                "type": "string",
                                "description": "The text content."
                              },
                              "type": {
                                "type": "string",
                                "description": "The type of the content part."
                              }
                            },
                            "required": [
                              "text",
                              "type"
                            ]
                          },
                          "description": "An array of content parts with a defined type. Can be one or more of type text ."
                        }
                      ],
                      "description": "The contents of the assistant message. Required unless tool_calls is specified."
                    },
                    "name": {
                      "type": "string",
                      "description": "An optional name for the participant. Provides model information to differentiate between participants of the same role."
                    },
                    "tool_calls": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "function": {
                            "type": "object",
                            "properties": {
                              "arguments": {
                                "type": "string",
                                "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
                              },
                              "name": {
                                "type": "string",
                                "description": "The name of the function to call."
                              }
                            },
                            "required": [
                              "arguments",
                              "name"
                            ],
                            "description": "The function that the model called."
                          },
                          "id": {
                            "type": "string",
                            "description": "The ID of the tool call."
                          },
                          "type": {
                            "type": "string",
                            "description": "Tool type. Currently, only function is supported."
                          }
                        },
                        "required": [
                          "function",
                          "id",
                          "type"
                        ],
                        "description": "A call to a function tool created by the model."
                      },
                      "description": "The tool calls generated by the model, such as function calls."
                    }
                  },
                  "required": [
                    "role"
                  ],
                  "description": "Messages sent by the model in response to user messages."
                },
                {
                  "type": "object",
                  "properties": {
                    "content": {
                      "anyOf": [
                        {
                          "type": "string",
                          "description": "The contents of the tool message."
                        },
                        {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "description": "The text content."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part."
                                  }
                                },
                                "required": [
                                  "text",
                                  "type"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "image_url": {
                                    "type": "object",
                                    "properties": {
                                      "url": {
                                        "type": "string",
                                        "description": "Either a URL of the image or the base64 encoded image data."
                                      }
                                    },
                                    "required": [
                                      "url"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part. Available options: image_url",
                                    "enum": [
                                      "image_url"
                                    ]
                                  }
                                },
                                "required": [
                                  "image_url",
                                  "type"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "input_audio": {
                                    "type": "object",
                                    "properties": {
                                      "data": {
                                        "type": "string",
                                        "description": "Either a URL of the audio or the base64 encoded audio data."
                                      }
                                    },
                                    "required": [
                                      "data"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part. Available options: input_audio",
                                    "enum": [
                                      "input_audio"
                                    ]
                                  }
                                },
                                "required": [
                                  "input_audio",
                                  "type"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "video_url": {
                                    "type": "object",
                                    "properties": {
                                      "url": {
                                        "type": "string",
                                        "description": "Either a URL of the video or the base64 encoded video data."
                                      }
                                    },
                                    "required": [
                                      "url"
                                    ]
                                  },
                                  "fps": {
                                    "type": "number",
                                    "description": "Number of frames sampled per second. Required range: [0.1, 10.0]"
                                  },
                                  "media_resolution": {
                                    "type": "string",
                                    "description": "Resolution level. Available options: default , max",
                                    "enum": [
                                      "default",
                                      "max"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the content part. Available options: video_url",
                                    "enum": [
                                      "video_url"
                                    ]
                                  }
                                },
                                "required": [
                                  "video_url",
                                  "type"
                                ]
                              }
                            ]
                          },
                          "description": "An array of content parts with a defined type. For tool messages, text, image, audio and video are supported. Currently, the mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed models support image, audio or video input."
                        }
                      ],
                      "description": "The contents of the tool message."
                    },
                    "role": {
                      "type": "string",
                      "description": "Role of the message author. Available options: tool",
                      "enum": [
                        "tool"
                      ]
                    },
                    "tool_call_id": {
                      "type": "string",
                      "description": "Tool call that this message is responding to."
                    }
                  },
                  "required": [
                    "content",
                    "role",
                    "tool_call_id"
                  ]
                }
              ]
            },
            "description": "The current conversation message list."
          },
          "model": {
            "type": "string",
            "description": "Model ID is used to generate the response. Available options: mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed",
            "enum": [
              "mimo-v2.6-flash",
              "mimo-v2.6-pro",
              "mimo-v2.6-pro-ultraspeed"
            ]
          },
          "frequency_penalty": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Required range: [-2.0, 2.0]"
          },
          "max_completion_tokens": {
            "type": [
              "integer",
              "null"
            ],
            "description": "An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. mimo-v2.6-flash : default 131072 mimo-v2.6-pro : default 131072 mimo-v2.6-pro-ultraspeed : default 131072 Required range: [1, 131072]"
          },
          "presence_penalty": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Required range: [-2.0, 2.0]"
          },
          "response_format": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "The type of response format being defined. Always text ."
                  }
                },
                "required": [
                  "type"
                ],
                "description": "Default response format. Used to generate text responses."
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "The type of response format being defined. Always json_object ."
                  }
                },
                "required": [
                  "type"
                ],
                "description": "JSON object response format. Note that the model will not generate JSON without a system or user message instructing it to do so."
              }
            ],
            "description": "An object specifying the format that the model must output."
          },
          "stop": {
            "type": [
              "string",
              "array",
              "null"
            ],
            "description": "Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence."
          },
          "stream": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "If set to true, the model response data will be streamed to the client as it is generated using server-sent events."
          },
          "thinking": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Whether to enable the chain of thought. mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed : default enabled Available options: enabled , disabled",
                "enum": [
                  "enabled",
                  "disabled"
                ]
              }
            },
            "required": [
              "type"
            ],
            "description": "This parameter is used to control whether the model enables the chain of thought. Note: During the multi-turn tool calls process in thinking mode, the model returns a reasoning_content field alongside tool_calls . To continue the conversation, it is recommended to keep all previous reasoning_content in the messages array for each subsequent request to achieve the best performance. In thinking mode, the mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed models do not support customizing the temperature and top_p parameters. Even if these parameters are passed in, the actual effective values will be forcibly set by the model to its recommended default values of 1.0 and 0.95 ."
          },
          "temperature": {
            "type": "number",
            "description": "What sampling temperature to use, between 0 and 1.5. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. In thinking mode, the mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed models do not support customizing the temperature parameter. Even if this parameter is passed in, it will be forcibly overridden and take effect with the model's recommended default value of 1.0 . mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed : default 1.0 Required range: [0, 1.5]"
          },
          "tool_choice": {
            "type": "string",
            "description": "Controls how the model selects a tool. Note: When a value other than auto is passed to tool_choice , the backend will remove this field by default, and the model response behavior will still be equivalent to the auto mode (this logic is subject to future adjustments). Available options: auto",
            "enum": [
              "auto"
            ]
          },
          "tools": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "function": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the tool function. Must be a-z , A-Z , 0-9 , or contain underscores ( _ ) and dashes ( - ), with a maximum length of 64. Required string length: 1 - 64"
                        },
                        "description": {
                          "type": "string",
                          "description": "A description of what the function does, used by the model to choose when and how to call the function."
                        },
                        "parameters": {
                          "type": "object",
                          "description": "The parameters the functions accept, described as a JSON Schema object. Omitting parameters defines a function with an empty parameter list."
                        },
                        "strict": {
                          "type": "boolean",
                          "description": "Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the parameters field. Only a subset of JSON Schema is supported when strict is true ."
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "description": "Tool type. Currently, only function is supported."
                    }
                  },
                  "required": [
                    "function",
                    "type"
                  ],
                  "description": "A function tool that can be used to generate a response."
                },
                {
                  "type": "object",
                  "properties": {
                    "user_location": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "approximate"
                        },
                        "country": {
                          "type": "string",
                          "description": "country"
                        },
                        "region": {
                          "type": "string",
                          "description": "region"
                        },
                        "city": {
                          "type": "string",
                          "description": "city"
                        },
                        "district": {
                          "type": "string",
                          "description": "district"
                        },
                        "longitude": {
                          "type": "integer",
                          "description": "longitude"
                        },
                        "latitude": {
                          "type": "integer",
                          "description": "latitude"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "description": "Tool type. Currently, only web_search is supported."
                    },
                    "force_search": {
                      "type": "boolean",
                      "description": "Whether to enable forced search. true for forced search, false for the model to decide whether search is needed."
                    },
                    "max_keyword": {
                      "type": "integer",
                      "description": "Limit the maximum number of keywords that can be used in a single search. Required range: [1, 50]"
                    },
                    "limit": {
                      "type": "integer",
                      "description": "Limit the maximum number of results returned by a single search operation. Required range: [1, 50]"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "description": "A web search tool that can be used to generate a response.For details, please refer to Web Search . Note: Web Search plugin must be activated before use."
                }
              ]
            },
            "description": "A list of tools the model may call. You can provide function tools. Note: During the multi-turn tool calls process in thinking mode, the model returns a reasoning_content field alongside tool_calls . To continue the conversation, it is recommended to keep all previous reasoning_content in the messages array for each subsequent request to achieve the best performance."
          },
          "top_p": {
            "type": "number",
            "description": "The probability threshold for nucleus sampling, which controls the diversity of the text that the model generates. A higher top_p value results in more diverse text. A lower top_p value results in more deterministic text. Because both temperature and top_p control the diversity of the generated text, we recommend that you set only one of them. In thinking mode, the mimo-v2.6-flash , mimo-v2.6-pro , mimo-v2.6-pro-ultraspeed models do not support customizing the top_p parameter. Even if this parameter is passed in, it will be forcibly overridden and take effect with the model's recommended default value of 0.95 . Required range: [0.01, 1.0]"
          }
        },
        "required": [
          "messages",
          "model"
        ]
      },
      {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "content": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "input_audio": {
                        "type": "object",
                        "properties": {
                          "data": {
                            "type": "string",
                            "description": "Base64 encoded audio in a data URL. Input audio only supports mp3 and wav formats: mp3 : valid MIME_TYPE values: audio/mpeg , audio/mp3 wav : valid MIME_TYPE value: audio/wav"
                          },
                          "format": {
                            "type": "string",
                            "description": "The format for encoding audio data. Available options: mp3 , wav",
                            "enum": [
                              "mp3",
                              "wav"
                            ]
                          }
                        },
                        "required": [
                          "data"
                        ],
                        "description": "When audio is passed via data URL, the format field is optional. If only Base64-encoded audio data is provided, the format field is required. If both MIME_TYPE and format are included, their values must match."
                      },
                      "type": {
                        "type": "string",
                        "description": "The type of the content part. Available options: input_audio",
                        "enum": [
                          "input_audio"
                        ]
                      }
                    },
                    "required": [
                      "input_audio",
                      "type"
                    ]
                  },
                  "description": "The contents of the user message. For detailed usage, please refer to Speech Recognition ."
                },
                "role": {
                  "type": "string",
                  "description": "Role of the message author. Available options: user",
                  "enum": [
                    "user"
                  ]
                }
              },
              "required": [
                "content",
                "role"
              ],
              "description": "Messages sent by an end user."
            },
            "description": "The message list."
          },
          "model": {
            "type": "string",
            "description": "Model ID is used to generate the response. Available options: mimo-v2.5-asr",
            "enum": [
              "mimo-v2.5-asr"
            ]
          },
          "asr_options": {
            "type": "object",
            "properties": {
              "language": {
                "type": "string",
                "description": "Specify a single language for audio recognition. auto : Auto‑detect audio language zh : Chinese en : English Available options: auto , zh , en",
                "enum": [
                  "auto",
                  "zh",
                  "en"
                ]
              }
            },
            "description": "Custom configuration parameters for automatic speech recognition (ASR)."
          },
          "stream": {
            "type": "boolean",
            "description": "If set to true , the model response data will be streamed to the client as it is generated using server-sent events."
          }
        },
        "required": [
          "messages",
          "model"
        ]
      },
      {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "string",
                      "description": "The contents of the user message."
                    },
                    "role": {
                      "type": "string",
                      "description": "Role of the message author. Available options: user",
                      "enum": [
                        "user"
                      ]
                    }
                  },
                  "required": [
                    "content",
                    "role"
                  ],
                  "description": "Messages sent by an end user, containing prompts or additional context information. Note: When generating audio using the mimo-v2.5-tts-voicedesign model, this message is required and is used to specify the text describing the voice design."
                },
                {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "string",
                      "description": "The contents of the assistant message, which is used to specify the target text for audio synthesis."
                    },
                    "role": {
                      "type": "string",
                      "description": "Role of the message author. Available options: assistant",
                      "enum": [
                        "assistant"
                      ]
                    }
                  },
                  "required": [
                    "content",
                    "role"
                  ],
                  "description": "Messages sent by the model in response to user messages. Note: When using the mimo-v2.5-tts-voicedesign model and optimize_text_preview is true , the assistant message is optional; in other cases, it is required."
                }
              ]
            },
            "description": "The current conversation message list."
          },
          "model": {
            "type": "string",
            "description": "Model ID is used to generate the response. Available options: mimo-v2.5-tts , mimo-v2.5-tts-voicedesign , mimo-v2.5-tts-voiceclone",
            "enum": [
              "mimo-v2.5-tts",
              "mimo-v2.5-tts-voicedesign",
              "mimo-v2.5-tts-voiceclone"
            ]
          },
          "audio": {
            "type": "object",
            "properties": {
              "format": {
                "type": "string",
                "description": "Specifies the output audio format. Default: wav , or pcm when you set stream: true . Passing in pcm or pcm16 both indicate specifying the use of the pcm16 format. Available options: wav , mp3 , pcm , pcm16",
                "enum": [
                  "wav",
                  "mp3",
                  "pcm",
                  "pcm16"
                ]
              },
              "optimize_text_preview": {
                "type": "boolean",
                "description": "Enables intelligent optimization of the target audio broadcast text. When set to true , the input target text is intelligently polished; if no target text is provided, a broadcast-adapted target text is automatically generated. The finalized processed text is then fed into the model for speech synthesis. Note: When this parameter is set to true , the assistant role message for specifying speech synthesis content can be omitted. Currently, only the mimo-v2.5-tts-voicedesign model is supported."
              },
              "voice": {
                "type": "string",
                "description": "The voice ID of the built-in voice or the base64 encoding of the audio sample. mimo-v2.5-tts : This field is optional and only supports using built-in voices, with the default value being mimo_default mimo-v2.5-tts-voiceclone : This field is required and only supports passing in the base64 encoding of audio samples, and only supports passing in audio sample files in mp3 and wav formats mimo-v2.5-tts-voicedesign does not support this field Available options: mimo-v2.5-tts : mimo_default , 冰糖 , 茉莉 , 苏打 , 白桦 , Mia , Chloe , Milo , Dean"
              }
            },
            "description": "Parameters for audio output. For details, please refer to Speech Synthesis . Note: To generate audio, you must add a message with role set to assistant , which needs to specify the text for speech synthesis. Additionally, when using the mimo-v2.5-tts-voicedesign model, a message with the role of user is required. If optimize_text_preview is set to true , the assistant message can be omitted."
          },
          "stream": {
            "type": "boolean",
            "description": "If set to true, the model response data will be streamed to the client as it is generated using server-sent events."
          }
        },
        "required": [
          "messages",
          "model"
        ]
      }
    ]
  }
}

Validate a payload

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