feat: add xiaomi provider with mimo-v2-flash model

Integrate Xiaomi AI services into the models.dev ecosystem by adding
support for their MiMo-V2-Flash model through OpenAI-compatible API.

* Add xiaomi provider configuration with api.xiaomimimo.com endpoint
* Configure environment variable XIAOMI_API_KEY for authentication
* Add mimo-v2-flash model with 256k context window and reasoning support
* Set pricing at /usr/bin/zsh.07 input / /usr/bin/zsh.21 output per 1M tokens
* Enable tool calling and interleaved reasoning capabilities
* Configure as open weights model for transparency

This addition follows the existing provider pattern and maintains
compatibility with the OpenAI SDK through @ai-sdk/openai-compatible.
This commit is contained in:
Huang Qi
2025-12-19 11:45:04 +08:00
parent f21fef4c5d
commit b8d9ded7d3
3 changed files with 34 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
<svg viewBox="-.8 -.1 301 300.5" xmlns="http://www.w3.org/2000/svg">
<path d="m123.3 1.1c-37.1 1.7-59.5 7.5-78.6 20.3-13.6 9-23.6 20.7-30.8 36.1-7.9 16.9-11.4 35.5-12.9 70.1-1.8 38.7.8 77.3 6.6 97.8 5.2 18.6 13.5 32.8 26.2 44.7 15.7 14.6 33.3 22.3 60.6 26.4 25 3.7 82.9 3.9 108.2.4 30.8-4.2 50.4-12.9 66.5-29.6 8-8.2 11.7-13.6 16.9-24.5 8.1-17.1 11.4-34.8 13-70.2 1.2-25.3 0-61.3-2.5-78.1-5.9-39.4-22.7-65-52-79.8-15.5-7.7-38.3-12.2-70-13.7-23.9-1.1-27.1-1.1-51.2.1zm36.9 93.2c13.2 3.1 19.6 7.5 23.8 16.5 4.3 9.2 5 16.8 5 58.3v39l-14.2-.3-14.3-.3-.5-38c-.5-41.5-.7-42.8-6.5-47.3-5.2-4.1-9.6-4.6-38-4.7h-27l-.5 45-.5 45h-28l-.3-56.9c-.2-44.9.1-57.2 1-57.8.7-.5 22-.7 47.3-.5 37.1.4 47.3.8 52.7 2zm78.6-.6c.7 1.4 1 110.1.3 113.6 0 .4-6.5.6-14.3.5l-14.3-.3-.3-56.4c-.1-40.8.1-56.8.9-57.7.9-1.1 4.4-1.4 14-1.4 11.2 0 12.9.2 13.7 1.7zm-99.8 78.8v35.6l-14.7-.3-14.8-.3-.3-34c-.1-18.7 0-34.6.3-35.2.3-1 4.2-1.3 15-1.3h14.5z"
fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 957 B

@@ -0,0 +1,25 @@
name = "MiMo-V2-Flash"
family = "mimo-v2-flash"
release_date = "2025-12-17"
last_updated = "2025-12-17"
attachment = false
reasoning = true
temperature = true
knowledge = "2024-12-01"
tool_call = true
open_weights = true
[cost]
input = 0.07
output = 0.21
[limit]
context = 256_000
output = 32_000
[modalities]
input = ["text"]
output = ["text"]
[interleaved]
field = "reasoning_content"
+5
View File
@@ -0,0 +1,5 @@
name = "Xiaomi"
env = ["XIAOMI_API_KEY"]
npm = "@ai-sdk/openai-compatible"
api = "https://api.xiaomimimo.com/v1"
doc = "https://platform.xiaomimimo.com/#/docs"