---
title: Xiaomi
---

<!-- THIS FILE IS AUTO-GENERATED BY website/scripts/generate-model-docs.js. DO NOT EDIT MANUALLY. -->

# Xiaomi

Use `xiaomi/<model>` with VoltAgent's model router.

## Quick start

```ts
import { Agent } from "@voltagent/core";

const agent = new Agent({
  name: "xiaomi-agent",
  instructions: "You are a helpful assistant",
  model: "xiaomi/mimo-v2-flash",
});
```

## Environment variables

- `XIAOMI_API_KEY`

## Provider package

`@ai-sdk/openai-compatible`

This provider uses the OpenAI-compatible adapter.

## Default base URL

`https://api.xiaomimimo.com/v1`

You can override the base URL by setting `XIAOMI_BASE_URL`.

## Provider docs

- https://platform.xiaomimimo.com/#/docs

## Models

<details>
  <summary>Show models (1)</summary>

- mimo-v2-flash

</details>
