# MAI-Image-2.6-Flash

MAI-Image-2.6 is a diffusion-based generative model designed for both high-quality text-to-image synthesis and precise, controllable image-to-image editing. It progressively transforms random noise into a coherent image aligned with a given text prompt, leveraging a flow-matching loss to learn a continuous transformation between the noise distribution and the data distribution. MAI-Image-2.6 excels at precise, surgical edits with consistency - enabling users and developers to make targeted object edits, adapt layouts, update text, clean up artifacts like motion blur, and preserve visual consistency across iterations.

- **Model ID:** `microsoft/mai-image-2.6-flash`
- **Type:** image
- **Providers:** azure
- **Context window:** Not applicable
- **Maximum output tokens:** 0
- **Pricing:** $1.75/1M input tokens, $19/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/mai-image-2.6-flash

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { experimental_generateImage as generateImage } from 'ai';

const result = await generateImage({
  model: 'microsoft/mai-image-2.6-flash',
  prompt: 'A red balloon on a wooden table.'
});
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/mai-image-2.6-flash)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
